feat:新增订单发票,下单地址调整
This commit is contained in:
@@ -11,7 +11,7 @@ type FsAdminRole struct {
|
||||
RolePid *int64 `gorm:"default:0;" json:"role_pid"` // 上级角色
|
||||
RoleName *string `gorm:"unique_key;default:'';" json:"role_name"` //
|
||||
DataAuthType *int64 `gorm:"default:1;" json:"data_auth_type"` // 数据权限类型
|
||||
DataAuth *string `gorm:"default:'';" json:"data_auth"` //
|
||||
DataAuth *[]byte `gorm:"default:'';" json:"data_auth"` //
|
||||
Status *int64 `gorm:"default:2;" json:"status"` // 状态:1=启用,2=停用
|
||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序权重
|
||||
|
||||
@@ -11,6 +11,7 @@ type FsDepartment struct {
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
ParentId *int64 `gorm:"default:0;" json:"parent_id"` // 父级id
|
||||
Manager *int64 `gorm:"default:0;" json:"manager"` // 负责人
|
||||
}
|
||||
type FsDepartmentModel struct {
|
||||
db *gorm.DB
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
// fs_font 字体配置
|
||||
type FsFont struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||
Title *string `gorm:"default:'';" json:"title"` // 字体名字
|
||||
Title *string `gorm:"default:'';" json:"title"` //
|
||||
LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"` // linux对应字体名
|
||||
FilePath *string `gorm:"default:'';" json:"file_path"` // 字体文件路径
|
||||
FilePath *string `gorm:"default:'';" json:"file_path"` //
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
}
|
||||
type FsFontModel struct {
|
||||
|
||||
@@ -25,6 +25,9 @@ type FsOrder struct {
|
||||
PayStatusLink *[]byte `gorm:"default:'';" json:"pay_status_link"` //
|
||||
ShoppingCartSnapshot *[]byte `gorm:"default:'';" json:"shopping_cart_snapshot"` //
|
||||
ShoppingProductSnapshot *[]byte `gorm:"default:'';" json:"shopping_product_snapshot"` //
|
||||
SaleGerentId *int64 `gorm:"default:0;" json:"sale_gerent_id"` // 销售负责人
|
||||
DesignGerentId *int64 `gorm:"default:0;" json:"design_gerent_id"` // 设计负责人
|
||||
Scm *[]byte `gorm:"default:'';" json:"scm"` //
|
||||
}
|
||||
type FsOrderModel struct {
|
||||
db *gorm.DB
|
||||
|
||||
@@ -19,9 +19,14 @@ type OrderDetail struct {
|
||||
|
||||
// 收货地址
|
||||
type OrderAddress struct {
|
||||
Address string `json:"address"` // 详细地址
|
||||
Mobile string `json:"mobile"` // 手机
|
||||
Name string `json:"name"` // 姓名
|
||||
Street string `json:"street"` // 详细地址
|
||||
City string `json:"city"` // 城市
|
||||
FirstName string `json:"first_name"` // 姓
|
||||
LastName string `json:"last_name"` // 名
|
||||
Mobile string `json:"mobile"` // 手机
|
||||
State string `json:"state"` // 州
|
||||
Suite string `json:"suite"` // 房号
|
||||
ZipCode string `json:"zip_code"` // 邮编号码
|
||||
}
|
||||
|
||||
// 订单金额
|
||||
|
||||
@@ -25,6 +25,7 @@ type FsOrderTrade struct {
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
PayTitle *string `gorm:"default:'';" json:"pay_title"` //
|
||||
ReceiptSn *string `gorm:"default:'';" json:"receipt_sn"` //
|
||||
}
|
||||
type FsOrderTradeModel struct {
|
||||
db *gorm.DB
|
||||
|
||||
@@ -37,6 +37,7 @@ type FsProduct struct {
|
||||
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
|
||||
IsCustomization *int64 `gorm:"default:0;" json:"is_customization"` // 是否可定制
|
||||
Unit *string `gorm:"default:'';" json:"unit"` //
|
||||
SupplyChainManager *int64 `gorm:"default:0;" json:"supply_chain_manager"` // 供应链负责人
|
||||
}
|
||||
type FsProductModel struct {
|
||||
db *gorm.DB
|
||||
|
||||
Reference in New Issue
Block a user