Devin-YU / certificate-mini

小程序 - 在线题库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

certificate-mini

小程序 - 在线题库

后端可以参考下 xughv/cert 中的部分

数据返回格式
{
    code: 0,
    data: (JSON 数据)
}

[Category]:

_id: {
    type: Schema.Types.ObjectId,
},
name: {
    type: String,
}

[Chapter]:

_id: {
    type: Schema.Types.ObjectId,
},
name: {
    type: String,
},
categoryId: {
    type: Schema.Types.ObjectId,
},

[Problem]:

_id: {
    type: Schema.Types.ObjectId,
},
chapterId: {
    type: Schema.Types.ObjectId,
},
problem: {
    type: String,
},
choices: {
    type: Schema.Types.Mixed,
},
answer: {
    type: [String],
},
analysis: {
    type: String,
}

数据落地在 mongodb

image

image

image

About

小程序 - 在线题库


Languages

Language:JavaScript 100.0%