notice.js 1.93 KB
/**
 * Created by ty on 2016/6/23.
 * 公告管理
 */

module.exports={
    namespace:"notice",
    apis:{
        getList:{
            title: "获取公告列表",
            url: '/notice/getList',
            params: [
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number'},
                {name: 'title', type: 'string'},
                {name: 'position', type: 'Number'},
                {name: 'showChannel', type: 'string'}
            ]
        },
        addNotice:{
            title: "添加公告",
            url: '/notice/addNotice',
            params: [
                {name: 'title', type: 'string'},
                {name: 'position', type: 'Number'},
                {name: 'showChannels', type: 'string'},
                {name: 'url', type: 'string'},
                {name: 'img', type: 'string'},
                {name: 'startTime', type: 'Number'},
                {name: 'endTime', type: 'Number'}
            ]
        },
        setStatus:{
            title: "更改公告状态",
            url: '/notice/setStatus',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'status', type: 'Number'}
            ]
        },
        updateNotice:{
            title: "更新公告",
            url: '/notice/updateNotice',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'title', type: 'string'},
                {name: 'position', type: 'Number'},
                {name: 'showChannels', type: 'string'},
                {name: 'url', type: 'string'},
                {name: 'img', type: 'string'},
                {name: 'startTime', type: 'Number'},
                {name: 'endTime', type: 'Number'}
            ]
        },
        delNotice:{
            title: "删除公告",
            url: '/notice/delNotice',
            params: [
                {name: 'id', type: 'Number'}
            ]
        }
    }
}