Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型问题汇集 #20

Open
niltor opened this issue Apr 9, 2024 · 3 comments
Open

模型问题汇集 #20

niltor opened this issue Apr 9, 2024 · 3 comments

Comments

@niltor
Copy link
Owner

niltor commented Apr 9, 2024

问题描述

由于所有的请求和返回模型都是根据官方文档 中的描述生成的。

但是由于官方文档的更新或更新不及时,造成与实际返回不同,而导致请求或响应无法正常解析。

本Issue就是用来收集 该类问题。大家遇到相关的问题,可以在该问题下回复进行反馈。

问题列表

@niltor
Copy link
Owner Author

niltor commented Apr 9, 2024

反馈问题模板如下:

问题描述

  • 请求方法:OrderApiGetOrderListAsync
  • 官方接口:pdd.order.list.get
  • 问题模型:GetOrderListResponse

实际返回内容示例:

"item_list": [
    {
        "goods_name": "xxx",
        "outer_goods_id": "",
        "goods_price": 0.01,
        "goods_id": 123456789012,
        "sku_id": 1234567890123,
        "goods_count": 100001,
        "goods_spec": "",
        "outer_id": "",
        "goods_img": "xxx"
    }
  ],

具体问题字段说明:
goods_id/sku_id 字段返回的是 long,而模型中是string。

✅ fix it at 8.0.1

@niltor niltor closed this as completed in 69194ba Apr 10, 2024
@niltor niltor reopened this Apr 10, 2024
@niltor
Copy link
Owner Author

niltor commented Apr 16, 2024

问题描述

  • 请求方法: RefundApi
  • 官方接口:pdd.refund.information.get
  • 问题模型:GetRefundInformationResponse

具体字段说明:
updated_time 和 sku_id两个字段从string变为long

niltor added a commit that referenced this issue Apr 16, 2024
json 转换兼容,兼容long类型转换成string,不再报错。
@Cherrs
Copy link
Contributor

Cherrs commented May 7, 2024

问题描述

  • 请求方法: GetOrderNumberListIncrementAsync
  • 官方接口: pdd.order.number.list.increment.get
  • 问题模型: OrderSnIncrementGetResponseResponse

具体字段说明:
新增open_address_id 合单ID字段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants