11.9菜品图片智能推荐

优质
小牛编辑
130浏览
2023-12-01

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称sys_getRefDishesPicstring
postPOST参数组object
└search_name菜品名称菜品名称string

请求示例

{
	"action": {
		"action": "sys_getRefDishesPic"
	},
	"post": {
		"search_name": "菜品名称"
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息okstring
listlist
└dgName菜品名称口水鸡string
└dgPic图片url地址http://img.dc78.cn/Uploads/img_do/5/4124/5a4b2ee0aefa1.jpgstring
msid6786number

响应示例

{
    "status":"1",
    "info":"ok",
    "list":[
        {
            "dgName":"口水鸡",
            "dgPic":"http://img.dc78.cn/Uploads/img_do/5/4124/5a4b2ee0aefa1.jpg"
        },
        {
            "dgName":"藤椒口水鸡",
            "dgPic":"http://img.dc78.cn/Uploads/img_do/5/4124/5a4b2ee0aefa1.jpg"
        },
        {
            "dgName":"口水鸡",
            "dgPic":"http://img.dc78.cn/Uploads/img_do/5/4124/5a4b2ee0aefa1.jpg"
        },
        {
            "dgName":"口水鸡",
            "dgPic":"http://img.dc78.cn/Uploads/img_do/5/4124/5a4b2ee0aefa1.jpg"
        }

    ],
    "server_timestamp":1531209285,
    "server_time":"2018-07-10 15:54:45",
    "server_name":"wx-task2.hz",
    "msid":"6786"
}