package logic import ( "context" "backend/usercenter/internal/svc" "backend/usercenter/pb/usercenter" "github.com/zeromicro/go-zero/core/logx" ) type LoginLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic { return &LoginLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *LoginLogic) Login(in *usercenter.LoginRequest) (*usercenter.LoginResponse, error) { // todo: add your logic here and delete this line return &usercenter.LoginResponse{}, nil }