gatewayserver.go 751 B

123456789101112131415161718192021222324252627282930313233
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: gateway.proto
  3. package server
  4. import (
  5. "context"
  6. "ylink/gateway/rpc/internal/logic"
  7. "ylink/gateway/rpc/internal/svc"
  8. "ylink/gateway/rpc/pb"
  9. )
  10. type GatewayServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedGatewayServer
  13. }
  14. func NewGatewayServer(svcCtx *svc.ServiceContext) *GatewayServer {
  15. return &GatewayServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *GatewayServer) PlayerLogin(ctx context.Context, in *pb.PlayerLoginReq) (*pb.LoginResp, error) {
  20. l := logic.NewPlayerLoginLogic(ctx, s.svcCtx)
  21. return l.PlayerLogin(in)
  22. }
  23. func (s *GatewayServer) CsLogin(ctx context.Context, in *pb.CsLoginReq) (*pb.LoginResp, error) {
  24. l := logic.NewCsLoginLogic(ctx, s.svcCtx)
  25. return l.CsLogin(in)
  26. }