Documentation ¶
Index ¶
- func CloseMQConn()
- type UserServiceImpl
- func (a UserServiceImpl) CheckUserExists(ctx context.Context, request *user.UserExistRequest) (resp *user.UserExistResponse, err error)
- func (a UserServiceImpl) FollowUser(ctx context.Context, request *user.FollowUserRequest) (response *user.FollowUserResponse, err error)
- func (a UserServiceImpl) GetUserInfo(ctx context.Context, request *user.UserRequest) (resp *user.UserResponse, err error)
- func (a UserServiceImpl) IsUserFollowing(ctx context.Context, request *user.IsUserFollowingRequest) (resp *user.IsUserFollowingResponse, err error)
- func (a UserServiceImpl) New()
- func (a UserServiceImpl) UnfollowUser(ctx context.Context, request *user.FollowUserRequest) (response *user.FollowUserResponse, err error)
- func (a UserServiceImpl) UpdateUser(ctx context.Context, request *user.UpdateUserRequest) (resp *user.UpdateUserResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseMQConn ¶
func CloseMQConn()
Types ¶
type UserServiceImpl ¶
type UserServiceImpl struct {
user.UnimplementedUserServiceServer // 嵌入未实现的服务器结构体以保证向前兼容性
}
UserServiceImpl 实现了 user.UserServiceServer 接口
func (UserServiceImpl) CheckUserExists ¶
func (a UserServiceImpl) CheckUserExists(ctx context.Context, request *user.UserExistRequest) (resp *user.UserExistResponse, err error)
CheckUserExists 方法用于检查用户是否存在
func (UserServiceImpl) FollowUser ¶
func (a UserServiceImpl) FollowUser(ctx context.Context, request *user.FollowUserRequest) (response *user.FollowUserResponse, err error)
func (UserServiceImpl) GetUserInfo ¶
func (a UserServiceImpl) GetUserInfo(ctx context.Context, request *user.UserRequest) (resp *user.UserResponse, err error)
GetUserInfo 方法用于获取用户信息
func (UserServiceImpl) IsUserFollowing ¶
func (a UserServiceImpl) IsUserFollowing(ctx context.Context, request *user.IsUserFollowingRequest) (resp *user.IsUserFollowingResponse, err error)
IsUserFollowing 方法用于检查用户是否关注了另一个用户
func (UserServiceImpl) UnfollowUser ¶
func (a UserServiceImpl) UnfollowUser(ctx context.Context, request *user.FollowUserRequest) (response *user.FollowUserResponse, err error)
func (UserServiceImpl) UpdateUser ¶
func (a UserServiceImpl) UpdateUser(ctx context.Context, request *user.UpdateUserRequest) (resp *user.UpdateUserResponse, err error)
UpdateUser 方法用于更新用户信息
Click to show internal directories.
Click to hide internal directories.