fix: toml clear
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.10.1
|
||||
// Source: user.proto
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/user/pb"
|
||||
"lone-services/services/user/internal/logic"
|
||||
"lone-services/services/user/internal/svc"
|
||||
)
|
||||
|
||||
type UserServer struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
user.UnimplementedUserServer
|
||||
}
|
||||
|
||||
func NewUserServer(svcCtx *svc.ServiceContext) *UserServer {
|
||||
return &UserServer{
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *UserServer) SendSms(ctx context.Context, in *user.SendSmsReq) (*user.Response, error) {
|
||||
l := logic.NewSendSmsLogic(ctx, s.svcCtx)
|
||||
return l.SendSms(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) Login(ctx context.Context, in *user.LoginReq) (*user.Response, error) {
|
||||
l := logic.NewLoginLogic(ctx, s.svcCtx)
|
||||
return l.Login(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) Info(ctx context.Context, in *user.InfoReq) (*user.Response, error) {
|
||||
l := logic.NewInfoLogic(ctx, s.svcCtx)
|
||||
return l.Info(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) UserItems(ctx context.Context, in *user.UserItemsReq) (*user.Response, error) {
|
||||
l := logic.NewUserItemsLogic(ctx, s.svcCtx)
|
||||
return l.UserItems(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) UserStatus(ctx context.Context, in *user.UserStatusReq) (*user.Response, error) {
|
||||
l := logic.NewUserStatusLogic(ctx, s.svcCtx)
|
||||
return l.UserStatus(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) EnsureBizIdentity(ctx context.Context, in *user.EnsureBizIdentityReq) (*user.EnsureBizIdentityData, error) {
|
||||
l := logic.NewEnsureBizIdentityLogic(ctx, s.svcCtx)
|
||||
return l.EnsureBizIdentity(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) UsersByIds(ctx context.Context, in *user.UsersByIdsReq) (*user.UsersByIdsData, error) {
|
||||
l := logic.NewUsersByIdsLogic(ctx, s.svcCtx)
|
||||
return l.UsersByIds(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) UpdateMobile(ctx context.Context, in *user.UpdateMobileReq) (*user.UpdateMobileData, error) {
|
||||
l := logic.NewUpdateMobileLogic(ctx, s.svcCtx)
|
||||
return l.UpdateMobile(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) RevokeBizClient(ctx context.Context, in *user.RevokeBizClientReq) (*user.RevokeBizClientData, error) {
|
||||
l := logic.NewRevokeBizClientLogic(ctx, s.svcCtx)
|
||||
return l.RevokeBizClient(in)
|
||||
}
|
||||
Reference in New Issue
Block a user