3 Star 1 Fork 0

杭州维度慧美/京东宙斯sdk

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eclpStockSearchShopStockRequest.go 3.80 KB
一键复制 编辑 原始数据 按行查看 历史
package request
import "encoding/json"
/*
* jingdong.eclp.stock.searchShopStock
* 店铺库存查询接口
* 用于商家按照店铺维度查库存,不入库商家不能调用
*/
type EclpStockSearchShopStockRequest struct {
apiParas map[string]interface{}
Version string `json:"version,omitempty"`
RequestId string `json:"requestId,omitempty"`
DeptNo string `json:"deptNo,omitempty"`
ShopNo string `json:"shopNo,omitempty"`
WarehouseNo string `json:"warehouseNo,omitempty"`
GoodsNo string `json:"goodsNo,omitempty"`
PageSize int `json:"pageSize,omitempty"`
PageNumber int `json:"pageNumber,omitempty"`
responseError ErrorResp
responseData interface{}
}
func NewEclpStockSearchShopStockRequest() *EclpStockSearchShopStockRequest {
r := &EclpStockSearchShopStockRequest{
apiParas: make(map[string]interface{}),
}
return r
}
func (r *EclpStockSearchShopStockRequest) GetApiMethodName() string {
return "jingdong.eclp.stock.searchShopStock"
}
func (r *EclpStockSearchShopStockRequest) GetApiParas() map[string]interface{} {
if len(r.apiParas) == 0 {
return map[string]interface{}{}
}
return r.apiParas
}
func (r *EclpStockSearchShopStockRequest) Check() {
// 实现检查逻辑
}
func (r *EclpStockSearchShopStockRequest) PutOtherTextParam(key string, value interface{}) {
r.apiParas[key] = value
}
func (r *EclpStockSearchShopStockRequest) SetVersion(version string) {
r.Version = version
r.apiParas["version"] = version
}
func (r *EclpStockSearchShopStockRequest) GetVersion() string {
return r.Version
}
func (r *EclpStockSearchShopStockRequest) SetRequestId(requestId string) {
r.RequestId = requestId
r.apiParas["requestId"] = requestId
}
func (r *EclpStockSearchShopStockRequest) GetRequestId() string {
return r.RequestId
}
func (r *EclpStockSearchShopStockRequest) SetDeptNo(deptNo string) {
r.DeptNo = deptNo
r.apiParas["deptNo"] = deptNo
}
func (r *EclpStockSearchShopStockRequest) GetDeptNo() string {
return r.DeptNo
}
func (r *EclpStockSearchShopStockRequest) SetShopNo(shopNo string) {
r.ShopNo = shopNo
r.apiParas["shopNo"] = shopNo
}
func (r *EclpStockSearchShopStockRequest) GetShopNo() string {
return r.ShopNo
}
func (r *EclpStockSearchShopStockRequest) SetWarehouseNo(warehouseNo string) {
r.WarehouseNo = warehouseNo
r.apiParas["warehouseNo"] = warehouseNo
}
func (r *EclpStockSearchShopStockRequest) GetWarehouseNo() string {
return r.WarehouseNo
}
func (r *EclpStockSearchShopStockRequest) SetGoodsNo(goodsNo string) {
r.GoodsNo = goodsNo
r.apiParas["goodsNo"] = goodsNo
}
func (r *EclpStockSearchShopStockRequest) GetGoodsNo() string {
return r.GoodsNo
}
func (r *EclpStockSearchShopStockRequest) SetPageSize(pageSize int) {
r.PageSize = pageSize
r.apiParas["pageSize"] = pageSize
}
func (r *EclpStockSearchShopStockRequest) GetPageSize() int {
return r.PageSize
}
func (r *EclpStockSearchShopStockRequest) SetPageNumber(pageNumber int) {
r.PageNumber = pageNumber
r.apiParas["pageNumber"] = pageNumber
}
func (r *EclpStockSearchShopStockRequest) GetPageNumber() int {
return r.PageNumber
}
func (r *EclpStockSearchShopStockRequest) SetResponseError(err ErrorResp) {
r.responseError = err
}
func (r *EclpStockSearchShopStockRequest) GetResponseError() ErrorResp {
return r.responseError
}
func (r *EclpStockSearchShopStockRequest) SetResponseData(data string) error {
if err := json.Unmarshal([]byte(data), &r.responseData); err != nil {
return err
}
return nil
}
func (r *EclpStockSearchShopStockRequest) GetResponseData(responseData interface{}) error {
tmp, err := json.Marshal(r.responseData)
if err != nil {
return err
}
err = json.Unmarshal(tmp, responseData)
if err != nil {
return err
}
return nil
}
func (r *EclpStockSearchShopStockRequest) GetResponse() (interface{}, ErrorResp) {
return r.responseData, r.responseError
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dimension-huimei/jos-golang-sdk.git
git@gitee.com:dimension-huimei/jos-golang-sdk.git
dimension-huimei
jos-golang-sdk
京东宙斯sdk
42d83764d8dd

搜索帮助