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
d39e64a7
Commit
d39e64a7
authored
Dec 19, 2019
by
侯贺政
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板修改
Signed-off-by:
houhezheng
<
houhezheng@romens.cn
>
parent
a630d76e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
GoodsDetailSettingController.php
...controllers/v1/shopgoods/GoodsDetailSettingController.php
+28
-1
ShopGoodsDetailSetting.php
backend/models/v1/shopgoods/ShopGoodsDetailSetting.php
+2
-1
No files found.
backend/controllers/v1/shopgoods/GoodsDetailSettingController.php
View file @
d39e64a7
...
@@ -40,7 +40,7 @@ class GoodsDetailSettingController extends BaseController
...
@@ -40,7 +40,7 @@ class GoodsDetailSettingController extends BaseController
$model
=
new
$this
->
modelClass
();
$model
=
new
$this
->
modelClass
();
$model
->
attributes
=
$params
;
$model
->
attributes
=
$params
;
if
(
!
$model
->
validate
())
{
if
(
!
$model
->
validate
())
{
Yii
::
$app
->
response
->
statusCode
=
200
;
Yii
::
$app
->
response
->
statusCode
=
422
;
return
$model
->
errors
;
return
$model
->
errors
;
}
}
$list
=
$model
->
goodsDetailList
(
$params
);
$list
=
$model
->
goodsDetailList
(
$params
);
...
@@ -188,6 +188,33 @@ class GoodsDetailSettingController extends BaseController
...
@@ -188,6 +188,33 @@ class GoodsDetailSettingController extends BaseController
throw
new
HttpException
(
200
,
'创建成功'
);
throw
new
HttpException
(
200
,
'创建成功'
);
}
}
/**
* @OA\DELETE(
* path="/backend/web/v1/shopgoods/goods-detail-settings/setting-del",
* tags={"商品管理"},
* summary="删除商品详情页模板(侯贺政)",
* description="删除商品详情页模板",
* @OA\Parameter(
* description="要删除的商品详情页模板GUID",
* in="query",
* name="GUID",
* required=true,
* @OA\Schema(
* type="string",
* )
* ),
* @OA\Response(
* response=200,
* description="删除成功!"
* ),
* security={{"Authorization":{}}},
* )
*/
public
function
actionSettingDel
()
{
}
/**
/**
* @OA\GET(
* @OA\GET(
* path="/backend/web/v1/shopgoods/goods-detail-settings/associated-goods-list",
* path="/backend/web/v1/shopgoods/goods-detail-settings/associated-goods-list",
...
...
backend/models/v1/shopgoods/ShopGoodsDetailSetting.php
View file @
d39e64a7
...
@@ -36,7 +36,8 @@ class ShopGoodsDetailSetting extends \app\models\v1\BaseModel
...
@@ -36,7 +36,8 @@ class ShopGoodsDetailSetting extends \app\models\v1\BaseModel
{
{
return
[
return
[
[[
'GUID'
],
'required'
,
'on'
=>
'creation'
],
[[
'GUID'
],
'required'
,
'on'
=>
'creation'
],
[[
'STATUS'
],
'integer'
,
'default'
,
'value'
=>
1
],
[[
'STATUS'
],
'integer'
],
[[
'STATUS'
],
'default'
,
'value'
=>
1
],
[[
'START_TIME'
,
'END_TIME'
],
'date'
,
'format'
=>
'Y-M-d H:m:s'
,
'message'
=>
"时间格式为Y-m-d H:i:s"
],
[[
'START_TIME'
,
'END_TIME'
],
'date'
,
'format'
=>
'Y-M-d H:m:s'
,
'message'
=>
"时间格式为Y-m-d H:i:s"
],
[[
'HEAD_PIC_URL'
,
'FOOT_PIC_URL'
],
'string'
],
[[
'HEAD_PIC_URL'
,
'FOOT_PIC_URL'
],
'string'
],
[[
'GUID'
,
'ORG_GUID'
],
'string'
,
'max'
=>
50
],
[[
'GUID'
,
'ORG_GUID'
],
'string'
,
'max'
=>
50
],
...
...
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