Documentation ¶
Index ¶
- type MessageService
- func (s *MessageService) CancelMessage(ctx context.Context, req *pb.CancelMessageRequest) (*pb.CancelMessageReply, error)
- func (s *MessageService) ConfirmMessage(ctx context.Context, req *pb.ConfirmMessageRequest) (*pb.ConfirmMessageReply, error)
- func (s *MessageService) DeleteMessages(ctx context.Context, req *pb.DeleteMessagesRequest) (*pb.DeleteMessagesReply, error)
- func (s *MessageService) ListMessage(ctx context.Context, req *pb.ListMessageRequest) (*pb.ListMessageReply, error)
- type Service
- func (s *Service) BatchUpdateUserStatus(ctx context.Context, req *userapi.BatchUpdateUserStatusRequest) (*userapi.BatchUpdateUserStatusReply, error)
- func (s *Service) CreateUser(ctx context.Context, req *userapi.CreateUserRequest) (*userapi.CreateUserReply, error)
- func (s *Service) DeleteUser(ctx context.Context, req *userapi.DeleteUserRequest) (*userapi.DeleteUserReply, error)
- func (s *Service) GetUser(ctx context.Context, req *userapi.GetUserRequest) (*userapi.GetUserReply, error)
- func (s *Service) GetUserSelectList(ctx context.Context, req *userapi.ListUserRequest) (*userapi.GetUserSelectListReply, error)
- func (s *Service) GetUserSelfBasic(ctx context.Context, _ *userapi.GetUserSelfBasicRequest) (*userapi.GetUserSelfBasicReply, error)
- func (s *Service) ListUser(ctx context.Context, req *userapi.ListUserRequest) (*userapi.ListUserReply, error)
- func (s *Service) ResetUserPassword(ctx context.Context, req *userapi.ResetUserPasswordRequest) (*userapi.ResetUserPasswordReply, error)
- func (s *Service) ResetUserPasswordBySelf(ctx context.Context, req *userapi.ResetUserPasswordBySelfRequest) (*userapi.ResetUserPasswordBySelfReply, error)
- func (s *Service) UpdateUser(ctx context.Context, req *userapi.UpdateUserRequest) (*userapi.UpdateUserReply, error)
- func (s *Service) UpdateUserAvatar(ctx context.Context, req *userapi.UpdateUserAvatarRequest) (*userapi.UpdateUserAvatarReply, error)
- func (s *Service) UpdateUserBaseInfo(ctx context.Context, req *userapi.UpdateUserBaseInfoRequest) (*userapi.UpdateUserBaseInfoReply, error)
- func (s *Service) UpdateUserEmail(ctx context.Context, req *userapi.UpdateUserEmailRequest) (*userapi.UpdateUserEmailReply, error)
- func (s *Service) UpdateUserPhone(ctx context.Context, req *userapi.UpdateUserPhoneRequest) (*userapi.UpdateUserPhoneReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageService ¶ added in v1.0.2
type MessageService struct { pb.UnimplementedMessageServer // contains filtered or unexported fields }
func NewMessageService ¶ added in v1.0.2
func NewMessageService(userMessageBiz *biz.UserMessageBiz) *MessageService
func (*MessageService) CancelMessage ¶ added in v1.1.0
func (s *MessageService) CancelMessage(ctx context.Context, req *pb.CancelMessageRequest) (*pb.CancelMessageReply, error)
func (*MessageService) ConfirmMessage ¶ added in v1.1.0
func (s *MessageService) ConfirmMessage(ctx context.Context, req *pb.ConfirmMessageRequest) (*pb.ConfirmMessageReply, error)
func (*MessageService) DeleteMessages ¶ added in v1.0.2
func (s *MessageService) DeleteMessages(ctx context.Context, req *pb.DeleteMessagesRequest) (*pb.DeleteMessagesReply, error)
func (*MessageService) ListMessage ¶ added in v1.0.2
func (s *MessageService) ListMessage(ctx context.Context, req *pb.ListMessageRequest) (*pb.ListMessageReply, error)
type Service ¶
type Service struct { userapi.UnimplementedUserServer // contains filtered or unexported fields }
Service 用户管理服务
func (*Service) BatchUpdateUserStatus ¶
func (s *Service) BatchUpdateUserStatus(ctx context.Context, req *userapi.BatchUpdateUserStatusRequest) (*userapi.BatchUpdateUserStatusReply, error)
BatchUpdateUserStatus 批量更新用户状态
func (*Service) CreateUser ¶
func (s *Service) CreateUser(ctx context.Context, req *userapi.CreateUserRequest) (*userapi.CreateUserReply, error)
CreateUser 创建用户 只允许管理员操作
func (*Service) DeleteUser ¶
func (s *Service) DeleteUser(ctx context.Context, req *userapi.DeleteUserRequest) (*userapi.DeleteUserReply, error)
DeleteUser 删除用户 只允许管理员操作
func (*Service) GetUser ¶
func (s *Service) GetUser(ctx context.Context, req *userapi.GetUserRequest) (*userapi.GetUserReply, error)
GetUser 获取用户详情
func (*Service) GetUserSelectList ¶
func (s *Service) GetUserSelectList(ctx context.Context, req *userapi.ListUserRequest) (*userapi.GetUserSelectListReply, error)
GetUserSelectList 获取用户下拉列表
func (*Service) GetUserSelfBasic ¶ added in v1.1.0
func (s *Service) GetUserSelfBasic(ctx context.Context, _ *userapi.GetUserSelfBasicRequest) (*userapi.GetUserSelfBasicReply, error)
GetUserSelfBasic 获取用户个人基础信息
func (*Service) ListUser ¶
func (s *Service) ListUser(ctx context.Context, req *userapi.ListUserRequest) (*userapi.ListUserReply, error)
ListUser 获取用户列表
func (*Service) ResetUserPassword ¶
func (s *Service) ResetUserPassword(ctx context.Context, req *userapi.ResetUserPasswordRequest) (*userapi.ResetUserPasswordReply, error)
ResetUserPassword 重置用户密码
func (*Service) ResetUserPasswordBySelf ¶
func (s *Service) ResetUserPasswordBySelf(ctx context.Context, req *userapi.ResetUserPasswordBySelfRequest) (*userapi.ResetUserPasswordBySelfReply, error)
ResetUserPasswordBySelf 重置用户密码
func (*Service) UpdateUser ¶
func (s *Service) UpdateUser(ctx context.Context, req *userapi.UpdateUserRequest) (*userapi.UpdateUserReply, error)
UpdateUser 更新用户基础信息, 只允许管理员操作
func (*Service) UpdateUserAvatar ¶
func (s *Service) UpdateUserAvatar(ctx context.Context, req *userapi.UpdateUserAvatarRequest) (*userapi.UpdateUserAvatarReply, error)
UpdateUserAvatar 更新用户头像
func (*Service) UpdateUserBaseInfo ¶
func (s *Service) UpdateUserBaseInfo(ctx context.Context, req *userapi.UpdateUserBaseInfoRequest) (*userapi.UpdateUserBaseInfoReply, error)
UpdateUserBaseInfo 更新用户基础信息
func (*Service) UpdateUserEmail ¶
func (s *Service) UpdateUserEmail(ctx context.Context, req *userapi.UpdateUserEmailRequest) (*userapi.UpdateUserEmailReply, error)
UpdateUserEmail 更新用户邮箱
func (*Service) UpdateUserPhone ¶
func (s *Service) UpdateUserPhone(ctx context.Context, req *userapi.UpdateUserPhoneRequest) (*userapi.UpdateUserPhoneReply, error)
UpdateUserPhone 更新用户手机号
Click to show internal directories.
Click to hide internal directories.