Commit 97b1bacb authored by 郭勇志's avatar 郭勇志

商品池修改

parent fbb9853e
......@@ -359,6 +359,16 @@ return [
'DELETE,OPTIONS associated-goods-del' => 'associated-goods-del',
]
],
//商品池
[
'class' => 'yii\rest\UrlRule',
'controller' => [
'v1/shopgoods/shop-goods-pool',
],
'extraPatterns' => [
'GET,OPTIONS shop-goods-pool-list' => 'shop-goods-pool-list',
]
],
],
],
]
......
......@@ -7,5 +7,4 @@ use backend\controllers\v1\BaseController;
class ShopGoodsController extends BaseController
{
public $modelClass = 'app\models\v1\shopgoods\ShopGoods';
}
\ No newline at end of file
......@@ -3,8 +3,35 @@
namespace backend\controllers\v1\shopgoods;
use backend\controllers\v1\BaseController;
class ShopGoodsPoolController extends BaseController
{
public $modelClass = 'app\models\v1\shopgoods\ShopGoodsPool';
/**
* @OA\GET(
* path="/backend/web/v1/shopgoods/shop-goods-pools/shop-goods-pool-list",
* tags={"配送管理"},
* operationId="o2o-delivery-list",
* summary="O2O配送费(gyz)",
* description="O2O配送费",
* @OA\Parameter(name="page",in="query",description="分页页码",@OA\Schema(type="int")),
* @OA\Parameter(name="BRANCH_INFO",in="query",description="门店CODE或者名称",@OA\Schema(type="string")),
* @OA\Response(response="200",description="
* SCDS_GUID:电子围栏设置GUID,
* BRANCH_NAME:门店名称
* BRANCH_CODE:门店编码,
* REGION_TYPE:收费方式,
* DELIVERY_PRICE:区域运费,
* REGION_DISTR_DISTANCE:基础公里数,
* REGION_DISTR_PRICE:基础运费,
* INCREASE_DISTANCE:不同配送费每增加X公里,
* INCREASE_PRICE:不同配送费每增加X公里增加X元"),
* security={{"Authorization":{}}}
* )
*/
public function shopGoodsPoolList()
{
}
}
\ No newline at end of file
......@@ -3,27 +3,9 @@
namespace app\models\v1\shopgoods;
use Yii;
use app\models\v1\BaseModel;
use app\models\v1\shopgoods\ShopGoods;
class ShopGoodsPool extends BaseModel
class ShopGoodsPool extends ShopGoods
{
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['GUID'], 'required'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'GUID' => 'Guid',
];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment