Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
e777865d
Commit
e777865d
authored
Jul 31, 2018
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加个性模板接口
parent
9d105930
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
4 deletions
+44
-4
src/Store/Lib/TemplateInterface.php
+44
-4
No files found.
src/Store/Lib/TemplateInterface.php
View file @
e777865d
...
@@ -17,8 +17,9 @@ use Swoft\Core\ResultInterface;
...
@@ -17,8 +17,9 @@ use Swoft\Core\ResultInterface;
*
*
* @method ResultInterface deferGetTemplateList(int $onshelf = 1)
* @method ResultInterface deferGetTemplateList(int $onshelf = 1)
* @method ResultInterface deferGetTemplate(int $tplId)
* @method ResultInterface deferGetTemplate(int $tplId)
* @method ResultInterface deferUpdateStore(int $storeId, array $data)
* @method ResultInterface deferDelTemplate(int $tplId)
* @method ResultInterface deferDeleteStore(int $storeId)
* @method ResultInterface deferUpdateTemplate(int $tplId, array $data)
* @method ResultInterface deferAddTemplate($data)
*/
*/
interface
TemplateInterface
interface
TemplateInterface
{
{
...
@@ -26,18 +27,56 @@ interface TemplateInterface
...
@@ -26,18 +27,56 @@ interface TemplateInterface
* 获取所有可用的个性模板列表
* 获取所有可用的个性模板列表
* onshelf=1表示查询已上架的模板
* onshelf=1表示查询已上架的模板
* onshelf=2表示查询已下架的模板
* onshelf=2表示查询已下架的模板
*
* @Number(name="onshelf")
* @param int $onshelf
* @param int $onshelf
* @return array
空数组表示没有查询到记录
* @return array
*/
*/
public
function
getTemplateList
(
int
$onshelf
=
1
);
public
function
getTemplateList
(
int
$onshelf
=
1
);
/**
/**
* 根据模板ID获取单个模板信息
* 根据模板ID获取单个模板信息
*
*
* @Number(name="tplId")
* @param integer $tplId
* @param integer $tplId
* @return array
空数组表示没有查询到记录
* @return array
*/
*/
public
function
getTemplate
(
int
$tplId
);
public
function
getTemplate
(
int
$tplId
);
/**
* 根据模板id删除一个模板
*
* @Number(name="tplId")
* @param integer $tplId
* @return int 返回删除成功的条数
*/
public
function
delTemplate
(
int
$tplId
);
/**
* 根据模板id更新一个模板
* $data 字段说明:
* ['tplThumb'] => 模板缩略图地址
* ['title'] => 模板标题
* ['onshelf'] => 是否上架,1上架,2下架,下架的模板用户看不到
* ['memo'] => 备注信息,此信息用户看不到
*
* @Number(name="tplId")
* @param integer $tplId
* @param array $data
* @return int 返回更新成功的条数
*/
public
function
updateTemplate
(
int
$tplId
,
array
$data
);
/**
* 添加一个模板
* $data 字段说明:
* ['tplThumb'] => 模板缩略图地址
* ['title'] => 模板标题
* ['onshelf'] => 是否上架,1上架,2下架,下架的模板用户看不到
* ['memo'] => 备注信息,此信息用户看不到
*
* @param array $data
* @return int 返回新建模板id
*/
public
function
addTemplate
(
$data
);
}
}
\ No newline at end of file
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