Merge remote-tracking branch 'origin/master'
This commit is contained in:
@ -11,16 +11,17 @@ import (
|
||||
|
||||
// Stores is the golang structure of table stores for DAO operations like Where/Data.
|
||||
type Stores struct {
|
||||
g.Meta `orm:"table:stores, do:true"`
|
||||
Id interface{} // 门店ID
|
||||
MerchantId interface{} // 所属商户ID
|
||||
Name interface{} // 门店名称
|
||||
StoreCode interface{} // 门店编号
|
||||
Address interface{} // 门店地址
|
||||
ContactName interface{} // 联系人姓名
|
||||
ContactPhone interface{} // 联系人电话
|
||||
Status interface{} // 状态:1=正常营业,2=暂停营业
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
g.Meta `orm:"table:stores, do:true"`
|
||||
Id interface{} // 门店ID
|
||||
MerchantId interface{} // 所属商户ID
|
||||
Name interface{} // 门店名称
|
||||
StoreCode interface{} // 门店编号
|
||||
Address interface{} // 门店地址
|
||||
ContactName interface{} // 联系人姓名
|
||||
ContactPhone interface{} // 联系人电话
|
||||
NetbarAccount interface{} // QQ 当吧网关账号
|
||||
Status interface{} // 状态:1=正常营业,2=暂停营业
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
|
||||
@ -10,15 +10,16 @@ import (
|
||||
|
||||
// Stores is the golang structure for table stores.
|
||||
type Stores struct {
|
||||
Id int64 `json:"id" orm:"id" description:"门店ID"` // 门店ID
|
||||
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"所属商户ID"` // 所属商户ID
|
||||
Name string `json:"name" orm:"name" description:"门店名称"` // 门店名称
|
||||
StoreCode string `json:"storeCode" orm:"store_code" description:"门店编号"` // 门店编号
|
||||
Address string `json:"address" orm:"address" description:"门店地址"` // 门店地址
|
||||
ContactName string `json:"contactName" orm:"contact_name" description:"联系人姓名"` // 联系人姓名
|
||||
ContactPhone string `json:"contactPhone" orm:"contact_phone" description:"联系人电话"` // 联系人电话
|
||||
Status int `json:"status" orm:"status" description:"状态:1=正常营业,2=暂停营业"` // 状态:1=正常营业,2=暂停营业
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
Id int64 `json:"id" orm:"id" description:"门店ID"` // 门店ID
|
||||
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"所属商户ID"` // 所属商户ID
|
||||
Name string `json:"name" orm:"name" description:"门店名称"` // 门店名称
|
||||
StoreCode string `json:"storeCode" orm:"store_code" description:"门店编号"` // 门店编号
|
||||
Address string `json:"address" orm:"address" description:"门店地址"` // 门店地址
|
||||
ContactName string `json:"contactName" orm:"contact_name" description:"联系人姓名"` // 联系人姓名
|
||||
ContactPhone string `json:"contactPhone" orm:"contact_phone" description:"联系人电话"` // 联系人电话
|
||||
NetbarAccount string `json:"netbarAccount" orm:"netbar_account" description:"QQ 当吧网关账号"` // QQ 当吧网关账号
|
||||
Status int `json:"status" orm:"status" description:"状态:1=正常营业,2=暂停营业"` // 状态:1=正常营业,2=暂停营业
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
|
||||
@ -5,15 +5,16 @@ import (
|
||||
)
|
||||
|
||||
type Store struct {
|
||||
g.Meta `orm:"table:stores"` // 绑定表名
|
||||
Id int64 `json:"id" orm:"id,primary" dc:"门店ID"`
|
||||
MerchantId int64 `json:"merchantId" orm:"merchant_id,not null" dc:"所属商户ID"`
|
||||
Name string `json:"name" orm:"name,not null" dc:"门店名称"`
|
||||
StoreCode string `json:"storeCode" orm:"store_code,unique" dc:"门店编号"`
|
||||
Address string `json:"address" orm:"address" dc:"门店地址"`
|
||||
ContactName string `json:"contactName" orm:"contact_name" dc:"联系人姓名"`
|
||||
ContactPhone string `json:"contactPhone" orm:"contact_phone" dc:"联系人电话"`
|
||||
Status int `json:"status" orm:"status,default:1" dc:"状态:1=正常营业,2=暂停营业,3=已关闭"`
|
||||
g.Meta `orm:"table:stores"` // 绑定表名
|
||||
Id int64 `json:"id" orm:"id,primary" dc:"门店ID"`
|
||||
MerchantId int64 `json:"merchantId" orm:"merchant_id,not null" dc:"所属商户ID"`
|
||||
Name string `json:"name" orm:"name,not null" dc:"门店名称"`
|
||||
StoreCode string `json:"storeCode" orm:"store_code,unique" dc:"门店编号"`
|
||||
Address string `json:"address" orm:"address" dc:"门店地址"`
|
||||
ContactName string `json:"contactName" orm:"contact_name" dc:"联系人姓名"`
|
||||
ContactPhone string `json:"contactPhone" orm:"contact_phone" dc:"联系人电话"`
|
||||
Status int `json:"status" orm:"status,default:1" dc:"状态:1=正常营业,2=暂停营业,3=已关闭"`
|
||||
NetbarAccount string `json:"netbarAccount" orm:"netbar_account" dc:"网吧网关账号"`
|
||||
}
|
||||
|
||||
type StoreCreateIn struct {
|
||||
|
||||
Reference in New Issue
Block a user