product.productMaterial.js 1.97 KB
/**
 * 材质管理
 */
module.exports={
    namespace:"productMaterial",
    apis:{
        getMaterialList: {
            title: "查询材质列表",
            url: '/product/material/queryMaterialList',
            params: [
                {name: "maxSortId",type: "Number"},
                {name: "page", type: "Number"},
                {name: "size", type: "Number"}
            ]
        },
        getMaterialDetail: {
            title: "查询材质详情",
            url: '/product/material/queryMaterialDetail',
            params: [
                {name: "materialId", type: "Number"}
            ]
        },
        addMaterial: {
            title: "新增材质",
            url: '/product/material/addMaterial',
            params: [
                {name: "id", type: "Number", default:0},
                {name: "maxSortId", type: "Number"},
                {name: "caption", type: "String"},
                {name: "encaption", type: "String"},
                {name: "imageUrl", type: "String"},
                {name: "remark", type: "String"}
            ]
        },
        updateMaterial: {
            title: "更新材质",
            url: '/product/material/updateMaterial',
            params: [
                {name: "id", type: "Number"},
                {name: "maxSortId", type: "Number"},
                {name: "caption", type: "String"},
                {name: "encaption", type: "String"},
                {name: "imageUrl", type: "String"},
                {name: "remark", type: "String"}
            ]
        },
        deleteMaterial: {
            title: "删除材质",
            url: '/product/material/deleteMaterial',
            params: [
                {name: "materialId", type: "Number"}
            ]
        },
        getBindProductInfo: {
            title: "查看材质绑定信息",
            url: '/product/material/getBindProductInfo',
            params: [
                {name: "materialId", type: "Number"}
            ]
        }
    }
}