request

package
v0.0.0-...-e629c8d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentListRequest

type CommentListRequest struct {
	UserID  uint64 `form:"user_id" json:"user_id"`
	Token   string `form:"token" json:"token"`
	VideoID uint64 `form:"video_id" json:"video_id"`
}

CommentListRequest 评论列表的请求

type CommentRequest

type CommentRequest struct {
	comReq.UserTokenRequest
	ActionType  uint   `json:"action_type"`            //1-发布评论,2-删除评论
	CommentText string `json:"comment_text,omitempty"` //用户填写的评论内容,在action_type=1的时候使用
	CommentID   uint64 `json:"comment_id,omitempty"`   //要删除的评论id,在action_type=2的时候使用
}

type FavoriteTokenRequest

type FavoriteTokenRequest struct {
	Token      string `json:"token"`       //用户鉴权token
	VideoID    uint64 `json:"video_id"`    //视频id
	ActionType uint   `json:"action_type"` //1-点赞,2-取消点赞
}

type FeedRequest

type FeedRequest struct {
	LatestTime string `json:"latest_time,omitempty"` //可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间
	Token      string `json:"token,omitempty"`       //可选参数,用户登录状态下设置
}

type PublishActionRequest

type PublishActionRequest struct {
	Data  *multipart.FileHeader `json:"data"`  //视频数据
	Token string                `json:"token"` //用户鉴权token
	Title string                `json:"title"` //视频标题
}

type RelationRequest

type RelationRequest struct {
	Token      string `json:"token"`       //用户鉴权token
	ToUserID   uint64 `json:"to_user_id"`  //对方用户id
	ActionType uint64 `json:"action_type"` //1-关注,2-取消关注
}

type UserRequest

type UserRequest struct {
	Username string `json:"username"` //登录或注册用户名
	Password string `json:"password"` //登录或注册密码
}

Jump to

Keyboard shortcuts

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