warehouse

This commit is contained in:
richboo111
2022-11-07 11:03:05 +08:00
parent ceaf926991
commit 39f4d25025
3 changed files with 29 additions and 9 deletions

View File

@@ -44,6 +44,16 @@ func (c *WarehouseCreateRequest) GetParams() *WarehouseCreateParam {
return c.Param
}
type WarehouseLocation struct {
// 省地址编码
AddressId1 int64 `json:"address_id1"`
// 市地址编码
AddressId2 int64 `json:"address_id2"`
// 区地址编码
AddressId3 int64 `json:"address_id3"`
// 街道地址编码
AddressId4 int64 `json:"address_id4"`
}
type WarehouseCreateParam struct {
// 外部仓库ID一个店铺下同一个外部ID只能创建一个仓库
OutWarehouseId string `json:"out_warehouse_id"`
@@ -51,4 +61,12 @@ type WarehouseCreateParam struct {
Name string `json:"name"`
// 仓库介绍
Intro string `json:"intro"`
//仓信息
Warehouse *Warehouse `json:"warehouse"`
}
type Warehouse struct {
// 仓地址编码 苹果门店店铺、超市小时达店铺建仓必传
WarehouseLocation *WarehouseLocation `json:"warehouse_location"`
// 仓地址详细地址,苹果门店店铺、超市小时达店铺建仓必传
AddressDetail string `json:"address_detail"`
}