125 lines
2.7 KiB
Plaintext
125 lines
2.7 KiB
Plaintext
|
|
产品增加
|
|
请求地址: http://47.93.12.75:8888/prouct/productAdd.dspy
|
|
|
|
请求参数:
|
|
`providerid`: 供应商编号,
|
|
`providerpid`: 供应方产品id,
|
|
`name`: 名称,
|
|
`description`: 描述,
|
|
`ptype`: 产品类型,
|
|
`state`: 状态,
|
|
`effect_date`: 起效日期, date格式
|
|
`expire_date`: 失效日期, date格式
|
|
`publish_method`: 发布方式,
|
|
`publish_url`: 发布url,
|
|
`product_code`: 产品编码,
|
|
`specific_pattern`: 规格模版
|
|
|
|
响应内容:
|
|
添加成功:
|
|
{
|
|
"status": True,
|
|
"msg": "product add success",
|
|
}
|
|
添加失败:
|
|
{
|
|
"status": False,
|
|
"message": "product add failed",
|
|
}
|
|
|
|
产品更新
|
|
请求地址: http://47.93.12.75:8888/product/productUpdate.dspy
|
|
|
|
请求参数:
|
|
只有通过id更新
|
|
`id`: 产品'id'
|
|
`providerid`: 供应商编号,
|
|
`providerpid`: 供应方产品id,
|
|
`name`: 名称,
|
|
`description`: 描述,
|
|
`ptype`: 产品类型,
|
|
`state`: 状态,
|
|
`effect_date`: 起效日期,
|
|
`expire_date`: 失效日期,
|
|
`publish_method`: 发布方式,
|
|
`publish_url`: 发布url,
|
|
`product_code`: 产品编码,
|
|
`specific_pattern`: 规格模版
|
|
|
|
响应内容:
|
|
更新成功:
|
|
{
|
|
"status": True,
|
|
"msg": "product update success",
|
|
}
|
|
更新失败:
|
|
{
|
|
"status": False,
|
|
"msg": "product update failed",
|
|
}
|
|
|
|
产品删除
|
|
请求地址: http://47.93.12.75:8888/product/productDelete.dspy
|
|
|
|
请求参数:
|
|
只有通过id删除
|
|
`id`: 产品'id'
|
|
`providerid`: 供应商编号,
|
|
`providerpid`: 供应方产品id,
|
|
`name`: 名称,
|
|
`description`: 描述,
|
|
`ptype`: 产品类型,
|
|
`state`: 状态,
|
|
`effect_date`: 起效日期,
|
|
`expire_date`: 失效日期,
|
|
`publish_method`: 发布方式,
|
|
`publish_url`: 发布url,
|
|
`product_code`: 产品编码,
|
|
`specific_pattern`: 规格模版
|
|
|
|
响应内容:
|
|
删除成功:
|
|
{
|
|
"status": True,
|
|
"msg": "product delete success",
|
|
}
|
|
删除失败:
|
|
{
|
|
"status": False,
|
|
"msg": "product delete failed",
|
|
}
|
|
|
|
|
|
产品查询
|
|
请求地址: http://47.93.12.75:8888/product/productSearch.dspy
|
|
|
|
请求参数:
|
|
传入参数时查询相关产品 不传入参数查询所有产品
|
|
`id`: 产品'id'
|
|
`providerid`: 供应商编号,
|
|
`providerpid`: 供应方产品id,
|
|
`name`: 名称,
|
|
`description`: 描述,
|
|
`ptype`: 产品类型,
|
|
`state`: 状态,
|
|
`effect_date`: 起效日期,
|
|
`expire_date`: 失效日期,
|
|
`publish_method`: 发布方式,
|
|
`publish_url`: 发布url,
|
|
`product_code`: 产品编码,
|
|
`specific_pattern`: 规格模版
|
|
|
|
响应内容:
|
|
查询成功:
|
|
{
|
|
"status": True,
|
|
"msg": "product search success",
|
|
"data": [{查询内容}, {查询内容}]
|
|
}
|
|
查询失败:
|
|
{
|
|
"status": False,
|
|
"msg": "product search failed",
|
|
"data":""
|
|
} |