# 商品列表

# 简要描述
  • 获取商品列表
# 请求URL
  • /api/getGoodsList
# 请求头
参数名 必选 类型 说明
Content-Type string 此参数必传,当请求数据非json时此参数传对应格式如(multipartform-data,application/x-www-form-urlencoded,等)是json请传application/json
askKey string 此参数必传,验证app的令牌
sign string 此参数如果在app设置开启了验签是必传
time string 当开启验签时,此参数为必传
apiUserToken string 除了部分不验证用户令牌的接口以外此参数为必传(注册/登陆/发送验证码)不是必传,其余都是必传
# 请求方式
  • post
# 参数
参数名 必选 类型 说明
name string 商品名称
# 请求示例
{
    "name":"商品001"
}

1
2
3
4
# 返回示例
{
    "code": "200",
    "message": "",
    "status": true,
    "data": [
        {
            "id": "690041865493934080",
            "createdBy": "645431969335300096",
            "createdDate": "2022-05-27 13:46:51",
            "modifiedBy": "645431969335300096",
            "modifiedDate": "2022-05-27 13:47:22",
            "status": 1,
            "ip": "1",
            "managementId": "645431969335300096",
            "name": "商品001",
            "number": 10,
            "typeId": "5",
            "deliveryType": 0,
            "amount": 10,
            "lable": "2"
        }
    ],
    "pc": {
        "pageIndex": 1,
        "pageSize": 1,
        "pageWindow": 10,
        "maxPages": 1,
        "total": 1,
        "startIndex": 0,
        "endIndex": 1,
        "startPageIndex": 1,
        "previousPage": 0,
        "nextPage": 0,
        "endPageIndex": 1
    },
    "time": null,
    "sign": null
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 返回参数说明
参数名 类型 说明
code string 状态码200成功403权限异常或登陆超时,500请求异常
status int 状态0删除1使用
data array 内容
createdDate string 创建时间
name string 商品名称
id string 商品id
number int 库存
typeId string 类型id
amount decimal 商品价格
lable string 标签id
deliveryType int 发货方式0自动,1手动
# 备注
  • 更多返回错误代码请看首页的错误代码描述
lastUpdate: 7/25/2024, 4:20:09 PM