You can call this operation to obtain replaceable materials for a model.

API

GET ${API_PREFIX}/commodity/{brandGoodId}/replace
Content-Type: text/plain;charset=utf-8 

URL Query Param

Response

{
    "c": "0",
    "m": "",
    "d": [{
        "defualtReplaceInfo": {
            "srcImage": "",
            "srcColor": 1,
            "materialId": "",
            "created": 1549013857000,
            "lastModified": 1549013857000,
            "name": "",
            "previewImage": "",
            "materialCode": "",
            "comPosition": "",
            "grade": "",
            "specification": "",
            "comments": ""
        },
        "replaceDetailList": [{
            "srcImage": "",
            "srcColor": 1,
            "materialId": "",
            "created": 1549013857000,
            "lastModified": 1549013857000,
            "name": "",
            "previewImage": "",
            "materialCode": "",
            "comPosition": "",
            "grade": "",
            "specification": "",
            "comments": ""
        }],
        "componentName": "surface"
    }]
}
Did this answer your question?