接口初始化 第一版

This commit is contained in:
yuping
2022-11-16 01:28:42 +08:00
parent c2f02a33e5
commit f9ae1c0027
27 changed files with 13054 additions and 550 deletions

97
src/mock/mocks/ballot.js Normal file
View File

@@ -0,0 +1,97 @@
export default {
//路径图展开列表
ROUTER_CHAPTER_LIST: () => ({
"code": 200,
"msg": "请求成功!",
"data": {
"rows": [
{
"chapterId": 0,
"name": ""
}
]
},
//学员路径图列表
}),
ROUTER_LIST: () => ({
"code": 0,
"data": {
"pageNo": 0,
"pageSize": 0,
"pages": 0,
"rows": [
{
"name": "asdffad",
"picUrl": "asdfasdf",
"remark": "sdfasf",
"routerId": 0,
"status": 0,
"target": "adfsf "
}
],
"total": 0
},
"msg": "",
"success": true
}),
//学员路径图进度明细
ROUTER_PROCESS: () => ({
"code": 0,
"data": {
"certCnt": 0,
"chapterProcessList": [
{
"chapterId": 0,
"chapterName": "序:产品经理从初级到中级",
"taskProcessList": [
{
"currentRatio": 63,
"flag": true,
"name": "趣味课前小测 - MBTI测试你适合做哪个方向",
"routerTaskId": 0,
"status": 1,
"type": 0
}
],
"status": 1,
}
],
"currentChapterCnt": 20,
"currentReqCnt": 0,
"name": "",
"routerId": 0,
"totalChapterCnt": 70,
"totalReqCnt": 0,
"userInfoBo": {
"deptName": "",
"jobName": "教师是学生的镜子,学生是老师的影子",
"userId": 0,
"userName": "王星天"
}
},
"msg": "",
"success": true
}),
//未完成任务列表
ROUTER_UNCOMPLETE_LIST: () => ({
"code": 0,
"data": {
"pageNo": 0,
"pageSize": 0,
"pages": 0,
"rows": [
{
"chapterId": 0,
"chapterName": "",
"name": "",
"routerId": 0,
"routerTaskId": 0,
"routerTaskName": ""
}
],
"total": 0
},
"msg": "",
"success": true
})
}