defs

package
v0.0.0-...-1f55c80 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

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 Delrec

type Delrec struct {
	VideoID string `json:"video_id"`
}

Delrec 删除记录表(用于硬删除)

type Model

type Model struct {
	ID        string `gorm:"primary_key" json:"id"`
	CreatedOn int64  `json:"created_on"`
}

Model 公共

type ReqComments

type ReqComments struct {
	PageNum int `json:"page_num"`
}

ReqComments 请求用户的视频信息

type ReqNewComment

type ReqNewComment struct {
	UserID  int64  `json:"user_id"`
	Content string `json:"content"`
}

ReqNewComment 新增评论

type ReqNewVideo

type ReqNewVideo struct {
	UserID    int64  `json:"user_id"`
	VideoName string `json:"video_name"`
}

ReqNewVideo 新视频信息

type ReqUserCredential

type ReqUserCredential struct {
	Username string `json:"user_name"`
	Pwd      string `json:"pwd"`
}

ReqUserCredential 用户认证

type ReqVideos

type ReqVideos struct {
	PageNum int `json:"page_num"`
}

ReqVideos 请求用户的视频信息

type ResAddComment

type ResAddComment struct {
	Status string `json:"status"`
}

ResAddComment 评论信息

type ResAddVideoInfo

type ResAddVideoInfo struct {
	ID string `json:"id"`
}

ResAddVideoInfo 评论信息

type ResComments

type ResComments struct {
	Comments []Comment `json:"comments"`
	Count    int       `json:"total"`
}

ResComments 评论信息

type ResSignedIn

type ResSignedIn struct {
	Success   bool   `json:"success"`
	SessionID string `json:"session_id"`
}

ResSignedIn 登陆回复

type ResSignedUp

type ResSignedUp struct {
	Success   bool   `json:"success"`
	SessionID string `json:"session_id"`
}

ResSignedUp 注册回复

type ResUserInfo

type ResUserInfo struct {
	ID int64 `json:"id"`
}

ResUserInfo 用户信息回复

type ResUserSession

type ResUserSession struct {
	Username  string `json:"user_name"`
	SessionID string `json:"session_id"`
}

ResUserSession 用户session回复

type ResVideoInfos

type ResVideoInfos struct {
	VideoInfos []Videoinfo `json:"videoinfos"`
	Count      int         `json:"total"`
}

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

type SimpleSession struct {
	UserName string //login name
	TTL      int64
}

SimpleSession session结构

type User

type User struct {
	ID       int64  `gorm:"primary_key" json:"id"`
	UserName string `json:"user_name"`
	Pwd      string `json:"pwd"`
}

User 认证表结构

type Videoinfo

type Videoinfo struct {
	Model
	UserID    int64  `json:"user_id"`
	UserName  string `json:"user_name"`
	VideoName string `json:"video_name"`
}

Videoinfo 视频信息表结构

Jump to

Keyboard shortcuts

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