|
@@ -16,13 +16,12 @@ use think\Db; |
|
@@ -16,13 +16,12 @@ use think\Db; |
16
|
class Goods extends Api
|
16
|
class Goods extends Api
|
17
|
{
|
17
|
{
|
18
|
protected $noNeedRight = ['*'];
|
18
|
protected $noNeedRight = ['*'];
|
19
|
-// protected $noNeedLogin = ['*'];
|
19
|
+ protected $noNeedLogin = ['*'];
|
20
|
|
20
|
|
21
|
|
21
|
|
22
|
/**
|
22
|
/**
|
23
|
* @ApiTitle (商品详情)
|
23
|
* @ApiTitle (商品详情)
|
24
|
* @ApiMethod (POST)
|
24
|
* @ApiMethod (POST)
|
25
|
- * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
26
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
25
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
27
|
* @ApiReturn ({
|
26
|
* @ApiReturn ({
|
28
|
'code':'1',
|
27
|
'code':'1',
|
|
@@ -68,7 +67,6 @@ class Goods extends Api |
|
@@ -68,7 +67,6 @@ class Goods extends Api |
68
|
/**
|
67
|
/**
|
69
|
* @ApiTitle (商品规格)
|
68
|
* @ApiTitle (商品规格)
|
70
|
* @ApiMethod (POST)
|
69
|
* @ApiMethod (POST)
|
71
|
- * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
72
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
70
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
73
|
* @ApiReturn ({
|
71
|
* @ApiReturn ({
|
74
|
'code':'1',
|
72
|
'code':'1',
|
|
@@ -147,7 +145,6 @@ class Goods extends Api |
|
@@ -147,7 +145,6 @@ class Goods extends Api |
147
|
/**
|
145
|
/**
|
148
|
* @ApiTitle (商品详情页评价)
|
146
|
* @ApiTitle (商品详情页评价)
|
149
|
* @ApiMethod (POST)
|
147
|
* @ApiMethod (POST)
|
150
|
- * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
151
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
148
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
152
|
* @ApiReturn ({
|
149
|
* @ApiReturn ({
|
153
|
'code':'1',
|
150
|
'code':'1',
|
|
@@ -199,7 +196,6 @@ class Goods extends Api |
|
@@ -199,7 +196,6 @@ class Goods extends Api |
199
|
/**
|
196
|
/**
|
200
|
* @ApiTitle (商品评价列表)
|
197
|
* @ApiTitle (商品评价列表)
|
201
|
* @ApiMethod (POST)
|
198
|
* @ApiMethod (POST)
|
202
|
- * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
203
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
199
|
* @ApiParams (name=goods_id, type=integer, required=true, description="商品id")
|
204
|
* @ApiParams (name=page, type=integer, required=false, description="页数")
|
200
|
* @ApiParams (name=page, type=integer, required=false, description="页数")
|
205
|
* @ApiReturn ({
|
201
|
* @ApiReturn ({
|