Documentation ¶
Index ¶
- func UserClient() *pb.UserServiceClient
- func VideoClient() *pb.VideoServiceClient
- type GetUserInfoResponse
- type GetVideoFlowResponse
- type RegisterResponse
- type SendMessageRequest
- type ServiceHandler
- func (h *ServiceHandler) CommentVideo(c *gin.Context)
- func (h *ServiceHandler) FollowOrCancel(c *gin.Context)
- func (h *ServiceHandler) GetChatMessages(c *gin.Context)
- func (h *ServiceHandler) GetFollowers(c *gin.Context)
- func (h *ServiceHandler) GetFollowings(c *gin.Context)
- func (h *ServiceHandler) GetFriends(c *gin.Context)
- func (h *ServiceHandler) GetUserInfo(c *gin.Context)
- func (h *ServiceHandler) GetUserLike(c *gin.Context)
- func (h *ServiceHandler) GetUserVideoList(c *gin.Context)
- func (h *ServiceHandler) GetVideoComment(c *gin.Context)
- func (h *ServiceHandler) GetVideoFlow(c *gin.Context)
- func (h *ServiceHandler) LikeVideo(c *gin.Context)
- func (h *ServiceHandler) Login(c *gin.Context)
- func (h *ServiceHandler) PublishVideo(c *gin.Context)
- func (h *ServiceHandler) Register(c *gin.Context)
- func (h *ServiceHandler) SendMessage(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserClient ¶
func UserClient() *pb.UserServiceClient
func VideoClient ¶
func VideoClient() *pb.VideoServiceClient
Types ¶
type GetUserInfoResponse ¶
type GetVideoFlowResponse ¶
type RegisterResponse ¶
type SendMessageRequest ¶
type ServiceHandler ¶
type ServiceHandler struct {
// contains filtered or unexported fields
}
func NewServiceHandler ¶
func NewServiceHandler(uc *pb.UserServiceClient, vc *pb.VideoServiceClient) *ServiceHandler
func (*ServiceHandler) CommentVideo ¶
func (h *ServiceHandler) CommentVideo(c *gin.Context)
评论视频和删除评论
func (*ServiceHandler) FollowOrCancel ¶
func (h *ServiceHandler) FollowOrCancel(c *gin.Context)
关注或取消关注
func (*ServiceHandler) GetChatMessages ¶
func (h *ServiceHandler) GetChatMessages(c *gin.Context)
获取聊天记录
func (*ServiceHandler) GetFollowers ¶
func (h *ServiceHandler) GetFollowers(c *gin.Context)
获取用户粉丝列表
func (*ServiceHandler) GetFollowings ¶
func (h *ServiceHandler) GetFollowings(c *gin.Context)
获取用户关注列表
func (*ServiceHandler) GetUserInfo ¶
func (h *ServiceHandler) GetUserInfo(c *gin.Context)
处理获取用户信息请求
func (*ServiceHandler) GetUserLike ¶
func (h *ServiceHandler) GetUserLike(c *gin.Context)
获取用户点赞的视频列表
func (*ServiceHandler) GetUserVideoList ¶
func (h *ServiceHandler) GetUserVideoList(c *gin.Context)
处理获取用户视频列表请求
func (*ServiceHandler) GetVideoComment ¶
func (h *ServiceHandler) GetVideoComment(c *gin.Context)
获取视频评论列表
func (*ServiceHandler) GetVideoFlow ¶
func (h *ServiceHandler) GetVideoFlow(c *gin.Context)
func (*ServiceHandler) PublishVideo ¶
func (h *ServiceHandler) PublishVideo(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.