列表获取
接口地址
POST 域名/work/template/list/
传递参数
| 参数名 | 
必选 | 
类型 | 
说明 | 
示例 | 
| page | 
否 | 
int | 
页码 | 
默认1 | 
| limit | 
否 | 
int | 
每页显示条数 | 
默认20 | 
返回值
{
    "code": 200,
    "msg": "获取成功",
    "data": {
        "data": [
            {
                "_id": {
                    "$oid": "59e6f8d4c3666e1d197b9f83"
                },
                "siteid": {
                    "$oid": "59ae3db6e39acc0395370172"
                },
                "tempmodel": "products",
                "showname": "模板类页面api添加",
                "pagetype": 3,
                "pcsourcecode": "pcsourcecode",
                "mobilesourcecode": "mobilesourcecode",
                "state": 1
            }
        ],
        "total": 36
    }
}
单条获取
接口地址
POST 域名/work/template/detail/
传递参数
| 参数名 | 
必选 | 
类型 | 
说明 | 
示例 | 
| _id | 
是 | 
string | 
唯一标示 | 
例:59ae3db6e39acc24b020ec64 | 
返回值
{
    "code": 200,
    "msg": "获取成功",
    "data": {
        "_id": {
            "$oid": "59ae3db6e39acc24b020ec64"
        },
        "siteid": {
            "$oid": "59ae3db6e39acc0395370172"
        },
        "tempmodel": "usermsg",
        "showname": "消息通知",
        "pagetype": 10,
        "pcsourcecode": "msg",
        "mobilesourcecode": "msg",
        "state": 1
    }
}
添加
接口地址
POST 域名/work/template/add/
传递参数
| 参数名 | 
必选 | 
类型 | 
说明 | 
示例 | 
| showname | 
是 | 
string | 
名称 | 
  | 
| pagetype | 
是 | 
int | 
页面类型(值范围 1, 2, 3, 4, 5, 6, 7, 8, 9, 10。依次代表:列表页,详情页,模板类页,自定义列表页,动态片段,普通页面,导航,面包屑,搜索页,用户中心) | 
  | 
| tempmodel | 
是 | 
string | 
关联模型 | 
值范围:products, news, articles, cases, solutions, tags, userlogin, userreg, usergetpwd, userresetpwd, userindex, usersetting, userinq, usermsg, error;依次代表:产品,新闻,文章,案例,解决方案,标签,用户登录,用户注册,用户找回密码,用户重置密码,用户个人中心,用户设置,用户询盘,用户消息,用户自定义错误;当pagetype的值为1,2,4,5,9的时候,可选 products, news, articles, cases, solutions;当pagetype的值为10的时候,可选 userlogin, userreg, usergetpwd, userresetpwd, userindex, usersetting, userinq, usermsg, error;当pagetype的值为3,6,7,8的时候,该项为空或不传。 | 
| pcsourcecode | 
是 | 
string | 
电脑端的代码 | 
  | 
| mobilesourcecode | 
是 | 
string | 
移动端的代码 | 
  | 
返回值
{
    "code": 200,
    "msg": "添加成功",
    "data": "59e80746c3666e03fe6e4193"
}
更新
接口地址
POST 域名/work/template/update/
传递参数
| 参数名 | 
必选 | 
类型 | 
说明 | 
示例 | 
| _id | 
是 | 
string | 
唯一标示 | 
  | 
| pcsourcecode | 
是 | 
string | 
电脑端的代码 | 
  | 
| mobilesourcecode | 
是 | 
string | 
移动端的代码 | 
  | 
返回值
{
    "code": 200,
    "msg": "更新成功",
    "data": ""
}
删除
接口地址
POST 域名/work/template/del/
传递参数
| 参数名 | 
必选 | 
类型 | 
说明 | 
示例 | 
| _id | 
是 | 
string | 
唯一标示 | 
  | 
返回值
{
    "code": 200,
    "msg": "删除成功",
    "data": ""
}