{
"id": "d534061e-0db4-4113-8d72-ca338e72a61f",
"nameZh": "铝基板",
"nameEn": "Aluminum PCB",
"categories": [
{
"fields": [
{
"keyZh": "板材类别",
"keyEn": "Board Category",
"desZh": "板材种类说明",
"desEn": "Board material type description",
"pic": "http://example.com/铝基板.jpg",
"type": "checkbox",
"order": 0,
"options": [
{
"nameZh": "铝基板",
"nameEn": "Aluminum PCB",
"desZh": "适用于高散热需求场景,如LED",
"desEn": "Suitable for high heat dissipation scenarios such as LED",
"pic": "http://example.com/铝基板.jpg"
}
]
},
{
"keyZh": "产品类型",
"keyEn": "Product Type",
"desZh": "单双面板说明",
"desEn": "Single/double layer board type",
"pic": "http://example.com/产品类型.jpg",
"type": "radio",
"order": 1,
"options": [
{
"nameZh": "单面板",
"nameEn": "Single Layer",
"desZh": "适合简单结构",
"desEn": "Suitable for simple structures",
"pic": ""
},
{
"nameZh": "双面板",
"nameEn": "Double Layer",
"desZh": "适用于复杂应用",
"desEn": "For more complex applications",
"pic": ""
}
]
}
]
},
{
"fields": [
{
"keyZh": "表面处理",
"keyEn": "Surface Finish",
"desZh": "焊盘表面处理方式",
"desEn": "Pad surface finish method",
"pic": "http://example.com/finish.jpg",
"type": "radio",
"order": 0,
"options": [
{
"nameZh": "喷锡",
"nameEn": "HASL",
"desZh": "经济实用",
"desEn": "Cost-effective",
"pic": ""
},
{
"nameZh": "OSP",
"nameEn": "OSP",
"desZh": "环保工艺,适合SMT",
"desEn": "Environmentally friendly, suitable for SMT",
"pic": ""
}
]
},
{
"keyZh": "阻焊颜色",
"keyEn": "Solder Mask Color",
"desZh": "可选阻焊颜色",
"desEn": "Selectable solder mask colors",
"pic": "http://example.com/soldermask.jpg",
"type": "radio",
"order": 1,
"options": [
{
"nameZh": "白色",
"nameEn": "White",
"desZh": "LED常用颜色",
"desEn": "Common color for LED PCBs",
"pic": ""
},
{
"nameZh": "黑色",
"nameEn": "Black",
"desZh": "个性化选择",
"desEn": "Personalized option",
"pic": ""
}
]
}
]
},
{
"fields": [
{
"keyZh": "是否加急",
"keyEn": "Urgent",
"desZh": "是否优先处理订单",
"desEn": "Whether to prioritize the order",
"pic": "http://example.com/urgent.jpg",
"type": "radio",
"order": 0,
"defaultValue": "否",
"options": [
{
"nameZh": "是",
"nameEn": "Yes",
"desZh": "缩短生产周期",
"desEn": "Shorten production time",
"pic": ""
},
{
"nameZh": "否",
"nameEn": "No",
"desZh": "正常交期",
"desEn": "Regular delivery",
"pic": ""
}
]
}
]
}
]
}
curl --location 'http://localhost:8080/api/template-i18n/submit' \
--header 'Content-Type: application/json' \
--data '{
"id": "d534061e-0db4-4113-8d72-ca338e72a61f",
"nameZh": "铝基板",
"nameEn": "Aluminum PCB",
"categories": [
{
"fields": [
{
"keyZh": "板材类别",
"keyEn": "Board Category",
"desZh": "板材种类说明",
"desEn": "Board material type description",
"pic": "http://example.com/铝基板.jpg",
"type": "checkbox",
"order": 0,
"options": [
{
"nameZh": "铝基板",
"nameEn": "Aluminum PCB",
"desZh": "适用于高散热需求场景,如LED",
"desEn": "Suitable for high heat dissipation scenarios such as LED",
"pic": "http://example.com/铝基板.jpg"
}
]
},
{
"keyZh": "产品类型",
"keyEn": "Product Type",
"desZh": "单双面板说明",
"desEn": "Single/double layer board type",
"pic": "http://example.com/产品类型.jpg",
"type": "radio",
"order": 1,
"options": [
{
"nameZh": "单面板",
"nameEn": "Single Layer",
"desZh": "适合简单结构",
"desEn": "Suitable for simple structures",
"pic": ""
},
{
"nameZh": "双面板",
"nameEn": "Double Layer",
"desZh": "适用于复杂应用",
"desEn": "For more complex applications",
"pic": ""
}
]
}
]
},
{
"fields": [
{
"keyZh": "表面处理",
"keyEn": "Surface Finish",
"desZh": "焊盘表面处理方式",
"desEn": "Pad surface finish method",
"pic": "http://example.com/finish.jpg",
"type": "radio",
"order": 0,
"options": [
{
"nameZh": "喷锡",
"nameEn": "HASL",
"desZh": "经济实用",
"desEn": "Cost-effective",
"pic": ""
},
{
"nameZh": "OSP",
"nameEn": "OSP",
"desZh": "环保工艺,适合SMT",
"desEn": "Environmentally friendly, suitable for SMT",
"pic": ""
}
]
},
{
"keyZh": "阻焊颜色",
"keyEn": "Solder Mask Color",
"desZh": "可选阻焊颜色",
"desEn": "Selectable solder mask colors",
"pic": "http://example.com/soldermask.jpg",
"type": "radio",
"order": 1,
"options": [
{
"nameZh": "白色",
"nameEn": "White",
"desZh": "LED常用颜色",
"desEn": "Common color for LED PCBs",
"pic": ""
},
{
"nameZh": "黑色",
"nameEn": "Black",
"desZh": "个性化选择",
"desEn": "Personalized option",
"pic": ""
}
]
}
]
},
{
"fields": [
{
"keyZh": "是否加急",
"keyEn": "Urgent",
"desZh": "是否优先处理订单",
"desEn": "Whether to prioritize the order",
"pic": "http://example.com/urgent.jpg",
"type": "radio",
"order": 0,
"defaultValue": "否",
"options": [
{
"nameZh": "是",
"nameEn": "Yes",
"desZh": "缩短生产周期",
"desEn": "Shorten production time",
"pic": ""
},
{
"nameZh": "否",
"nameEn": "No",
"desZh": "正常交期",
"desEn": "Regular delivery",
"pic": ""
}
]
}
]
}
]
}'{
"id": "string",
"nameZh": "string",
"nameEn": "string",
"categories": [
{
"fields": [
{
"keyZh": "string",
"keyEn": "string",
"desZh": "string",
"desEn": "string",
"pic": "string",
"type": "string",
"options": [
{
"nameZh": "string",
"nameEn": "string",
"desZh": "string",
"desEn": "string",
"pic": "string"
}
],
"defaultValue": null,
"order": 0
}
]
}
],
"createdAt": "string"
}