category.js 2.94 KB
/**
 * Created by ty on 2016/6/21.
 * 分类管理
 */

module.exports={
    namespace:"category",
    apis:{
        getCategoryList:{
            title: "分类列表",
            url: "/category/getCategoryList",
            params: [
                {name: "platform", type: "string"},
                {name: "status", type: "string"}
            ]
        },
        updateCategoryStatus:{
            title: "更新分类状态",
            url: "/category/updateCategoryStatus",
            params: [
                {name: "id", type: "number"},
                {name: "status", type: "number"}
            ]
        },
        getOneCategory:{
            title: "根据id获取分类对象",
            url: "/category/getOneCategory",
            params:[
                {name:'id', type:'number'}
            ]
        },
        addCategory:{
            title: "添加分类",
            url: "/category/addCategory",
            params:[
                {name: "sortName", type: "string"},
                {name: "sortNameEn", type: "string"},
                {name: "sortIco", type: "string"},
                {name: "sortIcoBig", type: "string"},
                {name: "sortUrl", type: "string"},
                {name: "firstSortId", type: "string"},
                {name: "secondSortId", type: "string"},
                {name: "threadSortId", type: "string"},
                {name: "platform", type: "string"},
                {name: "orderBy", type: "string"},
                {name: "isNew", type: "string"},
                {name: "isHot", type: "string"},
                {name: "contentCode", type: "string"},
                {name: "separativeSign", type: "string"},
                {name: "sortNameColor", type: "string"},
                {name: "isNewPage", type: "string"}
            ]
        },
        updateCategory:{
            title: "修改分类",
            url: "/category/updateCategory",
            params:[
                {name: "id", type: "number"},
                {name: "sortName", type: "string"},
                {name: "sortNameEn", type: "string"},
                {name: "sortIco", type: "string"},
                {name: "sortIcoBig", type: "string"},
                {name: "sortUrl", type: "string"},
                {name: "firstSortId", type: "string"},
                {name: "secondSortId", type: "string"},
                {name: "threadSortId", type: "string"},
                {name: "platform", type: "string"},
                {name: "orderBy", type: "string"},
                {name: "isNew", type: "string"},
                {name: "isHot", type: "string"},
                {name: "contentCode", type: "string"},
                {name: "separativeSign", type: "string"},
                {name: "sortNameColor", type: "string"},
                {name: "isNewPage", type: "string"}
            ]
        },
        getCategories:{
            title: "获取分类列表",
            url: "/category/getCategories"
        }
    }
}