|
@@ -24,6 +24,10 @@ class Pricing extends Api
|
|
|
*
|
|
|
* @ApiTitle (定价产品列表)
|
|
|
* @ApiMethod (POST)
|
|
|
+ * @ApiParams (name="name",description="商品名称")
|
|
|
+ * @ApiParams (name="price",description="价格")
|
|
|
+ * @ApiParams (name="retail",description="划线价格")
|
|
|
+ * @ApiParams (name="image",description="商品图片")
|
|
|
*/
|
|
|
public function goodslist(){
|
|
|
$list = Goods::field('id,name,price,retail,image')->select();
|
|
@@ -33,6 +37,11 @@ class Pricing extends Api
|
|
|
*
|
|
|
* @ApiTitle (定价产品详情)
|
|
|
* @ApiMethod (POST)
|
|
|
+ * @ApiParams (name="name",description="商品名称")
|
|
|
+ * @ApiParams (name="price",description="价格")
|
|
|
+ * @ApiParams (name="retail",description="划线价格")
|
|
|
+ * @ApiParams (name="image",description="商品图片")
|
|
|
+ * @ApiParams (name="after_sale",description="售后服务")
|
|
|
*/
|
|
|
public function gooddetail(){
|
|
|
$gooddetail = Goods::where('id',input('id'))->field('id,name,price,retail,image,after_sale')->find();
|