netsale.js 12.8 KB
/**
 * Created by ty on 2016/5/18.
 */
module.exports={
    namespace:"netsale",
    apis:{
        queryNetSaleInforList:{
            title:"网销信息列表数据",
            url:"/product/queryNetSaleInforList",
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'productSkc',type: 'number'},
                {name: 'productSku',type: 'number'},
                {name: 'productName',type: 'string'},
                {name: 'shopId',type: 'number'},
                {name: 'brandId',type: 'number'},
                {name: 'isJit',type: 'string'},
                {name: 'stock',type: 'number'},
                {name: 'isScreen',type: 'string'},
                {name: 'isMeasure',type: 'string'},
                {name: 'gender',type: 'number'},
                {name: 'maxSortId',type: 'number'},
                {name: 'middleSortId',type: 'number'},
                {name: 'smallSortId',type: 'number'},
                {name: 'isOutLets',type: 'string'},
                {name: 'productStatus',type: 'number'},
                {name: 'page',type: 'number'},
                {name: 'size',type: 'number'},
                {name: 'productStatusStr',type: 'string'},
                {name: 'isInfoMiss',type: 'string'},
                {name: 'sortFlag',type: 'number'},
                {name: 'descFlag',type: 'string'},
                {name:'isAdvance',type:'string'},
                {name:'skcOnsaleStatus',type:'string'},
                {name:'factoryCode',type:'String'}
            ]
        },
        queryTabProductNum: {
            title: "网销信息tab页",
            url: "/product/queryTabProductNum",
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'productSkc',type: 'number'},
                {name: 'productSku',type: 'number'},
                {name: 'productName',type: 'string'},
                {name: 'shopId',type: 'number'},
                {name: 'brandId',type: 'number'},
                {name: 'isJit',type: 'string'},
                {name: 'stock',type: 'number'},
                {name: 'isScreen',type: 'string'},
                {name: 'isMeasure',type: 'string'},
                {name: 'gender',type: 'number'},
                {name: 'maxSortId',type: 'number'},
                {name: 'middleSortId',type: 'number'},
                {name: 'smallSortId',type: 'number'},
                {name: 'isOutLets',type: 'string'},
                {name: 'productStatus',type: 'number'},
                {name: 'productStatusStr',type: 'string'},
                {name: 'isInfoMiss',type: 'string'},
                {name: 'sortFlag',type: 'number'},
                {name: 'descFlag',type: 'string'},
                {name:'isAdvance',type:'string'},
                {name:'skcOnsaleStatus',type:'string'},
                {name:'factoryCode',type:'String'}
            ]
        },
        updateProductSknTimingInfo:{
            title: "批量skn处理",
            url: "/product/updateProductSknTimingInfo",
            params: [
                {name: 'productSknList',type: 'string'},
                {name: 'type',type: 'number'},
                {name: 'outSaleTime',type: 'number'},
                {name: 'shelveTime',type: 'string'},
                {name: 'onNewTime',type: 'string'},
                {name: 'advanceBeginTime',type: 'string'},
                {name: 'advanceEndTime',type: 'string'}
            ]
        },
        updateGoodsStatus:{
            title: "skc上下架",
            url: "/product/updateGoodsStatus",
            params: [
                {name: 'productSkc',type: 'number'},
                {name: 'targetStatus',type: 'number'}
            ]
        },
        updateProductSkuStatus:{
            title: "sku上下架",
            url: "/product/updateProductSkuStatus",
            params: [
                {name: 'productSku',type: 'number'},
                {name: 'targetStatus',type: 'number'}
            ]
        },
        getNetSaleInfo:{
            title:'查询网销详情',
            url: '/product/getNetSaleInfo',
            params:[
                {name:'param',type: 'number'}
            ]
        },
        saveNetSaleAllInfo:{
            title:'保存完整网销信息',
            url: '/product/saveNetSaleAllInfo',
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'productName',type: 'string'},
                {name: 'isNew',type: 'string'},
                {name: 'sellChannels',type: 'string'},
                {name: 'phrase',type: 'string'},
                {name: 'outSaleTime',type: 'string'},
                {name: 'shopIds',type: 'string'},
                {name: 'productDesc',type: 'string'},
                {name: 'vedioUrl',type: 'string'},
                {name: 'recommend',type: 'string'},
                {name: 'brandModel',type: 'string'},
                {name: 'brandSeries',type: 'string'},
                {name: 'makeCrafts',type: 'string'},
                {name: 'pattern',type: 'string'},
                {name: 'style',type: 'string'},
                {name: 'salesPhrase',type: 'string'},
                {name: 'isHostsell',type: 'string'},
                {name: 'wearSense',type: 'string'},
                {name: 'searchSortList',type: 'string'},
                {name: 'searchKeys',type: 'string'},
                {name: 'brandRelationList',type: 'string'},
                {name: 'attributeProValuesOne',type: 'string'},
                {name: 'attributeProValuesTwo',type: 'string'},
                {name: 'goodsImagesReq',type: 'string'},
                {name: 'productStandardRelationStr',type: 'string'},
                {name: 'productMaterial',type: 'string'}
            ]
        },
        saveNetSaleBaseInfo:{
            title:'保存基本信息接口',
            url: '/product/saveNetSaleBaseInfo',
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'productName',type: 'string'},
                {name: 'isNew',type: 'string'},
                {name: 'sellChannels',type: 'string'},
                {name: 'phrase',type: 'string'},
                {name: 'outSaleTime',type: 'number'},
                {name: 'shopIds',type: 'string'}
            ]
        },
        saveAfterSaleInfo:{
            title:'保存上架后补全信息',
            url: '/product/saveAfterSaleInfo',
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'brandModel',type: 'string'},
                {name: 'brandSeries',type: 'string'},
                {name: 'makeCrafts',type: 'string'},
                {name: 'salesPhrase',type: 'string'},
                {name: 'isHostsell',type: 'string'},
                {name: 'wearSense',type: 'string'},
                {name: 'attributeProValuesTwo',type: 'string'}
            ]
        },
        queryAttributesByConf:{
            title:'查询补全信息',
            url: '/product/queryAttributesByConf',
            params: [
                {name: 'categoryId',type: 'number'},
                {name: 'displayPosition',type: 'number'},
                {name: 'saleType',type: 'number'}
            ]
        },
        saveProductDesc:{
            title:'商品描述',
            url: '/product/saveProductDesc',
            params: [
                {name: 'productSkn',type: 'Number'},
                {name: 'productDesc',type: 'String'}
            ]
        },
        queryArticlesBySKN:{
            title:'小编推荐',
            url: '/guang/article/queryArticlesBySKN',
            params: [
                {name: 'productSkn',type: 'string'}
            ]
        },
        selectCollocationListBySkn:{
            title:'查询搭配列表',
            url:'/collocation/selectCollocationListBySkn',
            params: [
                {name: 'productSkn',type: 'Number'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        },
        selectCollocationById:{
            title:'获取单个搭配',
            url: '/collocation/selectCollocationById',
            params: [
                {name: 'param',type: 'Number'}
            ]
        },
        insertCollocation:{
            title:'添加单个搭配',
            url: '/collocation/insertCollocation',
            params: [
                {name: 'productSkn',type: 'Number'},
                {name: 'imageUrl',type: 'String'},
                {name: 'content',type: 'String'},
                {name: 'infoStr',type: 'String'}
            ]
        },
        updateCollocation:{
            title:'更新单个搭配',
            url: '/collocation/updateCollocation',
            params: [
                {name: 'id',type: 'Number'},
                {name: 'imageUrl',type: 'String'},
                {name: 'content',type: 'String'},
                {name: 'infoStr',type: 'String'}
            ]
        },
        delCollocationById:{
            title:'删除单个搭配',
            url: '/collocation/delCollocationById',
            params: [
                {name: 'param',type: 'Number'}
            ]
        },
        queryProductPhotoList:{
            title:'调用图片',
            url: '/productPhoto/queryProductPhotoList',
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'productSkc',type: 'number'},
                {name: 'productSku',type: 'number'},
                {name: 'startTime',type: 'number'},
                {name: 'endTime',type: 'number'}
            ]
        },
        manageProductImg:{
            title:'单独维护封面信息',
            url: '/product/manageProductImg',
            params: [
                {name: 'goodsImagesReq',type: 'string'}
            ]
        },
        queryHotSearchTerms:{
            title:'查找热搜词',
            url: '/searchWords/queryHotSearchTerms',
            params: [
                {name: 'page',type: 'number'},
                {name: 'size',type: 'number'}
            ]
        },
        saveNetSaleSearchKeys:{
            title:'保存搜索关键词',
            url: '/product/saveNetSaleSearchKeys',
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'searchKeys',type: 'string'}
            ]
        },
        queryProdSizeList:{
            title:'拍摄复尺列表',
            url: '/productSize/queryProdSizeList',
            params: [
                {name: "page",type: "number"},
                {name: "productSkn",type: "number"},
                {name: "brandId",type: "number"},
                {name: "productSku",type: "number"},
                {name: "maxSortId",type: "number"},
                {name: "arriveStartTime",type: "number"},
                {name: "arriveEndTime",type: "number"},
                {name: "isMeasure",type: "string"}
            ]
        },
        saveProdSizeInfo:{
            title:'保存拍摄复尺',
            url: '/productSize/saveProdSizeInfo',
            params: [
                {name: "productSkn",type: "number"},
                {name: "sizeInfoList",type: "string"},
                {name: "productSizeReferList",type: "string"},
                {name: "noMeasureIds",type: "string"}
            ]
        },
        queryAllBySortId4Html:{
            title:'',
            url: '/standard/queryAllBySortId4Html',
            params: [
                {name: 'param',type: 'Number'},
                {name: 'displayPosition',type: 'Number'}
            ]
        },
        queryAttributesByConfEx:{
            title:'商品参数',
            url: '/product/queryAttributesByConfEx',
            params: [
                {name: 'categoryId',type: 'number'},
                {name: 'displayPosition',type: 'number'},
                {name: 'saleType',type: 'number'}
            ]
        },
        queryMaterialList:{
            title:'',
            url: '/product/queryMaterialList',
            params: [
                {name: 'categoryId',type: 'Number'}
            ]
        },
        saveProductParam:{
            title:'保存商品参数',
            url: '/product/saveProductParam',
            params: [
                {name: 'productSkn',type: 'number'},
                {name: 'attributeProValuesOne',type: 'string'},
                {name: 'productStandardRelationStr',type: 'string'},
                {name: 'productMaterial',type: 'string'}
            ]
        },
        saveNetSaleRecommend:{
            title:'小编推荐',
            url: '/product/saveNetSaleRecommend',
            params: [
                {name: 'productSkn', type: 'Number'},
                {name: 'recommend', type: 'String'}
            ]
        },
        saveSearchSort:{
            title:'保存搜索顺序',
            url: '/product/saveSearchSort',
            params: [
                {name: 'searchSortList', type: 'string'}
            ]
        }
    }
}