老师,二期后端什么时候上?
来源:5-13 使用useCallback缓存函数

ygqygq2
2023-06-09
现在我在做后端,这个问卷数据请求到后端,后端怎么设计表好点呢,弄几个实体。因为组件列表内容随时修改,而且内容格式不同组件类型也不统一。componentList 直接设计为表的一列,是不是更简单。
{
"title": "ttttt",
"description": "",
"css": "",
"js": "",
"componentList": [
{
"fe_id": "bI_1BeJx_iPux5jXDQSlT",
"title": "问卷信息",
"type": "questionInfo",
"props": {
"title": "问卷标题",
"description": "问卷描述"
}
},
{
"fe_id": "CMO0nSxuRtuk9iBvYLFIY",
"title": "标题",
"type": "questionTitle",
"props": {
"text": "一行标题",
"level": 1,
"isCenter": false,
"title": "test"
}
},
{
"fe_id": "EmO6ijcYFcSXAZo_ltefl",
"title": "段落",
"type": "questionParagraph",
"props": {
"text": "一个段落",
"isCenter": false
}
},
{
"fe_id": "MBwxaYdgwDUFTRa-EHsjt",
"title": "单选",
"type": "questionRadio",
"props": {
"title": "单选标题",
"isVertical": false,
"options": [
{
"value": "item1",
"text": "选项 1"
},
{
"value": "item2",
"text": "选项 2"
},
{
"value": "item3",
"text": "选项 3"
}
],
"value": "item1"
}
},
{
"fe_id": "xd67bXG-2PnQbqvHcAN-m",
"title": "多选",
"type": "questionCheckbox",
"props": {
"title": "多选标题",
"isVertical": false,
"list": [
{
"value": "item1",
"text": "选项 1",
"checked": true
},
{
"value": "item2",
"text": "选项 2",
"checked": false
},
{
"value": "item3",
"text": "选项 3",
"checked": false
}
]
}
}
]
}
写回答
1回答
-
双越
2023-06-09
二期计划今年秋天发布
你说的思路没错,可以当做一个列
012024-04-29
相似问题