Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
97b1bacb
Commit
97b1bacb
authored
Jan 08, 2020
by
郭勇志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品池修改
parent
fbb9853e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
21 deletions
+39
-21
urlmanager.php
backend/config/urlmanager.php
+10
-0
ShopGoodsController.php
backend/controllers/v1/shopgoods/ShopGoodsController.php
+0
-1
ShopGoodsPoolController.php
backend/controllers/v1/shopgoods/ShopGoodsPoolController.php
+27
-0
ShopGoodsPool.php
backend/models/v1/shopgoods/ShopGoodsPool.php
+2
-20
No files found.
backend/config/urlmanager.php
View file @
97b1bacb
...
...
@@ -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'
,
]
],
],
],
]
...
...
backend/controllers/v1/shopgoods/ShopGoodsController.php
View file @
97b1bacb
...
...
@@ -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
backend/controllers/v1/shopgoods/ShopGoodsPoolController.php
View file @
97b1bacb
...
...
@@ -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
backend/models/v1/shopgoods/ShopGoodsPool.php
View file @
97b1bacb
...
...
@@ -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'
,
];
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment