fusenapi/server_api/inventory.api

64 lines
1.8 KiB
Plaintext
Raw Normal View History

2023-06-26 09:59:54 +00:00
syntax = "v1"
info (
title: "云仓服务"// TODO: add title
desc: // TODO: add description
author: "daming"
email: ""
)
import "basic.api"
2023-06-27 06:25:25 +00:00
service inventory {
2023-06-26 09:59:54 +00:00
//提取云仓货物
@handler TakeHandler
post /inventory/take(TakeReq) returns (response);
2023-06-27 09:04:58 +00:00
//获取云仓库存列表
@handler GetCloudListHandler
get /inventory/list(GetCloudListReq) returns (response);
2023-06-26 09:59:54 +00:00
}
2023-06-27 06:25:25 +00:00
//提取云仓货物
type TakeReq {
Form []TakeForm `json:"form"`
AddressId int64 `json:"address_id"`
}
type TakeForm {
Id int64 `json:"id"`
Num int64 `json:"num"`
2023-06-27 09:04:58 +00:00
}
//获取云仓库存列表
type GetCloudListReq {
2023-06-28 04:25:40 +00:00
Page int64 `form:"page"`
PageSize int64 `form:"page_size"`
Size int64 `form:"size"`
2023-06-27 09:04:58 +00:00
}
type GetCloudListRsp {
WarehouseBoxes int64 `json:"warehouse_boxes"`
TransitBoxes int64 `json:"transit_boxes"`
MinTakeNum int64 `json:"minTakeNum"`
ListData []ListDataItem `json:"listData"`
Pagnation Pagnation `json:"pagnation"`
}
type ListDataItem {
Id int64 `json:"id"`
Sn string `json:"sn"`
Cover string `json:"cover"`
Name string `json:"name"`
DesignSn string `json:"design_sn"`
Fitting string `json:"fitting"`
Production int64 `json:"production"`
ProductionBox int64 `json:"production_box"`
EachBoxNum int64 `json:"each_box_num"`
Stick int64 `json:"stick"`
StickBox int64 `json:"stick_box"`
Type int64 `json:"type"`
TakeNum int64 `json:"takeNum"`
Size string `json:"size"`
IsStop int64 `json:"is_stop"`
PriceList []PriceItem `json:"price"`
}
type PriceItem {
2023-06-27 10:35:26 +00:00
Num int64 `json:"num"`
TotalNum int64 `json:"total_num"`
Price int64 `json:"price"`
2023-06-26 09:59:54 +00:00
}