...
|
...
|
@@ -3,193 +3,344 @@ |
|
|
* Interface for Guang Model
|
|
|
*/
|
|
|
|
|
|
exports.domain =require('../config/common.js').domain;
|
|
|
//【资讯管理】
|
|
|
exports.domain = require('../config/common.js').domain;
|
|
|
//=================================【资讯管理】
|
|
|
exports.res = [
|
|
|
{//逛-> 资讯管理 空白页
|
|
|
route:'/guang/article/index',
|
|
|
method:'GET',
|
|
|
view:'pages/guang/infoManager',
|
|
|
route: '/guang/article/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/guang/infoManager',
|
|
|
src: '/guang/infoManager',
|
|
|
data:{
|
|
|
iscreate:true
|
|
|
data: {
|
|
|
iscreate: true
|
|
|
}
|
|
|
}, {
|
|
|
|
|
|
// 资讯管理列表数据
|
|
|
route:'/guang/article/list',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/list',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/getList',
|
|
|
params:[
|
|
|
{name: 'articleTitle',type: 'String'},
|
|
|
{name: 'articleGender',type: 'String'},
|
|
|
{name: 'authorId',type: 'Number'},
|
|
|
{name: 'maxSortId',type: 'Number'},
|
|
|
{name: 'status',type: 'Number'},
|
|
|
{name: 'orderBy',type: 'String'},
|
|
|
{name: 'startTime',type: 'String'},
|
|
|
{name: 'endTime',type: 'String'},
|
|
|
{name: 'page',type: 'Number'},
|
|
|
{name: 'size',type: 'Number'},
|
|
|
params: [
|
|
|
{name: 'articleTitle', type: 'String'},
|
|
|
{name: 'articleGender', type: 'String'},
|
|
|
{name: 'authorId', type: 'Number'},
|
|
|
{name: 'maxSortId', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'orderBy', type: 'String'},
|
|
|
{name: 'startTime', type: 'String'},
|
|
|
{name: 'endTime', type: 'String'},
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'},
|
|
|
|
|
|
]
|
|
|
}, {
|
|
|
|
|
|
// 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
|
|
|
route:'/guang/article/operation',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/operation',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/updateArticle',
|
|
|
params:[
|
|
|
{name: 'id',type: 'Number'},
|
|
|
{name: 'articleTitle',type: 'String'},
|
|
|
{name: 'articleGender',type: 'String'},
|
|
|
{name: 'authorId',type: 'Number'},
|
|
|
{name: 'maxSortId',type: 'Number'},
|
|
|
{name: 'minSortId',type: 'Number'},
|
|
|
{name: 'articleSummary',type: 'String'},
|
|
|
{name: 'coverImage',type: 'String'},
|
|
|
{name: 'status',type: 'Number'},
|
|
|
{name: 'coverImageType',type: 'Number'},
|
|
|
{name: 'articleType',type: 'Number'},
|
|
|
{name: 'adsImgSize',type: 'String'},
|
|
|
{name: 'isRecommend',type: 'Number'},
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'},
|
|
|
{name: 'articleTitle', type: 'String'},
|
|
|
{name: 'articleGender', type: 'String'},
|
|
|
{name: 'authorId', type: 'Number'},
|
|
|
{name: 'maxSortId', type: 'Number'},
|
|
|
{name: 'minSortId', type: 'Number'},
|
|
|
{name: 'articleSummary', type: 'String'},
|
|
|
{name: 'coverImage', type: 'String'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'coverImageType', type: 'Number'},
|
|
|
{name: 'articleType', type: 'Number'},
|
|
|
{name: 'adsImgSize', type: 'String'},
|
|
|
{name: 'isRecommend', type: 'Number'},
|
|
|
]
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
// 资讯管理-定时
|
|
|
route:'/guang/article/timmer',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/timmer',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/timePublish',
|
|
|
params:[
|
|
|
{name: 'id',type: 'Number'},
|
|
|
{name: 'publishTime',type: 'String'}
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'},
|
|
|
{name: 'publishTime', type: 'String'}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
|
|
|
// 资讯管理-删除
|
|
|
route:'/guang/article/del',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/del',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/delArticle',
|
|
|
params:[
|
|
|
{name: 'id',type: 'Number'}
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//【文章分类管理】
|
|
|
//=================================【文章分类管理】
|
|
|
|
|
|
{//逛-> 文章分类管理 空白页
|
|
|
route:'/guang/article/sortindex',
|
|
|
method:'GET',
|
|
|
view:'pages/guang/articleCategoryManager',
|
|
|
route: '/guang/article/sortindex',
|
|
|
method: 'GET',
|
|
|
view: 'pages/guang/articleCategoryManager',
|
|
|
src: '/guang/articleCategoryManager',
|
|
|
data:{
|
|
|
iscreate:true
|
|
|
data: {
|
|
|
iscreate: true
|
|
|
}
|
|
|
}, {
|
|
|
|
|
|
// 文章分类管理列表数据
|
|
|
route:'/guang/article/categoryist',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/categoryist',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/sort/getList',
|
|
|
params:[
|
|
|
{name: 'page',type: 'Number'},
|
|
|
{name: 'size',type: 'Number'},
|
|
|
params: [
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'},
|
|
|
]
|
|
|
}, {
|
|
|
|
|
|
// 文章分类管理-编辑
|
|
|
route:'/guang/article/sort/update',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/sort/update',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/sort/updateSort',
|
|
|
params:[
|
|
|
{name: 'id',type: 'Number'},
|
|
|
{name: 'parentId',type: 'Number'},
|
|
|
{name: 'orderBy',type: 'Number'},
|
|
|
{name: 'status',type: 'Number'},
|
|
|
{name: 'name',type: 'String'},
|
|
|
{name: 'advertCode',type: 'String'},
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'},
|
|
|
{name: 'parentId', type: 'Number'},
|
|
|
{name: 'orderBy', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'name', type: 'String'},
|
|
|
{name: 'advertCode', type: 'String'},
|
|
|
]
|
|
|
}, {
|
|
|
|
|
|
// 文章分类管理-添加
|
|
|
route: '/guang/article/sort/add',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/sort/addSort',
|
|
|
params: [
|
|
|
{name: 'parentId', type: 'Number'},
|
|
|
{name: 'orderBy', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'name', type: 'String'},
|
|
|
{name: 'advertCode', type: 'String'},
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
|
|
|
// 文章分类管理-删除
|
|
|
route:'/guang/article/sort/del',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/sort/del',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/sort/delSort',
|
|
|
params:[
|
|
|
{name: 'id',type: 'Number'}
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
//【标签管理】
|
|
|
//=================================【标签管理】
|
|
|
{//逛-> 标签管理 空白页
|
|
|
route:'/guang/tags/index',
|
|
|
method:'GET',
|
|
|
view:'pages/guang/tagManager',
|
|
|
route: '/guang/tags/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/guang/tagManager',
|
|
|
src: '/guang/tagManager',
|
|
|
data:{
|
|
|
iscreate:true
|
|
|
data: {
|
|
|
iscreate: true
|
|
|
}
|
|
|
},{
|
|
|
|
|
|
// 标签管理列表数据
|
|
|
route: '/guang/tags/getList',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tags/getList',
|
|
|
params: [
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'},
|
|
|
{name: 'isHot', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'classifyId', type: 'Number'},
|
|
|
{name: 'tagName', type: 'String'},
|
|
|
]
|
|
|
}, {
|
|
|
|
|
|
// 标签管理-编辑
|
|
|
route: '/guang/tags/updateTag',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tags/updateTag',
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'},
|
|
|
{name: 'tagName', type: 'String'},
|
|
|
{name: 'classifyId', type: 'Number'},
|
|
|
{name: 'isHot', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
]
|
|
|
}, {
|
|
|
|
|
|
// 标签管理-添加
|
|
|
route: '/guang/tags/addTag',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tags/addTag',
|
|
|
params: [
|
|
|
{name: 'tagName', type: 'String'},
|
|
|
{name: 'classifyId', type: 'Number'},
|
|
|
{name: 'isHot', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
|
|
|
//【标签分类管理】
|
|
|
// 标签管理-删除
|
|
|
route: '/guang/tags/delTag',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tags/delTag',
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
//=================================【标签分类管理】
|
|
|
{//逛-> 标签分类管理 空白页
|
|
|
route:'/guang/tags/sort',
|
|
|
method:'GET',
|
|
|
view:'pages/guang/tagCategoryManager',
|
|
|
route: '/guang/tags/sort',
|
|
|
method: 'GET',
|
|
|
view: 'pages/guang/tagCategoryManager',
|
|
|
src: '/guang/tagCategoryManager',
|
|
|
data:{
|
|
|
iscreate:true
|
|
|
data: {
|
|
|
iscreate: true
|
|
|
}
|
|
|
}, {
|
|
|
|
|
|
// 标签分类管理列表数据
|
|
|
route: '/guang/tags/sort/list',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tagSort/getList',
|
|
|
params: [
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'},
|
|
|
]
|
|
|
}, { // 标签分类管理-编辑
|
|
|
route: '/guang/tags/sort/update',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tagSort/updateSort',
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'orderBy', type: 'Number'},
|
|
|
{name: 'classifyName', type: 'String'},
|
|
|
]
|
|
|
}, {
|
|
|
|
|
|
// 标签分类管理-添加
|
|
|
route: '/guang/tags/sort/add',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tagSort/addSort',
|
|
|
params: [
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'orderBy', type: 'Number'},
|
|
|
{name: 'classifyName', type: 'String'},
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
|
|
|
//【评论管理】
|
|
|
// 标签分类管理-删除
|
|
|
route: '/guang/tags/sort/del',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tagSort/delSort',
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
//=================================【评论管理】
|
|
|
{//逛-> 评论管理 空白页
|
|
|
route:'/guang/comments/index',
|
|
|
method:'GET',
|
|
|
view:'pages/guang/commentManager',
|
|
|
route: '/guang/comments/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/guang/commentManager',
|
|
|
src: '/guang/commentManager',
|
|
|
data:{
|
|
|
iscreate:true
|
|
|
data: {
|
|
|
iscreate: true
|
|
|
}
|
|
|
},
|
|
|
|
|
|
//【作者管理】
|
|
|
//=================================【作者管理】
|
|
|
{//逛-> 作者管理 空白页
|
|
|
route:'/guang/author/index',
|
|
|
method:'GET',
|
|
|
view:'pages/guang/authorManager',
|
|
|
route: '/guang/author/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/guang/authorManager',
|
|
|
src: '/guang/authorManager',
|
|
|
data:{
|
|
|
iscreate:true
|
|
|
data: {
|
|
|
iscreate: true
|
|
|
}
|
|
|
}, {
|
|
|
|
|
|
// 作者管理列表数据
|
|
|
route: '/guang/author/getList',
|
|
|
method: 'POST',
|
|
|
url: '/guang/author/getList',
|
|
|
params: [
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'},
|
|
|
]
|
|
|
}, {
|
|
|
// 作者管理-添加
|
|
|
route: '/guang/author/addAuthor',
|
|
|
method: 'POST',
|
|
|
url: '/guang/author/addAuthor',
|
|
|
params: [
|
|
|
{name: 'username', type: 'String'},
|
|
|
{name: 'avatar', type: 'String'},
|
|
|
{name: 'authorDesc', type: 'String'},
|
|
|
]
|
|
|
}, {
|
|
|
// 作者管理-编辑
|
|
|
route: '/guang/author/updateAuthor',
|
|
|
method: 'POST',
|
|
|
url: '/guang/author/updateAuthor',
|
|
|
params: [
|
|
|
{name: 'uid', type: 'Number'},
|
|
|
{name: 'username', type: 'String'},
|
|
|
{name: 'avatar', type: 'String'},
|
|
|
{name: 'authorDesc', type: 'String'},
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
|
|
|
// 作者管理-删除
|
|
|
route: '/guang/author/delAuthor',
|
|
|
method: 'POST',
|
|
|
url: '/guang/author/delAuthor',
|
|
|
params: [
|
|
|
{name: 'uid', type: 'Number'}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
// [下拉框调用的接口]
|
|
|
|
|
|
|
|
|
//================================= [下拉框调用的接口]
|
|
|
{// 作者
|
|
|
route:'/guang/article/getAuthorList',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/getAuthorList',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/getAuthorList',
|
|
|
params:[
|
|
|
{name: 'idName',type: 'String'},
|
|
|
params: [
|
|
|
{name: 'idName', type: 'String'},
|
|
|
]
|
|
|
},
|
|
|
|
|
|
{// 所有分类
|
|
|
route:'/guang/article/getSortList',
|
|
|
method:'POST',
|
|
|
route: '/guang/article/getSortList',
|
|
|
method: 'POST',
|
|
|
url: '/guang/article/getSortList',
|
|
|
|
|
|
},
|
|
|
|
|
|
{// 根据是否启用获取标签分类列表
|
|
|
route: '/guang/tagSort/getTagItems',
|
|
|
method: 'POST',
|
|
|
url: '/guang/tagSort/getTagItems',
|
|
|
params: [
|
|
|
{name: 'status', type: 'Number'},
|
|
|
]
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
];
|
...
|
...
|
|