25 lines
444 B
Plaintext
25 lines
444 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "云仓服务"// TODO: add title
|
|
desc: // TODO: add description
|
|
author: "daming"
|
|
email: ""
|
|
)
|
|
import "basic.api"
|
|
|
|
service inventory {
|
|
//提取云仓货物
|
|
@handler TakeHandler
|
|
post /inventory/take(TakeReq) returns (response);
|
|
}
|
|
|
|
//提取云仓货物
|
|
type TakeReq {
|
|
Form []TakeForm `json:"form"`
|
|
AddressId int64 `json:"address_id"`
|
|
}
|
|
type TakeForm {
|
|
Id int64 `json:"id"`
|
|
Num int64 `json:"num"`
|
|
} |