brand.js 4.92 KB
module.exports={
    namespace:"brand",
    apis:{
        index:{
            title:"品牌管理列表",
            url:"/erpproduct/brands/index",
            params:[
                {name: 'brandId',type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'brandLevel',type: 'string'},
                {name: 'startTime',type: 'string'},
                {name: 'endTime',type: 'string'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        },

        getBrandDetail:{
            title:"品牌详情内容",
            url:"/erpproduct/brands/getBrandDetail",
            params:[
                {name: 'brandId', type: 'String'}
            ]
        },

        editBrand:{
            title:"保存修改品牌",
            url:"/erpproduct/brands/editBrand",
            params:[
                {name: 'id',type: 'Number'},
                {name: 'status',type: 'Number'},
                {name: 'brandName',type: 'string'},
                {name: 'brandNameEn',type: 'string'},
                {name: 'brandDomain',type: 'string'},                
                {name: 'brandLevel',type: 'string'},
                {name: 'promotionLevel',type: 'Number'},
                {name: 'mainCategory',type: 'Number'},
                {name: 'brandHeadstream',type: 'Number'},
                {name: 'brandTypes',type: 'Number'},
                {name: 'brandUrl',type: 'string'},                
                {name: 'registerCertUrl',type: 'string'},
                {name: 'authorizeCerts',type: 'string'},
                {name:'brandBanner',type:'string'},
                {name:'certParty',type:'string'},
                {name:'countryId', type : 'Number'}
            ]
        },

        updateStatus:{
            title:"修改品牌状态",
            url:"/erpproduct/brands/updateStatus",
            params:[
                {name: 'id',type: 'Number'},
                {name: 'status',type: 'Number'}
            ]
        },

        addBrand:{
            title:"添加品牌",
            url:"/erpproduct/brands/addBrand",
            params:[
                {name: 'brandName',type: 'string'},
                {name: 'brandNameEn',type: 'string'},
                {name: 'brandDomain',type: 'string'},                
                {name: 'brandLevel',type: 'string'},
                {name: 'promotionLevel',type: 'Number'},
                {name: 'mainCategory',type: 'Number'},
                {name: 'brandHeadstream',type: 'Number'},
                {name: 'brandTypes',type: 'Number'},
                {name: 'brandUrl',type: 'string'},
                {name: 'registerCertUrl',type: 'string'},
                {name: 'authorizeCerts',type: 'string'},
                {name:'brandBanner',type:'string'},
                {name:'certParty',type:'string'}
            ]
        },
        decorateList:{
            title:"品牌装修管理列表",
            url:"/erpproduct/brands/queryDecorateBrands",
            params:[
                {name: 'brandId',type: 'Number'},
                {name: 'isHot', type: 'string'},
                {name: 'isNew',type: 'string'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        },
        updateIsHot:{
            title:"品牌装修-更新hot",
            url:"/erpproduct/brands/updateIsHot",
            params:[
                {name: 'id',type: 'Number'},
                {name: 'isHot', type: 'string'}
            ]
        },
        updateIsNew:{
            title:"品牌装修-更新new",
            url:"/erpproduct/brands/updateIsNew",
            params:[
                {name: 'id',type: 'Number'},               
                {name: 'isNew',type: 'string'}
            ]
        },
        editBrandDecorate:{
             title:"品牌装修-更新",
            url:"/erpproduct/brands/updateDecorate",
            params:[
                {name: 'id',type: 'Number'},               
                {name: 'brandIco',type: 'string'},               
                {name: 'brandIntro',type: 'string'},
                {name: 'brandOutline',type: 'string'},
                {name: 'brandFounder',type: 'string'},
                {name: 'brandStyle',type: 'string'},
                {name: 'brandNature',type: 'Number'},
                {name: 'brandTonality',type: 'string'},
                {name: 'brandKeyword',type: 'string'},
                {name: 'isShipping',type: 'string'},
                {name: 'offlineBrandIco',type: 'string'}                
            ]
        },
        validateSensitiveWord: {
            title:"品牌装修-验证违禁词",
            url:"/sensitiveWord/validate",
            params:[
                {name: 'validateContent',type: 'string'}
            ]
        },

        getBrandCradle: {
            title:"品牌装修-获取品牌发源地",
            url:"/erpproduct/brands/getBrandCradle"
        }

    }
}