We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`func LoginHandler(ctx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) { var req types.LoginReq if err := httpx.Parse(r, &req); err != nil { httpx.Error(w, err) return } l := user.NewLoginLogic(r.Context(), ctx) resp, err := l.Login(&req) if err != nil { httpx.Error(w, err) } else { httpx.OkJson(w, resp) } }
}`
`func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) LoginLogic {
return LoginLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, }
}
func (l *LoginLogic) Login(req types.LoginReq) (resp *types.LoginReply, err error) { // todo: add your logic here and delete this line
return
} `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`func LoginHandler(ctx *svc.ServiceContext) http.HandlerFunc {
}`
`func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) LoginLogic {
}
func (l *LoginLogic) Login(req types.LoginReq) (resp *types.LoginReply, err error) {
// todo: add your logic here and delete this line
}
`
The text was updated successfully, but these errors were encountered: