27 lines
659 B
Go
27 lines
659 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/cloudwego/hertz/pkg/app"
|
|
facade "github.com/suyiiyii/hertz101/app/facade/hertz_gen/facade"
|
|
)
|
|
|
|
type LoginService struct {
|
|
RequestContext *app.RequestContext
|
|
Context context.Context
|
|
}
|
|
|
|
func NewLoginService(Context context.Context, RequestContext *app.RequestContext) *LoginService {
|
|
return &LoginService{RequestContext: RequestContext, Context: Context}
|
|
}
|
|
|
|
func (h *LoginService) Run(req *facade.LoginReq) (resp *facade.LoginResp, err error) {
|
|
//defer func() {
|
|
// hlog.CtxInfof(h.Context, "req = %+v", req)
|
|
// hlog.CtxInfof(h.Context, "resp = %+v", resp)
|
|
//}()
|
|
// todo edit your code
|
|
return
|
|
}
|