resource.resource.js 3.31 KB
/**
 * Created by ty on 2016/6/20.
 * 资源管理
 */

module.exports={
    namespace:"resourceManage",
    apis:{
        queryResource:{
            title: "资源管理列表",
            url: "/resources/queryResource",
            params: [
                {name: "id", type: "number"},
                {name: "name", type: "string"},
                {name: "sortId", type: "number"},
                {name: "platformId", type: "number"},
                {name: "page", type: "number"}
            ]
        },
        getResSorts:{
            title: "获取资源分类列表",
            url: "/resources/getResSorts"
        },
        getResPlatforms:{
            title: "获取平台列表",
            url: "/resources/getResPlatforms"
        },
        saveResource:{
            title: "添加/修改资源",
            url: "/resources/saveResource",
            params: [
                {name: "id", type: "number"},
                {name: "name", type: "string"},
                {name: "sortId", type: "number"},
                {name: "platformId", type: "number"},
                {name: "matchCode", type: "string"}
            ]
        },
        deleteResourceById:{
            title: "根据id删除资源位",
            url: "/resources/deleteResourceById",
            params: [
                {name: "id", type: "number"}
            ]
        },
        deleteAllResourceByCode:{
            title: "删除资源位下所有tab",
            url: "/resources/deleteAllResourceByCode",
            params: [
                {name: "code", type: "string"}
            ]
        },
        getUrlAction:{
            title: "获取跳转链接",
            url: "/resources/getUrlAction"
        },
        resContentIndex:{
            title: "根据id获取资源内容",
            url: "/resources/resContentIndex",
            params: [
                {name: "id", type: "number"}
            ]
        },
        addResContent:{
            title: "添加资源内容",
            url: "/resources/addResContent",
            params: [
                {name: "content", type: "string"},
                {name: "data_id", type: "string"},
                {name: "rId", type: "number"}
            ]
        },
        delResContent:{
            title: "根据id删除资源内容楼层",
            url: "/resources/delResContent",
            params: [
                {name: "id", type: "number"}
            ]
        },
        batchCheckCoupons:{
            title: "验证领券码",
            url: "/coupon/batchCheckCoupons",
            params: [
                {name: "params", type: "string"}
            ]
        },
        copyResContent:{
            title: "复制资源内容",
            url: "/resources/copyResContent",
            params: [
                {name: "rId", type: "string"}
            ]
        },
        updateResPublishTime:{
            title: "更新预发布时间",
            url: "/resources/updateResPublishTime",
            params: [
                {name: "id", type: "number"},
                {name: "time", type: "string"}
            ]
        },
        querySpecialActivityByIDs:{
            title: "根据 ids 查询活动",
            url: "/activity/querySpecialActivityByIDs",
            params: [
                {name: "ids", type: "string"}
            ]
        }
    }
}