Authored by weiqingting

4.3

  1 +/**
  2 + * Created by wangqianjun on 16/4/11.
  3 + * 【货到付款限制】路由
  4 + */
  5 +
  6 +exports.domain = require('../config/common.js').domain;
  7 +
  8 +exports.res = [{
  9 +// ====================== 品牌货到付款限制页面路由 ===================
  10 + route: '/goods/cod/brand/index',
  11 + method: 'GET',
  12 + view: 'pages/goods/cod-brand',
  13 + src: '/goods/cod-brand'
  14 +}, {
  15 + route: '/payDelivery/queryTotalBrandPayDelivery',
  16 + method: 'POST',
  17 + url: '/payDelivery/queryTotalBrandPayDelivery',
  18 + params: [
  19 + {name: 'brandId', type: 'Number'},
  20 + {name: 'brandName', type: 'String'},
  21 + {name: 'isPayDelivery', type: 'Number'},
  22 + {name: 'checkStatus', type: 'Number'},
  23 + {name: 'page', type: 'Number'},
  24 + {name: 'size', type: 'Number'}
  25 + ]
  26 +}, {
  27 + // 开启 & 关闭 货到付款
  28 + route: '/payDelivery/addPayDeliveryCheck',
  29 + method: 'POST',
  30 + url: '/payDelivery/addPayDeliveryCheck',
  31 + params: [
  32 + {name: 'isPayDelivery', type: 'Number'},
  33 + {name: 'brandName', type: 'String'},
  34 + {name: 'brandId', type: 'Number'}
  35 + ]
  36 +},{
  37 + // 通过 & 驳回申请
  38 + route: '/payDelivery/reviewPayDeliveryCheck',
  39 + method: 'POST',
  40 + url: '/payDelivery/reviewPayDeliveryCheck',
  41 + params: [
  42 + {name: 'brandName', type: 'String'},
  43 + {name: 'brandId', type: 'Number'},
  44 + {name: 'rejectReason', type: 'String'},
  45 + {name: 'isPayDelivery', type: 'Number'},
  46 + {name: 'checkStatus', type: 'Number'},
  47 + {name: 'id', type: 'Number'}
  48 + ]
  49 +},
  50 + // 获取tab上的数量
  51 + {
  52 + route: '/payDelivery/queryCountBrandPayDelivery',
  53 + method: 'POST',
  54 + url: '/payDelivery/queryCountBrandPayDelivery',
  55 + params: [
  56 + {name: 'brandId', type: 'Number'},
  57 + {name: 'isPayDelivery', type: 'Number'}
  58 + ]
  59 + },
  60 +// ====================== 单品货到付款限制页面路由 ===================
  61 + {
  62 + route: '/goods/cod/goods/index',
  63 + method: 'GET',
  64 + view: 'pages/goods/cod-goods',
  65 + src: '/goods/cod-goods'
  66 + }, {
  67 + route: '/payDelivery/queryPayDeliveryList',
  68 + method: 'POST',
  69 + url: '/payDelivery/queryPayDeliveryList',
  70 + params: [
  71 + {name: 'brandId', type: 'Number'},
  72 + {name: 'brandName', type: 'String'},
  73 + {name: 'isPayDelivery', type: 'Number'},
  74 + {name: 'status', type:'Number'},
  75 + {name: 'productSkn', type:'Number'},
  76 + {name: 'page', type: 'Number'},
  77 + {name: 'size', type: 'Number'}
  78 + ]
  79 + },
  80 + {
  81 + // 开启货到付款
  82 + route: '/payDelivery/openPayDelivery',
  83 + method: 'POST',
  84 + url: '/payDelivery/openPayDelivery',
  85 + params: [
  86 + {name: 'productSkn', type: 'String'},
  87 + {name: 'brandName', type: 'String'},
  88 + {name: 'brandId', type: 'Number'}
  89 + ]
  90 + },{
  91 + // 关闭货到付款
  92 + route: '/payDelivery/closePayDelivery',
  93 + method: 'POST',
  94 + url: '/payDelivery/closePayDelivery',
  95 + params: [
  96 + {name: 'productSkn', type: 'String'},
  97 + {name: 'brandName', type: 'String'},
  98 + {name: 'brandId', type: 'Number'}
  99 + ]
  100 + },{
  101 + // 通过申请
  102 + route: '/payDelivery/passPayDelivery',
  103 + method: 'POST',
  104 + url: '/payDelivery/passPayDelivery',
  105 + params: [
  106 + {name: 'productSkn', type: 'String'},
  107 + {name: 'brandName', type: 'String'},
  108 + {name: 'brandId', type: 'Number'},
  109 + {name: 'id', type: 'Number'}
  110 + ]
  111 + },{
  112 + // 驳回申请
  113 + route: '/payDelivery/rejectPayDelivery',
  114 + method: 'POST',
  115 + url: '/payDelivery/rejectPayDelivery',
  116 + params: [
  117 + {name: 'productSkn', type: 'String'},
  118 + {name: 'brandName', type: 'String'},
  119 + {name: 'rejectReason', type: 'String'},
  120 + {name: 'brandId', type: 'Number'},
  121 + {name: 'id', type: 'Number'}
  122 + ]
  123 + },
  124 + // 获取skn列表
  125 + {
  126 + route: '/payDelivery/queryPayDeliveryProductSkn',
  127 + method: 'POST',
  128 + url: '/payDelivery/queryPayDeliveryProductSkn',
  129 + params: [
  130 + {name: 'idName', type: 'String'}
  131 + ]
  132 + }, // 获取tab上的数量
  133 + {
  134 + route: '/payDelivery/queryCountProductPayDelivery',
  135 + method: 'POST',
  136 + url: '/payDelivery/queryCountProductPayDelivery',
  137 + params: [
  138 + {name: 'productSkn', type: 'String'},
  139 + {name: 'brandId', type: 'Number'},
  140 + {name: 'isPayDelivery', type: 'Number'}
  141 + ]
  142 + }, { // 获取品牌列表
  143 + route: '/payDelivery/queryPayDeliveryBrandName',
  144 + method: 'POST',
  145 + url: '/payDelivery/queryPayDeliveryBrandName',
  146 + params: [
  147 + {name: 'idName', type: 'String'}
  148 + ]
  149 + }, { // 批量导入
  150 + route: '/goods/cod/upload',
  151 + method: 'GET',
  152 + view: 'pages/goods/cod-upload',
  153 + src: '/goods/cod-upload'
  154 + }
  155 +];
  1 +/**
  2 + * Created by wangqianjun on 16/3/22.
  3 + * Interface for Guang Model
  4 + */
  5 +
  6 +exports.domain = require('../config/common.js').domain;
  7 +//exports.domain ="http://172.16.6.157:8080/yohobuy-platform-web";
  8 +//=================================【资讯管理】
  9 +exports.res = [
  10 + {//逛-> 资讯管理 空白页
  11 + route: '/guang/article/index',
  12 + method: 'GET',
  13 + view: 'pages/guang/infoManager',
  14 + src: '/guang/infoManager',
  15 + data: {
  16 + iscreate: true
  17 + }
  18 + }, {
  19 +
  20 + // 资讯管理列表数据
  21 + route: '/guang/article/list',
  22 + method: 'POST',
  23 + url: '/guang/article/getList',
  24 + params: [
  25 + {name: 'articleTitle', type: 'String'},
  26 + {name: 'articleGender', type: 'String'},
  27 + {name: 'authorId', type: 'Number'},
  28 + {name: 'maxSortId', type: 'Number'},
  29 + {name: 'status', type: 'Number'},
  30 + {name: 'orderBy', type: 'String'},
  31 + {name: 'startTime', type: 'String'},
  32 + {name: 'endTime', type: 'String'},
  33 + {name: 'page', type: 'Number'},
  34 + {name: 'size', type: 'Number'}
  35 + ]
  36 + },
  37 + {
  38 + // 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
  39 + route: '/guang/article/operation',
  40 + method: 'POST',
  41 + url: '/guang/article/updateArticle',
  42 + params: [
  43 + {name: 'id', type: 'Number'},
  44 + {name: 'articleTitle', type: 'String'},
  45 + {name: 'articleGender', type: 'String'},
  46 + {name: 'authorId', type: 'Number'},
  47 + {name: 'maxSortId', type: 'Number'},
  48 + {name: 'minSortId', type: 'Number'},
  49 + {name: 'articleSummary', type: 'String'},
  50 + {name: 'coverImage', type: 'String'},
  51 + {name: 'status', type: 'Number'},
  52 + {name: 'coverImageType', type: 'Number'},
  53 + {name: 'articleType', type: 'Number'},
  54 + {name: 'adsImgSize', type: 'String'},
  55 + {name: 'isRecommend', type: 'Number'}
  56 + ]
  57 + },
  58 + {
  59 +
  60 + // 资讯管理-定时
  61 + route: '/guang/article/timmer',
  62 + method: 'POST',
  63 + url: '/guang/article/timePublish',
  64 + params: [
  65 + {name: 'id', type: 'Number'},
  66 + {name: 'publishTime', type: 'String'}
  67 + ]
  68 + },
  69 + {
  70 + // 资讯管理-删除
  71 + route: '/guang/article/del',
  72 + method: 'POST',
  73 + url: '/guang/article/delArticle',
  74 + params: [
  75 + {name: 'id', type: 'Number'}
  76 + ]
  77 + },
  78 +
  79 +
  80 +//=================================【文章分类管理】
  81 +
  82 + {//逛-> 文章分类管理 空白页
  83 + route: '/guang/article/sortindex',
  84 + method: 'GET',
  85 + view: 'pages/guang/articleCategoryManager',
  86 + src: '/guang/articleCategoryManager',
  87 + data: {
  88 + iscreate: true
  89 + }
  90 + }, {
  91 +
  92 + // 文章分类管理列表数据
  93 + route: '/guang/article/categoryist',
  94 + method: 'POST',
  95 + url: '/guang/article/sort/getList',
  96 + params: [
  97 + {name: 'page', type: 'Number'},
  98 + {name: 'size', type: 'Number'}
  99 + ]
  100 + }, {
  101 +
  102 + // 文章分类管理-编辑
  103 + route: '/guang/article/sort/update',
  104 + method: 'POST',
  105 + url: '/guang/article/sort/updateSort',
  106 + params: [
  107 + {name: 'id', type: 'Number'},
  108 + {name: 'parentId', type: 'Number'},
  109 + {name: 'orderBy', type: 'Number'},
  110 + {name: 'status', type: 'Number'},
  111 + {name: 'name', type: 'String'},
  112 + {name: 'advertCode', type: 'String'}
  113 + ]
  114 + }, {
  115 +
  116 + // 文章分类管理-添加
  117 + route: '/guang/article/sort/add',
  118 + method: 'POST',
  119 + url: '/guang/article/sort/addSort',
  120 + params: [
  121 + {name: 'parentId', type: 'Number'},
  122 + {name: 'orderBy', type: 'Number'},
  123 + {name: 'status', type: 'Number'},
  124 + {name: 'name', type: 'String'},
  125 + {name: 'advertCode', type: 'String'}
  126 + ]
  127 + },
  128 + {
  129 +
  130 + // 文章分类管理-删除
  131 + route: '/guang/article/sort/del',
  132 + method: 'POST',
  133 + url: '/guang/article/sort/delSort',
  134 + params: [
  135 + {name: 'id', type: 'Number'}
  136 + ]
  137 + },
  138 +
  139 +//=================================【标签管理】
  140 + {//逛-> 标签管理 空白页
  141 + route: '/guang/tags/index',
  142 + method: 'GET',
  143 + view: 'pages/guang/tagManager',
  144 + src: '/guang/tagManager',
  145 + data: {
  146 + iscreate: true
  147 + }
  148 + },{
  149 +
  150 + // 标签管理列表数据
  151 + route: '/guang/tags/getList',
  152 + method: 'POST',
  153 + url: '/guang/tags/getList',
  154 + params: [
  155 + {name: 'page', type: 'Number'},
  156 + {name: 'size', type: 'Number'},
  157 + {name: 'isHot', type: 'Number'},
  158 + {name: 'status', type: 'Number'},
  159 + {name: 'classifyId', type: 'Number'},
  160 + {name: 'tagName', type: 'String'}
  161 + ]
  162 + }, {
  163 +
  164 + // 标签管理-编辑
  165 + route: '/guang/tags/updateTag',
  166 + method: 'POST',
  167 + url: '/guang/tags/updateTag',
  168 + params: [
  169 + {name: 'id', type: 'Number'},
  170 + {name: 'tagName', type: 'String'},
  171 + {name: 'classifyId', type: 'Number'},
  172 + {name: 'isHot', type: 'Number'},
  173 + {name: 'status', type: 'Number'}
  174 + ]
  175 + }, {
  176 +
  177 + // 标签管理-添加
  178 + route: '/guang/tags/addTag',
  179 + method: 'POST',
  180 + url: '/guang/tags/addTag',
  181 + params: [
  182 + {name: 'tagName', type: 'String'},
  183 + {name: 'classifyId', type: 'Number'},
  184 + {name: 'isHot', type: 'Number'},
  185 + {name: 'status', type: 'Number'}
  186 + ]
  187 + },
  188 + {
  189 +
  190 + // 标签管理-删除
  191 + route: '/guang/tags/delTag',
  192 + method: 'POST',
  193 + url: '/guang/tags/delTag',
  194 + params: [
  195 + {name: 'id', type: 'Number'}
  196 + ]
  197 + },
  198 +
  199 +//=================================【标签分类管理】
  200 + {//逛-> 标签分类管理 空白页
  201 + route: '/guang/tags/sort',
  202 + method: 'GET',
  203 + view: 'pages/guang/tagCategoryManager',
  204 + src: '/guang/tagCategoryManager',
  205 + data: {
  206 + iscreate: true
  207 + }
  208 + }, {
  209 +
  210 + // 标签分类管理列表数据
  211 + route: '/guang/tags/sort/list',
  212 + method: 'POST',
  213 + url: '/guang/tagSort/getList',
  214 + params: [
  215 + {name: 'page', type: 'Number'},
  216 + {name: 'size', type: 'Number'}
  217 + ]
  218 + }, { // 标签分类管理-编辑
  219 + route: '/guang/tags/sort/update',
  220 + method: 'POST',
  221 + url: '/guang/tagSort/updateSort',
  222 + params: [
  223 + {name: 'id', type: 'Number'},
  224 + {name: 'status', type: 'Number'},
  225 + {name: 'orderBy', type: 'Number'},
  226 + {name: 'classifyName', type: 'String'}
  227 + ]
  228 + }, {
  229 +
  230 + // 标签分类管理-添加
  231 + route: '/guang/tags/sort/add',
  232 + method: 'POST',
  233 + url: '/guang/tagSort/addSort',
  234 + params: [
  235 + {name: 'status', type: 'Number'},
  236 + {name: 'orderBy', type: 'Number'},
  237 + {name: 'classifyName', type: 'String'}
  238 + ]
  239 + },
  240 + {
  241 +
  242 + // 标签分类管理-删除
  243 + route: '/guang/tags/sort/del',
  244 + method: 'POST',
  245 + url: '/guang/tagSort/delSort',
  246 + params: [
  247 + {name: 'id', type: 'Number'}
  248 + ]
  249 + },
  250 +
  251 +//=================================【评论管理】
  252 + {//逛-> 评论管理 空白页
  253 + route: '/guang/comments/index',
  254 + method: 'GET',
  255 + view: 'pages/guang/commentManager',
  256 + src: '/guang/commentManager',
  257 + data: {
  258 + iscreate: true
  259 + }
  260 + }, {
  261 +
  262 + // 评论管理列表数据
  263 + route: '/guang/comment/getList',
  264 + method: 'POST',
  265 + url: '/guang/comment/getList',
  266 + params: [
  267 + {name: 'page', type: 'Number'},
  268 + {name: 'size', type: 'Number'},
  269 + {name: 'status', type: 'Number'},
  270 + {name: 'condContent', type: 'String'},
  271 + {name: 'condNum', type: 'Number'}
  272 + ]
  273 + }, {
  274 + // 评论管理-审核
  275 + route: '/guang/comment/audit',
  276 + method: 'POST',
  277 + url: '/guang/comment/audit',
  278 + params: [
  279 + {name: 'id', type: 'String'},
  280 + {name: 'status', type: 'Number'}
  281 + ]
  282 + }, {
  283 + // 评论管理-获取筛选条件
  284 + route: '/guang/comment/getItems',
  285 + method: 'POST',
  286 + url: '/guang/comment/getItems',
  287 +
  288 + },
  289 +
  290 +//=================================【作者管理】
  291 + {//逛-> 作者管理 空白页
  292 + route: '/guang/author/index',
  293 + method: 'GET',
  294 + view: 'pages/guang/authorManager',
  295 + src: '/guang/authorManager',
  296 + data: {
  297 + iscreate: true
  298 + }
  299 + }, {
  300 +
  301 + // 作者管理列表数据
  302 + route: '/guang/author/getList',
  303 + method: 'POST',
  304 + url: '/guang/author/getList',
  305 + params: [
  306 + {name: 'page', type: 'Number'},
  307 + {name: 'size', type: 'Number'}
  308 + ]
  309 + }, {
  310 + // 作者管理-添加
  311 + route: '/guang/author/addAuthor',
  312 + method: 'POST',
  313 + url: '/guang/author/addAuthor',
  314 + params: [
  315 + {name: 'username', type: 'String'},
  316 + {name: 'avatar', type: 'String'},
  317 + {name: 'authorDesc', type: 'String'}
  318 + ]
  319 + }, {
  320 + // 作者管理-编辑
  321 + route: '/guang/author/updateAuthor',
  322 + method: 'POST',
  323 + url: '/guang/author/updateAuthor',
  324 + params: [
  325 + {name: 'uid', type: 'Number'},
  326 + {name: 'username', type: 'String'},
  327 + {name: 'avatar', type: 'String'},
  328 + {name: 'authorDesc', type: 'String'}
  329 + ]
  330 + },
  331 + {
  332 +
  333 + // 作者管理-删除
  334 + route: '/guang/author/delAuthor',
  335 + method: 'POST',
  336 + url: '/guang/author/delAuthor',
  337 + params: [
  338 + {name: 'uid', type: 'Number'}
  339 + ]
  340 + },
  341 +
  342 +//=================================【Plus/Star列表】
  343 + {//逛->Plus/Star列表 空白页
  344 + route: '/guang/plustar/index',
  345 + method: 'GET',
  346 + view: 'pages/guang/plusStarManager',
  347 + src: '/guang/plusStarManager',
  348 + //view: 'pages/guang/plusStarCategory',
  349 + //src: '/guang/plusStarCategory',
  350 + data: {
  351 + iscreate: true
  352 + }
  353 + },{
  354 +
  355 + // Plus/Star 列表数据
  356 + route: '/guang/plustar/getList',
  357 + method: 'POST',
  358 + url: '/guang/plustar/getList',
  359 + params: [
  360 + {name: 'page', type: 'Number'},
  361 + {name: 'size', type: 'Number'},
  362 + {name: 'brandType', type: 'String'},
  363 + {name: 'status', type: 'String'},
  364 + {name: 'brandId', type: 'String'},
  365 + {name: 'gender', type: 'String'}
  366 + ]
  367 + }, {
  368 + // Plus/Star列表-添加
  369 + route: '/guang/plustar/addPlustar',
  370 + method: 'POST',
  371 + url: '/guang/plustar/addPlustar',
  372 + params: [
  373 + {name: 'brandType', type: 'String'},
  374 + {name: 'status', type: 'String'},
  375 + {name: 'brandId', type: 'String'},
  376 + {name: 'gender', type: 'String'},
  377 + {name: 'coverImg', type: 'String'},
  378 + {name: 'bannerImg', type: 'String'},
  379 + {name: 'bannerTitle', type: 'String'},
  380 + {name: 'orderBy', type: 'String'}
  381 + ]
  382 + },{
  383 + // Plus/Star列表-修改
  384 + route: '/guang/plustar/updatePlustar',
  385 + method: 'POST',
  386 + url: '/guang/plustar/updatePlustar',
  387 + params: [
  388 + {name: 'id', type: 'String'},
  389 + {name: 'brandType', type: 'String'},
  390 + {name: 'status', type: 'String'},
  391 + {name: 'brandId', type: 'String'},
  392 + {name: 'gender', type: 'String'},
  393 + {name: 'coverImg', type: 'String'},
  394 + {name: 'bannerImg', type: 'String'},
  395 + {name: 'bannerTitle', type: 'String'},
  396 + {name: 'orderBy', type: 'String'}
  397 + ]
  398 + }, {
  399 + // Plus/Star列表-编辑
  400 + route: '/guang/plustar/getDetail',
  401 + method: 'POST',
  402 + url: '/guang/plustar/getDetail',
  403 + params: [
  404 + {name: 'id', type: 'Number'},
  405 + {name: 'brandType', type: 'String'},
  406 + {name: 'status', type: 'String'},
  407 + {name: 'brandId', type: 'String'},
  408 + {name: 'gender', type: 'String'},
  409 + {name: 'coverImg', type: 'String'},
  410 + {name: 'bannerImg', type: 'String'},
  411 + {name: 'bannerTitle', type: 'String'},
  412 + {name: 'orderBy', type: 'String'}
  413 + ]
  414 + },{
  415 +
  416 + // Plus/Star列表-删除
  417 + route: '/guang/plustar/delPlustar',
  418 + method: 'POST',
  419 + url: '/guang/plustar/delPlustar',
  420 + params: [
  421 + {name: 'id', type: 'Number'}
  422 + ]
  423 + },
  424 +
  425 +
  426 +//=================================【Plus/Star分类】
  427 + {//逛->Plus/Star分类 空白页
  428 + route: '/guang/plustarcategory/index',
  429 + method: 'GET',
  430 + view: 'pages/guang/plusStarCategory',
  431 + src: '/guang/plusStarCategory',
  432 + data: {
  433 + iscreate: true
  434 + }
  435 + },{
  436 +
  437 + // Plus/Star分类 列表数据
  438 + route: '/guang/plustarcategory/getList',
  439 + method: 'POST',
  440 + url: '/guang/plustarcategory/getList',
  441 + params: [
  442 + {name: 'page', type: 'Number'},
  443 + {name: 'size', type: 'Number'},
  444 + {name: 'status', type: 'Number'}
  445 +
  446 + ]
  447 + }, {
  448 + // Plus/Star分类列表-添加
  449 + route: '/guang/plustarcategory/addCategory',
  450 + method: 'POST',
  451 + url: '/guang/plustarcategory/addCategory',
  452 + params: [
  453 + {name: 'categoryName', type: 'String'},
  454 + {name: 'contentCode', type: 'String'},
  455 + {name: 'contentCodeFoot', type: 'String'}
  456 + ]
  457 + }, {
  458 + // Plus/Star分类列表-编辑&开启&关闭
  459 + route: '/guang/plustarcategory/updateCategory',
  460 + method: 'POST',
  461 + url: '/guang/plustarcategory/updateCategory',
  462 + params: [
  463 + {name: 'id', type: 'Number'},
  464 + {name: 'status', type: 'Number'},
  465 + {name: 'categoryName', type: 'String'},
  466 + {name: 'contentCode', type: 'String'},
  467 + {name: 'contentCodeFoot', type: 'String'}
  468 + ]
  469 + },
  470 +
  471 +//=================================【品牌关注】
  472 + {//逛->品牌关注 空白页
  473 + route: '/guang/relationship/index',
  474 + method: 'GET',
  475 + view: 'pages/guang/brandConcern',
  476 + src: '/guang/brandConcern',
  477 + data: {
  478 + iscreate: true
  479 + }
  480 + },{
  481 +
  482 + // 品牌关注 列表数据
  483 + route: '/guang/relationship/getList',
  484 + method: 'POST',
  485 + url: '/guang/relationship/getList',
  486 + params: [
  487 + {name: 'page', type: 'Number'},
  488 + {name: 'size', type: 'Number'},
  489 + {name: 'brandType', type: 'String'},
  490 + {name: 'status', type: 'String'},
  491 + {name: 'brandId', type: 'String'},
  492 + {name: 'gender', type: 'String'},
  493 + ]
  494 + }, {
  495 + // 品牌关注-添加
  496 + route: '/guang/relationship/addRel',
  497 + method: 'POST',
  498 + url: '/guang/relationship/addRel',
  499 + params: [
  500 + {name: 'brandType', type: 'Number'},
  501 + {name: 'activityName', type: 'String'},
  502 + {name: 'brandId', type: 'String'},
  503 + {name: 'discount', type: 'Number'},
  504 + {name: 'activityImg', type: 'String'},
  505 + ]
  506 + }, {
  507 + // 品牌关注列表-编辑
  508 + route: '/guang/relationship/updateRel',
  509 + method: 'POST',
  510 + url: '/guang/relationship/updateRel',
  511 + params: [
  512 + {name: 'id', type: 'Number'},
  513 + {name: 'brandType', type: 'Number'},
  514 + {name: 'activityName', type: 'String'},
  515 + {name: 'brandId', type: 'String'},
  516 + {name: 'discount', type: 'Number'},
  517 + {name: 'activityImg', type: 'String'},
  518 + ]
  519 + },
  520 + {
  521 +
  522 + // 品牌关注列表-删除
  523 + route: '/guang/relationship/delRel',
  524 + method: 'POST',
  525 + url: '/guang/relationship/delRel',
  526 + params: [
  527 + {name: 'id', type: 'Number'}
  528 + ]
  529 + },
  530 +//================================= [下拉框调用的接口]
  531 + {// 作者
  532 + route: '/guang/article/getAuthorList',
  533 + method: 'POST',
  534 + url: '/guang/article/getAuthorList',
  535 + params: [
  536 + {name: 'idName', type: 'String'},
  537 + ]
  538 + },
  539 +
  540 + {// 所有分类
  541 + route: '/guang/article/getSortList',
  542 + method: 'POST',
  543 + url: '/guang/article/getSortList',
  544 +
  545 + },
  546 +
  547 + {// 根据是否启用获取标签分类列表
  548 + route: '/guang/tagSort/getTagItems',
  549 + method: 'POST',
  550 + url: '/guang/tagSort/getTagItems',
  551 + params: [
  552 + {name: 'status', type: 'Number'},
  553 + {name: 'idName', type: 'String'}
  554 +
  555 + ]
  556 +
  557 + },
  558 +
  559 + {// plus star 频道
  560 + route: '/guang/plustarcategory/getCategoryNames',
  561 + method: 'POST',
  562 + url: '/guang/plustarcategory/getCategoryNames',
  563 + params: [
  564 + {name: 'status', type: 'Number'},
  565 + ]
  566 + },
  567 + {
  568 + route:'/guang/article/contentAdd',
  569 + method:'GET',
  570 + view:'pages/guang/contentEdit',
  571 + src:'/guang/contentEdit',
  572 + data:{
  573 + action:"/guang/article/addArticle",
  574 + pageTitle:"添加文章"
  575 + }
  576 + },
  577 + {
  578 + route: "/guang/article/addArticle",
  579 + method:"POST",
  580 + url:"/guang/article/addArticle",
  581 + params:[
  582 + {name:"articleTitle",type:"String"},
  583 + {name:"articleGender",type:"String"},
  584 + {name:"authorId",type:"Number"},
  585 + {name:"maxSortId",type:"Number"},
  586 + {name:"minSortId",type:"Number"},
  587 + {name:"articleSummary",type:"String"},
  588 + {name:"coverImage",type:"String"},
  589 + {name:"coverImageType",type:"Number"},
  590 + {name:"articleType",type:"Number"},
  591 + {name:"adsImgSize",type:"String"},
  592 + {name:"url",type:"String"},
  593 + {name:"contentData",type:"String"},
  594 + {name:"brands",type:"String"},
  595 + {name:"tag",type:"String"}
  596 + ]
  597 + },
  598 + {
  599 + route: "/guang/article/updateArticle",
  600 + method:"POST",
  601 + url:"/guang/article/updateArticle",
  602 + params:[
  603 + {name:"id",type:"Number"},
  604 + {name:"articleTitle",type:"String"},
  605 + {name:"articleGender",type:"String"},
  606 + {name:"authorId",type:"Number"},
  607 + {name:"maxSortId",type:"Number"},
  608 + {name:"minSortId",type:"Number"},
  609 + {name:"articleSummary",type:"String"},
  610 + {name:"coverImage",type:"String"},
  611 + {name:"coverImageType",type:"Number"},
  612 + {name:"articleType",type:"Number"},
  613 + {name:"adsImgSize",type:"String"},
  614 + {name:"url",type:"String"},
  615 + {name:"contentData",type:"String"},
  616 + {name:"brands",type:"String"},
  617 + {name:"tag",type:"String"}
  618 + ]
  619 + },
  620 + {
  621 + route:'/guang/article/contentEdit/:id',
  622 + method:'GET',
  623 + view:'pages/guang/contentEdit',
  624 + src:'/guang/contentEdit',
  625 + data:{
  626 + action:"/guang/article/updateArticle",
  627 + pageTitle:"修改文章"
  628 + },
  629 + params:[
  630 + {name:"id",type:"Number"}
  631 + ]
  632 + },
  633 + {
  634 + route:'/guang/article/getDetail',
  635 + method:'POST',
  636 + url:'/guang/article/getDetail',
  637 + params:[
  638 + {name:"id",type:"Number"}
  639 + ]
  640 + },
  641 + {
  642 + route:'/guang/tags/getTags',
  643 + method:'POST',
  644 + url:'/guang/tags/getTags'
  645 + }
  646 +];
  647 +
  648 +
  1 +/**
  2 + * Created by ty on 2016/3/30.
  3 + * 资源管理路由
  4 + */
  5 +
  6 +exports.domain = require('../config/common.js').domain;
  7 +//exports.domain = 'http://172.16.6.115:8080/platform';//王伟
  8 +//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
  9 +//exports.domain = 'http://172.16.6.231:8080/platform';
  10 +//exports.domain = 'http://172.16.6.225:8080/platform';
  11 +//exports.domain = 'http://192.168.102.216:8086/platform';
  12 +
  13 +exports.res = [
  14 + {
  15 + route: "/resource/index/index",
  16 + method: "GET",
  17 + view: "pages/sourceManage/resourceManage",
  18 + src: "/sourceManage/resourceManage"
  19 + },
  20 + {
  21 + route: "/resources/queryResource",
  22 + method: "POST",
  23 + url: "/resources/queryResource",
  24 + params: [
  25 + {name: "id", type: "number"},
  26 + {name: "name", type: "string"},
  27 + {name: "sortId", type: "number"},
  28 + {name: "platformId", type: "number"},
  29 + {name: "page", type: "number"}
  30 + ]
  31 + },
  32 + {
  33 + route: "/resources/getResSorts",
  34 + method: "POST",
  35 + url: "/resources/getResSorts",
  36 + params: []
  37 + },
  38 + {
  39 + route: "/resources/getResPlatforms",
  40 + method: "POST",
  41 + url: "/resources/getResPlatforms",
  42 + params: []
  43 + },
  44 + {
  45 + route: "/resources/saveResource",
  46 + method: "POST",
  47 + url: "/resources/saveResource",
  48 + params: [
  49 + {name: "id", type: "number"},
  50 + {name: "name", type: "string"},
  51 + {name: "sortId", type: "number"},
  52 + {name: "platformId", type: "number"},
  53 + {name: "matchCode", type: "string"}
  54 + ]
  55 + },
  56 + {//根据id删除资源位
  57 + route: "/resources/deleteResourceById",
  58 + method: "POST",
  59 + url: "/resources/deleteResourceById",
  60 + params: [
  61 + {name: "id", type: "number"}
  62 + ]
  63 + },
  64 + {//删除资源位下所有tab
  65 + route: "/resources/deleteAllResourceByCode",
  66 + method: "POST",
  67 + url: "/resources/deleteAllResourceByCode",
  68 + params: [
  69 + {name: "code", type: "string"}
  70 + ]
  71 + },
  72 + {
  73 + //资源内容页面
  74 + route: '/resource/content/index/:param',
  75 + method: 'GET',
  76 + view: 'pages/sourceManage/resourceContentManage',
  77 + src: '/sourceManage/resourceContentManage',
  78 + //url: '/resources/getUrlAction',
  79 + //params:[]
  80 + },
  81 + {
  82 + route: "/resources/resContentIndex",
  83 + method: "POST",
  84 + url: "/resources/resContentIndex",
  85 + params: [
  86 + {name: "id", type: "number"}
  87 + ]
  88 + },
  89 + {
  90 + route: "/resources/addResContent",
  91 + method: "POST",
  92 + url: "/resources/addResContent",
  93 + params: [
  94 + {name: "content", type: "string"},
  95 + {name: "data_id", type: "string"},
  96 + {name: "rId", type: "number"}
  97 + ]
  98 + },
  99 + {
  100 + route: "/resources/delResContent",
  101 + method: "POST",
  102 + url: "/resources/delResContent",
  103 + params: [
  104 + {name: "id", type: "number"}
  105 + ]
  106 + },
  107 + //验证领券码
  108 + {
  109 + route: "/coupon/batchCheckCoupons",
  110 + method: "POST",
  111 + url: "/coupon/batchCheckCoupons",
  112 + params: [
  113 + {name: "params", type: "string"}
  114 + ]
  115 + },
  116 + {//复制资源内容
  117 + route: "/resources/copyResContent",
  118 + method: "POST",
  119 + url: "/resources/copyResContent",
  120 + params: [
  121 + {name: "rId", type: "string"}
  122 + ]
  123 + },
  124 + {//更新预发布时间
  125 + route: "/resources/updateResPublishTime",
  126 + method: "POST",
  127 + url: "/resources/updateResPublishTime",
  128 + params: [
  129 + {name: "id", type: "number"},
  130 + {name: "time", type: "string"}
  131 + ]
  132 + }
  133 +];