Authored by weiqingting

4.3

/**
* Created by wangqianjun on 16/4/11.
* 【货到付款限制】路由
*/
exports.domain = require('../config/common.js').domain;
exports.res = [{
// ====================== 品牌货到付款限制页面路由 ===================
route: '/goods/cod/brand/index',
method: 'GET',
view: 'pages/goods/cod-brand',
src: '/goods/cod-brand'
}, {
route: '/payDelivery/queryTotalBrandPayDelivery',
method: 'POST',
url: '/payDelivery/queryTotalBrandPayDelivery',
params: [
{name: 'brandId', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}, {
// 开启 & 关闭 货到付款
route: '/payDelivery/addPayDeliveryCheck',
method: 'POST',
url: '/payDelivery/addPayDeliveryCheck',
params: [
{name: 'isPayDelivery', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},{
// 通过 & 驳回申请
route: '/payDelivery/reviewPayDeliveryCheck',
method: 'POST',
url: '/payDelivery/reviewPayDeliveryCheck',
params: [
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'rejectReason', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
// 获取tab上的数量
{
route: '/payDelivery/queryCountBrandPayDelivery',
method: 'POST',
url: '/payDelivery/queryCountBrandPayDelivery',
params: [
{name: 'brandId', type: 'Number'},
{name: 'isPayDelivery', type: 'Number'}
]
},
// ====================== 单品货到付款限制页面路由 ===================
{
route: '/goods/cod/goods/index',
method: 'GET',
view: 'pages/goods/cod-goods',
src: '/goods/cod-goods'
}, {
route: '/payDelivery/queryPayDeliveryList',
method: 'POST',
url: '/payDelivery/queryPayDeliveryList',
params: [
{name: 'brandId', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'status', type:'Number'},
{name: 'productSkn', type:'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{
// 开启货到付款
route: '/payDelivery/openPayDelivery',
method: 'POST',
url: '/payDelivery/openPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},{
// 关闭货到付款
route: '/payDelivery/closePayDelivery',
method: 'POST',
url: '/payDelivery/closePayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},{
// 通过申请
route: '/payDelivery/passPayDelivery',
method: 'POST',
url: '/payDelivery/passPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'id', type: 'Number'}
]
},{
// 驳回申请
route: '/payDelivery/rejectPayDelivery',
method: 'POST',
url: '/payDelivery/rejectPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'rejectReason', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
// 获取skn列表
{
route: '/payDelivery/queryPayDeliveryProductSkn',
method: 'POST',
url: '/payDelivery/queryPayDeliveryProductSkn',
params: [
{name: 'idName', type: 'String'}
]
}, // 获取tab上的数量
{
route: '/payDelivery/queryCountProductPayDelivery',
method: 'POST',
url: '/payDelivery/queryCountProductPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'isPayDelivery', type: 'Number'}
]
}, { // 获取品牌列表
route: '/payDelivery/queryPayDeliveryBrandName',
method: 'POST',
url: '/payDelivery/queryPayDeliveryBrandName',
params: [
{name: 'idName', type: 'String'}
]
}, { // 批量导入
route: '/goods/cod/upload',
method: 'GET',
view: 'pages/goods/cod-upload',
src: '/goods/cod-upload'
}
];
\ No newline at end of file
... ...
/**
* Created by wangqianjun on 16/3/22.
* Interface for Guang Model
*/
exports.domain = require('../config/common.js').domain;
//exports.domain ="http://172.16.6.157:8080/yohobuy-platform-web";
//=================================【资讯管理】
exports.res = [
{//逛-> 资讯管理 空白页
route: '/guang/article/index',
method: 'GET',
view: 'pages/guang/infoManager',
src: '/guang/infoManager',
data: {
iscreate: true
}
}, {
// 资讯管理列表数据
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'}
]
},
{
// 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
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'}
]
},
{
// 资讯管理-定时
route: '/guang/article/timmer',
method: 'POST',
url: '/guang/article/timePublish',
params: [
{name: 'id', type: 'Number'},
{name: 'publishTime', type: 'String'}
]
},
{
// 资讯管理-删除
route: '/guang/article/del',
method: 'POST',
url: '/guang/article/delArticle',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【文章分类管理】
{//逛-> 文章分类管理 空白页
route: '/guang/article/sortindex',
method: 'GET',
view: 'pages/guang/articleCategoryManager',
src: '/guang/articleCategoryManager',
data: {
iscreate: true
}
}, {
// 文章分类管理列表数据
route: '/guang/article/categoryist',
method: 'POST',
url: '/guang/article/sort/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}, {
// 文章分类管理-编辑
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'}
]
}, {
// 文章分类管理-添加
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',
url: '/guang/article/sort/delSort',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【标签管理】
{//逛-> 标签管理 空白页
route: '/guang/tags/index',
method: 'GET',
view: 'pages/guang/tagManager',
src: '/guang/tagManager',
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',
src: '/guang/tagCategoryManager',
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',
src: '/guang/commentManager',
data: {
iscreate: true
}
}, {
// 评论管理列表数据
route: '/guang/comment/getList',
method: 'POST',
url: '/guang/comment/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'condContent', type: 'String'},
{name: 'condNum', type: 'Number'}
]
}, {
// 评论管理-审核
route: '/guang/comment/audit',
method: 'POST',
url: '/guang/comment/audit',
params: [
{name: 'id', type: 'String'},
{name: 'status', type: 'Number'}
]
}, {
// 评论管理-获取筛选条件
route: '/guang/comment/getItems',
method: 'POST',
url: '/guang/comment/getItems',
},
//=================================【作者管理】
{//逛-> 作者管理 空白页
route: '/guang/author/index',
method: 'GET',
view: 'pages/guang/authorManager',
src: '/guang/authorManager',
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'}
]
},
//=================================【Plus/Star列表】
{//逛->Plus/Star列表 空白页
route: '/guang/plustar/index',
method: 'GET',
view: 'pages/guang/plusStarManager',
src: '/guang/plusStarManager',
//view: 'pages/guang/plusStarCategory',
//src: '/guang/plusStarCategory',
data: {
iscreate: true
}
},{
// Plus/Star 列表数据
route: '/guang/plustar/getList',
method: 'POST',
url: '/guang/plustar/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'brandType', type: 'String'},
{name: 'status', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'gender', type: 'String'}
]
}, {
// Plus/Star列表-添加
route: '/guang/plustar/addPlustar',
method: 'POST',
url: '/guang/plustar/addPlustar',
params: [
{name: 'brandType', type: 'String'},
{name: 'status', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'coverImg', type: 'String'},
{name: 'bannerImg', type: 'String'},
{name: 'bannerTitle', type: 'String'},
{name: 'orderBy', type: 'String'}
]
},{
// Plus/Star列表-修改
route: '/guang/plustar/updatePlustar',
method: 'POST',
url: '/guang/plustar/updatePlustar',
params: [
{name: 'id', type: 'String'},
{name: 'brandType', type: 'String'},
{name: 'status', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'coverImg', type: 'String'},
{name: 'bannerImg', type: 'String'},
{name: 'bannerTitle', type: 'String'},
{name: 'orderBy', type: 'String'}
]
}, {
// Plus/Star列表-编辑
route: '/guang/plustar/getDetail',
method: 'POST',
url: '/guang/plustar/getDetail',
params: [
{name: 'id', type: 'Number'},
{name: 'brandType', type: 'String'},
{name: 'status', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'coverImg', type: 'String'},
{name: 'bannerImg', type: 'String'},
{name: 'bannerTitle', type: 'String'},
{name: 'orderBy', type: 'String'}
]
},{
// Plus/Star列表-删除
route: '/guang/plustar/delPlustar',
method: 'POST',
url: '/guang/plustar/delPlustar',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【Plus/Star分类】
{//逛->Plus/Star分类 空白页
route: '/guang/plustarcategory/index',
method: 'GET',
view: 'pages/guang/plusStarCategory',
src: '/guang/plusStarCategory',
data: {
iscreate: true
}
},{
// Plus/Star分类 列表数据
route: '/guang/plustarcategory/getList',
method: 'POST',
url: '/guang/plustarcategory/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'status', type: 'Number'}
]
}, {
// Plus/Star分类列表-添加
route: '/guang/plustarcategory/addCategory',
method: 'POST',
url: '/guang/plustarcategory/addCategory',
params: [
{name: 'categoryName', type: 'String'},
{name: 'contentCode', type: 'String'},
{name: 'contentCodeFoot', type: 'String'}
]
}, {
// Plus/Star分类列表-编辑&开启&关闭
route: '/guang/plustarcategory/updateCategory',
method: 'POST',
url: '/guang/plustarcategory/updateCategory',
params: [
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'categoryName', type: 'String'},
{name: 'contentCode', type: 'String'},
{name: 'contentCodeFoot', type: 'String'}
]
},
//=================================【品牌关注】
{//逛->品牌关注 空白页
route: '/guang/relationship/index',
method: 'GET',
view: 'pages/guang/brandConcern',
src: '/guang/brandConcern',
data: {
iscreate: true
}
},{
// 品牌关注 列表数据
route: '/guang/relationship/getList',
method: 'POST',
url: '/guang/relationship/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'brandType', type: 'String'},
{name: 'status', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'gender', type: 'String'},
]
}, {
// 品牌关注-添加
route: '/guang/relationship/addRel',
method: 'POST',
url: '/guang/relationship/addRel',
params: [
{name: 'brandType', type: 'Number'},
{name: 'activityName', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'discount', type: 'Number'},
{name: 'activityImg', type: 'String'},
]
}, {
// 品牌关注列表-编辑
route: '/guang/relationship/updateRel',
method: 'POST',
url: '/guang/relationship/updateRel',
params: [
{name: 'id', type: 'Number'},
{name: 'brandType', type: 'Number'},
{name: 'activityName', type: 'String'},
{name: 'brandId', type: 'String'},
{name: 'discount', type: 'Number'},
{name: 'activityImg', type: 'String'},
]
},
{
// 品牌关注列表-删除
route: '/guang/relationship/delRel',
method: 'POST',
url: '/guang/relationship/delRel',
params: [
{name: 'id', type: 'Number'}
]
},
//================================= [下拉框调用的接口]
{// 作者
route: '/guang/article/getAuthorList',
method: 'POST',
url: '/guang/article/getAuthorList',
params: [
{name: 'idName', type: 'String'},
]
},
{// 所有分类
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'},
{name: 'idName', type: 'String'}
]
},
{// plus star 频道
route: '/guang/plustarcategory/getCategoryNames',
method: 'POST',
url: '/guang/plustarcategory/getCategoryNames',
params: [
{name: 'status', type: 'Number'},
]
},
{
route:'/guang/article/contentAdd',
method:'GET',
view:'pages/guang/contentEdit',
src:'/guang/contentEdit',
data:{
action:"/guang/article/addArticle",
pageTitle:"添加文章"
}
},
{
route: "/guang/article/addArticle",
method:"POST",
url:"/guang/article/addArticle",
params:[
{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:"coverImageType",type:"Number"},
{name:"articleType",type:"Number"},
{name:"adsImgSize",type:"String"},
{name:"url",type:"String"},
{name:"contentData",type:"String"},
{name:"brands",type:"String"},
{name:"tag",type:"String"}
]
},
{
route: "/guang/article/updateArticle",
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:"coverImageType",type:"Number"},
{name:"articleType",type:"Number"},
{name:"adsImgSize",type:"String"},
{name:"url",type:"String"},
{name:"contentData",type:"String"},
{name:"brands",type:"String"},
{name:"tag",type:"String"}
]
},
{
route:'/guang/article/contentEdit/:id',
method:'GET',
view:'pages/guang/contentEdit',
src:'/guang/contentEdit',
data:{
action:"/guang/article/updateArticle",
pageTitle:"修改文章"
},
params:[
{name:"id",type:"Number"}
]
},
{
route:'/guang/article/getDetail',
method:'POST',
url:'/guang/article/getDetail',
params:[
{name:"id",type:"Number"}
]
},
{
route:'/guang/tags/getTags',
method:'POST',
url:'/guang/tags/getTags'
}
];
... ...
/**
* Created by ty on 2016/3/30.
* 资源管理路由
*/
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.115:8080/platform';//王伟
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
//exports.domain = 'http://172.16.6.231:8080/platform';
//exports.domain = 'http://172.16.6.225:8080/platform';
//exports.domain = 'http://192.168.102.216:8086/platform';
exports.res = [
{
route: "/resource/index/index",
method: "GET",
view: "pages/sourceManage/resourceManage",
src: "/sourceManage/resourceManage"
},
{
route: "/resources/queryResource",
method: "POST",
url: "/resources/queryResource",
params: [
{name: "id", type: "number"},
{name: "name", type: "string"},
{name: "sortId", type: "number"},
{name: "platformId", type: "number"},
{name: "page", type: "number"}
]
},
{
route: "/resources/getResSorts",
method: "POST",
url: "/resources/getResSorts",
params: []
},
{
route: "/resources/getResPlatforms",
method: "POST",
url: "/resources/getResPlatforms",
params: []
},
{
route: "/resources/saveResource",
method: "POST",
url: "/resources/saveResource",
params: [
{name: "id", type: "number"},
{name: "name", type: "string"},
{name: "sortId", type: "number"},
{name: "platformId", type: "number"},
{name: "matchCode", type: "string"}
]
},
{//根据id删除资源位
route: "/resources/deleteResourceById",
method: "POST",
url: "/resources/deleteResourceById",
params: [
{name: "id", type: "number"}
]
},
{//删除资源位下所有tab
route: "/resources/deleteAllResourceByCode",
method: "POST",
url: "/resources/deleteAllResourceByCode",
params: [
{name: "code", type: "string"}
]
},
{
//资源内容页面
route: '/resource/content/index/:param',
method: 'GET',
view: 'pages/sourceManage/resourceContentManage',
src: '/sourceManage/resourceContentManage',
//url: '/resources/getUrlAction',
//params:[]
},
{
route: "/resources/resContentIndex",
method: "POST",
url: "/resources/resContentIndex",
params: [
{name: "id", type: "number"}
]
},
{
route: "/resources/addResContent",
method: "POST",
url: "/resources/addResContent",
params: [
{name: "content", type: "string"},
{name: "data_id", type: "string"},
{name: "rId", type: "number"}
]
},
{
route: "/resources/delResContent",
method: "POST",
url: "/resources/delResContent",
params: [
{name: "id", type: "number"}
]
},
//验证领券码
{
route: "/coupon/batchCheckCoupons",
method: "POST",
url: "/coupon/batchCheckCoupons",
params: [
{name: "params", type: "string"}
]
},
{//复制资源内容
route: "/resources/copyResContent",
method: "POST",
url: "/resources/copyResContent",
params: [
{name: "rId", type: "string"}
]
},
{//更新预发布时间
route: "/resources/updateResPublishTime",
method: "POST",
url: "/resources/updateResPublishTime",
params: [
{name: "id", type: "number"},
{name: "time", type: "string"}
]
}
];
\ No newline at end of file
... ...