Documentation ¶
Index ¶
- Constants
- func CommentAction(c *gin.Context)
- func CommentList(c *gin.Context)
- func FavoriteAction(c *gin.Context)
- func FavoriteList(c *gin.Context)
- func Feed(c *gin.Context)
- func FollowList(c *gin.Context)
- func FollowerList(c *gin.Context)
- func GenToken(userId int64) (string, error)
- func Login(c *gin.Context)
- func Publish(c *gin.Context)
- func PublishList(c *gin.Context)
- func Register(c *gin.Context)
- func RelationAction(c *gin.Context)
- func ResponseFailed(c *gin.Context, msg string)
- func ResponseSuccess(c *gin.Context, msg string)
- func UserInfo(c *gin.Context)
- type CommentListResponse
- type FavoriteListResponse
- type FeedResponse
- type Response
- type UserListResponse
- type UserLoginResponse
- type UserResponse
- type VideoListResponse
Constants ¶
View Source
const ( ActionAddComment = 1 ActionDeleteComment = 2 )
View Source
const ( ActionFav = 1 ActionUnFav = 2 )
View Source
const ( ActionFollow = 1 ActionUnfollow = 2 )
View Source
const ( StatusSuccess = 0 StatusFailed = 1 )
Variables ¶
This section is empty.
Functions ¶
func FavoriteList ¶
FavoriteList 获取点赞视频列表 由于前端无法从点赞列表中查看视频详情,因此无需考虑作者等信息
func ResponseFailed ¶
func ResponseSuccess ¶
Types ¶
type CommentListResponse ¶
type FavoriteListResponse ¶
type FeedResponse ¶
type UserListResponse ¶
type UserLoginResponse ¶
type UserResponse ¶
type VideoListResponse ¶
Click to show internal directories.
Click to hide internal directories.