new create admin order,express add company
This commit is contained in:
@@ -15,39 +15,58 @@ const (
|
||||
OrderPayStatusFail = 4 //支付失败
|
||||
OrderPayStatusLose = 5 //已失效
|
||||
|
||||
OrderDeliverTypeSend = 1 //需要发货
|
||||
OrderDeliverTypeNotSend = 2 //不需要发货
|
||||
|
||||
OrderTypeSale = 1 //销售
|
||||
OrderTypeStore = 2 //为门店
|
||||
OrderTypePersonal = 3 //为个人
|
||||
OrderTypeHome = 4 //为个人家庭试用
|
||||
|
||||
DeliverTypeOrder = 1 //订单
|
||||
DeliverTypeSupply = 3 //补货
|
||||
|
||||
SendStatusOver = 1 //为已签收
|
||||
SendStatusWait = 2 //为待发货
|
||||
SendStatusIn = 3 //为发货中
|
||||
SendStatusOk = 4 //为已发货
|
||||
SendStatusCancel = 5 //已取消
|
||||
|
||||
OrderVerifyStatusOK = 1
|
||||
OrderVerifyStatusFail = 2
|
||||
OrderVerifyStatusWait = 3
|
||||
)
|
||||
|
||||
type OrderCreate struct {
|
||||
Id int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
OrderSn string `gorm:"column:order_sn;type:varchar(100);comment:订单号;NOT NULL" json:"order_sn"`
|
||||
StoreId int `gorm:"column:store_id;type:int(11);comment:美容院关联ID号" json:"store_id"`
|
||||
StoreName string `gorm:"column:store_name;type:varchar(50);comment:门店名" json:"store_name"`
|
||||
SaleName string `gorm:"column:sale_name;type:varchar(50);comment:销售姓名" json:"sale_name"`
|
||||
SaleMobile string `gorm:"column:sale_mobile;type:char(60);comment:销售电话" json:"sale_mobile"`
|
||||
SaleProvince int `gorm:"column:sale_province;type:int(11);default:0;comment:销售到的地域" json:"sale_province"`
|
||||
UserId int `gorm:"column:user_id;type:int(11);comment:用户ID" json:"user_id"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(255);comment:用户名" json:"user_name"`
|
||||
SaleId int `gorm:"column:sale_id;type:int(11);comment:销售员ID号" json:"sale_id"`
|
||||
Mobile string `gorm:"column:mobile;type:char(60);comment:收货人手机号;NOT NULL" json:"mobile"`
|
||||
Address string `gorm:"column:address;type:varchar(255);comment:收货人地址;NOT NULL" json:"address"`
|
||||
Addressee string `gorm:"column:addressee;type:varchar(50);comment:收货人姓名;NOT NULL" json:"addressee"`
|
||||
DistrictIds string `gorm:"column:district_ids;type:varchar(255);comment:地区IDS;NOT NULL" json:"district_ids"`
|
||||
TotalPrice float64 `gorm:"column:total_price;type:decimal(10,2);comment:总价;NOT NULL" json:"total_price"`
|
||||
GroupId int `gorm:"column:group_id;type:int(11);default:0" json:"group_id"`
|
||||
PayPrice float64 `gorm:"column:pay_price;type:decimal(10,2);comment:实际支付金额" json:"pay_price"`
|
||||
PayType uint8 `gorm:"column:pay_type;type:tinyint(1);default:1;comment:支付类型,1为微信,2为支付宝,3为余额支付" json:"pay_type"`
|
||||
Status uint8 `gorm:"column:status;type:tinyint(1);default:2;comment:支付状态,1为已支付,2为未支付,3为支付中,4支付失败,5已失效;NOT NULL" json:"status"`
|
||||
IsSupply uint8 `gorm:"column:is_supply;type:tinyint(1);default:1;comment:是否补过货,1为没有,2为补过" json:"is_supply"`
|
||||
Note string `gorm:"column:note;type:varchar(255);comment:备注" json:"note"`
|
||||
VerifyStatus uint8 `gorm:"column:verify_status;type:tinyint(1);default:0;comment:审核状态,1为通过,2为失败,3为待审核,0为正常订单不需要审核" json:"verify_status"`
|
||||
ExpiredTime utils.CustomTime `json:"expired_time" gorm:"expired_time"` // 过期时间
|
||||
ProductIds string `gorm:"column:product_ids;type:varchar(150);comment:产品IDs" json:"product_ids"`
|
||||
CreateType uint8 `gorm:"column:create_type;type:tinyint(1);default:1;comment:下单人类型,1为销售,2为门店,3为个人;NOT NULL" json:"create_type"`
|
||||
Type uint8 `gorm:"column:type;type:tinyint(1);default:0;comment:类型 1 销售,2为门店,3为个人,4为个人家庭试用,5为个人门店试用" json:"type"`
|
||||
Id int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
OrderSn string `gorm:"column:order_sn;type:varchar(100);comment:订单号;NOT NULL" json:"order_sn"`
|
||||
StoreId int `gorm:"column:store_id;type:int(11);comment:美容院关联ID号" json:"store_id"`
|
||||
StoreName string `gorm:"column:store_name;type:varchar(50);comment:门店名" json:"store_name"`
|
||||
SaleName string `gorm:"column:sale_name;type:varchar(50);comment:销售姓名" json:"sale_name"`
|
||||
SaleMobile string `gorm:"column:sale_mobile;type:char(60);comment:销售电话" json:"sale_mobile"`
|
||||
SaleProvince int `gorm:"column:sale_province;type:int(11);default:0;comment:销售到的地域" json:"sale_province"`
|
||||
UserId int `gorm:"column:user_id;type:int(11);comment:用户ID" json:"user_id"`
|
||||
UserName string `gorm:"column:user_name;type:varchar(255);comment:用户名" json:"user_name"`
|
||||
SaleId int `gorm:"column:sale_id;type:int(11);comment:销售员ID号" json:"sale_id"`
|
||||
Mobile string `gorm:"column:mobile;type:char(60);comment:收货人手机号;NOT NULL" json:"mobile"`
|
||||
Address string `gorm:"column:address;type:varchar(255);comment:收货人地址;NOT NULL" json:"address"`
|
||||
Addressee string `gorm:"column:addressee;type:varchar(50);comment:收货人姓名;NOT NULL" json:"addressee"`
|
||||
DistrictIds string `gorm:"column:district_ids;type:varchar(255);comment:地区IDS;NOT NULL" json:"district_ids"`
|
||||
TotalPrice float64 `gorm:"column:total_price;type:decimal(10,2);comment:总价;NOT NULL" json:"total_price"`
|
||||
GroupId int `gorm:"column:group_id;type:int(11);default:0" json:"group_id"`
|
||||
PayPrice float64 `gorm:"column:pay_price;type:decimal(10,2);comment:实际支付金额" json:"pay_price"`
|
||||
PayType uint8 `gorm:"column:pay_type;type:tinyint(1);default:1;comment:支付类型,1为微信,2为支付宝,3为余额支付" json:"pay_type"`
|
||||
Status uint8 `gorm:"column:status;type:tinyint(1);default:2;comment:支付状态,1为已支付,2为未支付,3为支付中,4支付失败,5已失效;NOT NULL" json:"status"`
|
||||
IsSupply uint8 `gorm:"column:is_supply;type:tinyint(1);default:1;comment:是否补过货,1为没有,2为补过" json:"is_supply"`
|
||||
Note string `gorm:"column:note;type:varchar(255);comment:备注" json:"note"`
|
||||
DeliverStatus uint8 `json:"deliver_status" gorm:"deliver_status"` // 发货状态,1为已签收,2为待发货,3为发货中,4为已发货
|
||||
DeliverType uint8 `json:"deliver_type" gorm:"deliver_type"` // 发货类型,1为需要发货,2为不需要发货
|
||||
SignTime utils.CustomTime `json:"sign_time" gorm:"sign_time"` // 签收时间
|
||||
VerifyStatus uint8 `gorm:"column:verify_status;type:tinyint(1);default:0;comment:审核状态,1为通过,2为失败,3为待审核,0为正常订单不需要审核" json:"verify_status"`
|
||||
ExpiredTime utils.CustomTime `json:"expired_time" gorm:"expired_time"` // 过期时间
|
||||
ProductIds string `gorm:"column:product_ids;type:varchar(150);comment:产品IDs" json:"product_ids"`
|
||||
CreateType uint8 `gorm:"column:create_type;type:tinyint(1);default:1;comment:下单人类型,1为销售,2为门店,3为个人;NOT NULL" json:"create_type"`
|
||||
Type uint8 `gorm:"column:type;type:tinyint(1);default:0;comment:类型 1 销售,2为门店,3为个人,4为个人家庭试用,5为个人门店试用" json:"type"`
|
||||
}
|
||||
|
||||
type OrderInfo struct {
|
||||
@@ -180,9 +199,13 @@ type OrderImitateInfo struct {
|
||||
DistrictIds string `gorm:"column:district_ids;type:varchar(255);comment:地区IDS;NOT NULL" json:"district_ids"`
|
||||
PayType uint8 `gorm:"column:pay_type;type:tinyint(1);default:1;comment:支付类型,1为微信,2为支付宝,3为余额支付" json:"pay_type"`
|
||||
DeliverStatus uint8 `gorm:"column:deliver_status;type:tinyint(1);default:2;comment:发货状态,1为已签收,2为待发货,3为发货中,4为已发货" json:"deliver_status"`
|
||||
DeliverType uint8 `json:"deliver_type" gorm:"deliver_type"` // 发货类型,1为需要发货,2为不需要发货
|
||||
Status uint8 `gorm:"column:status;type:tinyint(1);default:2;comment:支付状态,1为已支付,2为未支付,3为支付中,4支付失败,5已失效;NOT NULL" json:"status"`
|
||||
VerifyStatus uint8 `gorm:"column:verify_status;type:tinyint(1);default:0;comment:审核状态,1为通过,2为失败,3为待审核,0为正常订单不需要审核" json:"verify_status"`
|
||||
ProductIds string `gorm:"column:product_ids;type:varchar(150);comment:产品IDs" json:"product_ids"`
|
||||
Reason string `json:"reason" gorm:"reason"` // 原因
|
||||
AdminId int64 `json:"admin_id" gorm:"admin_id"` // 操作人ID
|
||||
AdminName string `json:"admin_name" gorm:"admin_name"` // 操作人姓名
|
||||
}
|
||||
|
||||
type OrderImitateItems struct {
|
||||
@@ -225,11 +248,3 @@ type OrderTaskAndAwardHalfYear struct {
|
||||
type OrderTaskAndAwardYear struct {
|
||||
TaskAwardYearStatus uint8 `gorm:"column:task_award_year_status;type:tinyint(1);default:2;comment:结算任务与奖励年,1 为已结算,2为未结算" json:"task_awark_year_status"`
|
||||
}
|
||||
|
||||
type OrderAuditing struct {
|
||||
Id int64 `json:"id" gorm:"id"` // ID
|
||||
VerifyStatus uint8 `gorm:"column:verify_status;type:tinyint(1);default:0;comment:审核状态,1为通过,2为失败,3为待审核,0为正常订单不需要审核" json:"verify_status"`
|
||||
Reason string `json:"reason" gorm:"reason"` // 原因
|
||||
AdminId int64 `json:"admin_id" gorm:"admin_id"` // 操作人ID
|
||||
AdminName string `json:"admin_name" gorm:"admin_name"` // 操作人姓名
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ type OrderProductCreate struct {
|
||||
type OrderProductInfo struct {
|
||||
Id int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
OrderSn string `gorm:"column:order_sn;type:varchar(100);comment:订单号;NOT NULL" json:"order_sn"`
|
||||
ProductId int `gorm:"column:product_id;type:int(11);comment:产品ID;NOT NULL" json:"product_id"`
|
||||
ProductId int64 `gorm:"column:product_id;type:int(11);comment:产品ID;NOT NULL" json:"product_id"`
|
||||
ProductName string `gorm:"column:product_name;type:varchar(255);comment:产品名;NOT NULL" json:"product_name"`
|
||||
Price float64 `gorm:"column:price;type:decimal(10,2);comment:产品单价格;NOT NULL" json:"price"`
|
||||
Number int `gorm:"column:number;type:int(11);default:0;comment:购买的数量;NOT NULL" json:"number"`
|
||||
|
||||
Reference in New Issue
Block a user