列表獲取
接口地址
POST?域名/work/page/list/
傳遞參數
參數名 |
必選 |
類型 |
說明 |
示例 |
pagetype |
是 |
int |
頁面類型 |
1代表普通頁面,2代表模板類頁面 |
page |
否 |
int |
頁碼 |
默認1 |
limit |
否 |
int |
每頁顯示條數 |
默認20 |
返回值
{
????"code":?200,
????"msg":?"獲取成功",
????"data":?{
????????"data":?[
????????????{
????????????????"_id":?{
????????????????????"$oid":?"59e6ece5c3666e049d21a5f4"
????????????????},
????????????????"siteid":?{
????????????????????"$oid":?"59ae3db6e39acc0395370172"
????????????????},
????????????????"pagetitle":?"頁面-頁面標題up2",
????????????????"pagetype":?"1",
????????????????"sourcecode":?{
????????????????????"pc":?"pcsourcecode",
????????????????????"mobile":?"mobilesourcecode"
????????????????},
????????????????"pageseo":?{
????????????????????"title":?"seotitle",
????????????????????"keywords":?"seokeywords",
????????????????????"description":?"seodescribe",
????????????????????"imgurl":?"seoimgurl"
????????????????},
????????????????"tags":?"tags",
????????????????"state":?1,
????????????????"pagetemplates":?"",
????????????????"url":?"/page_59e6ece5c3666e049d21a5f4.html"
????????????}
????????],
????????"total":?1
????}
}
單條獲取
接口地址
POST?域名/work/page/detail/
傳遞參數
參數名 |
必選 |
類型 |
說明 |
示例 |
_id |
是 |
string |
唯一標示 |
59e6ece5c3666e049d21a5f4 |
返回值
{
????"code":?200,
????"msg":?"獲取成功",
????"data":?{
????????"_id":?{
????????????"$oid":?"59e6ece5c3666e049d21a5f4"
????????},
????????"siteid":?{
????????????"$oid":?"59ae3db6e39acc0395370172"
????????},
????????"pagetitle":?"頁面-頁面標題up2",
????????"pagetype":?"1",
????????"sourcecode":?{
????????????"pc":?"pcsourcecode",
????????????"mobile":?"mobilesourcecode"
????????},
????????"pageseo":?{
????????????"title":?"seotitle",
????????????"keywords":?"seokeywords",
????????????"description":?"seodescribe",
????????????"imgurl":?"seoimgurl"
????????},
????????"tags":?"tags",
????????"state":?1,
????????"pagetemplates":?"",
????????"url":?"/page_59e6ece5c3666e049d21a5f4.html"
????}
}
添加
接口地址
POST?域名/work/page/add/
傳遞參數
參數名 |
必選 |
類型 |
說明 |
示例 |
pagetype |
是 |
int |
頁面類型 |
1代表普通頁面,2代表模板類頁面 |
pagetitle |
是 |
string |
頁面標題 |
? |
pcsourcecode |
是 |
string |
電腦端代碼 |
? |
mobilesourcecode |
否 |
string |
移動端代碼 |
? |
seotitle |
否 |
string |
title |
? |
seokeywords |
否 |
string |
keywords |
? |
seodescribe |
否 |
string |
describe |
? |
seoimgurl |
否 |
string |
分享時顯示圖片 |
? |
pageurl |
否 |
string |
頁面訪問url |
? |
tags |
否 |
string |
tag |
多個英文逗號分隔 |
pctemplates |
? |
string |
電腦版模板的唯一標示 |
當pagetype為2的時候,必填 |
mobiletemplates |
? |
string |
移動端模板的唯一標示 |
當pagetype為2的時候,必填 |
返回值
{
????"code":?200,
????"msg":?"添加成功",
????"data":?"59e80796c3666e03fc0d83e3"
}
更新
接口地址
POST?域名/work/page/update/
傳遞參數
參數名 |
必選 |
類型 |
說明 |
示例 |
_id |
是 |
string |
唯一標示 |
? |
pagetype |
是 |
int |
頁面類型 |
1代表普通頁面,2代表模板類頁面 |
pagetitle |
是 |
string |
頁面標題 |
? |
pcsourcecode |
是 |
string |
電腦端代碼 |
? |
mobilesourcecode |
否 |
string |
移動端代碼 |
? |
seotitle |
否 |
string |
title |
? |
seokeywords |
否 |
string |
keywords |
? |
seodescribe |
否 |
string |
describe |
? |
seoimgurl |
否 |
string |
分享時顯示圖片 |
? |
pageurl |
否 |
string |
頁面訪問url |
? |
tags |
否 |
string |
tag |
多個英文逗號分隔 |
pctemplates |
? |
string |
電腦版模板的唯一標示 |
當pagetype為2的時候,必填 |
mobiletemplates |
? |
string |
移動端模板的唯一標示 |
當pagetype為2的時候,必填 |
返回值
{
????"code":?200,
????"msg":?"更新成功",
????"data":?""
}
刪除
接口地址
POST?域名/work/page/del/
傳遞參數
參數名 |
必選 |
類型 |
說明 |
示例 |
_id |
是 |
string |
唯一標示 |
? |
返回值
{
????"code":?200,
????"msg":?"刪除成功",
????"data":?""
}
?