guang.js 2.28 KB
/**
 * Created by wangqianjun on 16/3/22.
 * Interface for Guang Model
 */

exports.domain =require('../config/common.js').domain;
//【资讯管理】
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'}
        ]
    }, {

        // 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
        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/getAuthorList',
        method:'POST',
        url: '/guang/article/getAuthorList',
        params:[
            {name: 'idName',type: 'String'},
        ]
    },

    {// 所有分类
        route:'/guang/article/getSortList',
        method:'POST',
        url: '/guang/article/getSortList',

    },





];