solution.go
1.4 KB
package models
import "time"
type Solution struct {
Id_RENAME int64 `orm:"column(id)" description:"方案ID"`
QuestionTitle string `orm:"column(questionTitle);size(500);null" description:"问题标题"`
Uid int64 `orm:"column(uid)" description:"方案提供者"`
CreateTime time.Time `orm:"column(createTime);type(timestamp);null" description:"方案创建时间"`
Content string `orm:"column(content);null" description:"方案内容"`
ScoreAnalyze int `orm:"column(scoreAnalyze);null" description:"分析评分(0-5对应分数)"`
ScoreSolution int `orm:"column(scoreSolution);null" description:"解决评分(0-5对应分数)"`
ScoreScheme int `orm:"column(scoreScheme);null" description:"方案评分(0-5对应分数)"`
PageView int `orm:"column(pageView);null" description:"浏览总数"`
CommentTotal int `orm:"column(commentTotal);null" description:"评论总数"`
SympathyTotal int `orm:"column(sympathyTotal);null" description:"同感总数"`
Qid int64 `orm:"column(qid);null" description:"问题ID"`
Plevel int `orm:"column(plevel);null" description:"最新评分人等级"`
Stype int `orm:"column(stype);null" description:"0备选方案 1解决方案"`
SpfUid int64 `orm:"column(spfUid)"`
UpdateTime time.Time `orm:"column(updateTime);type(timestamp);auto_now_add" description:"方案编辑更新时间"`
}