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
895b997a
Commit
895b997a
authored
Nov 20, 2019
by
张晓林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of
http://gitlab-ebiz.yiyao365.cn/newshop/newshopback
into development
parents
5348890f
881b230b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
ShopTransportAreaController.php
...end/controllers/v1/common/ShopTransportAreaController.php
+20
-22
No files found.
backend/controllers/v1/common/ShopTransportAreaController.php
View file @
895b997a
...
...
@@ -8,29 +8,27 @@ use yii\data\ActiveDataProvider;
class
ShopTransportAreaController
extends
BaseController
{
public
$modelClass
=
'app\models\v1\common\ShopTransportArea'
;
public
function
actions
()
{
$actions
=
parent
::
actions
();
// 禁用 "index"
unset
(
$actions
[
'index'
]);
return
$actions
;
}
/**
* @OA\Post(
* path="/backend/web/v1/common/shop-transport-areas/get-area",
* tags={"公用类接口"},
* summary="取得省市区(gyz)",
* description="参数为空获取全部省,传入省id获取市,传入市id获取区",
* @OA\RequestBody(
* required=true,
* @OA\MediaType(
* mediaType="application/x-www-form-urlencoded",
* @OA\Schema(
* type="object",
* @OA\Property(property="PARENT_GUID",description="省市区PARENT_GUID",type="string"),
* example={"PARENT_GUID": ""}
* )
* )
* ),
* @OA\Response(response=200,description="成功时返回id和name"),
* security={{"Authorization":{}}},
* )
*/
public
function
actionGetArea
()
* @OA\GET(
* path="/backend/web/v1/common/shop-transport-areas",
* tags={"公用类接口"},
* summary="取得省市区(gyz)",
* description="参数为空获取全部省,传入省id获取市,传入市id获取区",
* @OA\Parameter(name="PARENT_GUID",in="query",description="省市区PARENT_GUID",@OA\Schema(type="string")),
* @OA\Response(response="200",description="GUID:省市区GUID,NAME:省市区名称"),
* security={{"Authorization": {}}}
* )
*/
public
function
actionIndex
()
{
$model
=
new
$this
->
modelClass
();
$model
->
setAttributes
(
Yii
::
$app
->
request
->
post
());
...
...
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