init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
user "github.com/suyiiyii/hertz101/rpc_gen/kitex_gen/user"
|
||||
)
|
||||
|
||||
type LoginService struct {
|
||||
ctx context.Context
|
||||
} // NewLoginService new LoginService
|
||||
func NewLoginService(ctx context.Context) *LoginService {
|
||||
return &LoginService{ctx: ctx}
|
||||
}
|
||||
|
||||
// Run create note info
|
||||
func (s *LoginService) Run(req *user.LoginReq) (resp *user.LoginResp, err error) {
|
||||
// Finish your business logic.
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user