## 编辑菜品
数据格式为json
~~~[api]
post:/catering/ft/editDish
<<<
success
{ "status": "1", "codemsg": "商品编辑成功" }
<<<
error
{ "status": "07", "codemsg": "商品编辑失败" }
~~~
---
**传参数据说明**
{"data":"3des加密串"}
*****
注意:
**key:** md5('key'.$panterid.$storeid.$goodsid.$data)
其中:key 是双方约定字符串
**3des加密串:** 对json串{"panterid":$panterid,"storeid":$storeid,"goodsid":$goodsid,"data":$data,"key":$key} 进行3des加密
*****
**详细传参数据说明**
| 参数 | 参数类型 | 必须 | 说明|
| ----------- | ------------------------------ | ------------ | --- |
| panterid| string| yes |商户id|
| storeid| string| yes |店铺id|
| goodsid| string| yes |菜品id|
| data| string| yes | 编辑信息 :{"typename":"主食","goodsname":"whk测试商品33","price":66,"discounttype":1,"discountproportion":90} 或者 {"typename":"主食","goodsname":"whk测试商品33","price":66,"discounttype":2,"discountmemberprice":30}|
| key| string| yes |md5(key.$panterid.$storeid.$goodsid.$data)
|