把server归到统一文件夹

This commit is contained in:
eson
2023-06-08 10:51:56 +08:00
parent dc73ff1679
commit 859c101c51
36 changed files with 179 additions and 67 deletions

View File

@@ -30,4 +30,5 @@ type Auth {
AccessSecret string `json:"accessSecret"`
AccessExpire int64 `json:"accessExpire"`
RefreshAfter int64 `json:"refreshAfter"`
}
}

View File

@@ -103,4 +103,29 @@ type DataUserBasicInfo {
type DataGetType {
Id int64 `db:"id" json:"key"` // ID
Name string `db:"name" json:"name"` // 餐厅名字
}
// KeyName 普通的key name 对象结构. eg: /user/status-config 用在返回值
type KeyName {
Key string `json:"key"`
Name string `json:"name"`
}
// KeyNameButton 普通的key name button 对象结构 eg: /user/status-config 用在返回值
type KeyNameButton {
Key string `json:"key"`
Name string `json:"name"`
Button []string `json:"button"`
}
// DataStatusConfig /user/status-config 返回值data结构
type DataStatusConfig {
SearchList []KeyName `json:"search_list"` //搜索下拉列表
OrderStatus []KeyNameButton `json:"order_status"` //直邮单状态
InventoryStatus []KeyNameButton `json:"Inventory_status"` //云仓单状态
OrderLogisticsStatus []KeyName `json:"order_logistics_status"` //订单物流状态
InventoryLogisticsStatus []KeyName `json:"Inventory_logistics_status"` //订单物流状态
Time []KeyName `json:"time"` //返回订单时间筛选项
RefundReason []KeyName `json:"refund_reason"` //退款原因说明项
LogisticsStatus []KeyName `json:"logistics_status"` //物流状态筛选项
}