删除修改
This commit is contained in:
1
business/model/bill.go
Normal file
1
business/model/bill.go
Normal file
@@ -0,0 +1 @@
|
||||
package model
|
||||
@@ -1,12 +0,0 @@
|
||||
package legacymodel
|
||||
|
||||
import "time"
|
||||
|
||||
type BlackClient struct {
|
||||
ID int `orm:"column(id)"`
|
||||
Mobile string `orm:"size(16);unique"`
|
||||
Name string `orm:"size(8)"`
|
||||
Note string `orm:"size(256)"`
|
||||
CreatedAt time.Time `orm:"auto_now_add;type(datetime);null"`
|
||||
UpdatedAt time.Time `orm:"auto_now;type(datetime);null"`
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package legacymodel
|
||||
|
||||
type Config struct {
|
||||
Id int
|
||||
Thirdparty string `orm:"size(20);unique" json:"key"`
|
||||
Token string `orm:"size(300)" json:"value"`
|
||||
Date string `orm:"size(30)" json:"date"`
|
||||
LastOperator string `orm:"size(32)" json:"lastOperator"` // 最后操作员
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package legacymodel
|
||||
|
||||
import "git.rosy.net.cn/jx-callback/business/model"
|
||||
|
||||
type EbaiShopLicence struct {
|
||||
model.ModelIDCUL
|
||||
|
||||
ShopName string
|
||||
Licence string
|
||||
Address string
|
||||
Owner string
|
||||
Tel string
|
||||
LicenceName string
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
package legacymodel
|
||||
|
||||
import "time"
|
||||
|
||||
type JxBadComments struct {
|
||||
Id int `json:"id" orm:"column(id)"`
|
||||
CreatedAt time.Time `orm:"auto_now_add;type(datetime);null" json:"createdAt"`
|
||||
OrderId string `json:"order_id" orm:"column(order_id);size(25);unique" description:"订单ID"`
|
||||
Jxstoreid string `json:"jxstoreid" orm:"column(jxstoreid);size(11);index" description:"京西门店ID"`
|
||||
Userphone string `json:"userPhone" orm:"column(userphone);size(255);null" description:"评价的用户的联系方式"`
|
||||
Status int `json:"status" orm:"column(status)" description:"当前评论的状态(0:未解决 1:已解决)"`
|
||||
Maxmodifytime int `json:"maxModifyTime" orm:"column(maxmodifytime);null" description:"评论可修改的最大时间"`
|
||||
OrderFlag string `json:"order_flag" orm:"column(order_flag);size(255);null" description:"订单类别(0:京东 1:美团 2:饿了么)"`
|
||||
|
||||
Createtime string `json:"createTime" orm:"column(createtime);size(255);null;index" description:"评论的创建时间"`
|
||||
Score int `json:"score4" orm:"column(score)" description:"评论的星级"`
|
||||
Scorecontent string `json:"score4Content" orm:"column(scorecontent);size(255);null" description:"评论的内容"`
|
||||
Vendertags string `json:"venderTags" orm:"column(vendertags);size(255);null" description:"评论的标签"`
|
||||
Msg string `json:"-" orm:"column(msg);type(text)" description:"未解决差评的原始信息"`
|
||||
|
||||
Updatetime string `json:"updateTime" orm:"column(updatetime);size(255);null" description:"评论的修改时间"`
|
||||
UpdatedScore int `json:"updatedScore" orm:"column(updated_score);null" description:"更改后的分数"`
|
||||
UpdatedScorecontent string `json:"updatedScoreContent" orm:"column(updated_scorecontent);size(255);null" description:"更改后的评论信息"`
|
||||
UpdatedVendertags string `json:"updatedVenderTags" orm:"column(updated_vendertags);size(255);null" description:"更改后的标签信息"`
|
||||
UpdatedMsg string `json:"-" orm:"column(updated_msg);type(text);null" description:"解决后的差评的原始信息"`
|
||||
|
||||
LastPushTime string `json:"-" orm:"column(last_push_time);size(255);null" description:"上一次推送的时间"`
|
||||
PushNo int `json:"-" orm:"column(push_no);null" description:"推送次数"`
|
||||
}
|
||||
|
||||
func (*JxBadComments) TableName() string {
|
||||
return "jx_bad_comments"
|
||||
}
|
||||
|
||||
// type JxBadComments2 struct {
|
||||
// Id int `json:"id" orm:"column(id)"`
|
||||
// CreatedAt time.Time `orm:"auto_now_add;type(datetime);null" json:"createdAt"`
|
||||
// OrderId string `json:"order_id" orm:"column(order_id);size(25);unique" description:"订单ID"`
|
||||
// Jxstoreid string `json:"jxstoreid" orm:"column(jxstoreid);size(11);index" description:"京西门店ID"`
|
||||
// Userphone string `json:"userPhone" orm:"column(userphone);size(255);null" description:"评价的用户的联系方式"`
|
||||
// Status int `json:"status" orm:"column(status)" description:"当前评论的状态(0:未解决 1:已解决)"`
|
||||
// Createtime string `json:"createTime" orm:"column(createtime);size(255);null" description:"评论的创建时间"`
|
||||
// Maxmodifytime int `json:"maxModifyTime" orm:"column(maxmodifytime);null" description:"评论可修改的最大时间"`
|
||||
// Score int `json:"score4" orm:"column(score)" description:"评论的星级"`
|
||||
// Scorecontent string `json:"score4Content" orm:"column(scorecontent);size(255);null" description:"评论的内容"`
|
||||
// Vendertags string `json:"venderTags" orm:"column(vendertags);size(255);null" description:"评论的标签"`
|
||||
// Updatetime string `json:"updateTime" orm:"column(updatetime);size(255);null" description:"评论的修改时间"`
|
||||
// UpdatedScore int `json:"updatedScore" orm:"column(updated_score);null" description:"更改后的分数"`
|
||||
// UpdatedScorecontent string `json:"updatedScoreContent" orm:"column(updated_scorecontent);size(255);null" description:"更改后的评论信息"`
|
||||
// UpdatedVendertags string `json:"updatedVenderTags" orm:"column(updated_vendertags);size(255);null" description:"更改后的标签信息"`
|
||||
// OrderFlag string `json:"order_flag" orm:"column(order_flag);size(255);null" description:"订单类别(0:京东 1:美团 2:饿了么)"`
|
||||
// Msg string `json:"-" orm:"column(msg);type(text)" description:"未解决差评的原始信息"`
|
||||
// UpdatedMsg string `json:"-" orm:"column(updated_msg);type(text);null" description:"解决后的差评的原始信息"`
|
||||
// LastPushTime string `json:"-" orm:"column(last_push_time);size(255);null" description:"上一次推送的时间"`
|
||||
// PushNo int `json:"-" orm:"column(push_no);null" description:"推送次数"`
|
||||
// }
|
||||
@@ -1,23 +0,0 @@
|
||||
package legacymodel
|
||||
|
||||
import "time"
|
||||
|
||||
type StoreBill struct {
|
||||
Id int `orm:"column(id);auto" json:"id"`
|
||||
Date time.Time `orm:"column(date);type(datetime)" json:"date"`
|
||||
Url string `orm:"column(url);size(255)" json:"url"`
|
||||
StoreId int `orm:"column(store_id)" json:"storeId"`
|
||||
BillName string `orm:"column(bill_name);size(30)" json:"billName"`
|
||||
ShopName string `orm:"size(30)" json:"shopName"`
|
||||
BillTitle string `orm:"size(255)" json:"billTitle"`
|
||||
}
|
||||
|
||||
func (t *StoreBill) TableName() string {
|
||||
return "store_bill"
|
||||
}
|
||||
|
||||
func (*StoreBill) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"StoreId", "Date"},
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package legacymodel
|
||||
|
||||
import "time"
|
||||
|
||||
type WeiXins struct {
|
||||
ID int `orm:"column(id)" json:"id"`
|
||||
CreatedAt time.Time `orm:"auto_now_add;type(datetime);null" json:"createdAt"`
|
||||
UpdatedAt time.Time `orm:"auto_now;type(datetime);null" json:"updatedAt"`
|
||||
LastOperator string `orm:"size(32)" json:"lastOperator"` // 最后操作员
|
||||
JxStoreID int `orm:"column(jxstoreid);index" json:"storeID"`
|
||||
OpenID string `orm:"column(openid);size(70);unique;null" json:"openID"`
|
||||
OpenIDMini string `orm:"column(openid_mini);size(70);unique;null" json:"openIDMini"`
|
||||
OpenIDUnion string `orm:"column(openid_union);size(70);unique;null" json:"openIDUnion"`
|
||||
Tel string `orm:"size(15);null;unique" json:"tel"`
|
||||
ParentID int `orm:"column(parentid);default(-1);index" json:"parentID"`
|
||||
NickName string `orm:"column(nickname);size(30)" json:"nickname"`
|
||||
}
|
||||
|
||||
func (*WeiXins) TableName() string {
|
||||
return "weixins"
|
||||
}
|
||||
@@ -220,58 +220,3 @@ func (v *UserMember) TableIndex() [][]string {
|
||||
[]string{"CreatedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type Role struct {
|
||||
ModelIDCULD
|
||||
|
||||
Name string `json:"name"` //角色名
|
||||
}
|
||||
|
||||
func (*Role) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"Name", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type UserRole struct {
|
||||
ModelIDCULD
|
||||
|
||||
UserID string `orm:"column(user_id)" json:"userID"` //用户ID
|
||||
RoleID int `orm:"column(role_id)" json:"roleID"` //角色ID
|
||||
}
|
||||
|
||||
func (*UserRole) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"UserID", "RoleID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type Menu struct {
|
||||
ModelIDCULD
|
||||
|
||||
Name string `json:"name"` //功能名
|
||||
URL string `orm:"column(url)" json:"url"` //路径
|
||||
ImgURL string `orm:"column(img_url)" json:"imgURL"` //图标
|
||||
Level int `json:"level"` //级别
|
||||
ParentID int `orm:"column(parent_id)" json:"parentID"` //父功能ID
|
||||
Color string `json:"color"` //颜色
|
||||
}
|
||||
|
||||
func (*Menu) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"Name", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type RoleMenu struct {
|
||||
ModelIDCULD
|
||||
|
||||
RoleID int `orm:"column(role_id)" json:"roleID"` //角色ID
|
||||
MenuID int `orm:"column(menu_id)" json:"menuID"` //功能ID
|
||||
}
|
||||
|
||||
func (*RoleMenu) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"MenuID", "RoleID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user