Documentation ¶
Index ¶
- Variables
- func CommentAction(ctx context.Context, c *app.RequestContext)
- func CommentList(ctx context.Context, c *app.RequestContext)
- func FavoriteAction(ctx context.Context, c *app.RequestContext)
- func FavoriteList(ctx context.Context, c *app.RequestContext)
- func Feed(ctx context.Context, c *app.RequestContext)
- func FollowList(ctx context.Context, c *app.RequestContext)
- func FollowerList(ctx context.Context, c *app.RequestContext)
- func FriendList(ctx context.Context, c *app.RequestContext)
- func Login(ctx context.Context, c *app.RequestContext)
- func MessageAction(ctx context.Context, c *app.RequestContext)
- func MessageChat(ctx context.Context, c *app.RequestContext)
- func Publish(ctx context.Context, c *app.RequestContext)
- func PublishList(ctx context.Context, c *app.RequestContext)
- func Register(ctx context.Context, c *app.RequestContext)
- func RelationAction(ctx context.Context, c *app.RequestContext)
- func UserInfo(ctx context.Context, c *app.RequestContext)
- type ChatResponse
- type Comment
- type CommentActionResponse
- type CommentListResponse
- type FeedResponse
- type Message
- type MessagePushEvent
- type MessageSendEvent
- type Response
- type User
- type UserListResponse
- type UserLoginResponse
- type UserResponse
- type Video
- type VideoListResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var DemoComments = []Comment{ { ID: 1, User: DemoUser, Content: "Test Comment", CreateDate: "05-01", }, }
nolint:all
View Source
var DemoUser = User{ ID: 1, Name: "TestUser", FollowCount: 0, FollowerCount: 0, IsFollow: false, }
nolint:all
View Source
var DemoVideos = []Video{ { ID: 1, Author: DemoUser, PlayURL: "https://www.w3schools.com/html/movie.mp4", CoverURL: "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg", FavoriteCount: 0, CommentCount: 0, IsFavorite: false, }, }
nolint:all
Functions ¶
func CommentAction ¶
func CommentAction(ctx context.Context, c *app.RequestContext)
func CommentList ¶
func CommentList(ctx context.Context, c *app.RequestContext)
func FavoriteAction ¶
func FavoriteAction(ctx context.Context, c *app.RequestContext)
func FavoriteList ¶
func FavoriteList(ctx context.Context, c *app.RequestContext)
func FollowList ¶
func FollowList(ctx context.Context, c *app.RequestContext)
func FollowerList ¶
func FollowerList(ctx context.Context, c *app.RequestContext)
func FriendList ¶
func FriendList(ctx context.Context, c *app.RequestContext)
func MessageAction ¶
func MessageAction(ctx context.Context, c *app.RequestContext)
MessageAction no practical effect, just check if token is valid.
func MessageChat ¶
func MessageChat(ctx context.Context, c *app.RequestContext)
MessageChat all users have same follow list.
func Publish ¶
func Publish(ctx context.Context, c *app.RequestContext)
Publish check token then save upload file to public directory.
func PublishList ¶
func PublishList(ctx context.Context, c *app.RequestContext)
PublishList all users have same publish video list.
func RelationAction ¶
func RelationAction(ctx context.Context, c *app.RequestContext)
Types ¶
type ChatResponse ¶
type CommentActionResponse ¶
type CommentListResponse ¶
type FeedResponse ¶
type MessagePushEvent ¶
type MessageSendEvent ¶
type UserListResponse ¶
type UserLoginResponse ¶
type UserResponse ¶
type Video ¶
type Video struct { ID int64 `json:"id,omitempty"` Author User `json:"author"` PlayURL string `json:"play_url,omitempty"` CoverURL string `json:"cover_url,omitempty"` FavoriteCount int64 `json:"favorite_count,omitempty"` CommentCount int64 `json:"comment_count,omitempty"` IsFavorite bool `json:"is_favorite,omitempty"` }
type VideoListResponse ¶
Click to show internal directories.
Click to hide internal directories.