icon.js 1.76 KB
/**
 * Created by ty on 2016/7/5.
 * app图标管理
 */

module.exports={
    namespace:"icon",
    apis:{
        getList:{
            title: "查询图标列表",
            url: '/icon/getList',
            params: [
                {name: 'type', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'icoName', type: 'string'}
            ]
        },
        addIcon:{
            title: "添加图标",
            url: '/icon/addIcon',
            params: [
                {name: 'icoName', type: 'string'},
                {name: 'defaultIco', type: 'string'},
                {name: 'ico', type: 'string'},
                {name: 'icoKey', type: 'string'},
                {name: 'type', type: 'number'}
            ]
        },
        getOneIcon:{
            title: "根据ID获取图标信息",
            url: '/icon/getOneIcon',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        updateIcon:{
            title: "更新图标信息",
            url: '/icon/updateIcon',
            params: [
                {name: 'id', type: 'number'},
                {name: 'icoName', type: 'string'},
                {name: 'defaultIco', type: 'string'},
                {name: 'ico', type: 'string'},
                {name: 'icoKey', type: 'string'},
                {name: 'type', type: 'number'}
            ]
        },
        publishIcon:{
            title: "开启图标入口",
            url: '/icon/publishIcon',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        closeIcon:{
            title: "关闭图标入口",
            url: '/icon/closeIcon',
            params: [
                {name: 'id', type: 'number'}
            ]
        }
    }
}