## 新增菜品
数据格式为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)
|