## 新增菜品
數據格式為json
~~~[api]
post:/catering/ft/addDish
<<<
success
{ "status": "1", "codemsg": "新增菜品成功" }
<<<
error
{ "status": "08", "codemsg": "此菜品已經存在" }
~~~
---
**傳參數據說明**
{"data":"3des加密串"}
*****
注意:
**key:** md5(key.$panterid.$storeid.$goodsname.$typename.$price)
*****
**3des加密串:**
對json串{"panterid":$panterid,"storeid":$storeid,"goodsname":$goodsname,"typename":$typename,"price":$price,"key":$key}進行3des加密
*****
**詳細傳參數據說明**
| 參數 | 參數類型 | 必須 | 說明|
| ----------- | ------------------------------ | ------------ | --- |
| panterid| string| yes |商戶id|
| storeid| string| yes |店鋪id|
| goodsname| string| yes |菜品名字|
| typename| string| yes |類別名字|
| price| string| yes |價格|
| discounttype| string| yes |會員優惠類型 1折扣 2會員價
| discountproportion| string| yes/no |折扣比例 discounttype=1必傳 示例:95|
| discountmemberprice| string| yes/no |會員價 discounttype=2必傳 示例:30|
| key| string| yes |md5(key.$panterid.$storeid.$goodsname.$typename.$price)
|