1 Star 0 Fork 0

岛民阿强 / video_server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
apidef.go 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
岛民阿强 提交于 2022-01-09 13:51 . init
/*
* @Descripttion:
* @version:
* @Author: congsir
* @Date: 2022-01-04 22:27:47
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-01-09 11:48:41
*/
package defs
//reqeusts
type UserCredential struct {
Username string `json:"user_name"`
Pwd string `json:"pwd"`
}
//response
type SignedUp struct {
Success bool `json:"success"`
SessionId string `json:"session_id"`
}
//Data model
type VideoInfo struct {
Id string
AuthorId int
Name string
DisplayCtime string
}
type Comment struct {
Id string `json:"id"`
VideoId string `json:"video_id"`
Author string `json:"author"`
Content string `json:"content"`
}
type SimpleSession struct {
Username string
TTL int64
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/shanghaitech-university-codec_0/video_server.git
git@gitee.com:shanghaitech-university-codec_0/video_server.git
shanghaitech-university-codec_0
video_server
video_server
v0.0.5

搜索帮助

344bd9b3 5694891 D2dac590 5694891