feat: openid login
This commit is contained in:
@@ -23,21 +23,16 @@ func NewUserServer(svcCtx *svc.ServiceContext) *UserServer {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *UserServer) Register(ctx context.Context, in *user.RegisterReq) (*user.Response, error) {
|
||||
l := logic.NewRegisterLogic(ctx, s.svcCtx)
|
||||
return l.Register(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) RegisterByUser(ctx context.Context, in *user.RegisterByUserReq) (*user.Response, error) {
|
||||
l := logic.NewRegisterByUserLogic(ctx, s.svcCtx)
|
||||
return l.RegisterByUser(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)
|
||||
@@ -48,25 +43,21 @@ func (s *UserServer) UserStatus(ctx context.Context, in *user.UserStatusReq) (*u
|
||||
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