feat: sale add create user
This commit is contained in:
@@ -13,10 +13,8 @@ const (
|
||||
SaleTypeAgentCorp uint8 = 2 // 销售商(法人)
|
||||
SaleTypeAgentPerson uint8 = 3 // 销售商(个人)
|
||||
|
||||
SaleStatusPending uint8 = 9 // 待处理
|
||||
SaleStatusApproved uint8 = 1 // 已通过
|
||||
SaleStatusRejected uint8 = 2 // 未通过
|
||||
SaleStatusDisabled uint8 = 3 // 禁用
|
||||
SaleStatusEnabled uint8 = 1 // 开启
|
||||
SaleStatusDisabled uint8 = 2 // 禁用
|
||||
)
|
||||
|
||||
type RegionNames struct {
|
||||
@@ -55,33 +53,35 @@ func (r *RegionNames) Scan(value interface{}) error {
|
||||
}
|
||||
|
||||
type SaleCreate struct {
|
||||
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
SaleId int64 `gorm:"column:sale_id" json:"sale_id"`
|
||||
Mobile string `gorm:"column:mobile" json:"mobile"`
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
IdCardFront string `gorm:"column:id_card_front" json:"id_card_front"`
|
||||
IdCardBack string `gorm:"column:id_card_back" json:"id_card_back"`
|
||||
BusinessLicense string `gorm:"column:business_license" json:"business_license"`
|
||||
Region RegionNames `gorm:"column:region;type:json" json:"region"`
|
||||
ProvinceId int64 `gorm:"column:province_id" json:"province_id"`
|
||||
CityId int64 `gorm:"column:city_id" json:"city_id"`
|
||||
DistrictId int64 `gorm:"column:district_id" json:"district_id"`
|
||||
TerritoryId int64 `gorm:"column:territory_id" json:"territory_id"`
|
||||
TerritoryName string `gorm:"column:territory_name" json:"territory_name"`
|
||||
GroupId int64 `gorm:"column:group_id" json:"group_id"`
|
||||
Address string `gorm:"column:address" json:"address"`
|
||||
Status uint8 `gorm:"column:status" json:"status"`
|
||||
Avatar string `gorm:"column:avatar" json:"avatar"`
|
||||
Account string `gorm:"column:account" json:"account"`
|
||||
Type uint8 `gorm:"column:type" json:"type"`
|
||||
Sex uint8 `gorm:"column:sex" json:"sex"`
|
||||
BirthDate string `gorm:"column:birth_date" json:"birth_date"`
|
||||
AdminId int64 `gorm:"column:admin_id" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name" json:"admin_name"`
|
||||
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
||||
SaleId int64 `gorm:"column:sale_id" json:"sale_id"`
|
||||
Mobile string `gorm:"column:mobile" json:"mobile"`
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
IdCardFront string `gorm:"column:id_card_front" json:"id_card_front"`
|
||||
IdCardBack string `gorm:"column:id_card_back" json:"id_card_back"`
|
||||
BusinessLicense string `gorm:"column:business_license" json:"business_license"`
|
||||
Region RegionNames `gorm:"column:region;type:json" json:"region"`
|
||||
ProvinceId int64 `gorm:"column:province_id" json:"province_id"`
|
||||
CityId int64 `gorm:"column:city_id" json:"city_id"`
|
||||
DistrictId int64 `gorm:"column:district_id" json:"district_id"`
|
||||
TerritoryId int64 `gorm:"column:territory_id" json:"territory_id"`
|
||||
TerritoryName string `gorm:"column:territory_name" json:"territory_name"`
|
||||
GroupId int64 `gorm:"column:group_id" json:"group_id"`
|
||||
Address string `gorm:"column:address" json:"address"`
|
||||
Status uint8 `gorm:"column:status" json:"status"`
|
||||
Avatar string `gorm:"column:avatar" json:"avatar"`
|
||||
Account string `gorm:"column:account" json:"account"`
|
||||
Type uint8 `gorm:"column:type" json:"type"`
|
||||
Sex uint8 `gorm:"column:sex" json:"sex"`
|
||||
BirthDate utils.CustomTime `gorm:"column:birth_date;type:date" json:"birth_date"`
|
||||
AdminId int64 `gorm:"column:admin_id" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name" json:"admin_name"`
|
||||
}
|
||||
|
||||
type SaleInfo struct {
|
||||
Id int64 `gorm:"column:id" json:"id"`
|
||||
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
||||
SaleId int64 `gorm:"column:sale_id" json:"sale_id"`
|
||||
Mobile string `gorm:"column:mobile" json:"mobile"`
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
@@ -101,7 +101,7 @@ type SaleInfo struct {
|
||||
Account string `gorm:"column:account" json:"account"`
|
||||
Type uint8 `gorm:"column:type" json:"type"`
|
||||
Sex uint8 `gorm:"column:sex" json:"sex"`
|
||||
BirthDate string `gorm:"column:birth_date" json:"birth_date"`
|
||||
BirthDate utils.CustomTime `gorm:"column:birth_date;type:date" json:"birth_date"`
|
||||
Reason string `gorm:"column:reason" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name" json:"admin_name"`
|
||||
@@ -113,6 +113,8 @@ type SaleInfo struct {
|
||||
|
||||
type SaleStatusUpdate struct {
|
||||
Id int64 `gorm:"column:id;primaryKey" json:"id"`
|
||||
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
||||
Mobile string `gorm:"column:mobile" json:"mobile"`
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
Status uint8 `gorm:"column:status" json:"status"`
|
||||
Reason string `gorm:"column:reason" json:"reason"`
|
||||
|
||||
Reference in New Issue
Block a user