...
|
...
|
@@ -16,13 +16,12 @@ use think\Db; |
|
|
class Goods extends Api
|
|
|
{
|
|
|
protected $noNeedRight = ['*'];
|
|
|
// protected $noNeedLogin = ['*'];
|
|
|
protected $noNeedLogin = ['*'];
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (商品详情)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
|
|
* @ApiReturn ({
|
|
|
'code':'1',
|
...
|
...
|
@@ -68,7 +67,6 @@ class Goods extends Api |
|
|
/**
|
|
|
* @ApiTitle (商品规格)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
|
|
* @ApiReturn ({
|
|
|
'code':'1',
|
...
|
...
|
@@ -147,7 +145,6 @@ class Goods extends Api |
|
|
/**
|
|
|
* @ApiTitle (商品详情页评价)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
|
|
* @ApiReturn ({
|
|
|
'code':'1',
|
...
|
...
|
@@ -199,7 +196,6 @@ class Goods extends Api |
|
|
/**
|
|
|
* @ApiTitle (商品评价列表)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
|
|
* @ApiParams (name=page, type=integer, required=false, description="页数")
|
|
|
* @ApiReturn ({
|
...
|
...
|
|