## 編輯菜品
數據格式為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)
|