Documentation ¶
Index ¶
- type Comment
- type Delrec
- type Model
- type ReqComments
- type ReqNewComment
- type ReqNewVideo
- type ReqUserCredential
- type ReqVideos
- type ResAddComment
- type ResAddVideoInfo
- type ResComments
- type ResSignedIn
- type ResSignedUp
- type ResUserInfo
- type ResUserSession
- type ResVideoInfos
- type Session
- type SimpleSession
- type User
- type Videoinfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Model UserID int64 `json:"user_id"` UserName string `json:"user_name"` VideoID string `json:"video_id"` Content string `json:"content"` }
Comment 评论
type ReqNewComment ¶
ReqNewComment 新增评论
type ReqNewVideo ¶
ReqNewVideo 新视频信息
type ReqUserCredential ¶
ReqUserCredential 用户认证
type ResComments ¶
ResComments 评论信息
type ResSignedIn ¶
ResSignedIn 登陆回复
type ResSignedUp ¶
ResSignedUp 注册回复
type ResUserSession ¶
type ResUserSession struct { Username string `json:"user_name"` SessionID string `json:"session_id"` }
ResUserSession 用户session回复
type ResVideoInfos ¶
ResVideoInfos 视频信息
type Session ¶
type Session struct { ID string `gorm:"primary_key" json:"id"` UserName string `json:"user_name"` TTL int64 `json:"ttl"` }
Session 视频信息表结构
type SimpleSession ¶
SimpleSession session结构
Click to show internal directories.
Click to hide internal directories.