1 Star 0 Fork 1

unsafe-rust/sq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
moment.go 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
unsafe-rust 提交于 2021-03-28 10:11 +08:00 . update
package models
type Moments struct {
Id int `form:"id" json:"id" db:"id"`
UserId int `form:"user_id" json:"user_id" db:"user_id"`
Content string `form:"content" json:"content" db:"content"`
CommentTotal int `form:"comment_total" json:"comment_total" db:"comment_total"`
LikeTotal int `form:"like_total" json:"like_total" db:"like_total"`
Status int `form:"status" json:"status" db:"status"`
ModelTime
}
func (p *Moments) TableName() string {
return "moments"
}
func (p *Moments) PK() string {
return "id"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/unsafe-rust/sq.git
git@gitee.com:unsafe-rust/sq.git
unsafe-rust
sq
sq
v1.0.0

搜索帮助