shst


新增投入品信息

[TOC]


接口说明

  • 新增投入品信息

接口地址

  • http://xxx.com/provision/add

请求方式

  • POST

请求参数

  • 请求头
参数名 类型 是否必选 说明
ut string token密钥
  • 请求体
参数名 类型 是否必选 说明
type int 投入品类型 0苗种 1饲料 2渔药
name String 投入品名称
price double 投入品价格(10,2)
specification String 投入品规格
supplier String 投入品供应商名称

响应数据

参数名 类型 说明
res String 1:成功,0:失败
msg String 提示信息
data Object 响应数据
error String 错误信息
count String 数量

响应数据data说明

参数名 类型 说明

响应示例

{
    "res": 1,
    "msg": "添加成功",
    "data": null,
    "count": 0,
    "error": null
}
{
    "res": 0,
    "msg": "添加失败",
    "data": null,
    "count": 0,
    "error": null
}
{
    "res": 0,
    "msg": "投入品名称已存在",
    "data": null,
    "count": 0,
    "error": null
}

页面列表

ITEM_HTML