handlers

package
v0.0.0-...-9e605f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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) New

func (a UserServiceImpl) New()

New 方法用于初始化 UserServiceImpl,但当前实现为空

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 方法用于更新用户信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL