api

package
v0.0.0-...-dcbaf51 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MulanPSL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentAction

func CommentAction(c *gin.Context)

CommentAction create or delete a comment

func CommentList

func CommentList(c *gin.Context)

CommentList get all comments of a video

func FavoriteAction

func FavoriteAction(c *gin.Context)

FavoriteAction create or delete favorite of a video

func FavoriteList

func FavoriteList(c *gin.Context)

FavoriteList get favorite list

func Feed

func Feed(c *gin.Context)

Feed return video list and don't need to log in

func FollowList

func FollowList(c *gin.Context)

FollowList get follow list of given user id

func FollowerList

func FollowerList(c *gin.Context)

FollowerList get fans list of given user id

func Login

func Login(c *gin.Context)

Login login and get a token

func Publish

func Publish(c *gin.Context)

Publish check token then save upload file to qiniu oss

func PublishList

func PublishList(c *gin.Context)

PublishList get video list of target user

func Register

func Register(c *gin.Context)

Register register account

func RelationAction

func RelationAction(c *gin.Context)

RelationAction create or delete relation

func UserInfo

func UserInfo(c *gin.Context)

Types

type CommentListResponse

type CommentListResponse struct {
	model.Response
	CommentList []model.Comment `json:"comment_list,omitempty"`
}

CommentListResponse comment list response

type FeedResponse

type FeedResponse struct {
	app.Response
	VideoList []model.Video `json:"video_list,omitempty"`
	NextTime  int64         `json:"next_time,omitempty"`
}

FeedResponse get video list order by time

type UserListResponse

type UserListResponse struct {
	model.Response
	UserList []model.User `json:"user_list"`
}

type UserResponse

type UserResponse struct {
	app.Response
	User model.User `json:"user"`
}

type VideoListResponse

type VideoListResponse struct {
	app.Response
	VideoList []model.Video `json:"video_list"`
}

VideoListResponse get video list

Jump to

Keyboard shortcuts

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