423 Star 2K Fork 720

进击的皇虫/DocHub

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
SuggestModel.go 797 Bytes
Copy Edit Raw Blame History
TruthHun authored 2018-08-09 22:49 +08:00 . model层代码优化
package models
//TODO
//意见和建议表,用于收集用户的意见和建议
type Suggest struct {
Id int `orm:"column(Id)"`
Uid int `orm:"column(Uid);default(0)"` //意见和建议提交人
Content string `orm:"column(Content);size(512);"` //内容
Email string `orm:"column(Email);size(50)"` //邮箱
Name string `orm:"column(Name);size(20);default()"` //称呼
TimeCreate int `orm:"column(TimeCreate)"` //意见建议提交时间
TimeUpdate int `orm:"column(TimeUpdate)"` //意见建议查看时间
Status bool `orm:"column(Status);default(false)"` //是否已查看
}
func NewSuggest() *Suggest {
return &Suggest{}
}
func GetTableSuggest() string {
return getTable("suggest")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/truthhun/DocHub.git
git@gitee.com:truthhun/DocHub.git
truthhun
DocHub
DocHub
01033d1926ec

Search