- save jd bad comments in go.

This commit is contained in:
gazebo
2018-09-29 15:58:35 +08:00
parent 1b1006986f
commit a60ca564fd
4 changed files with 178 additions and 0 deletions

View File

@@ -31,3 +31,28 @@ type JxBackendUser struct {
func (*JxBackendUser) TableName() string {
return "jxbackenduser"
}
type JxBadComments struct {
Id int `orm:"column(id)"`
OrderId string `orm:"column(order_id);size(25);unique" description:"订单ID"`
Jxstoreid string `orm:"column(jxstoreid);size(11)" description:"京西门店ID"`
Userphone string `orm:"column(userphone);size(255);null" description:"评价的用户的联系方式"`
Status int `orm:"column(status)" description:"当前评论的状态(0:未解决 1:已解决)"`
Createtime string `orm:"column(createtime);size(255);null" description:"评论的创建时间"`
Maxmodifytime int `orm:"column(maxmodifytime);null" description:"评论可修改的最大时间"`
Score int `orm:"column(score)" description:"评论的星级"`
Scorecontent string `orm:"column(scorecontent);size(255);null" description:"评论的内容"`
Vendertags string `orm:"column(vendertags);size(255);null" description:"评论的标签"`
UpdatedScore int `orm:"column(updated_score);null" description:"更改后的分数"`
UpdatedScorecontent string `orm:"column(updated_scorecontent);size(255);null" description:"更改后的评论信息"`
UpdatedVendertags string `orm:"column(updated_vendertags);size(255);null" description:"更改后的标签信息"`
OrderFlag string `orm:"column(order_flag);size(255);null" description:"订单类别(0:京东 1:美团 2:饿了么)"`
Msg string `orm:"column(msg);type(text)" description:"未解决差评的原始信息"`
UpdatedMsg string `orm:"column(updated_msg);null" description:"解决后的差评的原始信息"`
LastPushTime string `orm:"column(last_push_time);size(255);null" description:"上一次推送的时间"`
PushNo int `orm:"column(push_no);null" description:"推送次数"`
}
func (*JxBadComments) TableName() string {
return "jx_bad_comments2"
}