factroy store
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type DepositCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
|
||||
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);comment:状态,1为完成,9为充值中,2为忽略,4已到帐" json:"status"`
|
||||
}
|
||||
|
||||
type DepositInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
|
||||
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
|
||||
AffirmAmount float64 `gorm:"column:affirm_amount;type:decimal(10,2);comment:确认的金额" json:"affirm_amount"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);comment:状态,1为完成,9为充值中,2为忽略,4已到帐" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:忽略原因" json:"reason"`
|
||||
AccountantId int64 `gorm:"column:accountant_id;type:int(11)" json:"accountant_id"`
|
||||
AccountantName string `gorm:"column:accountant_name;type:varchar(255)" json:"accountant_name"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50);comment:操作人姓名" json:"admin_name"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"`
|
||||
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
|
||||
StoreName string `gorm:"-" json:"store_name"`
|
||||
}
|
||||
|
||||
type DepositWebInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
|
||||
AffirmAmount float64 `gorm:"column:affirm_amount;type:decimal(10,2);comment:确认的金额" json:"affirm_amount"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:忽略原因" json:"reason"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);comment:状态,1为完成,9为充值中,2为忽略,4已到帐" json:"status"`
|
||||
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"`
|
||||
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
|
||||
}
|
||||
|
||||
type DepositStatus struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:9是待处理 1是已通过 2是未通过,3为禁用;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:忽略原因" json:"reason"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
|
||||
AffirmAmount float64 `gorm:"column:affirm_amount;type:decimal(10,2);comment:确认的金额" json:"affirm_amount"`
|
||||
AccountantId int64 `gorm:"column:accountant_id;type:int(11)" json:"accountant_id"`
|
||||
AccountantName string `gorm:"column:accountant_name;type:varchar(255)" json:"accountant_name"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type DepositDown struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
|
||||
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
|
||||
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
|
||||
StoreName string `gorm:"-" json:"store_name"`
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type SalesPersonHistoryCreate struct {
|
||||
Id int64 `json:"id" gorm:"id"`
|
||||
StoreId int64 `json:"store_id" gorm:"store_id"` // 门店ID
|
||||
SalesPersonId int64 `json:"sales_person_id" gorm:"sales_person_id"` // 关联销售员的id
|
||||
AdminId int64 `json:"admin_id" gorm:"admin_id"` // 修改人,0 为系统
|
||||
}
|
||||
|
||||
type SalesPersonHistoryInfo struct {
|
||||
Id int64 `json:"id" gorm:"id"`
|
||||
StoreId int64 `json:"store_id" gorm:"store_id"` // 门店ID
|
||||
SalesPersonId int64 `json:"sales_person_id" gorm:"sales_person_id"` // 关联销售员的id
|
||||
AdminId int64 `json:"admin_id" gorm:"admin_id"` // 修改人,0 为系统
|
||||
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
|
||||
}
|
||||
@@ -0,0 +1,242 @@
|
||||
package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type StoreCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:门店名;NOT NULL" json:"name"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(128);comment:负责人姓名;NOT NULL" json:"user_name"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
BusinessLicense string `gorm:"column:business_license;type:varchar(512);comment:营业执照;NOT NULL" json:"business_license"`
|
||||
IdCard string `gorm:"column:id_card;type:varchar(255);comment:身份证正反面" json:"id_card"`
|
||||
Area string `gorm:"column:area;type:varchar(255);comment:面积" json:"area"`
|
||||
Receipt string `gorm:"column:receipt;type:varchar(512);comment:发票信息" json:"receipt"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);comment:类型,1为生美、2双美、3医美" json:"type"`
|
||||
District string `gorm:"column:district;type:varchar(255);comment:地区(省,市,县)ID" json:"district"`
|
||||
Address string `gorm:"column:address;type:varchar(512);comment:地址" json:"address"`
|
||||
BankInfo string `gorm:"column:bank_info;type:varchar(255);comment:银行卡信息" json:"bank_info"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:状态9是待审核 1是已通过 2是未通过,3为禁用" json:"status"`
|
||||
SaleId int64 `gorm:"column:sale_id;type:varchar(256);comment:关联销售员的id" json:"sale_id"`
|
||||
GroupId int64 `gorm:"column:group_id;type:int(11);default:0;comment:分组ID" json:"group_id"`
|
||||
SourceType int32 `gorm:"column:source_type;type:tinyint(1);default:1;comment:来源类型,1为公司添加,2为销售添加" json:"source_type"`
|
||||
Images string `gorm:"column:images;type:varchar(255);comment:门店门头照片" json:"images"`
|
||||
StoreImages string `gorm:"column:store_images;type:text;comment:店内照片" json:"store_images"`
|
||||
Contact string `gorm:"column:contact;type:varchar(255);comment:联系方式,多个,号分割" json:"contact"`
|
||||
Content string `gorm:"column:content;type:text" json:"content"`
|
||||
OpenTime string `gorm:"column:open_time;type:varchar(100);comment:营业时间" json:"open_time"`
|
||||
Province int64 `gorm:"column:province;type:int(11);default:0" json:"province"`
|
||||
ProvinceName string `gorm:"column:province_name;type:varchar(255)" json:"province_name"`
|
||||
StoreType int64 `json:"store_type" gorm:"store_type"` // 门店类型,1为面膜,2为门店,3为制氧机,4为软水机,5智能化妆盒
|
||||
City int64 `json:"city" gorm:"city"`
|
||||
CityName string `json:"city_name" gorm:"city_name"`
|
||||
County int64 `json:"county" gorm:"county"`
|
||||
CountyName string `json:"county_name" gorm:"county_name"`
|
||||
LongitudeWgs84 string `gorm:"column:longitude_wgs84;type:varchar(50);comment:坐标经度-国际" json:"longitude_wgs84"`
|
||||
LatitudeWgs84 string `gorm:"column:latitude_wgs84;type:varchar(50);comment:坐标纬度-国际" json:"latitude_wgs84"`
|
||||
LongitudeGcj02 string `gorm:"column:longitude_gcj02;type:varchar(50);comment:坐标经度-国密" json:"longitude_gcj02"`
|
||||
LatitudeGcj02 string `gorm:"column:latitude_gcj02;type:varchar(50);comment:坐标纬度-国密" json:"latitude_gcj02"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type StoreInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:门店名;NOT NULL" json:"name"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(128);comment:负责人姓名;NOT NULL" json:"user_name"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
BusinessLicense string `gorm:"column:business_license;type:varchar(512);comment:营业执照;NOT NULL" json:"business_license"`
|
||||
StoreType int64 `json:"store_type" gorm:"store_type"` // 门店类型,1为面膜,2为门店,3为制氧机,4为软水机,5智能化妆盒
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:余额" json:"amount"`
|
||||
District string `gorm:"column:district;type:varchar(255);comment:地区(省,市,县)ID" json:"district"`
|
||||
IdCard string `gorm:"column:id_card;type:varchar(255);comment:身份证正反面" json:"id_card"`
|
||||
Area string `gorm:"column:area;type:varchar(255);comment:面积" json:"area"`
|
||||
Receipt string `gorm:"column:receipt;type:varchar(512);comment:发票信息" json:"receipt"`
|
||||
BankInfo string `gorm:"column:bank_info;type:varchar(255);comment:银行卡信息" json:"bank_info"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);comment:类型,1为生美、2双美、3医美" json:"type"`
|
||||
Account string `gorm:"column:account;type:varchar(255);comment:账户信息" json:"account"`
|
||||
StoreImages string `gorm:"column:store_images;type:text;comment:店内照片" json:"store_images"`
|
||||
Address string `gorm:"column:address;type:varchar(512);comment:地址" json:"address"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:状态9是待审核 1是已通过 2是未通过,3为禁用" json:"status"`
|
||||
SaleId int64 `gorm:"column:sale_id;type:varchar(256);comment:关联销售员的id" json:"sale_id"`
|
||||
GroupId int64 `gorm:"column:group_id;type:int(11);default:0;comment:分组ID" json:"group_id"`
|
||||
SourceType int32 `gorm:"column:source_type;type:tinyint(1);default:1;comment:来源类型,1为公司添加,2为销售添加" json:"source_type"`
|
||||
Images string `gorm:"column:images;type:varchar(255);comment:门店门头照片" json:"images"`
|
||||
Province int64 `gorm:"column:province;type:int(11);default:0" json:"province"`
|
||||
ProvinceName string `gorm:"column:province_name;type:varchar(255)" json:"province_name"`
|
||||
City int64 `json:"city" gorm:"city"`
|
||||
CityName string `json:"city_name" gorm:"city_name"`
|
||||
County int64 `json:"county" gorm:"county"`
|
||||
Contact string `gorm:"column:contact;type:varchar(255);comment:联系方式,多个,号分割" json:"contact"`
|
||||
Content string `gorm:"column:content;type:text" json:"content"`
|
||||
OpenTime string `gorm:"column:open_time;type:varchar(100);comment:营业时间" json:"open_time"`
|
||||
LongitudeWgs84 string `gorm:"column:longitude_wgs84;type:varchar(50);comment:坐标经度-国际" json:"longitude_wgs84"`
|
||||
LatitudeWgs84 string `gorm:"column:latitude_wgs84;type:varchar(50);comment:坐标纬度-国际" json:"latitude_wgs84"`
|
||||
LongitudeGcj02 string `gorm:"column:longitude_gcj02;type:varchar(50);comment:坐标经度-国密" json:"longitude_gcj02"`
|
||||
LatitudeGcj02 string `gorm:"column:latitude_gcj02;type:varchar(50);comment:坐标纬度-国密" json:"latitude_gcj02"`
|
||||
BuyAmount float64 `gorm:"column:buy_amount;type:decimal(10,2);default:0.00;comment:购买的支付金额" json:"buy_amount"`
|
||||
NewContent string `gorm:"column:new_content;type:text;comment:修改的内容" json:"new_content"`
|
||||
ResidualNumber int32 `gorm:"column:residual_number;type:smallint(4);default:0;comment:剩余的试用数据" json:"residual_number"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:理由" json:"reason"`
|
||||
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"`
|
||||
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
|
||||
AesMobile string `json:"aes_mobile"`
|
||||
DistrictNames string `gorm:"-" json:"district_names"`
|
||||
SaleName string `gorm:"-" json:"sale_name"`
|
||||
Edit int32 `gorm:"-" json:"edit"`
|
||||
}
|
||||
|
||||
type StoreWebInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:门店名;NOT NULL" json:"name"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(128);comment:负责人姓名;NOT NULL" json:"user_name"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
BusinessLicense string `gorm:"column:business_license;type:varchar(512);comment:营业执照;NOT NULL" json:"business_license"`
|
||||
District string `gorm:"column:district;type:varchar(255);comment:地区(省,市,县)ID" json:"district"`
|
||||
Address string `gorm:"column:address;type:varchar(512);comment:地址" json:"address"`
|
||||
StoreType int64 `json:"store_type" gorm:"store_type"` // 门店类型,1为面膜,2为门店,3为制氧机,4为软水机,5智能化妆盒
|
||||
BankInfo string `gorm:"column:bank_info;type:varchar(255);comment:银行卡信息" json:"bank_info"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:状态9是待审核 1是已通过 2是未通过,3为禁用" json:"status"`
|
||||
SourceType int32 `gorm:"column:source_type;type:tinyint(1);default:1;comment:来源类型,1为公司添加,2为销售添加" json:"source_type"`
|
||||
IdCard string `gorm:"column:id_card;type:varchar(255);comment:身份证正反面" json:"id_card"`
|
||||
Area string `gorm:"column:area;type:varchar(255);comment:面积" json:"area"`
|
||||
Receipt string `gorm:"column:receipt;type:varchar(512);comment:发票信息" json:"receipt"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);comment:类型,1为生美、2双美、3医美" json:"type"`
|
||||
BuyAmount float64 `gorm:"column:buy_amount;type:decimal(10,2);default:0.00;comment:购买的支付金额" json:"buy_amount"`
|
||||
ResidualNumber int32 `gorm:"column:residual_number;type:smallint(4);default:0;comment:剩余的试用数据" json:"residual_number"`
|
||||
StoreImages string `gorm:"column:store_images;type:text;comment:店内照片" json:"store_images"`
|
||||
Images string `gorm:"column:images;type:varchar(255);comment:门店门头照片" json:"images"`
|
||||
Contact string `gorm:"column:contact;type:varchar(255);comment:联系方式,多个,号分割" json:"contact"`
|
||||
Content string `gorm:"column:content;type:text" json:"content"`
|
||||
OpenTime string `gorm:"column:open_time;type:varchar(100);comment:营业时间" json:"open_time"`
|
||||
LongitudeWgs84 string `gorm:"column:longitude_wgs84;type:varchar(50);comment:坐标经度-国际" json:"longitude_wgs84"`
|
||||
LatitudeWgs84 string `gorm:"column:latitude_wgs84;type:varchar(50);comment:坐标纬度-国际" json:"latitude_wgs84"`
|
||||
LongitudeGcj02 string `gorm:"column:longitude_gcj02;type:varchar(50);comment:坐标经度-国密" json:"longitude_gcj02"`
|
||||
LatitudeGcj02 string `gorm:"column:latitude_gcj02;type:varchar(50);comment:坐标纬度-国密" json:"latitude_gcj02"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:理由" json:"reason"`
|
||||
DistrictNames string `gorm:"-" json:"district_names"`
|
||||
}
|
||||
|
||||
type StoreVerifyEdit struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:门店名;NOT NULL" json:"name"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(128);comment:负责人姓名;NOT NULL" json:"user_name"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
BusinessLicense string `gorm:"column:business_license;type:varchar(512);comment:营业执照;NOT NULL" json:"business_license"`
|
||||
IdCard string `gorm:"column:id_card;type:varchar(255);comment:身份证正反面" json:"id_card"`
|
||||
Area string `gorm:"column:area;type:varchar(255);comment:面积" json:"area"`
|
||||
Receipt string `gorm:"column:receipt;type:varchar(512);comment:发票信息" json:"receipt"`
|
||||
BankInfo string `gorm:"column:bank_info;type:varchar(255);comment:银行卡信息" json:"bank_info"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);comment:类型,1为生美、2双美、3医美" json:"type"`
|
||||
District string `gorm:"column:district;type:varchar(255);comment:地区(省,市,县)ID" json:"district"`
|
||||
Address string `gorm:"column:address;type:varchar(512);comment:地址" json:"address"`
|
||||
StoreType int64 `json:"store_type" gorm:"store_type"` // 门店类型,1为面膜,2为门店,3为制氧机,4为软水机,5智能化妆盒
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:状态9是待审核 1是已通过 2是未通过,3为禁用" json:"status"`
|
||||
SaleId int64 `gorm:"column:sale_id;type:varchar(256);comment:关联销售员的id" json:"sale_id"`
|
||||
SourceType int32 `gorm:"column:source_type;type:tinyint(1);default:1;comment:来源类型,1为公司添加,2为销售添加" json:"source_type"`
|
||||
Images string `gorm:"column:images;type:varchar(255);comment:门店门头照片" json:"images"`
|
||||
StoreImages string `gorm:"column:store_images;type:text;comment:店内照片" json:"store_images"`
|
||||
Contact string `gorm:"column:contact;type:varchar(255);comment:联系方式,多个,号分割" json:"contact"`
|
||||
Content string `gorm:"column:content;type:text" json:"content"`
|
||||
OpenTime string `gorm:"column:open_time;type:varchar(100);comment:营业时间" json:"open_time"`
|
||||
LongitudeWgs84 string `gorm:"column:longitude_wgs84;type:varchar(50);comment:坐标经度-国际" json:"longitude_wgs84"`
|
||||
LatitudeWgs84 string `gorm:"column:latitude_wgs84;type:varchar(50);comment:坐标纬度-国际" json:"latitude_wgs84"`
|
||||
LongitudeGcj02 string `gorm:"column:longitude_gcj02;type:varchar(50);comment:坐标经度-国密" json:"longitude_gcj02"`
|
||||
LatitudeGcj02 string `gorm:"column:latitude_gcj02;type:varchar(50);comment:坐标纬度-国密" json:"latitude_gcj02"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type StoreStatus struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:姓名或公司名;NOT NULL" json:"name"`
|
||||
SaleId int64 `gorm:"column:sale_id;type:int(11);default:0;comment:父级销售;NOT NULL" json:"sale_id"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
NewContent string `gorm:"column:new_content;type:text;comment:修改的内容" json:"new_content"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:9是待处理 1是已通过 2是未通过,3为禁用;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:理由" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type StoreNames struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:门店名;NOT NULL" json:"name"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(128);comment:负责人姓名;NOT NULL" json:"user_name"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
}
|
||||
|
||||
type StoreToSale struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
SaleId int64 `gorm:"column:sale_id;type:varchar(256);comment:关联销售员的id" json:"sale_id"`
|
||||
GroupId int64 `gorm:"column:group_id;type:int(11);default:0;comment:分组ID" json:"group_id"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type StoreContent struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Content string `gorm:"column:content;type:text" json:"content"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type StoreWebPassword struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
PayPassword string `gorm:"column:pay_password;type:varchar(255);comment:支付密码" json:"pay_password"`
|
||||
}
|
||||
|
||||
type StoreWebDeposit struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:余额" json:"amount"`
|
||||
}
|
||||
|
||||
type StoreDeposit struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
BuyAmount float64 `gorm:"column:buy_amount;type:decimal(10,2);default:0.00;comment:购买的支付金额" json:"buy_amount"`
|
||||
ResidualNumber int32 `gorm:"column:residual_number;type:smallint(4);default:0;comment:剩余的试用数据" json:"residual_number"`
|
||||
PayPassword string `gorm:"column:pay_password;type:varchar(255);comment:支付密码" json:"pay_password"`
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:余额" json:"amount"`
|
||||
}
|
||||
|
||||
type StoreNewContent struct {
|
||||
NewContent string `gorm:"column:new_content;type:text;comment:修改的内容" json:"new_content"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:9是待处理 1是已通过 2是未通过,3为禁用;NOT NULL" json:"status"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type StoreNewCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(256);comment:门店名;NOT NULL" json:"name"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(128);comment:负责人姓名;NOT NULL" json:"user_name"`
|
||||
UserMobile string `gorm:"column:user_mobile;type:varchar(128);comment:负责人手机号,也是登录账号;NOT NULL" json:"user_mobile"`
|
||||
BusinessLicense string `gorm:"column:business_license;type:varchar(512);comment:营业执照;NOT NULL" json:"business_license"`
|
||||
IdCard string `gorm:"column:id_card;type:varchar(255);comment:身份证正反面" json:"id_card"`
|
||||
Area string `gorm:"column:area;type:varchar(255);comment:面积" json:"area"`
|
||||
Receipt string `gorm:"column:receipt;type:varchar(512);comment:发票信息" json:"receipt"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);comment:类型,1为生美、2双美、3医美" json:"type"`
|
||||
District string `gorm:"column:district;type:varchar(255);comment:地区(省,市,县)ID" json:"district"`
|
||||
Address string `gorm:"column:address;type:varchar(512);comment:地址" json:"address"`
|
||||
BankInfo string `gorm:"column:bank_info;type:varchar(255);comment:银行卡信息" json:"bank_info"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:状态9是待审核 1是已通过 2是未通过,3为禁用" json:"status"`
|
||||
GroupId int64 `gorm:"column:group_id;type:int(11);default:0;comment:分组ID" json:"group_id"`
|
||||
SaleId int64 `gorm:"column:sale_id;type:varchar(256);comment:关联销售员的id" json:"sale_id"`
|
||||
Province int64 `gorm:"column:province;type:int(11);default:0" json:"province"`
|
||||
ProvinceName string `gorm:"column:province_name;type:varchar(255)" json:"province_name"`
|
||||
SourceType int32 `gorm:"column:source_type;type:tinyint(1);default:1;comment:来源类型,1为公司添加,2为销售添加" json:"source_type"`
|
||||
Images string `gorm:"column:images;type:varchar(255);comment:门店门头照片" json:"images"`
|
||||
StoreImages string `gorm:"column:store_images;type:text;comment:店内照片" json:"store_images"`
|
||||
Contact string `gorm:"column:contact;type:varchar(255);comment:联系方式,多个,号分割" json:"contact"`
|
||||
StoreType int64 `json:"store_type" gorm:"store_type"` // 门店类型,1为面膜,2为门店,3为制氧机,4为软水机,5智能化妆盒
|
||||
Content string `gorm:"column:content;type:text" json:"content"`
|
||||
NewContent string `gorm:"column:new_content;type:text;comment:修改的内容" json:"new_content"`
|
||||
OpenTime string `gorm:"column:open_time;type:varchar(100);comment:营业时间" json:"open_time"`
|
||||
LongitudeWgs84 string `gorm:"column:longitude_wgs84;type:varchar(50);comment:坐标经度-国际" json:"longitude_wgs84"`
|
||||
LatitudeWgs84 string `gorm:"column:latitude_wgs84;type:varchar(50);comment:坐标纬度-国际" json:"latitude_wgs84"`
|
||||
LongitudeGcj02 string `gorm:"column:longitude_gcj02;type:varchar(50);comment:坐标经度-国密" json:"longitude_gcj02"`
|
||||
LatitudeGcj02 string `gorm:"column:latitude_gcj02;type:varchar(50);comment:坐标纬度-国密" json:"latitude_gcj02"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
|
||||
}
|
||||
Reference in New Issue
Block a user