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
a8bcc1cb
Commit
a8bcc1cb
authored
Jan 08, 2020
by
孙磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码格式化
Signed-off-by:
sunlei
<
sunlei@romens.cn
>
parent
e3908926
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
AuthorityRoleController.php
backend/controllers/v1/authority/AuthorityRoleController.php
+2
-2
BranchController.php
backend/controllers/v1/branch/BranchController.php
+3
-3
BranchServiceTypeController.php
...end/controllers/v1/branch/BranchServiceTypeController.php
+3
-3
TransportInitialPriceController.php
...trollers/v1/transport/TransportInitialPriceController.php
+1
-1
No files found.
backend/controllers/v1/authority/AuthorityRoleController.php
View file @
a8bcc1cb
...
...
@@ -118,7 +118,7 @@ class AuthorityRoleController extends BaseController
$model
->
setAttributes
(
$params
);
if
(
$model
->
save
())
{
return
Func
::
returnResult
(
201
,
'添加成功'
);
return
Func
::
returnResult
(
201
,
'添加成功'
);
}
elseif
(
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'添加失败'
);
}
...
...
@@ -168,7 +168,7 @@ class AuthorityRoleController extends BaseController
if
(
$model
->
save
()
===
false
&&
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'修改失败'
);
}
return
Func
::
returnResult
(
200
,
'修改成功'
);
return
Func
::
returnResult
(
200
,
'修改成功'
);
}
/**
* @OA\POST(
...
...
backend/controllers/v1/branch/BranchController.php
View file @
a8bcc1cb
...
...
@@ -258,7 +258,7 @@ class BranchController extends BaseController
$model
->
setAttributes
(
Yii
::
$app
->
getRequest
()
->
post
());
if
(
$model
->
save
())
{
return
Func
::
returnResult
(
201
,
'添加成功'
);
return
Func
::
returnResult
(
201
,
'添加成功'
);
}
elseif
(
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'添加失败'
);
}
...
...
@@ -543,7 +543,7 @@ class BranchController extends BaseController
if
(
$model
->
save
()
===
false
&&
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'修改失败'
);
}
return
Func
::
returnResult
(
200
,
'修改成功'
);
return
Func
::
returnResult
(
200
,
'修改成功'
);
}
/**
* @OA\DELETE(
...
...
@@ -577,7 +577,7 @@ class BranchController extends BaseController
throw
new
HttpException
(
500
,
'删除失败'
);
}
return
Func
::
returnResult
(
204
,
'删除成功'
);
return
Func
::
returnResult
(
204
,
'删除成功'
);
}
/**
* @OA\Post(
...
...
backend/controllers/v1/branch/BranchServiceTypeController.php
View file @
a8bcc1cb
...
...
@@ -140,7 +140,7 @@ class BranchServiceTypeController extends BaseController
$model
->
setAttributes
(
Yii
::
$app
->
getRequest
()
->
post
());
if
(
$model
->
save
())
{
return
Func
::
returnResult
(
201
,
'添加成功'
);
return
Func
::
returnResult
(
201
,
'添加成功'
);
}
elseif
(
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'添加失败'
);
}
...
...
@@ -183,7 +183,7 @@ class BranchServiceTypeController extends BaseController
if
(
$model
->
save
()
===
false
&&
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'修改失败'
);
}
return
Func
::
returnResult
(
200
,
'修改成功'
);
return
Func
::
returnResult
(
200
,
'修改成功'
);
}
/**
* @OA\DELETE(
...
...
@@ -216,7 +216,7 @@ class BranchServiceTypeController extends BaseController
}
else
if
(
$branchservice
->
delete
()
===
false
)
{
throw
new
HttpException
(
500
,
'删除失败'
);
}
return
Func
::
returnResult
(
204
,
'删除成功'
);
return
Func
::
returnResult
(
204
,
'删除成功'
);
}
/**
* @OA\Post(
...
...
backend/controllers/v1/transport/TransportInitialPriceController.php
View file @
a8bcc1cb
...
...
@@ -136,7 +136,7 @@ class TransportInitialPriceController extends BaseController
if
(
$model
->
save
()
===
false
&&
!
$model
->
hasErrors
())
{
throw
new
HttpException
(
500
,
'修改失败'
);
}
return
Func
::
returnResult
(
200
,
'修改成功'
);
return
Func
::
returnResult
(
200
,
'修改成功'
);
}
/**
* @OA\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