authserver.go 897 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: auth.proto
  3. package server
  4. import (
  5. "context"
  6. "ylink/core/auth/rpc/internal/logic"
  7. "ylink/core/auth/rpc/internal/svc"
  8. "ylink/core/auth/rpc/pb"
  9. )
  10. type AuthServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedAuthServer
  13. }
  14. func NewAuthServer(svcCtx *svc.ServiceContext) *AuthServer {
  15. return &AuthServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *AuthServer) PlayerAuth(ctx context.Context, in *pb.PlayerAuthReq) (*pb.AuthResp, error) {
  20. l := logic.NewPlayerAuthLogic(ctx, s.svcCtx)
  21. return l.PlayerAuth(in)
  22. }
  23. func (s *AuthServer) CsAuth(ctx context.Context, in *pb.CsAuthReq) (*pb.AuthResp, error) {
  24. l := logic.NewCsAuthLogic(ctx, s.svcCtx)
  25. return l.CsAuth(in)
  26. }
  27. func (s *AuthServer) CheckAuth(ctx context.Context, in *pb.CheckAuthReq) (*pb.CheckAuthResp, error) {
  28. l := logic.NewCheckAuthLogic(ctx, s.svcCtx)
  29. return l.CheckAuth(in)
  30. }