search.js 5.83 KB
/**
 * Created by ty on 2016/6/23.
 * 销售类目
 */

module.exports={
    namespace:"operationsSearch",
    apis:{
        getPositionList:{
            title: "广告位置列表",
            url: '/operations/search/getPositionList',
            params: [
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number'}
            ]
        },
        updatePositionInfo:{
            title: "修改位置状态",
            url: '/operations/search/updatePositionInfo',
            params: [
                {name: 'id', type: 'number'},
                {name: 'status', type: 'number'},
                {name: 'title', type: 'string'}
            ]
        },
        selectPostionById:{
            title: "修改位置状态",
            url: '/operations/search/selectPostionById',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        insertPositionInfo:{
            title: "修改位置状态",
            url: '/operations/search/insertPositionInfo',
            params: [
                {name: 'title', type: 'string'}
            ]
        },
        queryPositionListForDown:{
            title: "修改位置状态",
            url: '/operations/search/queryPositionListForDown',
            params: [
                
            ]
        },

        getTempletList:{
            title: "广告模板列表",
            url: '/operations/search/getTempletList',
            params: [
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number'}
            ]
        },
        selectTempletById:{
            title: "获取模板详情",
            url: '/operations/search/selectTempletById',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        updateTempletInfo:{
            title: "修改模板信息",
            url: '/operations/search/updateTempletInfo',
            params: [
                {name: 'id', type: 'number'},
                {name: 'caption', type: 'string'},
                {name: 'templet', type: 'string'},
                {name: 'status', type: 'string'}
            ]
        },
        updateTempletStatus:{
            title: "修改模板状态",
            url: '/operations/search/updateTempletStatus',
            params: [
                {name: 'id', type: 'number'},
                {name: 'status', type: 'number'}
            ]
        },
        insertTemplet:{
            title: "新增模板",
            url: '/operations/search/insertTemplet',
            params: [
                {name: 'caption', type: 'string'},
                {name: 'templet', type: 'string'}
            ]
        },
        queryTempletListForDown:{
            title: "新增模板",
            url: '/operations/search/queryTempletListForDown',
            params: [
            ]
        },


        getBannerList:{
            title: "广告管理列表",
            url: '/operations/search/getBannerList',
            params: [
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number'},
                {name: 'positionId', type: 'number'},
                {name: 'caption', type: 'string'}
            ]
        },
        selectBannerById:{
            title: "获取广告管理详情",
            url: '/operations/search/selectBannerById',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        updateBannerInfo:{
            title: "修改广告管理信息",
            url: '/operations/search/updateBannerInfo',
            params: [
                {name: 'id', type: 'number'},
                {name: 'positionId', type: 'number'},
                {name: 'templetId', type: 'number'},
                {name: 'maxSortId', type: 'number'},
                {name: 'middleSortId', type: 'number'},
                {name: 'smallSortId', type: 'number'},
                {name: 'gender', type: 'number'},
                {name: 'sizeId', type: 'number'},
                {name: 'brand', type: 'string'},
                {name: 'price', type: 'string'},
                {name: 'style', type: 'string'},
                {name: 'color', type: 'number'},
                {name: 'data', type: 'string'},
                {name: 'caption', type: 'string'},
                {name: 'content', type: 'string'}
            ]
        },
        updateBannerStatus:{
            title: "修改广告管理状态",
            url: '/operations/search/updateBannerStatus',
            params: [
                {name: 'id', type: 'number'},
                {name: 'status', type: 'number'}
            ]
        },
        insertBanner:{
            title: "新增广告管理",
            url: '/operations/search/insertBanner',
            params: [
                {name: 'positionId', type: 'number'},
                {name: 'templetId', type: 'number'},
                {name: 'maxSortId', type: 'number'},
                {name: 'middleSortId', type: 'number'},
                {name: 'smallSortId', type: 'number'},
                {name: 'gender', type: 'number'},
                {name: 'sizeId', type: 'number'},
                {name: 'brand', type: 'string'},
                {name: 'price', type: 'string'},
                {name: 'style', type: 'string'},
                {name: 'color', type: 'number'},
                {name: 'data', type: 'string'},
                {name: 'caption', type: 'string'},
                {name: 'content', type: 'string'}
            ]
        },
        delBannerById:{
            title: "新增广告管理",
            url: '/operations/search/delBannerById',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        queryAllStyle:{
            title: "查询所有风格",
            url: '/operations/search/queryAllStyle',
            params: [
            ]
        }
    }
}