diff --git a/docs/404.html b/docs/404.html index b3d4e73c6..3bbfeff28 100644 --- a/docs/404.html +++ b/docs/404.html @@ -5,11 +5,11 @@ 学之思教程 - +

404

That's a Four-Oh-Four.
Take me home
- + diff --git a/docs/assets/js/app.8d222fac.js b/docs/assets/js/app.8d222fac.js deleted file mode 100644 index e18a7aae9..000000000 --- a/docs/assets/js/app.8d222fac.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[143],{3131:(e,d,t)=>{t.d(d,{g:()=>h});var n=t(2009),a=t(6971),i=t(1598);const h=[n.Z,a.Z,i.Z]},9947:(e,d,t)=>{t.d(d,{p:()=>n});const n=[t(8187).Z]},4611:(e,d,t)=>{t.d(d,{l:()=>h});var n=t(8866),a=t(1263),i=t(6243);const h=[n.Z,a.Z,i.Z]},4150:(e,d,t)=>{t.d(d,{Z:()=>a});var n=t(6252);const a={404:(0,n.RC)((()=>t.e(491).then(t.bind(t,8491)))),Layout:(0,n.RC)((()=>t.e(293).then(t.bind(t,3293))))}},6056:(e,d,t)=>{t.d(d,{b:()=>a});var n=t(6252);const a={"v-8daa1a0e":(0,n.RC)((()=>t.e(509).then(t.bind(t,3635)))),"v-55bcf8d6":(0,n.RC)((()=>t.e(725).then(t.bind(t,9204)))),"v-7dc58ad2":(0,n.RC)((()=>t.e(349).then(t.bind(t,9953)))),"v-8a14f834":(0,n.RC)((()=>t.e(810).then(t.bind(t,9521)))),"v-745beb88":(0,n.RC)((()=>t.e(803).then(t.bind(t,2024)))),"v-5c93668f":(0,n.RC)((()=>t.e(924).then(t.bind(t,6995)))),"v-e6eb79d8":(0,n.RC)((()=>t.e(979).then(t.bind(t,7119)))),"v-1362226a":(0,n.RC)((()=>t.e(909).then(t.bind(t,710)))),"v-676a79ac":(0,n.RC)((()=>t.e(257).then(t.bind(t,8540)))),"v-45a87c2c":(0,n.RC)((()=>t.e(71).then(t.bind(t,5867)))),"v-3706649a":(0,n.RC)((()=>t.e(88).then(t.bind(t,8109))))}},9706:(e,d,t)=>{t.d(d,{T:()=>n});const n={"v-8daa1a0e":()=>t.e(509).then(t.bind(t,6464)).then((({data:e})=>e)),"v-55bcf8d6":()=>t.e(725).then(t.bind(t,927)).then((({data:e})=>e)),"v-7dc58ad2":()=>t.e(349).then(t.bind(t,8103)).then((({data:e})=>e)),"v-8a14f834":()=>t.e(810).then(t.bind(t,5737)).then((({data:e})=>e)),"v-745beb88":()=>t.e(803).then(t.bind(t,9252)).then((({data:e})=>e)),"v-5c93668f":()=>t.e(924).then(t.bind(t,4158)).then((({data:e})=>e)),"v-e6eb79d8":()=>t.e(979).then(t.bind(t,6339)).then((({data:e})=>e)),"v-1362226a":()=>t.e(909).then(t.bind(t,5785)).then((({data:e})=>e)),"v-676a79ac":()=>t.e(257).then(t.bind(t,9326)).then((({data:e})=>e)),"v-45a87c2c":()=>t.e(71).then(t.bind(t,8992)).then((({data:e})=>e)),"v-3706649a":()=>t.e(88).then(t.bind(t,1801)).then((({data:e})=>e))}},4634:(e,d,t)=>{t.d(d,{g:()=>a});var n=t(4802);const a=[["v-8daa1a0e","/","",["/index.html","/README.md"]],["v-55bcf8d6","/guide/admin.html","4.3 管理端",["/guide/admin","/guide/admin.md"]],["v-7dc58ad2","/guide/database.html","3. 数据库设计",["/guide/database","/guide/database.md"]],["v-8a14f834","/guide/deploy.html","6. 项目部署",["/guide/deploy","/guide/deploy.md"]],["v-745beb88","/guide/develop.html","5. 项目开发",["/guide/develop","/guide/develop.md"]],["v-5c93668f","/guide/feature.html","1. 功能列表",["/guide/feature","/guide/feature.md"]],["v-e6eb79d8","/guide/skill.html","2. 技术栈",["/guide/skill","/guide/skill.md"]],["v-1362226a","/guide/student.html","4.1 学生端",["/guide/student","/guide/student.md"]],["v-676a79ac","/guide/video.html","7. 视频教程",["/guide/video","/guide/video.md"]],["v-45a87c2c","/guide/wx.html","4.2 小程序",["/guide/wx","/guide/wx.md"]],["v-3706649a","/404.html","",["/404"]]].reduce(((e,[d,t,a,i])=>(e.push({name:d,path:t,component:n.Y,meta:{title:a}},...i.map((e=>({path:e,redirect:t})))),e)),[{name:"404",path:"/:catchAll(.*)",component:n.Y}])},5220:(e,d,t)=>{t.d(d,{H:()=>n});const n={base:"/xzs-mysql/",lang:"zh-CN",title:"学之思教程",description:"学之思开发部署教程",head:[["link",{rel:"icon",href:"https://www.mindskip.net/style/images/favicon.png"}]],locales:{}}},2232:(e,d,t)=>{t.d(d,{f:()=>n});const n={logo:"/images/logo/logo.png",navbar:[{text:"官网",link:"https://www.mindskip.net"},{text:"思多多",link:"https://www.mindskip.net/sdd.html"},{text:"维多多",link:"https://www.mindskip.net/wdd.html"},{text:"学之思",link:"https://www.mindskip.net/xzs.html"},{text:"商业购买",link:"https://www.mindskip.net/buy.html"}],sidebar:["/guide/feature.md","/guide/skill.md","/guide/database.md",{text:"4. 接口文档",children:["/guide/student.md","/guide/wx.md","/guide/admin.md"]},"/guide/develop.md","/guide/deploy.md","/guide/video.md"],lastUpdatedText:"上次更新",contributors:!1,locales:{"/":{selectLanguageName:"English"}},darkMode:!0,repo:null,selectLanguageText:"Languages",selectLanguageAriaLabel:"Select language",sidebarDepth:2,editLink:!0,editLinkText:"Edit this page",lastUpdated:!0,contributorsText:"Contributors",notFound:["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],backToHome:"Take me home",openInNewWindow:"open in new window",toggleDarkMode:"toggle dark mode",toggleSidebar:"toggle sidebar"}}},e=>{e.O(0,[460,812],(()=>(5698,e(e.s=5698)))),e.O()}]); \ No newline at end of file diff --git a/docs/assets/js/app.d6016edd.js b/docs/assets/js/app.d6016edd.js new file mode 100644 index 000000000..b813d8807 --- /dev/null +++ b/docs/assets/js/app.d6016edd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[143],{3131:(e,d,t)=>{t.d(d,{g:()=>h});var n=t(2009),a=t(6971),i=t(1598);const h=[n.Z,a.Z,i.Z]},9947:(e,d,t)=>{t.d(d,{p:()=>n});const n=[t(8187).Z]},4611:(e,d,t)=>{t.d(d,{l:()=>h});var n=t(8866),a=t(1263),i=t(6243);const h=[n.Z,a.Z,i.Z]},4150:(e,d,t)=>{t.d(d,{Z:()=>a});var n=t(6252);const a={404:(0,n.RC)((()=>t.e(491).then(t.bind(t,8491)))),Layout:(0,n.RC)((()=>t.e(293).then(t.bind(t,3293))))}},6056:(e,d,t)=>{t.d(d,{b:()=>a});var n=t(6252);const a={"v-8daa1a0e":(0,n.RC)((()=>t.e(509).then(t.bind(t,3635)))),"v-55bcf8d6":(0,n.RC)((()=>t.e(725).then(t.bind(t,8905)))),"v-7dc58ad2":(0,n.RC)((()=>t.e(349).then(t.bind(t,9953)))),"v-8a14f834":(0,n.RC)((()=>t.e(810).then(t.bind(t,9521)))),"v-745beb88":(0,n.RC)((()=>t.e(803).then(t.bind(t,2024)))),"v-5c93668f":(0,n.RC)((()=>t.e(924).then(t.bind(t,6995)))),"v-e6eb79d8":(0,n.RC)((()=>t.e(979).then(t.bind(t,7119)))),"v-1362226a":(0,n.RC)((()=>t.e(909).then(t.bind(t,3549)))),"v-676a79ac":(0,n.RC)((()=>t.e(257).then(t.bind(t,8540)))),"v-45a87c2c":(0,n.RC)((()=>t.e(71).then(t.bind(t,5738)))),"v-3706649a":(0,n.RC)((()=>t.e(88).then(t.bind(t,8109))))}},9706:(e,d,t)=>{t.d(d,{T:()=>n});const n={"v-8daa1a0e":()=>t.e(509).then(t.bind(t,6464)).then((({data:e})=>e)),"v-55bcf8d6":()=>t.e(725).then(t.bind(t,927)).then((({data:e})=>e)),"v-7dc58ad2":()=>t.e(349).then(t.bind(t,8103)).then((({data:e})=>e)),"v-8a14f834":()=>t.e(810).then(t.bind(t,5737)).then((({data:e})=>e)),"v-745beb88":()=>t.e(803).then(t.bind(t,9252)).then((({data:e})=>e)),"v-5c93668f":()=>t.e(924).then(t.bind(t,4158)).then((({data:e})=>e)),"v-e6eb79d8":()=>t.e(979).then(t.bind(t,6339)).then((({data:e})=>e)),"v-1362226a":()=>t.e(909).then(t.bind(t,5785)).then((({data:e})=>e)),"v-676a79ac":()=>t.e(257).then(t.bind(t,9326)).then((({data:e})=>e)),"v-45a87c2c":()=>t.e(71).then(t.bind(t,8992)).then((({data:e})=>e)),"v-3706649a":()=>t.e(88).then(t.bind(t,1801)).then((({data:e})=>e))}},4634:(e,d,t)=>{t.d(d,{g:()=>a});var n=t(4802);const a=[["v-8daa1a0e","/","",["/index.html","/README.md"]],["v-55bcf8d6","/guide/admin.html","4.3 管理端",["/guide/admin","/guide/admin.md"]],["v-7dc58ad2","/guide/database.html","3. 数据库设计",["/guide/database","/guide/database.md"]],["v-8a14f834","/guide/deploy.html","6. 项目部署",["/guide/deploy","/guide/deploy.md"]],["v-745beb88","/guide/develop.html","5. 项目开发",["/guide/develop","/guide/develop.md"]],["v-5c93668f","/guide/feature.html","1. 功能列表",["/guide/feature","/guide/feature.md"]],["v-e6eb79d8","/guide/skill.html","2. 技术栈",["/guide/skill","/guide/skill.md"]],["v-1362226a","/guide/student.html","4.1 学生端",["/guide/student","/guide/student.md"]],["v-676a79ac","/guide/video.html","7. 视频教程",["/guide/video","/guide/video.md"]],["v-45a87c2c","/guide/wx.html","4.2 小程序",["/guide/wx","/guide/wx.md"]],["v-3706649a","/404.html","",["/404"]]].reduce(((e,[d,t,a,i])=>(e.push({name:d,path:t,component:n.Y,meta:{title:a}},...i.map((e=>({path:e,redirect:t})))),e)),[{name:"404",path:"/:catchAll(.*)",component:n.Y}])},5220:(e,d,t)=>{t.d(d,{H:()=>n});const n={base:"/xzs-mysql/",lang:"zh-CN",title:"学之思教程",description:"学之思开发部署教程",head:[["link",{rel:"icon",href:"https://www.mindskip.net/style/images/favicon.png"}]],locales:{}}},2232:(e,d,t)=>{t.d(d,{f:()=>n});const n={logo:"/images/logo/logo.png",navbar:[{text:"官网",link:"https://www.mindskip.net"},{text:"思多多",link:"https://www.mindskip.net/sdd.html"},{text:"维多多",link:"https://www.mindskip.net/wdd.html"},{text:"学之思",link:"https://www.mindskip.net/xzs.html"},{text:"商业购买",link:"https://www.mindskip.net/buy.html"}],sidebar:["/guide/feature.md","/guide/skill.md","/guide/database.md",{text:"4. 接口文档",children:["/guide/student.md","/guide/wx.md","/guide/admin.md"]},"/guide/develop.md","/guide/deploy.md","/guide/video.md"],lastUpdatedText:"上次更新",contributors:!1,locales:{"/":{selectLanguageName:"English"}},darkMode:!0,repo:null,selectLanguageText:"Languages",selectLanguageAriaLabel:"Select language",sidebarDepth:2,editLink:!0,editLinkText:"Edit this page",lastUpdated:!0,contributorsText:"Contributors",notFound:["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],backToHome:"Take me home",openInNewWindow:"open in new window",toggleDarkMode:"toggle dark mode",toggleSidebar:"toggle sidebar"}}},e=>{e.O(0,[460,812],(()=>(5698,e(e.s=5698)))),e.O()}]); \ No newline at end of file diff --git a/docs/assets/js/runtime~app.17f5191b.js b/docs/assets/js/runtime~app.84fd6c2c.js similarity index 93% rename from docs/assets/js/runtime~app.17f5191b.js rename to docs/assets/js/runtime~app.84fd6c2c.js index 3e669e511..39a35080f 100644 --- a/docs/assets/js/runtime~app.17f5191b.js +++ b/docs/assets/js/runtime~app.84fd6c2c.js @@ -1 +1 @@ -(()=>{"use strict";var e,r,t,a={},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return a[e].call(t.exports,t,t.exports,n),t.exports}n.m=a,e=[],n.O=(r,t,a,o)=>{if(!t){var i=1/0;for(c=0;c=o)&&Object.keys(n.O).every((e=>n.O[e](t[l])))?t.splice(l--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>"assets/js/"+({71:"v-45a87c2c",88:"v-3706649a",257:"v-676a79ac",349:"v-7dc58ad2",509:"v-8daa1a0e",725:"v-55bcf8d6",803:"v-745beb88",810:"v-8a14f834",909:"v-1362226a",924:"v-5c93668f",979:"v-e6eb79d8"}[e]||e)+"."+{71:"3be07abe",88:"8435426b",257:"63afc8a0",293:"79625e1c",349:"f860e2cd",491:"f3ef9561",509:"6837d7d9",725:"9562a500",803:"62d6f4b6",810:"a34fbcca",909:"cf61035a",924:"7dc092a6",979:"e03c8e10"}[e]+".js",n.miniCssF=e=>{},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="xzs-mysql:",n.l=(e,a,o,i)=>{if(r[e])r[e].push(a);else{var s,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(v);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},v=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/xzs-mysql/",(()=>{var e={523:0,460:0};n.f.j=(r,t)=>{var a=n.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(460|523)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var i=n.p+n.u(r),s=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,a[1](s)}}),"chunk-"+r,r)}},n.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,[i,s,l]=t,d=0;if(i.some((r=>0!==e[r]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)var c=l(n)}for(r&&r(t);d{"use strict";var e,r,t,a={},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return a[e].call(t.exports,t,t.exports,n),t.exports}n.m=a,e=[],n.O=(r,t,a,o)=>{if(!t){var i=1/0;for(c=0;c=o)&&Object.keys(n.O).every((e=>n.O[e](t[l])))?t.splice(l--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>"assets/js/"+({71:"v-45a87c2c",88:"v-3706649a",257:"v-676a79ac",349:"v-7dc58ad2",509:"v-8daa1a0e",725:"v-55bcf8d6",803:"v-745beb88",810:"v-8a14f834",909:"v-1362226a",924:"v-5c93668f",979:"v-e6eb79d8"}[e]||e)+"."+{71:"945c0a09",88:"8435426b",257:"63afc8a0",293:"79625e1c",349:"f860e2cd",491:"f3ef9561",509:"6837d7d9",725:"03bac04d",803:"62d6f4b6",810:"a34fbcca",909:"ac742d3a",924:"7dc092a6",979:"e03c8e10"}[e]+".js",n.miniCssF=e=>{},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="xzs-mysql:",n.l=(e,a,o,i)=>{if(r[e])r[e].push(a);else{var s,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(v);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},v=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/xzs-mysql/",(()=>{var e={523:0,460:0};n.f.j=(r,t)=>{var a=n.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(460|523)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var i=n.p+n.u(r),s=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,a[1](s)}}),"chunk-"+r,r)}},n.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,[i,s,l]=t,d=0;if(i.some((r=>0!==e[r]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)var c=l(n)}for(r&&r(t);d{e.r(s),e.d(s,{data:()=>a});const a={key:"v-1362226a",path:"/guide/student.html",title:"4.1 学生端",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:3,title:"4.1.1 登录",slug:"_4-1-1-登录",children:[]},{level:3,title:"4.1.2 注册",slug:"_4-1-2-注册",children:[]},{level:3,title:"4.1.3 登出",slug:"_4-1-3-登出",children:[]},{level:3,title:"4.1.4 首页",slug:"_4-1-4-首页",children:[]},{level:3,title:"4.1.5 任务中心",slug:"_4-1-5-任务中心",children:[]},{level:3,title:"4.1.6 学科列表",slug:"_4-1-6-学科列表",children:[]},{level:3,title:"4.1.7 试卷分页",slug:"_4-1-7-试卷分页",children:[]},{level:3,title:"4.1.8 试卷查询",slug:"_4-1-8-试卷查询",children:[]},{level:3,title:"4.1.9 试卷提交",slug:"_4-1-9-试卷提交",children:[]},{level:3,title:"4.1.10 答卷查询",slug:"_4-1-10-答卷查询",children:[]},{level:3,title:"4.1.11 试卷批改",slug:"_4-1-11-试卷批改",children:[]},{level:3,title:"4.1.12 考试记录分页",slug:"_4-1-12-考试记录分页",children:[]},{level:3,title:"4.1.13 错题本分页",slug:"_4-1-13-错题本分页",children:[]},{level:3,title:"4.1.14 答题详情",slug:"_4-1-14-答题详情",children:[]},{level:3,title:"4.1.15 用户动态",slug:"_4-1-15-用户动态",children:[]},{level:3,title:"4.1.16 当前用户信息",slug:"_4-1-16-当前用户信息",children:[]},{level:3,title:"4.1.17 修改用户信息",slug:"_4-1-17-修改用户信息",children:[]},{level:3,title:"4.1.18 消息分页",slug:"_4-1-18-消息分页",children:[]},{level:3,title:"4.1.19 消息标记已读",slug:"_4-1-19-消息标记已读",children:[]},{level:3,title:"4.1.20 未读消息数量",slug:"_4-1-20-未读消息数量",children:[]}],filePathRelative:"guide/student.md",git:{updatedTime:1657778364e3}}},3549:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const a=(0,e(6252).uE)('

4.1 学生端

4.1.1 登录

  • 接口地址:/api/user/login
  • 请求参数:
{\n    "userName": "student",  //用户名\n    "password": "",  //密码\n    "remember": false  //下次自动登录\n}\n
1
2
3
4
5
  • 返回参数:
{\n        "userName": "student",  //用户名\n        "imagePath": "",  //头像\n}\n
1
2
3
4

4.1.2 注册

  • 接口地址:/api/student/user/register
  • 请求参数:
{\n    "userName": "student5", //用户名\n    "password": "123456",  //密码\n    "userLevel": 1  //年级\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.3 登出

  • 接口地址:/api/user/logout
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.4 首页

  • 接口地址:/api/student/dashboard/index
  • 请求参数:无
  • 返回参数:
{\n    "fixedPaper": [  //固定试卷\n        {\n            "id": 2399,  //试卷Id\n            "name": "test33333",  //试卷名称\n            "limitStartTime": null,  //考试开始时间\n            "limitEndTime": null     //考试结束时间\n        }\n    ],\n    "timeLimitPaper": []    //时段试卷\n}\n
1
2
3
4
5
6
7
8
9
10
11

4.1.5 任务中心

  • 接口地址:/api/student/dashboard/task
  • 请求参数:无
  • 返回参数:
[\n        {\n            "id": 91,  //任务id\n            "title": "2021-04-25作业",  //任务标题\n            "paperItems": [\n                {\n                    "examPaperId": 181,   //任务试卷id\n                    "examPaperName": "第一次出卷",  //任务试卷名称\n                    "examPaperAnswerId": 579,  //答卷id\n                    "status": 2  //答卷状态\n                }\n            ]\n        }\n    ]\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.1.6 学科列表

  • 接口地址:/api/student/education/subject/list
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": "18",  //学科id\n            "name": "英语"  //学科名称\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10

4.1.7 试卷分页

  • 接口地址:/api/student/exam/paper/pageList
  • 请求参数:
{\n    "paperType": 1, //试卷类型\n    "subjectId": 158, //学科id\n    "pageIndex": 1, //页数\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 1,\n        "list": [\n            {\n                "id": 2520,  //试卷id\n                "name": "生理卫生",  //试卷名称\n                "questionCount": 1,  //题目数\n                "score": 20,  //试卷分数\n                "createTime": "2021-05-31 13:34:49", //创建时间\n                "createUser": 2,   //创建人\n                "subjectId": 158,  //学科\n                "subjectName": "英语",  //学科\n                "paperType": 1,   //试卷类型\n                "frameTextContentId": 9016  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.1.8 试卷查询

  • 接口地址:/api/student/exam/paper/select/9
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 91,  //试卷id\n        "level": 1,  //年级\n        "subjectId": 1,  //学科\n        "paperType": 1,  //试卷类型\n        "name": "测试一",  //试卷名称\n        "suggestTime": 22,  //建议时长\n        "limitDateTime": null,  //考试时间限制\n        "titleItems": [  \n            {\n                "name": "一、选择题",  //试卷标题\n                "questionItems": [\n                    {\n                        "id": 91,      //题目id\n                        "questionType": 5,  //题型\n                        "subjectId": 1,  //学科\n                        "title": "默写咏鹅",  //标题\n                        "gradeLevel": 1,  //年级\n                        "items": [],  //选项\n                        "analyze": "咏鹅可以带拼音",  //解析\n                        "correctArray": null,  //标答\n                        "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。",  //标答\n                        "score": "10", //分数\n                        "difficult": 3,  //难度\n                        "itemOrder": 1  //顺序\n                    }\n                ]\n            }\n        ],\n        "score": "10"\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

4.1.9 试卷提交

  • 接口地址:/api/student/exampaper/answer/answerSubmit
  • 请求参数:
{\n    "questionId": null, \n    "doTime": 14,    //耗时\n    "answerItems": [\n        {\n            "questionId": 4,  //题目id\n            "content": null,  //答题内容\n            "contentArray": [   //填空题内容\n                "测试",\n                "1"\n            ],\n            "completed": true, //是否完成\n            "itemOrder": 1   //题目序号\n        } \n    ],\n    "id": 4   //试卷id\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "2"   //试卷得分\n}\n
1
2
3
4
5

4.1.10 答卷查询

  • 接口地址:/api/student/exampaper/answer/read/4
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "paper": {  //试卷信息\n            "id": 91,  //试卷id\n            "level": 1, //年级\n            "subjectId": 1,  //学科\n            "paperType": 4,  //试卷类型\n            "name": "限时考试二",  //试卷名称\n            "suggestTime": 20,  //考试时长\n            "limitDateTime": [  //考试时间限制\n                "2021-06-22 00:00:00",\n                "2021-08-06 00:00:00"\n            ],\n            "titleItems": [\n                {\n                    "name": "一、完成题目",  //标题\n                    "questionItems": [   //题目列表\n                        {\n                            "id": 91,  //题目id\n                            "questionType": 4,   //题目类型\n                            "subjectId": 1,  //学科\n                            "title": "曲项向天歌红掌拨清波",  //题目标题\n                            "gradeLevel": 1,  //年级\n                            "items": [   //题目选项\n                                {\n                                    "prefix": "1",   //选项标识\n                                    "content": "鹅鹅鹅",   //选项内容\n                                    "score": "2"  //选项分数\n                                },\n                                {\n                                    "prefix": "2",\n                                    "content": "白毛浮绿水",\n                                    "score": "2"\n                                }\n                            ],\n                            "analyze": "咏鹅",  //解析\n                            "correctArray": [  //标答\n                                "鹅鹅鹅",\n                                "白毛浮绿水"\n                            ],\n                            "correct": "",  //标答\n                            "score": "4",  //题目分数\n                            "difficult": 4, //题目难度\n                            "itemOrder": 1 //题目顺序\n                        }\n                    ]\n                }\n            ],\n            "score": "18"   //试卷分数\n        },\n        "answer": {  //答卷信息\n            "id": 91,  //答卷id\n            "doTime": 14,  //耗时\n            "score": "2",  //得分\n            "answerItems": [   //答题信息\n                {\n                    "id": 91,  //答题id\n                    "questionId": 4,  //题目id\n                    "doRight": null,  //是否正确\n                    "content": null, //答题内容\n                    "itemOrder": 1, //题序\n                    "contentArray": [  //答题内容\n                        "测试",\n                        "1"\n                    ],\n                    "score": "0", //得分\n                    "questionScore": "4"  //题目分数\n                }\n            ]\n        }\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

4.1.11 试卷批改

  • 接口地址:/api/student/exampaper/answer/edit
  • 请求参数:
{\n    "id": 91,  //答卷id\n    "doTime": 14,  //耗时\n    "score": "2",  //得分数\n    "answerItems": [\n        {\n            "id": 91, //答题id\n            "questionId": 4, //题目id\n            "doRight": null,  //是否正确\n            "content": null,  //答题内容\n            "itemOrder": 1,  //题目顺序\n            "contentArray": [  //答题内容\n                "测试",\n                "1"\n            ],\n            "score": "4",  //得分\n            "questionScore": "4"  //题目分数\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "16"  //试卷得分\n}\n
1
2
3
4
5

4.1.12 考试记录分页

  • 接口地址:/api/student/exampaper/answer/pageList
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 6204,\n        "list": [\n            {\n                "id": 6534,  //试卷id\n                "createTime": "2021-06-01 17:56:38",  //创建时间\n                "userScore": "0",  //考试分数\n                "subjectName": "数学",  //考试学科\n                "subjectId": 129, //学科id\n                "questionCount": 1,  //题目数量\n                "questionCorrect": 0,  //题目正确数\n                "paperScore": "3",  //试卷总分\n                "doTime": "4 秒",  //耗时\n                "paperType": 7,  //试卷类型\n                "systemScore": "0",  //系统批改得分\n                "status": 2,   //试卷状态\n                "paperName": "智能训练试卷 - 1845",  //试卷名称\n                "userName": null  //用户名\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

4.1.13 错题本分页

  • 接口地址:/api/student/question/answer/page
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 17002,\n        "list": [\n            {\n                "id": 24928,   //题目id\n                "questionType": 1,  //题型\n                "createTime": "2021-06-02 16:07:11",  //创建时间\n                "subjectName": "语文",  //学科\n                "shortTitle": "666"  //题干\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

4.1.14 答题详情

  • 接口地址:/api/student/question/answer/select/25067
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "questionVM": {\n            "id": 507,    //题目id\n            "questionType": 1,   //题目类型\n            "subjectId": 46,  //学科id\n            "title": "111",   //题干\n            "gradeLevel": 12,    //年级\n            "items": [        //选项\n                {\n                    "prefix": "A",  //选项\n                    "content": "A",  //选项内容\n                    "score": null    //选项分数\n                }\n            ],\n            "analyze": "D",     //解析\n            "correctArray": null,  //标答\n            "correct": "D",   //标答\n            "score": "2",  //分数\n            "difficult": 3,  //难度\n            "itemOrder": null  //排序\n        },\n        "questionAnswerVM": {   //用户答案\n            "id": 25067,  \n            "questionId": 507,  //题目id\n            "doRight": false,   //是否正确\n            "content": "A",   //用户答案\n            "itemOrder": 2,   //排序\n            "contentArray": null,   //用户答案\n            "score": "0",  //得分\n            "questionScore": "2"  //题目分数\n        }\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

4.1.15 用户动态

  • 接口地址:/api/student/user/log
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 1812,  \n            "userId": 1,  //用户id\n            "userName": "student",  //用户名\n            "realName": "Test",  //用户真实姓名\n            "content": "student 登录了学之思开源考试系统",  //动态内容\n            "createTime": "2021-06-08 17:12:50"  //创建时间\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.1.16 当前用户信息

  • 接口地址:/api/student/user/current
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 91,\n        "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",\n        "userName": "student",  //用户名\n        "realName": "Test",  //真实姓名\n        "age": 18,   //年龄\n        "role": 1,   //角色\n        "sex": 1,  //性别\n        "birthDay": "2019-09-01 00:00:00",  //生日\n        "phone": "158800882",  //手机号\n        "lastActiveTime": "",\n        "createTime": "2019-09-07 18:55:02",\n        "modifyTime": "2021-06-09 17:04:31",\n        "status": 1,  //状态\n        "userLevel": 1,   //年级\n        "classes": "1班",  //用户班级\n        "imagePath": ""  //用户头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

4.1.17 修改用户信息

  • 接口地址:/api/student/user/update
  • 请求参数:
{\n    "id": 91,\n    "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",\n    "userName": "student",  //用户名\n    "realName": "Test",  //真实姓名\n    "age": 18,   //年龄\n    "role": 1,   //角色\n    "sex": 1,  //性别\n    "birthDay": "2019-09-01 00:00:00",  //生日\n    "phone": "158800882",  //手机号\n    "lastActiveTime": "",\n    "createTime": "2019-09-07 18:55:02",\n    "modifyTime": "2021-06-09 17:04:31",\n    "status": 1,  //状态\n    "userLevel": 1,   //年级\n    "classes": "1班",  //用户班级\n    "imagePath": ""  //用户头像\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.18 消息分页

  • 接口地址:/api/student/user/message/page
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 5,\n        "list": [\n            {\n                "id": 91,\n                "title": "rwerw",   //消息标题\n                "messageId": 10,\n                "content": "sfsdf",  //消息内容\n                "readed": true, //是否已读\n                "createTime": "2021-06-11 16:32:40",   //创建时间\n                "sendUserName": "admin"  //发送人\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.1.19 消息标记已读

  • 接口地址:/api/student/user/message/read/14
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.20 未读消息数量

  • 接口地址:/api/student/user/message/unreadCount
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": 0  //未读消息数量\n}\n
1
2
3
4
5
',81),u={},l=(0,e(3744).Z)(u,[["render",function(n,s){return a}]])},3744:(n,s)=>{s.Z=(n,s)=>{const e=n.__vccOpts||n;for(const[n,a]of s)e[n]=a;return e}}}]); \ No newline at end of file diff --git a/docs/assets/js/v-1362226a.cf61035a.js b/docs/assets/js/v-1362226a.cf61035a.js deleted file mode 100644 index 469de60ba..000000000 --- a/docs/assets/js/v-1362226a.cf61035a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[909],{5785:(n,s,e)=>{e.r(s),e.d(s,{data:()=>a});const a={key:"v-1362226a",path:"/guide/student.html",title:"4.1 学生端",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:3,title:"4.1.1 登录",slug:"_4-1-1-登录",children:[]},{level:3,title:"4.1.2 注册",slug:"_4-1-2-注册",children:[]},{level:3,title:"4.1.3 登出",slug:"_4-1-3-登出",children:[]},{level:3,title:"4.1.4 首页",slug:"_4-1-4-首页",children:[]},{level:3,title:"4.1.5 任务中心",slug:"_4-1-5-任务中心",children:[]},{level:3,title:"4.1.6 学科列表",slug:"_4-1-6-学科列表",children:[]},{level:3,title:"4.1.7 试卷分页",slug:"_4-1-7-试卷分页",children:[]},{level:3,title:"4.1.8 试卷查询",slug:"_4-1-8-试卷查询",children:[]},{level:3,title:"4.1.9 试卷提交",slug:"_4-1-9-试卷提交",children:[]},{level:3,title:"4.1.10 答卷查询",slug:"_4-1-10-答卷查询",children:[]},{level:3,title:"4.1.11 试卷批改",slug:"_4-1-11-试卷批改",children:[]},{level:3,title:"4.1.12 考试记录分页",slug:"_4-1-12-考试记录分页",children:[]},{level:3,title:"4.1.13 错题本分页",slug:"_4-1-13-错题本分页",children:[]},{level:3,title:"4.1.14 答题详情",slug:"_4-1-14-答题详情",children:[]},{level:3,title:"4.1.15 用户动态",slug:"_4-1-15-用户动态",children:[]},{level:3,title:"4.1.16 当前用户信息",slug:"_4-1-16-当前用户信息",children:[]},{level:3,title:"4.1.17 修改用户信息",slug:"_4-1-17-修改用户信息",children:[]},{level:3,title:"4.1.18 消息分页",slug:"_4-1-18-消息分页",children:[]},{level:3,title:"4.1.19 消息标记已读",slug:"_4-1-19-消息标记已读",children:[]},{level:3,title:"4.1.20 未读消息数量",slug:"_4-1-20-未读消息数量",children:[]}],filePathRelative:"guide/student.md",git:{updatedTime:1657778364e3}}},710:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const a=(0,e(6252).uE)('

4.1 学生端

4.1.1 登录

  • 接口地址:/api/user/login
  • 请求参数:
{\n    "userName": "student",  //用户名\n    "password": "",  //密码\n    "remember": false  //下次自动登录\n}\n
1
2
3
4
5
  • 返回参数:
{\n        "userName": "student",  //用户名\n        "imagePath": "",  //头像\n}\n
1
2
3
4

4.1.2 注册

  • 接口地址:/api/student/user/register
  • 请求参数:
{\n    "userName": "student5", //用户名\n    "password": "123456",  //密码\n    "userLevel": 1  //年级\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.3 登出

  • 接口地址:/api/user/logout
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.4 首页

  • 接口地址:/api/student/dashboard/index
  • 请求参数:无
  • 返回参数:
{\n    "fixedPaper": [  //固定试卷\n        {\n            "id": 2399,  //试卷Id\n            "name": "test33333",  //试卷名称\n            "limitStartTime": null,  //考试开始时间\n            "limitEndTime": null     //考试结束时间\n        }\n    ],\n    "timeLimitPaper": []    //时段试卷\n}\n
1
2
3
4
5
6
7
8
9
10
11

4.1.5 任务中心

  • 接口地址:/api/student/dashboard/task
  • 请求参数:无
  • 返回参数:
[\n        {\n            "id": 45,  //任务id\n            "title": "2021-04-25作业",  //任务标题\n            "paperItems": [\n                {\n                    "examPaperId": 181,   //任务试卷id\n                    "examPaperName": "第一次出卷",  //任务试卷名称\n                    "examPaperAnswerId": 579,  //答卷id\n                    "status": 2  //答卷状态\n                }\n            ]\n        }\n    ]\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.1.6 学科列表

  • 接口地址:/api/student/education/subject/list
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": "18",  //学科id\n            "name": "英语"  //学科名称\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10

4.1.7 试卷分页

  • 接口地址:/api/student/exam/paper/pageList
  • 请求参数:
{\n    "paperType": 1, //试卷类型\n    "subjectId": 158, //学科id\n    "pageIndex": 1, //页数\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 1,\n        "list": [\n            {\n                "id": 2520,  //试卷id\n                "name": "生理卫生",  //试卷名称\n                "questionCount": 1,  //题目数\n                "score": 20,  //试卷分数\n                "createTime": "2021-05-31 13:34:49", //创建时间\n                "createUser": 2,   //创建人\n                "subjectId": 158,  //学科\n                "subjectName": "英语",  //学科\n                "paperType": 1,   //试卷类型\n                "frameTextContentId": 9016  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.1.8 试卷查询

  • 接口地址:/api/student/exam/paper/select/9
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 45,  //试卷id\n        "level": 1,  //年级\n        "subjectId": 1,  //学科\n        "paperType": 1,  //试卷类型\n        "name": "测试一",  //试卷名称\n        "suggestTime": 22,  //建议时长\n        "limitDateTime": null,  //考试时间限制\n        "titleItems": [  \n            {\n                "name": "一、选择题",  //试卷标题\n                "questionItems": [\n                    {\n                        "id": 45,      //题目id\n                        "questionType": 5,  //题型\n                        "subjectId": 1,  //学科\n                        "title": "默写咏鹅",  //标题\n                        "gradeLevel": 1,  //年级\n                        "items": [],  //选项\n                        "analyze": "咏鹅可以带拼音",  //解析\n                        "correctArray": null,  //标答\n                        "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。",  //标答\n                        "score": "10", //分数\n                        "difficult": 3,  //难度\n                        "itemOrder": 1  //顺序\n                    }\n                ]\n            }\n        ],\n        "score": "10"\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

4.1.9 试卷提交

  • 接口地址:/api/student/exampaper/answer/answerSubmit
  • 请求参数:
{\n    "questionId": null, \n    "doTime": 14,    //耗时\n    "answerItems": [\n        {\n            "questionId": 4,  //题目id\n            "content": null,  //答题内容\n            "contentArray": [   //填空题内容\n                "测试",\n                "1"\n            ],\n            "completed": true, //是否完成\n            "itemOrder": 1   //题目序号\n        } \n    ],\n    "id": 4   //试卷id\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "2"   //试卷得分\n}\n
1
2
3
4
5

4.1.10 答卷查询

  • 接口地址:/api/student/exampaper/answer/read/4
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "paper": {  //试卷信息\n            "id": 45,  //试卷id\n            "level": 1, //年级\n            "subjectId": 1,  //学科\n            "paperType": 4,  //试卷类型\n            "name": "限时考试二",  //试卷名称\n            "suggestTime": 20,  //考试时长\n            "limitDateTime": [  //考试时间限制\n                "2021-06-22 00:00:00",\n                "2021-08-06 00:00:00"\n            ],\n            "titleItems": [\n                {\n                    "name": "一、完成题目",  //标题\n                    "questionItems": [   //题目列表\n                        {\n                            "id": 45,  //题目id\n                            "questionType": 4,   //题目类型\n                            "subjectId": 1,  //学科\n                            "title": "曲项向天歌红掌拨清波",  //题目标题\n                            "gradeLevel": 1,  //年级\n                            "items": [   //题目选项\n                                {\n                                    "prefix": "1",   //选项标识\n                                    "content": "鹅鹅鹅",   //选项内容\n                                    "score": "2"  //选项分数\n                                },\n                                {\n                                    "prefix": "2",\n                                    "content": "白毛浮绿水",\n                                    "score": "2"\n                                }\n                            ],\n                            "analyze": "咏鹅",  //解析\n                            "correctArray": [  //标答\n                                "鹅鹅鹅",\n                                "白毛浮绿水"\n                            ],\n                            "correct": "",  //标答\n                            "score": "4",  //题目分数\n                            "difficult": 4, //题目难度\n                            "itemOrder": 1 //题目顺序\n                        }\n                    ]\n                }\n            ],\n            "score": "18"   //试卷分数\n        },\n        "answer": {  //答卷信息\n            "id": 45,  //答卷id\n            "doTime": 14,  //耗时\n            "score": "2",  //得分\n            "answerItems": [   //答题信息\n                {\n                    "id": 45,  //答题id\n                    "questionId": 4,  //题目id\n                    "doRight": null,  //是否正确\n                    "content": null, //答题内容\n                    "itemOrder": 1, //题序\n                    "contentArray": [  //答题内容\n                        "测试",\n                        "1"\n                    ],\n                    "score": "0", //得分\n                    "questionScore": "4"  //题目分数\n                }\n            ]\n        }\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

4.1.11 试卷批改

  • 接口地址:/api/student/exampaper/answer/edit
  • 请求参数:
{\n    "id": 45,  //答卷id\n    "doTime": 14,  //耗时\n    "score": "2",  //得分数\n    "answerItems": [\n        {\n            "id": 45, //答题id\n            "questionId": 4, //题目id\n            "doRight": null,  //是否正确\n            "content": null,  //答题内容\n            "itemOrder": 1,  //题目顺序\n            "contentArray": [  //答题内容\n                "测试",\n                "1"\n            ],\n            "score": "4",  //得分\n            "questionScore": "4"  //题目分数\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "16"  //试卷得分\n}\n
1
2
3
4
5

4.1.12 考试记录分页

  • 接口地址:/api/student/exampaper/answer/pageList
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 6204,\n        "list": [\n            {\n                "id": 6534,  //试卷id\n                "createTime": "2021-06-01 17:56:38",  //创建时间\n                "userScore": "0",  //考试分数\n                "subjectName": "数学",  //考试学科\n                "subjectId": 129, //学科id\n                "questionCount": 1,  //题目数量\n                "questionCorrect": 0,  //题目正确数\n                "paperScore": "3",  //试卷总分\n                "doTime": "4 秒",  //耗时\n                "paperType": 7,  //试卷类型\n                "systemScore": "0",  //系统批改得分\n                "status": 2,   //试卷状态\n                "paperName": "智能训练试卷 - 1845",  //试卷名称\n                "userName": null  //用户名\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

4.1.13 错题本分页

  • 接口地址:/api/student/question/answer/page
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 17002,\n        "list": [\n            {\n                "id": 24928,   //题目id\n                "questionType": 1,  //题型\n                "createTime": "2021-06-02 16:07:11",  //创建时间\n                "subjectName": "语文",  //学科\n                "shortTitle": "666"  //题干\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

4.1.14 答题详情

  • 接口地址:/api/student/question/answer/select/25067
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "questionVM": {\n            "id": 507,    //题目id\n            "questionType": 1,   //题目类型\n            "subjectId": 46,  //学科id\n            "title": "111",   //题干\n            "gradeLevel": 12,    //年级\n            "items": [        //选项\n                {\n                    "prefix": "A",  //选项\n                    "content": "A",  //选项内容\n                    "score": null    //选项分数\n                }\n            ],\n            "analyze": "D",     //解析\n            "correctArray": null,  //标答\n            "correct": "D",   //标答\n            "score": "2",  //分数\n            "difficult": 3,  //难度\n            "itemOrder": null  //排序\n        },\n        "questionAnswerVM": {   //用户答案\n            "id": 25067,  \n            "questionId": 507,  //题目id\n            "doRight": false,   //是否正确\n            "content": "A",   //用户答案\n            "itemOrder": 2,   //排序\n            "contentArray": null,   //用户答案\n            "score": "0",  //得分\n            "questionScore": "2"  //题目分数\n        }\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

4.1.15 用户动态

  • 接口地址:/api/student/user/log
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 1812,  \n            "userId": 1,  //用户id\n            "userName": "student",  //用户名\n            "realName": "Test",  //用户真实姓名\n            "content": "student 登录了学之思开源考试系统",  //动态内容\n            "createTime": "2021-06-08 17:12:50"  //创建时间\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.1.16 当前用户信息

  • 接口地址:/api/student/user/current
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 45,\n        "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",\n        "userName": "student",  //用户名\n        "realName": "Test",  //真实姓名\n        "age": 18,   //年龄\n        "role": 1,   //角色\n        "sex": 1,  //性别\n        "birthDay": "2019-09-01 00:00:00",  //生日\n        "phone": "158800882",  //手机号\n        "lastActiveTime": "",\n        "createTime": "2019-09-07 18:55:02",\n        "modifyTime": "2021-06-09 17:04:31",\n        "status": 1,  //状态\n        "userLevel": 1,   //年级\n        "classes": "1班",  //用户班级\n        "imagePath": ""  //用户头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

4.1.17 修改用户信息

  • 接口地址:/api/student/user/update
  • 请求参数:
{\n    "id": 45,\n    "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",\n    "userName": "student",  //用户名\n    "realName": "Test",  //真实姓名\n    "age": 18,   //年龄\n    "role": 1,   //角色\n    "sex": 1,  //性别\n    "birthDay": "2019-09-01 00:00:00",  //生日\n    "phone": "158800882",  //手机号\n    "lastActiveTime": "",\n    "createTime": "2019-09-07 18:55:02",\n    "modifyTime": "2021-06-09 17:04:31",\n    "status": 1,  //状态\n    "userLevel": 1,   //年级\n    "classes": "1班",  //用户班级\n    "imagePath": ""  //用户头像\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.18 消息分页

  • 接口地址:/api/student/user/message/page
  • 请求参数:
{\n    "pageIndex": 1, //页码\n    "pageSize": 10  //每页条数\n}\n
1
2
3
4
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 5,\n        "list": [\n            {\n                "id": 45,\n                "title": "rwerw",   //消息标题\n                "messageId": 10,\n                "content": "sfsdf",  //消息内容\n                "readed": true, //是否已读\n                "createTime": "2021-06-11 16:32:40",   //创建时间\n                "sendUserName": "admin"  //发送人\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.1.19 消息标记已读

  • 接口地址:/api/student/user/message/read/14
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.1.20 未读消息数量

  • 接口地址:/api/student/user/message/unreadCount
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": 0  //未读消息数量\n}\n
1
2
3
4
5
',81),u={},l=(0,e(3744).Z)(u,[["render",function(n,s){return a}]])},3744:(n,s)=>{s.Z=(n,s)=>{const e=n.__vccOpts||n;for(const[n,a]of s)e[n]=a;return e}}}]); \ No newline at end of file diff --git a/docs/assets/js/v-45a87c2c.3be07abe.js b/docs/assets/js/v-45a87c2c.3be07abe.js deleted file mode 100644 index cd93631a6..000000000 --- a/docs/assets/js/v-45a87c2c.3be07abe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[71],{8992:(n,s,e)=>{e.r(s),e.d(s,{data:()=>a});const a={key:"v-45a87c2c",path:"/guide/wx.html",title:"4.2 小程序",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:3,title:"4.2.1 登录",slug:"_4-2-1-登录",children:[]},{level:3,title:"4.2.2 注册",slug:"_4-2-2-注册",children:[]},{level:3,title:"4.2.3 检查绑定",slug:"_4-2-3-检查绑定",children:[]},{level:3,title:"4.2.3 解绑退出",slug:"_4-2-3-解绑退出",children:[]},{level:3,title:"4.2.3 主页试卷列表",slug:"_4-2-3-主页试卷列表",children:[]},{level:3,title:"4.2.4 任务中心",slug:"_4-2-4-任务中心",children:[]},{level:3,title:"4.2.4 试卷列表",slug:"_4-2-4-试卷列表",children:[]},{level:3,title:"4.2.5 试卷查询",slug:"_4-2-5-试卷查询",children:[]},{level:3,title:"4.2.6 答卷列表",slug:"_4-2-6-答卷列表",children:[]},{level:3,title:"4.2.7 试卷提交",slug:"_4-2-7-试卷提交",children:[]},{level:3,title:"4.2.8 获取当前用户信息",slug:"_4-2-8-获取当前用户信息",children:[]},{level:3,title:"4.2.9 用户信息更新",slug:"_4-2-9-用户信息更新",children:[]},{level:3,title:"4.2.10 用户动态",slug:"_4-2-10-用户动态",children:[]},{level:3,title:"4.2.11 消息列表",slug:"_4-2-11-消息列表",children:[]},{level:3,title:"4.2.12 消息详情",slug:"_4-2-12-消息详情",children:[]},{level:3,title:"4.1.13 消息未读数",slug:"_4-1-13-消息未读数",children:[]},{level:3,title:"4.1.14 消息标记已读",slug:"_4-1-14-消息标记已读",children:[]}],filePathRelative:"guide/wx.md",git:{updatedTime:1657778364e3}}},5867:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const a=(0,e(6252).uE)('

4.2 小程序

4.2.1 登录

  • 接口地址:/api/wx/student/auth/bind
  • 请求参数:
     userName: student  //用户名\n     password: 123456   //密码\n     code: 023BNuFa1CQ14B07KVHa16RHM94BNuF0   //授权码\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "950efd96-ecd1-4482-9204-c54cd3325a8a"  //登录Token\n}\n
1
2
3
4
5

4.2.2 注册

  • 接口地址:/api/wx/student/user/register
  • 请求参数:
    userName: student2  //用户名\n    password: 123456 //密码\n    userLevel: 1   //年级\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.2.3 检查绑定

  • 接口地址:/api/wx/student/user/register
  • 请求参数:
    code: 063MMx000eoAnM15Tj400hq8l64MMx0Z  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "2fa8cbb7-6be9-4e54-bc68-1265348cf703"  //登录令牌\n}\n
1
2
3
4
5

4.2.3 解绑退出

  • 接口地址:/api/wx/student/auth/unBind
  • 请求参数:
    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.2.3 主页试卷列表

  • 接口地址:/api/wx/student/dashboard/index
  • 请求参数:
    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "fixedPaper": [  //固定试卷\n            {\n                "id": 71,  //试卷id\n                "name": "aaa",  //试卷名称\n                "limitStartTime": null,\n                "limitEndTime": null\n            }\n        ],\n        "timeLimitPaper": [  //时段试卷\n            {\n                "id": 71,  //试卷id\n                "name": "202008705",  //试卷名称\n                "limitStartTime": 1600704000000,\n                "limitEndTime": 1664985600000,\n                "startTime": "2020-09-22 00:00:00",  //考试开始时间\n                "endTime": "2022-10-06 00:00:00"  //考试结束时间\n            }\n        ],\n        "classPaper": [  //班级试卷\n            {\n                "paperId": 21,  //试卷id\n                "paperName": "20200908",  //试卷名称\n                "className": "1班"  //班级\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

4.2.4 任务中心

  • 接口地址:/api/wx/student/dashboard/index
  • 请求参数:
    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 71,\n            "title": "基础任务", //任务标题\n            "paperItems": [\n                {\n                    "examPaperId": 19,  //试卷id\n                    "examPaperName": "基础任务一",  //试卷名称\n                    "examPaperAnswerId": 9,  //答卷id\n                    "status": 2 //答卷状态\n                }\n            ]\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.2.4 试卷列表

  • 接口地址:/api/wx/student/exam/paper/pageList
  • 请求参数:
    paperType: 1,  //试卷类型\n    pageIndex: 1,  //页码\n    pageSize: 20  //每页数量\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 9,\n        "list": [\n            {\n                "id": 71,\n                "name": "固定试卷", //试卷名称\n                "questionCount": 1, //题目数量\n                "score": 50, //分数\n                "createTime": "2021-09-10 16:06:45", //创建时间\n                "createUser": 2, //创建人\n                "subjectId": 4, //学科\n                "subjectName": "语文", //学科名称\n                "paperType": 1, //试卷类型\n                "frameTextContentId": 294,  试卷内容\n                "startTime": "",  //考试开始时间\n                "endTime": "", //考试结束时间\n                "paperTypeStr": "固定试卷", //试卷类型\n                "scoreStr": "5", //分数\n                "suggestTimeStr": "20分钟" //考试时长\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

4.2.5 试卷查询

  • 接口地址:/api/wx/student/exam/paper/select/24
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 71, //试卷id\n        "level": 1,  //年级\n        "subjectId": 4,  //学科\n        "paperType": 1,  //试卷类型\n        "name": "20200912卷",  //试卷名称\n        "suggestTime": 30,  //考试时长\n        "limitDateTime": null,  \n        "titleItems": [ //标题\n            {\n                "name": "一、解答题",  //标题名称\n                "questionItems": [  //题目列表\n                    {\n                        "id": 71,  //题目id\n                        "questionType": 1, //题目类型\n                        "subjectId": 4, //学科\n                        "title": "中华四大名著都有哪些,下列正确的是",  //题干\n                        "gradeLevel": 1, //年级\n                        "items": [  //选项\n                            {\n                                "prefix": "A",  //选项标识\n                                "content": "红楼梦",  //选项内容\n                                "score": null //分数\n                            }\n                        ],\n                        "analyze": "题目比较简单,自行分析", //解析\n                        "correctArray": null,  //标答\n                        "correct": "A",  //标答\n                        "score": "2.5", //得分\n                        "difficult": 3, //难度\n                        "itemOrder": 1, //题目排序\n                        "knowledgeIdList": [ //题目知识点\n                            8,\n                            9\n                        ]\n                    }\n                ]\n            }\n        ],\n        "score": "20", //试卷得分\n        "classes": null //班级\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

4.2.6 答卷列表

  • 接口地址:/api/wx/student/exam/paper/pageList
  • 请求参数:
    pageIndex: 1,  //页码\n    pageSize: 20  //每页数量\n
1
2
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 248,\n        "list": [\n            {\n                "id": 262,\n                "createTime": "2021-09-15 14:42:22",  //提交时间\n                "userScore": "0",  //得分\n                "subjectName": "语文", //学科\n                "subjectId": 4, //学科\n                "questionCount": 2, //题目数量\n                "questionCorrect": 1, //正确题数\n                "paperScore": "1", //试卷总分\n                "doTime": "2秒", //耗时\n                "paperType": 7, //试卷类型\n                "paperTypeStr": "随机试卷", //试卷类型\n                "systemScore": "0", //自动批改得分\n                "status": 2, //状态\n                "paperName": "智能训练试卷 - 51", //试卷名称\n                "userName": null\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

4.2.7 试卷提交

  • 接口地址:/api/wx/student/exampaper/answer/answerSubmit
  • 请求参数:
    "1_42_1": "A" //答题信息\n    "id": "78" //试卷id\n    "doTime": 3  //耗时\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "0"\n}\n
1
2
3
4
5

4.2.8 获取当前用户信息

  • 接口地址:/api/wx/student/user/current
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 71,\n        "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47", //用户uuid\n        "userName": "student", //用户名\n        "realName": "学生", //真实姓名\n        "age": 18, //年龄\n        "role": 1, //角色\n        "sex": 1, //性别\n        "birthDay": "2019-09-17", //生日\n        "phone": "158800882", //手机号\n        "lastActiveTime": "",\n        "createTime": "2019-09-07 18:55:02", //创建时间\n        "modifyTime": "2021-09-15 18:38:34", //修改时间\n        "status": 1, //状态\n        "userLevel": 1, //年级\n        "userLevelStr": "一年级", //年级\n        "classes": "1班", //班级\n        "imagePath": "" //用户头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.2.9 用户信息更新

  • 接口地址:/api/wx/student/user/update
  • 请求参数:
    "realName": "学生",  //真实姓名\n    "age": 18, //年龄\n    "sex": "1", //性别\n    "birthDay": "2019-09-17",  //出生日期\n    "phone": "158800882" //手机号\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 71,\n        "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",  //用户uuid\n        "userName": "student", //用户名\n        "realName": "学生",  //真实姓名\n        "age": 18, //年龄\n        "role": 1, //角色\n        "sex": 1, //性别\n        "birthDay": "2019-09-17 00:00:00", //出生日期\n        "phone": "158800882", //手机号\n        "lastActiveTime": "", //最好活动时间\n        "createTime": "2019-09-07 18:55:02", //创建时间\n        "modifyTime": "2021-09-23 21:20:34", //修改时间\n        "status": 1, //状态\n        "userLevel": 1, //年级\n        "userLevelStr": null,  //年级\n        "classes": null, //班级\n        "imagePath": "" //头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.2.10 用户动态

  • 接口地址:/api/wx/student/user/log
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 6136,  \n            "userId": 1, //用户id\n            "userName": "student", //用户名\n            "realName": "学生", //真实姓名\n            "content": "student 登录了学之思开源考试系统", //日志内容\n            "createTime": "2021-09-24 21:52:05" //创建时间\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.2.11 消息列表

  • 接口地址:/api/wx/student/user/message/page
  • 请求参数:
    pageIndex: 1,  //页码\n    pageSize: 20   //每页数量\n
1
2
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 7,\n        "list": [\n            {\n                "id": 71, //消息\n                "title": "国庆假说明",  //消息标题\n                "messageId": 17,  //消息id\n                "content": "假期七天请注意安全。。。",  //消息内容\n                "readed": true, //是否已读\n                "createTime": "2021-09-25 14:51:32", //创建时间\n                "sendUserName": "admin" //发送人用户名\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.2.12 消息详情

  • 接口地址:/api/wx/student/user/message/read/26
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 71,\n        "title": "国庆假说明",  //消息标题\n        "content": "假期七天请注意安全。。。",  //消息内容\n        "createTime": "2021-09-25 14:51:32",  //创建时间\n        "sendUserId": 2, //发送人id\n        "sendUserName": "admin", //发送人用户名\n        "sendRealName": "管理员", //发送人真实姓名\n        "receiveUserCount": 4,\n        "readCount": 1 \n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4.1.13 消息未读数

  • 接口地址:/api/wx/student/user/message/unreadCount
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": 0  //未读消息数量\n}\n
1
2
3
4
5

4.1.14 消息标记已读

  • 接口地址:/api/wx/student/user/message/read/14
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5
',74),u={},l=(0,e(3744).Z)(u,[["render",function(n,s){return a}]])},3744:(n,s)=>{s.Z=(n,s)=>{const e=n.__vccOpts||n;for(const[n,a]of s)e[n]=a;return e}}}]); \ No newline at end of file diff --git a/docs/assets/js/v-45a87c2c.945c0a09.js b/docs/assets/js/v-45a87c2c.945c0a09.js new file mode 100644 index 000000000..3578ce341 --- /dev/null +++ b/docs/assets/js/v-45a87c2c.945c0a09.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[71],{8992:(n,s,e)=>{e.r(s),e.d(s,{data:()=>a});const a={key:"v-45a87c2c",path:"/guide/wx.html",title:"4.2 小程序",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:3,title:"4.2.1 登录",slug:"_4-2-1-登录",children:[]},{level:3,title:"4.2.2 注册",slug:"_4-2-2-注册",children:[]},{level:3,title:"4.2.3 检查绑定",slug:"_4-2-3-检查绑定",children:[]},{level:3,title:"4.2.3 解绑退出",slug:"_4-2-3-解绑退出",children:[]},{level:3,title:"4.2.3 主页试卷列表",slug:"_4-2-3-主页试卷列表",children:[]},{level:3,title:"4.2.4 任务中心",slug:"_4-2-4-任务中心",children:[]},{level:3,title:"4.2.4 试卷列表",slug:"_4-2-4-试卷列表",children:[]},{level:3,title:"4.2.5 试卷查询",slug:"_4-2-5-试卷查询",children:[]},{level:3,title:"4.2.6 答卷列表",slug:"_4-2-6-答卷列表",children:[]},{level:3,title:"4.2.7 试卷提交",slug:"_4-2-7-试卷提交",children:[]},{level:3,title:"4.2.8 获取当前用户信息",slug:"_4-2-8-获取当前用户信息",children:[]},{level:3,title:"4.2.9 用户信息更新",slug:"_4-2-9-用户信息更新",children:[]},{level:3,title:"4.2.10 用户动态",slug:"_4-2-10-用户动态",children:[]},{level:3,title:"4.2.11 消息列表",slug:"_4-2-11-消息列表",children:[]},{level:3,title:"4.2.12 消息详情",slug:"_4-2-12-消息详情",children:[]},{level:3,title:"4.1.13 消息未读数",slug:"_4-1-13-消息未读数",children:[]},{level:3,title:"4.1.14 消息标记已读",slug:"_4-1-14-消息标记已读",children:[]}],filePathRelative:"guide/wx.md",git:{updatedTime:1657778364e3}}},5738:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const a=(0,e(6252).uE)('

4.2 小程序

4.2.1 登录

  • 接口地址:/api/wx/student/auth/bind
  • 请求参数:
     userName: student  //用户名\n     password: 123456   //密码\n     code: 023BNuFa1CQ14B07KVHa16RHM94BNuF0   //授权码\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "950efd96-ecd1-4482-9204-c54cd3325a8a"  //登录Token\n}\n
1
2
3
4
5

4.2.2 注册

  • 接口地址:/api/wx/student/user/register
  • 请求参数:
    userName: student2  //用户名\n    password: 123456 //密码\n    userLevel: 1   //年级\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.2.3 检查绑定

  • 接口地址:/api/wx/student/user/register
  • 请求参数:
    code: 063MMx000eoAnM15Tj400hq8l64MMx0Z  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "2fa8cbb7-6be9-4e54-bc68-1265348cf703"  //登录令牌\n}\n
1
2
3
4
5

4.2.3 解绑退出

  • 接口地址:/api/wx/student/auth/unBind
  • 请求参数:
    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.2.3 主页试卷列表

  • 接口地址:/api/wx/student/dashboard/index
  • 请求参数:
    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "fixedPaper": [  //固定试卷\n            {\n                "id": 9,  //试卷id\n                "name": "aaa",  //试卷名称\n                "limitStartTime": null,\n                "limitEndTime": null\n            }\n        ],\n        "timeLimitPaper": [  //时段试卷\n            {\n                "id": 9,  //试卷id\n                "name": "202008705",  //试卷名称\n                "limitStartTime": 1600704000000,\n                "limitEndTime": 1664985600000,\n                "startTime": "2020-09-22 00:00:00",  //考试开始时间\n                "endTime": "2022-10-06 00:00:00"  //考试结束时间\n            }\n        ],\n        "classPaper": [  //班级试卷\n            {\n                "paperId": 21,  //试卷id\n                "paperName": "20200908",  //试卷名称\n                "className": "1班"  //班级\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

4.2.4 任务中心

  • 接口地址:/api/wx/student/dashboard/index
  • 请求参数:
    token: edadfcc9-4ce5-43a3-bb8f-302c5f7f2c59  //令牌\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 9,\n            "title": "基础任务", //任务标题\n            "paperItems": [\n                {\n                    "examPaperId": 19,  //试卷id\n                    "examPaperName": "基础任务一",  //试卷名称\n                    "examPaperAnswerId": 9,  //答卷id\n                    "status": 2 //答卷状态\n                }\n            ]\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.2.4 试卷列表

  • 接口地址:/api/wx/student/exam/paper/pageList
  • 请求参数:
    paperType: 1,  //试卷类型\n    pageIndex: 1,  //页码\n    pageSize: 20  //每页数量\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 9,\n        "list": [\n            {\n                "id": 9,\n                "name": "固定试卷", //试卷名称\n                "questionCount": 1, //题目数量\n                "score": 50, //分数\n                "createTime": "2021-09-10 16:06:45", //创建时间\n                "createUser": 2, //创建人\n                "subjectId": 4, //学科\n                "subjectName": "语文", //学科名称\n                "paperType": 1, //试卷类型\n                "frameTextContentId": 294,  试卷内容\n                "startTime": "",  //考试开始时间\n                "endTime": "", //考试结束时间\n                "paperTypeStr": "固定试卷", //试卷类型\n                "scoreStr": "5", //分数\n                "suggestTimeStr": "20分钟" //考试时长\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

4.2.5 试卷查询

  • 接口地址:/api/wx/student/exam/paper/select/24
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 9, //试卷id\n        "level": 1,  //年级\n        "subjectId": 4,  //学科\n        "paperType": 1,  //试卷类型\n        "name": "20200912卷",  //试卷名称\n        "suggestTime": 30,  //考试时长\n        "limitDateTime": null,  \n        "titleItems": [ //标题\n            {\n                "name": "一、解答题",  //标题名称\n                "questionItems": [  //题目列表\n                    {\n                        "id": 9,  //题目id\n                        "questionType": 1, //题目类型\n                        "subjectId": 4, //学科\n                        "title": "中华四大名著都有哪些,下列正确的是",  //题干\n                        "gradeLevel": 1, //年级\n                        "items": [  //选项\n                            {\n                                "prefix": "A",  //选项标识\n                                "content": "红楼梦",  //选项内容\n                                "score": null //分数\n                            }\n                        ],\n                        "analyze": "题目比较简单,自行分析", //解析\n                        "correctArray": null,  //标答\n                        "correct": "A",  //标答\n                        "score": "2.5", //得分\n                        "difficult": 3, //难度\n                        "itemOrder": 1, //题目排序\n                        "knowledgeIdList": [ //题目知识点\n                            8,\n                            9\n                        ]\n                    }\n                ]\n            }\n        ],\n        "score": "20", //试卷得分\n        "classes": null //班级\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

4.2.6 答卷列表

  • 接口地址:/api/wx/student/exam/paper/pageList
  • 请求参数:
    pageIndex: 1,  //页码\n    pageSize: 20  //每页数量\n
1
2
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 248,\n        "list": [\n            {\n                "id": 262,\n                "createTime": "2021-09-15 14:42:22",  //提交时间\n                "userScore": "0",  //得分\n                "subjectName": "语文", //学科\n                "subjectId": 4, //学科\n                "questionCount": 2, //题目数量\n                "questionCorrect": 1, //正确题数\n                "paperScore": "1", //试卷总分\n                "doTime": "2秒", //耗时\n                "paperType": 7, //试卷类型\n                "paperTypeStr": "随机试卷", //试卷类型\n                "systemScore": "0", //自动批改得分\n                "status": 2, //状态\n                "paperName": "智能训练试卷 - 51", //试卷名称\n                "userName": null\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

4.2.7 试卷提交

  • 接口地址:/api/wx/student/exampaper/answer/answerSubmit
  • 请求参数:
    "1_42_1": "A" //答题信息\n    "id": "78" //试卷id\n    "doTime": 3  //耗时\n
1
2
3
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": "0"\n}\n
1
2
3
4
5

4.2.8 获取当前用户信息

  • 接口地址:/api/wx/student/user/current
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 9,\n        "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47", //用户uuid\n        "userName": "student", //用户名\n        "realName": "学生", //真实姓名\n        "age": 18, //年龄\n        "role": 1, //角色\n        "sex": 1, //性别\n        "birthDay": "2019-09-17", //生日\n        "phone": "158800882", //手机号\n        "lastActiveTime": "",\n        "createTime": "2019-09-07 18:55:02", //创建时间\n        "modifyTime": "2021-09-15 18:38:34", //修改时间\n        "status": 1, //状态\n        "userLevel": 1, //年级\n        "userLevelStr": "一年级", //年级\n        "classes": "1班", //班级\n        "imagePath": "" //用户头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.2.9 用户信息更新

  • 接口地址:/api/wx/student/user/update
  • 请求参数:
    "realName": "学生",  //真实姓名\n    "age": 18, //年龄\n    "sex": "1", //性别\n    "birthDay": "2019-09-17",  //出生日期\n    "phone": "158800882" //手机号\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 9,\n        "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",  //用户uuid\n        "userName": "student", //用户名\n        "realName": "学生",  //真实姓名\n        "age": 18, //年龄\n        "role": 1, //角色\n        "sex": 1, //性别\n        "birthDay": "2019-09-17 00:00:00", //出生日期\n        "phone": "158800882", //手机号\n        "lastActiveTime": "", //最好活动时间\n        "createTime": "2019-09-07 18:55:02", //创建时间\n        "modifyTime": "2021-09-23 21:20:34", //修改时间\n        "status": 1, //状态\n        "userLevel": 1, //年级\n        "userLevelStr": null,  //年级\n        "classes": null, //班级\n        "imagePath": "" //头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.2.10 用户动态

  • 接口地址:/api/wx/student/user/log
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 6136,  \n            "userId": 1, //用户id\n            "userName": "student", //用户名\n            "realName": "学生", //真实姓名\n            "content": "student 登录了学之思开源考试系统", //日志内容\n            "createTime": "2021-09-24 21:52:05" //创建时间\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.2.11 消息列表

  • 接口地址:/api/wx/student/user/message/page
  • 请求参数:
    pageIndex: 1,  //页码\n    pageSize: 20   //每页数量\n
1
2
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 7,\n        "list": [\n            {\n                "id": 9, //消息\n                "title": "国庆假说明",  //消息标题\n                "messageId": 17,  //消息id\n                "content": "假期七天请注意安全。。。",  //消息内容\n                "readed": true, //是否已读\n                "createTime": "2021-09-25 14:51:32", //创建时间\n                "sendUserName": "admin" //发送人用户名\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.2.12 消息详情

  • 接口地址:/api/wx/student/user/message/read/26
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 9,\n        "title": "国庆假说明",  //消息标题\n        "content": "假期七天请注意安全。。。",  //消息内容\n        "createTime": "2021-09-25 14:51:32",  //创建时间\n        "sendUserId": 2, //发送人id\n        "sendUserName": "admin", //发送人用户名\n        "sendRealName": "管理员", //发送人真实姓名\n        "receiveUserCount": 4,\n        "readCount": 1 \n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4.1.13 消息未读数

  • 接口地址:/api/wx/student/user/message/unreadCount
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": 0  //未读消息数量\n}\n
1
2
3
4
5

4.1.14 消息标记已读

  • 接口地址:/api/wx/student/user/message/read/14
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5
',74),u={},l=(0,e(3744).Z)(u,[["render",function(n,s){return a}]])},3744:(n,s)=>{s.Z=(n,s)=>{const e=n.__vccOpts||n;for(const[n,a]of s)e[n]=a;return e}}}]); \ No newline at end of file diff --git a/docs/assets/js/v-55bcf8d6.03bac04d.js b/docs/assets/js/v-55bcf8d6.03bac04d.js new file mode 100644 index 000000000..682777393 --- /dev/null +++ b/docs/assets/js/v-55bcf8d6.03bac04d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[725],{927:(n,s,e)=>{e.r(s),e.d(s,{data:()=>a});const a={key:"v-55bcf8d6",path:"/guide/admin.html",title:"4.3 管理端",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:3,title:"4.3.1 登录",slug:"_4-3-1-登录",children:[]},{level:3,title:"4.3.2 登出",slug:"_4-3-2-登出",children:[]},{level:3,title:"4.3.3 首页",slug:"_4-3-3-首页",children:[]},{level:3,title:"4.3.4 用户分页",slug:"_4-3-4-用户分页",children:[]},{level:3,title:"4.3.5 用户查询",slug:"_4-3-5-用户查询",children:[]},{level:3,title:"4.3.6 用户编辑",slug:"_4-3-6-用户编辑",children:[]},{level:3,title:"4.3.7 用户删除",slug:"_4-3-7-用户删除",children:[]},{level:3,title:"4.3.8 用户状态修改",slug:"_4-3-8-用户状态修改",children:[]},{level:3,title:"4.3.9 学科列表",slug:"_4-3-9-学科列表",children:[]},{level:3,title:"4.3.10 学科分页",slug:"_4-3-10-学科分页",children:[]},{level:3,title:"4.3.11 学科查询",slug:"_4-3-11-学科查询",children:[]},{level:3,title:"4.3.12 学科编辑",slug:"_4-3-12-学科编辑",children:[]},{level:3,title:"4.3.13 学科删除",slug:"_4-3-13-学科删除",children:[]},{level:3,title:"4.3.14 试卷分页",slug:"_4-3-14-试卷分页",children:[]},{level:3,title:"4.3.15 试卷查询",slug:"_4-3-15-试卷查询",children:[]},{level:3,title:"4.3.16 试卷编辑",slug:"_4-3-16-试卷编辑",children:[]},{level:3,title:"4.3.17 试卷删除",slug:"_4-3-17-试卷删除",children:[]},{level:3,title:"4.3.18 任务试卷分页",slug:"_4-3-18-任务试卷分页",children:[]},{level:3,title:"4.3.19 题目分页",slug:"_4-3-19-题目分页",children:[]},{level:3,title:"4.3.20 题目查询",slug:"_4-3-20-题目查询",children:[]},{level:3,title:"4.3.21 题目编辑",slug:"_4-3-21-题目编辑",children:[]},{level:3,title:"4.3.22 题目删除",slug:"_4-3-22-题目删除",children:[]},{level:3,title:"4.3.23 任务分页",slug:"_4-3-23-任务分页",children:[]},{level:3,title:"4.3.24 任务查询",slug:"_4-3-24-任务查询",children:[]},{level:3,title:"4.3.25 任务编辑",slug:"_4-3-25-任务编辑",children:[]},{level:3,title:"4.3.26 任务删除",slug:"_4-3-26-任务删除",children:[]},{level:3,title:"4.3.27 消息分页",slug:"_4-3-27-消息分页",children:[]},{level:3,title:"4.3.28 消息发送",slug:"_4-3-28-消息发送",children:[]},{level:3,title:"4.3.29 答卷分页",slug:"_4-3-29-答卷分页",children:[]},{level:3,title:"4.3.30 用户日志",slug:"_4-3-30-用户日志",children:[]},{level:3,title:"4.3.31 当前用户信息",slug:"_4-3-31-当前用户信息",children:[]},{level:3,title:"4.3.32 用户信息更新",slug:"_4-3-32-用户信息更新",children:[]},{level:3,title:"4.3.32 用户信息更新",slug:"_4-3-32-用户信息更新-1",children:[]},{level:3,title:"4.3.33 图片上传",slug:"_4-3-33-图片上传",children:[]},{level:3,title:"4.3.34 个人信息修改",slug:"_4-3-34-个人信息修改",children:[]}],filePathRelative:"guide/admin.md",git:{updatedTime:1657778364e3}}},8905:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const a=(0,e(6252).uE)('

4.3 管理端

4.3.1 登录

  • 接口地址:/api/user/login
  • 请求参数:
{\n    "userName": "admin",  //用户名\n    "password": "",  //密码\n    "remember": false  //记住我\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": null,\n        "userUuid": null,\n        "userName": "admin",  //用户名\n        "password": null,\n        "realName": null,\n        "age": null,\n        "sex": null,\n        "birthDay": null,\n        "userLevel": null,\n        "phone": null,\n        "role": null,\n        "status": null,\n        "imagePath": null,\n        "createTime": null,\n        "modifyTime": null,\n        "lastActiveTime": null,\n        "deleted": null,\n        "wxOpenId": null\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

4.3.2 登出

  • 接口地址:/api/user/logout
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.3 首页

  • 接口地址:/api/admin/dashboard/index
  • 请求参数:无
  • 返回参数:
 {\n    "examPaperCount": 2413,  //试卷总数\n    "questionCount": 1025,  //题目总数\n    "doExamPaperCount": 6148,  //总答卷数\n    "doQuestionCount": 23945,  //总题数\n    "mothDayUserActionValue": [  //活跃度\n        85\n    ],\n    "mothDayDoExamQuestionValue": [  //月做题数\n        22\n    ],\n    "mothDayText": [  //本月天数\n        "1"\n    ]\n}    \n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4.3.4 用户分页

  • 接口地址:/api/admin/user/page/list
  • 请求参数:
{\n    "userName": "",  //用户名\n    "role": 1,   //角色\n    "pageIndex": 1,  //页码\n    "pageSize": 10   //每页条数\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 81,  //总数\n        "list": [\n            {\n                "id": 100,     //用户id\n                "userUuid": "fd31ab62-c32f-433c-8dc4-c07e653d390a",  //用户uuid\n                "userName": "王",  //用户名\n                "realName": null,  //真实姓名\n                "age": null,  //年龄\n                "role": 1,  //角色\n                "sex": null,  //性别\n                "birthDay": "",  //出生日期          \n                "phone": null,   //手机号                 \n                "lastActiveTime": "2021-06-21 20:01:26",  //最后活动时间\n                "createTime": "2021-06-21 20:01:26",  //创建时间\n                "modifyTime": "2021-06-21 20:01:35",  //修改时间\n                "status": 1,  //状态\n                "userLevel": 1,  //年级\n                "imagePath": null   //头像\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

4.3.5 用户查询

  • 接口地址:/api/admin/user/select/1
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 100,     //用户id\n        "userUuid": "fd31ab62-c32f-433c-8dc4-c07e653d390a",  //用户uuid\n        "userName": "王",  //用户名\n        "realName": null,  //真实姓名\n        "age": null,  //年龄\n        "role": 1,  //角色\n        "sex": null,  //性别\n        "birthDay": "",  //出生日期          \n        "phone": null,   //手机号                 \n        "lastActiveTime": "2021-06-21 20:01:26",  //最后活动时间\n        "createTime": "2021-06-21 20:01:26",  //创建时间\n        "modifyTime": "2021-06-21 20:01:35",  //修改时间\n        "status": 1,  //状态\n        "userLevel": 1,  //年级\n        "imagePath": null   //头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.3.6 用户编辑

  • 接口地址:/api/admin/user/edit
  • 请求参数:
{\n    "id": null,\n    "userName": "testzz",  //用户名\n    "password": "123456",  //密码\n    "realName": "tesx",  //真实姓名\n    "role": 1,  //角色\n    "status": 1, //状态\n    "age": "", //年龄\n    "sex": "", //性别\n    "birthDay": null, //生日\n    "phone": null,  //手机号\n    "userLevel": 1  //年级\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 109,\n        "userUuid": "321dec89-0656-4736-ae4c-e2b07f4fcc67",  //用户id\n        "userName": "testzz", //用户名\n        "password": "" //密码\n        "realName": "tesx",  //真实姓名\n        "age": null, //年龄\n        "sex": null, //性别\n        "birthDay": null, //生日\n        "userLevel": 1, //年级\n        "phone": null, //手机号\n        "role": 1, //角色\n        "status": 1, //状态\n        "imagePath": null, //头像\n        "createTime": 1624538837259, //创建日期\n        "modifyTime": null, //修改时间\n        "lastActiveTime": 1624538837259, //最后活动时间\n        "deleted": false, //是否删除\n        "wxOpenId": null //微信openId\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

4.3.7 用户删除

  • 接口地址:/api/admin/user/delete/3
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,  //返回状态\n    "message": "成功", //返回消息\n    "response": null\n}\n
1
2
3
4
5

4.3.8 用户状态修改

  • 接口地址:/api/admin/user/changeStatus/1
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": 2\n}\n
1
2
3
4
5

4.3.9 学科列表

  • 接口地址:/api/admin/education/subject/list
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 6,  //学科id\n            "name": "语文",  //学科名称\n            "level": 1,  //年级\n            "levelName": "一年级",  //年级名称\n            "itemOrder": null,  //排序\n            "deleted": false  //是否删除\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.3.10 学科分页

  • 接口地址:/api/admin/education/subject/page
  • 请求参数:
{\n    "level": null,  //年级\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 2,\n        "list": [\n            {\n                "id": 6,\n                "name": "数学",  //学科名称\n                "level": 1,  //年级\n                "levelName": "一年级"  //年级名称\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4.3.11 学科查询

  • 接口地址:/api/admin/education/subject/select/2
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 6,\n        "name": "数学",  //学科名称\n        "level": 1,    //年级\n        "levelName": "一年级"   //年级名称\n    }\n}\n
1
2
3
4
5
6
7
8
9
10

4.3.12 学科编辑

  • 接口地址:/api/admin/education/subject/edit
  • 请求参数:
{\n    "id": 6,\n    "name": "数学",  //学科名称\n    "level": 2,   //年级\n    "levelName": "二年级"  //年级名称\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.13 学科删除

  • 接口地址:/api/admin/education/subject/delete/3
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.14 试卷分页

  • 接口地址:/api/admin/exam/paper/page
  • 请求参数:
{\n    "id": null,\n    "level": null,   //年级\n    "subjectId": null,  //学科\n    "pageIndex": 1,  //页码\n    "pageSize": 10  //每页数量\n}\n
1
2
3
4
5
6
7
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 9,\n        "list": [\n            {\n                "id": 6,     //试卷id\n                "name": "中级任务二",    //试卷名称\n                "questionCount": 5,  //题目总数\n                "score": 180, //试卷分数\n                "createTime": "2021-01-21 11:49:31",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 1,  //学科\n                "paperType": 6, //试卷类型\n                "frameTextContentId": 13  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

4.3.15 试卷查询

  • 接口地址:/api/admin/exam/paper/select/9
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 6,   //试卷id\n        "level": 1,  //年级\n        "subjectId": 1,  //学科\n        "paperType": 1,  //试卷类型\n        "name": "语文试卷", //试卷名称  \n        "suggestTime": 20,  //考试时间\n        "limitDateTime": null,  //限时考试\n        "titleItems": [\n            {\n                "name": "一、选择题",  //试卷标题\n                "questionItems": [\n                    {\n                        "id": 6,   //题目id\n                        "questionType": 5,  //题目类型\n                        "subjectId": 1,  //学科\n                        "title": "默写咏鹅", //题干\n                        "gradeLevel": 1, //年级\n                        "items": [], //题目选项\n                        "analyze": "咏鹅可以带拼音",  //解析\n                        "correctArray": null,  //标答数组\n                        "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。",  //标答\n                        "score": "10",  //题目分数\n                        "difficult": 3,  //难度\n                        "itemOrder": 1  //题序\n                    }\n                ]\n            }\n        ],\n        "score": "10"  //试卷总分\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

4.3.16 试卷编辑

  • 接口地址:/api/admin/exam/paper/edit
  • 请求参数:
{\n    "id": 6,  //试卷id\n    "level": 1,  //年级\n    "subjectId": 1,  //学科\n    "paperType": 6,  //试卷类型\n    "name": "中级任务二",  //试卷名称\n    "suggestTime": 20,  //考试时长\n    "limitDateTime": null,  //限时\n    "titleItems": [\n        {\n            "name": "一、选择题",  //标题\n            "questionItems": [   //题目列表\n                {\n                    "id": 6,   //题目id\n                    "questionType": 2,  //题型\n                    "subjectId": 1,  //学科\n                    "title": "以下哪些诗句是静夜思的?",  //题干\n                    "gradeLevel": 1,  //年级\n                    "items": [   //选项\n                        {\n                            "prefix": "A",   //选项标记\n                            "content": "床前明月光",  //选项内容\n                            "score": null,  //选项分数\n                            "itemUuid": null  //选项标识\n                        }\n                    ],\n                    "analyze": "床前明月光, 疑是地上霜。 举头望明月, 低头思故乡。",  //解析\n                    "correctArray": [  //正确答案\n                        "A",\n                        "C"\n                    ],\n                    "correct": "A,C", //正确答案\n                    "score": "0",  //题目分数\n                    "difficult": 3,  //难度\n                    "itemOrder": 1  //题序\n                }\n            ]\n        }\n    ],\n    "score": "18"  //试卷总分\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 6,  //试卷id\n        "level": 1,  //年级\n        "subjectId": 1,   //学科\n        "paperType": 6,   //试卷类型\n        "name": "中级任务二",   //试卷名称\n        "suggestTime": 20,  //考试时长\n        "limitDateTime": null,  //限时\n        "titleItems": [\n            {\n                "name": "一、选择题",  //标题\n                "questionItems": [\n                    {\n                        "id": 6,   //题目id\n                        "questionType": 2,    //题型\n                        "subjectId": 1,   //学科\n                        "title": "以下哪些诗句是静夜思的?",   //题干\n                        "gradeLevel": 1,    //年级\n                        "items": [   //选项\n                            {\n                                "prefix": "A",   //选项标记\n                                "content": "床前明月光",     //选项内容\n                                "score": null,   //选项分数\n                                "itemUuid": null  //选项标识\n                            }\n                        ],\n                        "analyze": "床前明月光, 疑是地上霜。 举头望明月, 低头思故乡。",   //解析\n                        "correctArray": [   //正确答案\n                            "A",\n                            "C"\n                        ],\n                        "correct": "A,C",   //正确答案\n                        "score": "0",   //题目分数\n                        "difficult": 3,   //难度\n                        "itemOrder": 1   //题序\n                    }\n                ]\n            }\n        ],\n        "score": "18"  //题序\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

4.3.17 试卷删除

  • 接口地址:/api/admin/exam/paper/delete/9
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.18 任务试卷分页

  • 接口地址:/api/admin/exam/paper/taskExamPage
  • 请求参数:
{\n    "subjectId": null,  //学科\n    "level": 1,  //年级\n    "paperType": 6,  //试卷类型\n    "pageIndex": 1,  //页面\n    "pageSize": 5  \n}\n
1
2
3
4
5
6
7
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 1,\n        "list": [\n            {\n                "id": 6,\n                "name": "任务试卷五",   //试卷名称\n                "questionCount": 2,   //题目总数\n                "score": 60,   //试卷分数\n                "createTime": "2021-08-02 14:36:26",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 1,  //学科\n                "paperType": 6,  //试卷类型\n                "frameTextContentId": 26  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

4.3.19 题目分页

  • 接口地址:/api/admin/question/page
  • 请求参数:
{\n    "id": null,\n    "questionType": null,\n    "level": null,\n    "subjectId": null,\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
6
7
8
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 7,\n        "list": [\n            {\n                "id": 6,\n                "questionType": 5,  //题型\n                "textContentId": null,\n                "createTime": "2021-01-21 11:45:57",  //创建时间\n                "subjectId": 1,  //学科\n                "createUser": 2,  //创建人\n                "score": "10", //得分\n                "status": 1,  //状态\n                "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。",  //标答\n                "analyzeTextContentId": null,   //解析\n                "difficult": 3,  //难度\n                "shortTitle": "默写咏鹅"  //题干\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.3.20 题目查询

  • 接口地址:/api/admin/question/select/508
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 508,  //题目id\n        "questionType": 5,  //题型\n        "subjectId": 4,  //学科\n        "title": "<p>什么是快乐星球?</p>",   //题干\n        "gradeLevel": 1,  //年级\n        "items": [],  //选项\n        "analyze": "照抄即可",  //解析\n        "correctArray": null,  //标答\n        "correct": "什么是快乐星球",  //正确答案\n        "score": "5",  //题目分数\n        "difficult": 5,  //难度\n        "itemOrder": null\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.3.21 题目编辑

  • 接口地址:/api/admin/question/edit
  • 请求参数:
{\n    "id": 6, //题目id\n    "questionType": 5, //题型\n    "subjectId": 1,  //学科\n    "title": "默写咏鹅",   //题干\n    "gradeLevel": 1,  //年级\n    "items": [],  //选项\n    "analyze": "咏鹅可以带拼音",   //解析\n    "correctArray": null, //标答\n    "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。", //正确答案\n    "score": 10,  //题目分数\n    "difficult": 3, //难度\n    "itemOrder": null\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.22 题目删除

  • 接口地址:/api/admin/question/delete/7
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.23 任务分页

  • 接口地址:/api/admin/task/page
  • 请求参数:
{\n    "gradeLevel": null,\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 2,\n        "list": [\n            {\n                "id": 6,   //任务id\n                "title": "中级任务",   //任务标题\n                "gradeLevel": 1,  //年级\n                "createUserName": "admin",  //创建人用户名\n                "createTime": "2021-01-21 11:50:24",  //创建时间\n                "deleted": false  //是否删除\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

4.3.24 任务查询

  • 接口地址:/api/admin/task/select/22
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 6,  //任务id\n        "gradeLevel": 12,  //年级\n        "title": "考试",  //任务标题\n        "paperItems": [\n            {\n                "id": 592,  //试卷id\n                "name": "考试",  //试卷名称\n                "questionCount": 5,  //题目数量\n                "score": 275,  //试卷分数\n                "createTime": "2021-08-12 15:02:50",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 46,  //学科\n                "paperType": 6,  //试卷类型\n                "frameTextContentId": 2897,  //试卷内容\n                "allClasses": null\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.3.25 任务编辑

  • 接口地址:/api/admin/task/edit
  • 请求参数:
{\n    "id": 6,\n    "gradeLevel": 1,\n    "title": "中级任务",\n    "paperItems": [\n        {\n            "id": 6,  //试卷id\n            "name": "中级任务一",  //试卷名称\n            "questionCount": 5,  //题目数量\n            "score": 180,  //试卷分数\n            "createTime": "2021-01-21 11:49:11",  //创建时间\n            "createUser": 2,  //创建人\n            "subjectId": 1,  //学科\n            "paperType": 6,  //试卷类型\n            "frameTextContentId": 12  //试卷内容\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 6,  //任务id\n        "gradeLevel": 1,   //年级\n        "title": "中级任务",  //任务标题\n        "paperItems": [\n            {\n                "id": 6,  //试卷id\n                "name": "中级任务一",  //试卷名称\n                "questionCount": 5,  //题目数量\n                "score": 180,  //试卷分数\n                "createTime": "2021-01-21 11:49:11",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 1,  //学科\n                "paperType": 6,  //试卷类型\n                "frameTextContentId": 12  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

4.3.26 任务删除

  • 接口地址:/api/admin/task/delete/1
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,  //返回状态\n    "message": "成功", //返回消息\n    "response": null\n}\n
1
2
3
4
5

4.3.27 消息分页

  • 接口地址:/api/admin/message/page
  • 请求参数:
{\n    "sendUserName": null,\n    "pageIndex": 4,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 36,\n        "list": [\n            {\n                "id": 6,   //消息id\n                "title": "你好,同学!",  //消息标题\n                "content": "考试请不要作弊",  //消息内容\n                "sendUserName": "admin",  //发送人用户名\n                "receives": "student",  //接收人用户名\n                "receiveUserCount": 1,  //接收人数量\n                "readCount": 1,  //已读数量\n                "createTime": "2020-09-22 11:37:49" //创建时间\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

4.3.28 消息发送

  • 接口地址:/api/admin/message/send
  • 请求参数:
{\n    "title": "全校师生请注意",  //消息标题\n    "content": "大家好",  //消息内容\n    "receiveUserIds": [  //接收人\n        1\n    ]\n}\n
1
2
3
4
5
6
7
  • 返回参数:
{\n    "code": 1,  //返回状态\n    "message": "成功", //返回消息\n    "response": null\n}\n
1
2
3
4
5

4.3.29 答卷分页

  • 接口地址:/api/admin/examPaperAnswer/page
  • 请求参数:
{\n    "subjectId": null,  //学科\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 4,\n        "list": [\n            {\n                "id": 6,\n                "createTime": "2021-07-07 14:03:02",  //提交时间\n                "userScore": "16",  //用户得分\n                "subjectName": "语文",  //学科名称\n                "subjectId": 1,  //学科Id  \n                "questionCount": 5,  //题目数量\n                "questionCorrect": 4,  //正确题目数\n                "paperScore": "18", //试卷总分\n                "doTime": "14 秒",  //耗时\n                "paperType": 4,  //试卷类型\n                "systemScore": "2",  //自动批改得分\n                "status": 2,  //答卷状态\n                "paperName": "限时考试二",  //试卷名称\n                "userName": "student" //用户名\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

4.3.30 用户日志

  • 接口地址:/api/admin/user/event/page/list
  • 请求参数:
{\n    "userId": null,\n    "userName": null,\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 68,\n        "list": [\n            {\n                "id": 6,  //日志id\n                "userId": 2,  //用户id\n                "userName": "admin",  //用户名\n                "realName": "管理员", //真实姓名\n                "content": "admin 登录了学之思开源考试系统", //日志内容\n                "createTime": "2021-08-24 20:05:02" //创建时间\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

4.3.31 当前用户信息

  • 接口地址:/api/admin/user/current
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 6,\n        "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户uuid\n        "userName": "admin",  //用户名\n        "realName": "管理员", //真实姓名\n        "age": 30, //年龄\n        "role": 3, //角色\n        "sex": 1, //性别\n        "birthDay": "2019-09-07 18:56:07", //出生日期\n        "phone": null, //手机号\n        "lastActiveTime": "",  //最后活动时间\n        "createTime": "2019-09-07 18:56:21",  //创建时间\n        "modifyTime": "", //修改时间\n        "status": 1, //状态\n        "userLevel": null, //用户年级\n        "imagePath": null  //头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.3.32 用户信息更新

  • 接口地址:/api/admin/user/update
  • 请求参数:
{\n    "id": 6,  //用户id\n    "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户标识\n    "userName": "admin", //用户名\n    "realName": "管理员", //真实姓名\n    "age": 30, //年龄\n    "role": 3, //角色\n    "sex": 1,  //性别\n    "birthDay": "2019-09-07 18:56:07", //生日\n    "phone": "11", //手机号\n    "lastActiveTime": "", //最后活动时间\n    "createTime": "2019-09-07 18:56:21", //创建时间\n    "modifyTime": "2021-08-17 11:28:52", //修改时间\n    "status": 1, //状态\n    "userLevel": null, //年级\n    "imagePath": null //头像\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.32 用户信息更新

  • 接口地址:/api/admin/user/selectByUserName
  • 请求参数:
student  //用户名\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "name": "student",  //用户名\n            "value": 1  //用户id\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10

4.3.33 图片上传

  • 接口地址:/api/admin/upload/configAndUpload
  • 请求参数:无
  • 返回参数:
{\n    "original": "头像.jpg",\n    "name": "头像.jpg",\n    "url": "http://xzs.file.mindskip.net/Fi4vlEf1ri4VMGSONwN2Ch0o8Ed_",\n    "size": 19665,\n    "type": ".jpg",\n    "state": "SUCCESS"\n}\n
1
2
3
4
5
6
7
8

4.3.34 个人信息修改

  • 接口地址:/api/admin/user/update
  • 请求参数:
{\n    "id": 6,\n    "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c",  //用户uuid\n    "userName": "admin", //用户名\n    "realName": "管理员", //真实姓名\n    "age": 30, //年龄\n    "role": 3, //角色\n    "sex": 1, //性别\n    "birthDay": "2021-09-07 18:56:07",  //出生日期\n    "phone": "2112112", //手机号\n    "lastActiveTime": "", //最后活动时间\n    "createTime": "2019-09-07 18:56:21",  //创建时间\n    "modifyTime": "2021-08-31 10:08:03", //修改时间\n    "status": 1, //状态\n    "userLevel": null,  //年级\n    "imagePath": null //头像\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5
',144),u={},l=(0,e(3744).Z)(u,[["render",function(n,s){return a}]])},3744:(n,s)=>{s.Z=(n,s)=>{const e=n.__vccOpts||n;for(const[n,a]of s)e[n]=a;return e}}}]); \ No newline at end of file diff --git a/docs/assets/js/v-55bcf8d6.9562a500.js b/docs/assets/js/v-55bcf8d6.9562a500.js deleted file mode 100644 index 8891c9709..000000000 --- a/docs/assets/js/v-55bcf8d6.9562a500.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkxzs_mysql=self.webpackChunkxzs_mysql||[]).push([[725],{927:(n,s,e)=>{e.r(s),e.d(s,{data:()=>a});const a={key:"v-55bcf8d6",path:"/guide/admin.html",title:"4.3 管理端",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:3,title:"4.3.1 登录",slug:"_4-3-1-登录",children:[]},{level:3,title:"4.3.2 登出",slug:"_4-3-2-登出",children:[]},{level:3,title:"4.3.3 首页",slug:"_4-3-3-首页",children:[]},{level:3,title:"4.3.4 用户分页",slug:"_4-3-4-用户分页",children:[]},{level:3,title:"4.3.5 用户查询",slug:"_4-3-5-用户查询",children:[]},{level:3,title:"4.3.6 用户编辑",slug:"_4-3-6-用户编辑",children:[]},{level:3,title:"4.3.7 用户删除",slug:"_4-3-7-用户删除",children:[]},{level:3,title:"4.3.8 用户状态修改",slug:"_4-3-8-用户状态修改",children:[]},{level:3,title:"4.3.9 学科列表",slug:"_4-3-9-学科列表",children:[]},{level:3,title:"4.3.10 学科分页",slug:"_4-3-10-学科分页",children:[]},{level:3,title:"4.3.11 学科查询",slug:"_4-3-11-学科查询",children:[]},{level:3,title:"4.3.12 学科编辑",slug:"_4-3-12-学科编辑",children:[]},{level:3,title:"4.3.13 学科删除",slug:"_4-3-13-学科删除",children:[]},{level:3,title:"4.3.14 试卷分页",slug:"_4-3-14-试卷分页",children:[]},{level:3,title:"4.3.15 试卷查询",slug:"_4-3-15-试卷查询",children:[]},{level:3,title:"4.3.16 试卷编辑",slug:"_4-3-16-试卷编辑",children:[]},{level:3,title:"4.3.17 试卷删除",slug:"_4-3-17-试卷删除",children:[]},{level:3,title:"4.3.18 任务试卷分页",slug:"_4-3-18-任务试卷分页",children:[]},{level:3,title:"4.3.19 题目分页",slug:"_4-3-19-题目分页",children:[]},{level:3,title:"4.3.20 题目查询",slug:"_4-3-20-题目查询",children:[]},{level:3,title:"4.3.21 题目编辑",slug:"_4-3-21-题目编辑",children:[]},{level:3,title:"4.3.22 题目删除",slug:"_4-3-22-题目删除",children:[]},{level:3,title:"4.3.23 任务分页",slug:"_4-3-23-任务分页",children:[]},{level:3,title:"4.3.24 任务查询",slug:"_4-3-24-任务查询",children:[]},{level:3,title:"4.3.25 任务编辑",slug:"_4-3-25-任务编辑",children:[]},{level:3,title:"4.3.26 任务删除",slug:"_4-3-26-任务删除",children:[]},{level:3,title:"4.3.27 消息分页",slug:"_4-3-27-消息分页",children:[]},{level:3,title:"4.3.28 消息发送",slug:"_4-3-28-消息发送",children:[]},{level:3,title:"4.3.29 答卷分页",slug:"_4-3-29-答卷分页",children:[]},{level:3,title:"4.3.30 用户日志",slug:"_4-3-30-用户日志",children:[]},{level:3,title:"4.3.31 当前用户信息",slug:"_4-3-31-当前用户信息",children:[]},{level:3,title:"4.3.32 用户信息更新",slug:"_4-3-32-用户信息更新",children:[]},{level:3,title:"4.3.32 用户信息更新",slug:"_4-3-32-用户信息更新-1",children:[]},{level:3,title:"4.3.33 图片上传",slug:"_4-3-33-图片上传",children:[]},{level:3,title:"4.3.34 个人信息修改",slug:"_4-3-34-个人信息修改",children:[]}],filePathRelative:"guide/admin.md",git:{updatedTime:1657778364e3}}},9204:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const a=(0,e(6252).uE)('

4.3 管理端

4.3.1 登录

  • 接口地址:/api/user/login
  • 请求参数:
{\n    "userName": "admin",  //用户名\n    "password": "",  //密码\n    "remember": false  //记住我\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": null,\n        "userUuid": null,\n        "userName": "admin",  //用户名\n        "password": null,\n        "realName": null,\n        "age": null,\n        "sex": null,\n        "birthDay": null,\n        "userLevel": null,\n        "phone": null,\n        "role": null,\n        "status": null,\n        "imagePath": null,\n        "createTime": null,\n        "modifyTime": null,\n        "lastActiveTime": null,\n        "deleted": null,\n        "wxOpenId": null\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

4.3.2 登出

  • 接口地址:/api/user/logout
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.3 首页

  • 接口地址:/api/admin/dashboard/index
  • 请求参数:无
  • 返回参数:
 {\n    "examPaperCount": 2413,  //试卷总数\n    "questionCount": 1025,  //题目总数\n    "doExamPaperCount": 6148,  //总答卷数\n    "doQuestionCount": 23945,  //总题数\n    "mothDayUserActionValue": [  //活跃度\n        85\n    ],\n    "mothDayDoExamQuestionValue": [  //月做题数\n        22\n    ],\n    "mothDayText": [  //本月天数\n        "1"\n    ]\n}    \n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4.3.4 用户分页

  • 接口地址:/api/admin/user/page/list
  • 请求参数:
{\n    "userName": "",  //用户名\n    "role": 1,   //角色\n    "pageIndex": 1,  //页码\n    "pageSize": 10   //每页条数\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 81,  //总数\n        "list": [\n            {\n                "id": 100,     //用户id\n                "userUuid": "fd31ab62-c32f-433c-8dc4-c07e653d390a",  //用户uuid\n                "userName": "王",  //用户名\n                "realName": null,  //真实姓名\n                "age": null,  //年龄\n                "role": 1,  //角色\n                "sex": null,  //性别\n                "birthDay": "",  //出生日期          \n                "phone": null,   //手机号                 \n                "lastActiveTime": "2021-06-21 20:01:26",  //最后活动时间\n                "createTime": "2021-06-21 20:01:26",  //创建时间\n                "modifyTime": "2021-06-21 20:01:35",  //修改时间\n                "status": 1,  //状态\n                "userLevel": 1,  //年级\n                "imagePath": null   //头像\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

4.3.5 用户查询

  • 接口地址:/api/admin/user/select/1
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 100,     //用户id\n        "userUuid": "fd31ab62-c32f-433c-8dc4-c07e653d390a",  //用户uuid\n        "userName": "王",  //用户名\n        "realName": null,  //真实姓名\n        "age": null,  //年龄\n        "role": 1,  //角色\n        "sex": null,  //性别\n        "birthDay": "",  //出生日期          \n        "phone": null,   //手机号                 \n        "lastActiveTime": "2021-06-21 20:01:26",  //最后活动时间\n        "createTime": "2021-06-21 20:01:26",  //创建时间\n        "modifyTime": "2021-06-21 20:01:35",  //修改时间\n        "status": 1,  //状态\n        "userLevel": 1,  //年级\n        "imagePath": null   //头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.3.6 用户编辑

  • 接口地址:/api/admin/user/edit
  • 请求参数:
{\n    "id": null,\n    "userName": "testzz",  //用户名\n    "password": "123456",  //密码\n    "realName": "tesx",  //真实姓名\n    "role": 1,  //角色\n    "status": 1, //状态\n    "age": "", //年龄\n    "sex": "", //性别\n    "birthDay": null, //生日\n    "phone": null,  //手机号\n    "userLevel": 1  //年级\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 109,\n        "userUuid": "321dec89-0656-4736-ae4c-e2b07f4fcc67",  //用户id\n        "userName": "testzz", //用户名\n        "password": "" //密码\n        "realName": "tesx",  //真实姓名\n        "age": null, //年龄\n        "sex": null, //性别\n        "birthDay": null, //生日\n        "userLevel": 1, //年级\n        "phone": null, //手机号\n        "role": 1, //角色\n        "status": 1, //状态\n        "imagePath": null, //头像\n        "createTime": 1624538837259, //创建日期\n        "modifyTime": null, //修改时间\n        "lastActiveTime": 1624538837259, //最后活动时间\n        "deleted": false, //是否删除\n        "wxOpenId": null //微信openId\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

4.3.7 用户删除

  • 接口地址:/api/admin/user/delete/3
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,  //返回状态\n    "message": "成功", //返回消息\n    "response": null\n}\n
1
2
3
4
5

4.3.8 用户状态修改

  • 接口地址:/api/admin/user/changeStatus/1
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": 2\n}\n
1
2
3
4
5

4.3.9 学科列表

  • 接口地址:/api/admin/education/subject/list
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "id": 72,  //学科id\n            "name": "语文",  //学科名称\n            "level": 1,  //年级\n            "levelName": "一年级",  //年级名称\n            "itemOrder": null,  //排序\n            "deleted": false  //是否删除\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14

4.3.10 学科分页

  • 接口地址:/api/admin/education/subject/page
  • 请求参数:
{\n    "level": null,  //年级\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 2,\n        "list": [\n            {\n                "id": 72,\n                "name": "数学",  //学科名称\n                "level": 1,  //年级\n                "levelName": "一年级"  //年级名称\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

4.3.11 学科查询

  • 接口地址:/api/admin/education/subject/select/2
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 72,\n        "name": "数学",  //学科名称\n        "level": 1,    //年级\n        "levelName": "一年级"   //年级名称\n    }\n}\n
1
2
3
4
5
6
7
8
9
10

4.3.12 学科编辑

  • 接口地址:/api/admin/education/subject/edit
  • 请求参数:
{\n    "id": 72,\n    "name": "数学",  //学科名称\n    "level": 2,   //年级\n    "levelName": "二年级"  //年级名称\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.13 学科删除

  • 接口地址:/api/admin/education/subject/delete/3
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.14 试卷分页

  • 接口地址:/api/admin/exam/paper/page
  • 请求参数:
{\n    "id": null,\n    "level": null,   //年级\n    "subjectId": null,  //学科\n    "pageIndex": 1,  //页码\n    "pageSize": 10  //每页数量\n}\n
1
2
3
4
5
6
7
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 9,\n        "list": [\n            {\n                "id": 72,     //试卷id\n                "name": "中级任务二",    //试卷名称\n                "questionCount": 5,  //题目总数\n                "score": 180, //试卷分数\n                "createTime": "2021-01-21 11:49:31",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 1,  //学科\n                "paperType": 6, //试卷类型\n                "frameTextContentId": 13  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

4.3.15 试卷查询

  • 接口地址:/api/admin/exam/paper/select/9
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 72,   //试卷id\n        "level": 1,  //年级\n        "subjectId": 1,  //学科\n        "paperType": 1,  //试卷类型\n        "name": "语文试卷", //试卷名称  \n        "suggestTime": 20,  //考试时间\n        "limitDateTime": null,  //限时考试\n        "titleItems": [\n            {\n                "name": "一、选择题",  //试卷标题\n                "questionItems": [\n                    {\n                        "id": 72,   //题目id\n                        "questionType": 5,  //题目类型\n                        "subjectId": 1,  //学科\n                        "title": "默写咏鹅", //题干\n                        "gradeLevel": 1, //年级\n                        "items": [], //题目选项\n                        "analyze": "咏鹅可以带拼音",  //解析\n                        "correctArray": null,  //标答数组\n                        "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。",  //标答\n                        "score": "10",  //题目分数\n                        "difficult": 3,  //难度\n                        "itemOrder": 1  //题序\n                    }\n                ]\n            }\n        ],\n        "score": "10"  //试卷总分\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

4.3.16 试卷编辑

  • 接口地址:/api/admin/exam/paper/edit
  • 请求参数:
{\n    "id": 72,  //试卷id\n    "level": 1,  //年级\n    "subjectId": 1,  //学科\n    "paperType": 6,  //试卷类型\n    "name": "中级任务二",  //试卷名称\n    "suggestTime": 20,  //考试时长\n    "limitDateTime": null,  //限时\n    "titleItems": [\n        {\n            "name": "一、选择题",  //标题\n            "questionItems": [   //题目列表\n                {\n                    "id": 72,   //题目id\n                    "questionType": 2,  //题型\n                    "subjectId": 1,  //学科\n                    "title": "以下哪些诗句是静夜思的?",  //题干\n                    "gradeLevel": 1,  //年级\n                    "items": [   //选项\n                        {\n                            "prefix": "A",   //选项标记\n                            "content": "床前明月光",  //选项内容\n                            "score": null,  //选项分数\n                            "itemUuid": null  //选项标识\n                        }\n                    ],\n                    "analyze": "床前明月光, 疑是地上霜。 举头望明月, 低头思故乡。",  //解析\n                    "correctArray": [  //正确答案\n                        "A",\n                        "C"\n                    ],\n                    "correct": "A,C", //正确答案\n                    "score": "0",  //题目分数\n                    "difficult": 3,  //难度\n                    "itemOrder": 1  //题序\n                }\n            ]\n        }\n    ],\n    "score": "18"  //试卷总分\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 72,  //试卷id\n        "level": 1,  //年级\n        "subjectId": 1,   //学科\n        "paperType": 6,   //试卷类型\n        "name": "中级任务二",   //试卷名称\n        "suggestTime": 20,  //考试时长\n        "limitDateTime": null,  //限时\n        "titleItems": [\n            {\n                "name": "一、选择题",  //标题\n                "questionItems": [\n                    {\n                        "id": 72,   //题目id\n                        "questionType": 2,    //题型\n                        "subjectId": 1,   //学科\n                        "title": "以下哪些诗句是静夜思的?",   //题干\n                        "gradeLevel": 1,    //年级\n                        "items": [   //选项\n                            {\n                                "prefix": "A",   //选项标记\n                                "content": "床前明月光",     //选项内容\n                                "score": null,   //选项分数\n                                "itemUuid": null  //选项标识\n                            }\n                        ],\n                        "analyze": "床前明月光, 疑是地上霜。 举头望明月, 低头思故乡。",   //解析\n                        "correctArray": [   //正确答案\n                            "A",\n                            "C"\n                        ],\n                        "correct": "A,C",   //正确答案\n                        "score": "0",   //题目分数\n                        "difficult": 3,   //难度\n                        "itemOrder": 1   //题序\n                    }\n                ]\n            }\n        ],\n        "score": "18"  //题序\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

4.3.17 试卷删除

  • 接口地址:/api/admin/exam/paper/delete/9
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.18 任务试卷分页

  • 接口地址:/api/admin/exam/paper/taskExamPage
  • 请求参数:
{\n    "subjectId": null,  //学科\n    "level": 1,  //年级\n    "paperType": 6,  //试卷类型\n    "pageIndex": 1,  //页面\n    "pageSize": 5  \n}\n
1
2
3
4
5
6
7
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 1,\n        "list": [\n            {\n                "id": 72,\n                "name": "任务试卷五",   //试卷名称\n                "questionCount": 2,   //题目总数\n                "score": 60,   //试卷分数\n                "createTime": "2021-08-02 14:36:26",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 1,  //学科\n                "paperType": 6,  //试卷类型\n                "frameTextContentId": 26  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

4.3.19 题目分页

  • 接口地址:/api/admin/question/page
  • 请求参数:
{\n    "id": null,\n    "questionType": null,\n    "level": null,\n    "subjectId": null,\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
6
7
8
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 7,\n        "list": [\n            {\n                "id": 72,\n                "questionType": 5,  //题型\n                "textContentId": null,\n                "createTime": "2021-01-21 11:45:57",  //创建时间\n                "subjectId": 1,  //学科\n                "createUser": 2,  //创建人\n                "score": "10", //得分\n                "status": 1,  //状态\n                "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。",  //标答\n                "analyzeTextContentId": null,   //解析\n                "difficult": 3,  //难度\n                "shortTitle": "默写咏鹅"  //题干\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.3.20 题目查询

  • 接口地址:/api/admin/question/select/508
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 508,  //题目id\n        "questionType": 5,  //题型\n        "subjectId": 4,  //学科\n        "title": "<p>什么是快乐星球?</p>",   //题干\n        "gradeLevel": 1,  //年级\n        "items": [],  //选项\n        "analyze": "照抄即可",  //解析\n        "correctArray": null,  //标答\n        "correct": "什么是快乐星球",  //正确答案\n        "score": "5",  //题目分数\n        "difficult": 5,  //难度\n        "itemOrder": null\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.3.21 题目编辑

  • 接口地址:/api/admin/question/edit
  • 请求参数:
{\n    "id": 72, //题目id\n    "questionType": 5, //题型\n    "subjectId": 1,  //学科\n    "title": "默写咏鹅",   //题干\n    "gradeLevel": 1,  //年级\n    "items": [],  //选项\n    "analyze": "咏鹅可以带拼音",   //解析\n    "correctArray": null, //标答\n    "correct": "鹅鹅鹅, 曲项向天歌。 白毛浮绿水, 红掌拨清波。", //正确答案\n    "score": 10,  //题目分数\n    "difficult": 3, //难度\n    "itemOrder": null\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.22 题目删除

  • 接口地址:/api/admin/question/delete/7
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.23 任务分页

  • 接口地址:/api/admin/task/page
  • 请求参数:
{\n    "gradeLevel": null,\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 2,\n        "list": [\n            {\n                "id": 72,   //任务id\n                "title": "中级任务",   //任务标题\n                "gradeLevel": 1,  //年级\n                "createUserName": "admin",  //创建人用户名\n                "createTime": "2021-01-21 11:50:24",  //创建时间\n                "deleted": false  //是否删除\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

4.3.24 任务查询

  • 接口地址:/api/admin/task/select/22
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 72,  //任务id\n        "gradeLevel": 12,  //年级\n        "title": "考试",  //任务标题\n        "paperItems": [\n            {\n                "id": 592,  //试卷id\n                "name": "考试",  //试卷名称\n                "questionCount": 5,  //题目数量\n                "score": 275,  //试卷分数\n                "createTime": "2021-08-12 15:02:50",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 46,  //学科\n                "paperType": 6,  //试卷类型\n                "frameTextContentId": 2897,  //试卷内容\n                "allClasses": null\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.3.25 任务编辑

  • 接口地址:/api/admin/task/edit
  • 请求参数:
{\n    "id": 72,\n    "gradeLevel": 1,\n    "title": "中级任务",\n    "paperItems": [\n        {\n            "id": 72,  //试卷id\n            "name": "中级任务一",  //试卷名称\n            "questionCount": 5,  //题目数量\n            "score": 180,  //试卷分数\n            "createTime": "2021-01-21 11:49:11",  //创建时间\n            "createUser": 2,  //创建人\n            "subjectId": 1,  //学科\n            "paperType": 6,  //试卷类型\n            "frameTextContentId": 12  //试卷内容\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 72,  //任务id\n        "gradeLevel": 1,   //年级\n        "title": "中级任务",  //任务标题\n        "paperItems": [\n            {\n                "id": 72,  //试卷id\n                "name": "中级任务一",  //试卷名称\n                "questionCount": 5,  //题目数量\n                "score": 180,  //试卷分数\n                "createTime": "2021-01-21 11:49:11",  //创建时间\n                "createUser": 2,  //创建人\n                "subjectId": 1,  //学科\n                "paperType": 6,  //试卷类型\n                "frameTextContentId": 12  //试卷内容\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

4.3.26 任务删除

  • 接口地址:/api/admin/task/delete/1
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,  //返回状态\n    "message": "成功", //返回消息\n    "response": null\n}\n
1
2
3
4
5

4.3.27 消息分页

  • 接口地址:/api/admin/message/page
  • 请求参数:
{\n    "sendUserName": null,\n    "pageIndex": 4,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 36,\n        "list": [\n            {\n                "id": 72,   //消息id\n                "title": "你好,同学!",  //消息标题\n                "content": "考试请不要作弊",  //消息内容\n                "sendUserName": "admin",  //发送人用户名\n                "receives": "student",  //接收人用户名\n                "receiveUserCount": 1,  //接收人数量\n                "readCount": 1,  //已读数量\n                "createTime": "2020-09-22 11:37:49" //创建时间\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

4.3.28 消息发送

  • 接口地址:/api/admin/message/send
  • 请求参数:
{\n    "title": "全校师生请注意",  //消息标题\n    "content": "大家好",  //消息内容\n    "receiveUserIds": [  //接收人\n        1\n    ]\n}\n
1
2
3
4
5
6
7
  • 返回参数:
{\n    "code": 1,  //返回状态\n    "message": "成功", //返回消息\n    "response": null\n}\n
1
2
3
4
5

4.3.29 答卷分页

  • 接口地址:/api/admin/examPaperAnswer/page
  • 请求参数:
{\n    "subjectId": null,  //学科\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 4,\n        "list": [\n            {\n                "id": 72,\n                "createTime": "2021-07-07 14:03:02",  //提交时间\n                "userScore": "16",  //用户得分\n                "subjectName": "语文",  //学科名称\n                "subjectId": 1,  //学科Id  \n                "questionCount": 5,  //题目数量\n                "questionCorrect": 4,  //正确题目数\n                "paperScore": "18", //试卷总分\n                "doTime": "14 秒",  //耗时\n                "paperType": 4,  //试卷类型\n                "systemScore": "2",  //自动批改得分\n                "status": 2,  //答卷状态\n                "paperName": "限时考试二",  //试卷名称\n                "userName": "student" //用户名\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

4.3.30 用户日志

  • 接口地址:/api/admin/user/event/page/list
  • 请求参数:
{\n    "userId": null,\n    "userName": null,\n    "pageIndex": 1,\n    "pageSize": 10\n}\n
1
2
3
4
5
6
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "total": 68,\n        "list": [\n            {\n                "id": 72,  //日志id\n                "userId": 2,  //用户id\n                "userName": "admin",  //用户名\n                "realName": "管理员", //真实姓名\n                "content": "admin 登录了学之思开源考试系统", //日志内容\n                "createTime": "2021-08-24 20:05:02" //创建时间\n            }\n        ]\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

4.3.31 当前用户信息

  • 接口地址:/api/admin/user/current
  • 请求参数:无
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": {\n        "id": 72,\n        "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户uuid\n        "userName": "admin",  //用户名\n        "realName": "管理员", //真实姓名\n        "age": 30, //年龄\n        "role": 3, //角色\n        "sex": 1, //性别\n        "birthDay": "2019-09-07 18:56:07", //出生日期\n        "phone": null, //手机号\n        "lastActiveTime": "",  //最后活动时间\n        "createTime": "2019-09-07 18:56:21",  //创建时间\n        "modifyTime": "", //修改时间\n        "status": 1, //状态\n        "userLevel": null, //用户年级\n        "imagePath": null  //头像\n    }\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.3.32 用户信息更新

  • 接口地址:/api/admin/user/update
  • 请求参数:
{\n    "id": 72,  //用户id\n    "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户标识\n    "userName": "admin", //用户名\n    "realName": "管理员", //真实姓名\n    "age": 30, //年龄\n    "role": 3, //角色\n    "sex": 1,  //性别\n    "birthDay": "2019-09-07 18:56:07", //生日\n    "phone": "11", //手机号\n    "lastActiveTime": "", //最后活动时间\n    "createTime": "2019-09-07 18:56:21", //创建时间\n    "modifyTime": "2021-08-17 11:28:52", //修改时间\n    "status": 1, //状态\n    "userLevel": null, //年级\n    "imagePath": null //头像\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5

4.3.32 用户信息更新

  • 接口地址:/api/admin/user/selectByUserName
  • 请求参数:
student  //用户名\n
1
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": [\n        {\n            "name": "student",  //用户名\n            "value": 1  //用户id\n        }\n    ]\n}\n
1
2
3
4
5
6
7
8
9
10

4.3.33 图片上传

  • 接口地址:/api/admin/upload/configAndUpload
  • 请求参数:无
  • 返回参数:
{\n    "original": "头像.jpg",\n    "name": "头像.jpg",\n    "url": "http://xzs.file.mindskip.net/Fi4vlEf1ri4VMGSONwN2Ch0o8Ed_",\n    "size": 19665,\n    "type": ".jpg",\n    "state": "SUCCESS"\n}\n
1
2
3
4
5
6
7
8

4.3.34 个人信息修改

  • 接口地址:/api/admin/user/update
  • 请求参数:
{\n    "id": 72,\n    "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c",  //用户uuid\n    "userName": "admin", //用户名\n    "realName": "管理员", //真实姓名\n    "age": 30, //年龄\n    "role": 3, //角色\n    "sex": 1, //性别\n    "birthDay": "2021-09-07 18:56:07",  //出生日期\n    "phone": "2112112", //手机号\n    "lastActiveTime": "", //最后活动时间\n    "createTime": "2019-09-07 18:56:21",  //创建时间\n    "modifyTime": "2021-08-31 10:08:03", //修改时间\n    "status": 1, //状态\n    "userLevel": null,  //年级\n    "imagePath": null //头像\n}\n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • 返回参数:
{\n    "code": 1,\n    "message": "成功",\n    "response": null\n}\n
1
2
3
4
5
',144),u={},l=(0,e(3744).Z)(u,[["render",function(n,s){return a}]])},3744:(n,s)=>{s.Z=(n,s)=>{const e=n.__vccOpts||n;for(const[n,a]of s)e[n]=a;return e}}}]); \ No newline at end of file diff --git a/docs/guide/admin.html b/docs/guide/admin.html index 020591d50..17f5d8ed9 100644 --- a/docs/guide/admin.html +++ b/docs/guide/admin.html @@ -5,7 +5,7 @@ 4.3 管理端 | 学之思教程 - + @@ -163,7 +163,7 @@ "message": "成功", "response": [ { - "id": 72, //学科id + "id": 6, //学科id "name": "语文", //学科名称 "level": 1, //年级 "levelName": "一年级", //年级名称 @@ -184,7 +184,7 @@ "total": 2, "list": [ { - "id": 72, + "id": 6, "name": "数学", //学科名称 "level": 1, //年级 "levelName": "一年级" //年级名称 @@ -196,14 +196,14 @@ "code": 1, "message": "成功", "response": { - "id": 72, + "id": 6, "name": "数学", //学科名称 "level": 1, //年级 "levelName": "一年级" //年级名称 } }
1
2
3
4
5
6
7
8
9
10

4.3.12 学科编辑

  • 接口地址:/api/admin/education/subject/edit
  • 请求参数:
{
-    "id": 72,
+    "id": 6,
     "name": "数学",  //学科名称
     "level": 2,   //年级
     "levelName": "二年级"  //年级名称
@@ -232,7 +232,7 @@
         "total": 9,
         "list": [
             {
-                "id": 72,     //试卷id
+                "id": 6,     //试卷id
                 "name": "中级任务二",    //试卷名称
                 "questionCount": 5,  //题目总数
                 "score": 180, //试卷分数
@@ -249,7 +249,7 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 72,   //试卷id
+        "id": 6,   //试卷id
         "level": 1,  //年级
         "subjectId": 1,  //学科
         "paperType": 1,  //试卷类型
@@ -261,7 +261,7 @@
                 "name": "一、选择题",  //试卷标题
                 "questionItems": [
                     {
-                        "id": 72,   //题目id
+                        "id": 6,   //题目id
                         "questionType": 5,  //题目类型
                         "subjectId": 1,  //学科
                         "title": "默写咏鹅", //题干
@@ -281,7 +281,7 @@
     }
 }
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

4.3.16 试卷编辑

  • 接口地址:/api/admin/exam/paper/edit
  • 请求参数:
{
-    "id": 72,  //试卷id
+    "id": 6,  //试卷id
     "level": 1,  //年级
     "subjectId": 1,  //学科
     "paperType": 6,  //试卷类型
@@ -293,7 +293,7 @@
             "name": "一、选择题",  //标题
             "questionItems": [   //题目列表
                 {
-                    "id": 72,   //题目id
+                    "id": 6,   //题目id
                     "questionType": 2,  //题型
                     "subjectId": 1,  //学科
                     "title": "以下哪些诗句是静夜思的?",  //题干
@@ -325,7 +325,7 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 72,  //试卷id
+        "id": 6,  //试卷id
         "level": 1,  //年级
         "subjectId": 1,   //学科
         "paperType": 6,   //试卷类型
@@ -337,7 +337,7 @@
                 "name": "一、选择题",  //标题
                 "questionItems": [
                     {
-                        "id": 72,   //题目id
+                        "id": 6,   //题目id
                         "questionType": 2,    //题型
                         "subjectId": 1,   //学科
                         "title": "以下哪些诗句是静夜思的?",   //题干
@@ -385,7 +385,7 @@
         "total": 1,
         "list": [
             {
-                "id": 72,
+                "id": 6,
                 "name": "任务试卷五",   //试卷名称
                 "questionCount": 2,   //题目总数
                 "score": 60,   //试卷分数
@@ -413,7 +413,7 @@
         "total": 7,
         "list": [
             {
-                "id": 72,
+                "id": 6,
                 "questionType": 5,  //题型
                 "textContentId": null,
                 "createTime": "2021-01-21 11:45:57",  //创建时间
@@ -448,7 +448,7 @@
     }
 }
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

4.3.21 题目编辑

  • 接口地址:/api/admin/question/edit
  • 请求参数:
{
-    "id": 72, //题目id
+    "id": 6, //题目id
     "questionType": 5, //题型
     "subjectId": 1,  //学科
     "title": "默写咏鹅",   //题干
@@ -483,7 +483,7 @@
         "total": 2,
         "list": [
             {
-                "id": 72,   //任务id
+                "id": 6,   //任务id
                 "title": "中级任务",   //任务标题
                 "gradeLevel": 1,  //年级
                 "createUserName": "admin",  //创建人用户名
@@ -497,7 +497,7 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 72,  //任务id
+        "id": 6,  //任务id
         "gradeLevel": 12,  //年级
         "title": "考试",  //任务标题
         "paperItems": [
@@ -517,12 +517,12 @@
     }
 }
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

4.3.25 任务编辑

  • 接口地址:/api/admin/task/edit
  • 请求参数:
{
-    "id": 72,
+    "id": 6,
     "gradeLevel": 1,
     "title": "中级任务",
     "paperItems": [
         {
-            "id": 72,  //试卷id
+            "id": 6,  //试卷id
             "name": "中级任务一",  //试卷名称
             "questionCount": 5,  //题目数量
             "score": 180,  //试卷分数
@@ -538,12 +538,12 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 72,  //任务id
+        "id": 6,  //任务id
         "gradeLevel": 1,   //年级
         "title": "中级任务",  //任务标题
         "paperItems": [
             {
-                "id": 72,  //试卷id
+                "id": 6,  //试卷id
                 "name": "中级任务一",  //试卷名称
                 "questionCount": 5,  //题目数量
                 "score": 180,  //试卷分数
@@ -573,7 +573,7 @@
         "total": 36,
         "list": [
             {
-                "id": 72,   //消息id
+                "id": 6,   //消息id
                 "title": "你好,同学!",  //消息标题
                 "content": "考试请不要作弊",  //消息内容
                 "sendUserName": "admin",  //发送人用户名
@@ -609,7 +609,7 @@
         "total": 4,
         "list": [
             {
-                "id": 72,
+                "id": 6,
                 "createTime": "2021-07-07 14:03:02",  //提交时间
                 "userScore": "16",  //用户得分
                 "subjectName": "语文",  //学科名称
@@ -640,7 +640,7 @@
         "total": 68,
         "list": [
             {
-                "id": 72,  //日志id
+                "id": 6,  //日志id
                 "userId": 2,  //用户id
                 "userName": "admin",  //用户名
                 "realName": "管理员", //真实姓名
@@ -654,7 +654,7 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 72,
+        "id": 6,
         "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户uuid
         "userName": "admin",  //用户名
         "realName": "管理员", //真实姓名
@@ -672,7 +672,7 @@
     }
 }
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

4.3.32 用户信息更新

  • 接口地址:/api/admin/user/update
  • 请求参数:
{
-    "id": 72,  //用户id
+    "id": 6,  //用户id
     "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户标识
     "userName": "admin", //用户名
     "realName": "管理员", //真实姓名
@@ -713,7 +713,7 @@
     "state": "SUCCESS"
 }
 
1
2
3
4
5
6
7
8

4.3.34 个人信息修改

  • 接口地址:/api/admin/user/update
  • 请求参数:
{
-    "id": 72,
+    "id": 6,
     "userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c",  //用户uuid
     "userName": "admin", //用户名
     "realName": "管理员", //真实姓名
@@ -735,6 +735,6 @@
     "response": null
 }
 
1
2
3
4
5
上次更新: 2022/7/14 13:59:24
- + diff --git a/docs/guide/database.html b/docs/guide/database.html index f7de852f9..10bf18984 100644 --- a/docs/guide/database.html +++ b/docs/guide/database.html @@ -5,11 +5,11 @@ 3. 数据库设计 | 学之思教程 - +

3. 数据库设计

3.1 试卷表

  • 表名:t_exam_paper
  • 字段注释:
字段名类型注释
idint
namevarchar试卷名称
subject_idint学科
paper_typeint试卷类型( 1.固定试卷 4.时段试卷 6.任务试卷 )
grade_levelint年级
scoreint试卷总分(千分制)
question_countint题目数量
suggest_timeint建议时长(分钟)
limit_start_timedatetime时段试卷 开始时间
limit_end_timedatetime时段试卷 结束时间
frame_text_content_idint试卷框架 内容为JSON
create_userint
create_timedatetime
deletedbit
task_exam_idint

3.2 试卷答案表

  • 表名:t_exam_paper_answer
  • 字段注释:
字段名类型注释
idint
exam_paper_idint
paper_namevarchar试卷名称
paper_typeint试卷类型( 1.固定试卷 4.时段试卷 6.任务试卷 )
subject_idint学科
system_scoreint系统判定得分
user_scoreint最终得分(千分制)
paper_scoreint试卷总分
question_correctint做对题目数量
question_countint题目总数量
do_timeint做题时间(秒)
statusint试卷状态(1待判分 2完成)
create_userint学生
create_timedatetime提交时间
task_exam_idint

3.3 试卷题目答案表

  • 表名:t_exam_paper_question_customer_answer
  • 字段注释:
字段名类型注释
idint
question_idint题目Id
exam_paper_idint答案Id
exam_paper_answer_idint
question_typeint题型
subject_idint学科
customer_scoreint得分
question_scoreint题目原始分数
question_text_content_idint问题内容
answervarchar做题答案
text_content_idint做题内容
do_rightbit是否正确
create_userint做题人
create_timedatetime
item_orderint

3.4 消息表

  • 表名:t_message
  • 字段注释:
字段名类型注释
idint
titlevarchar标题
contentvarchar内容
create_timedatetime
send_user_idint发送者用户ID
send_user_namevarchar发送者用户名
send_real_namevarchar发送者真实姓名
receive_user_countint接收人数
read_countint已读人数

3.5 用户消息表

  • 表名:t_message_user
  • 字段注释:
字段名类型注释
idint
message_idint消息内容ID
receive_user_idint接收人ID
receive_user_namevarchar接收人用户名
receive_real_namevarchar接收人真实姓名
readedbit是否已读
create_timedatetime
read_timedatetime阅读时间

3.6 题目表

  • 表名:t_question
  • 字段注释:
字段名类型注释
idint
question_typeint1.单选题 2.多选题 3.判断题 4.填空题 5.简答题
subject_idint学科
scoreint题目总分(千分制)
grade_levelint级别
difficultint题目难度
correcttext正确答案
info_text_content_idint题目 填空、 题干、解析、答案等信息
create_userint创建人
statusint1.正常
create_timedatetime创建时间
deletedbit

3.7 学科表

  • 表名:t_subject
  • 字段注释:
字段名类型注释
idint
namevarchar语文 数学 英语 等
levelint年级 (1-12) 小学 初中 高中 大学
level_namevarchar一年级、二年级等
item_orderint排序
deletedbit

3.8 任务表

  • 表名:t_task_exam
  • 字段注释:
字段名类型注释
idint
titlevarchar
grade_levelint级别
frame_text_content_idint任务框架 内容为JSON
create_userint
create_timedatetime
deletedbit
create_user_namevarchar

3.9 用户任务表

  • 表名:t_task_exam_customer_answer
  • 字段注释:
字段名类型注释
idint
task_exam_idint
create_userint
create_timedatetime
text_content_idint任务完成情况(Json)

3.10 文本表

  • 表名:t_text_content
  • 字段注释:
字段名类型注释
idint
contenttext
create_timedatetime

3.11 用户表

  • 表名:t_user
  • 字段注释:
字段名类型注释
idint
user_uuidvarchar
user_namevarchar用户名
passwordvarchar
real_namevarchar真实姓名
ageint
sexint1.男 2女
birth_daydatetime
user_levelint学生年级(1-12)
phonevarchar
roleint1.学生 3.管理员
statusint1.启用 2禁用
image_pathvarchar头像地址
create_timedatetime
modify_timedatetime
last_active_timedatetime
deletedbit是否删除
wx_open_idvarchar微信openId

3.12 用户日志表

  • 表名:t_user_event_log
  • 字段注释:
字段名类型注释
idint
user_idint用户id
user_namevarchar用户名
real_namevarchar真实姓名
contenttext内容
create_timedatetime时间

3.13 用户Token表

  • 表名:t_user_token
  • 字段注释:
字段名类型注释
idint
tokenvarchar
user_idint用户Id
wx_open_idvarchar微信openId
create_timedatetime
end_timedatetime
user_namevarchar用户名
上次更新: 2021/7/13 16:40:30
- + diff --git a/docs/guide/deploy.html b/docs/guide/deploy.html index 6e2006a8b..4d3328ba1 100644 --- a/docs/guide/deploy.html +++ b/docs/guide/deploy.html @@ -5,7 +5,7 @@ 6. 项目部署 | 学之思教程 - + @@ -27,6 +27,6 @@
1
2
3
4
5
6
7
8
9
10
11

6.3 docker部署

docker pull  registry.cn-hangzhou.aliyuncs.com/mindskip/xzs:v3.8.0
 docker run -d --name xzs --privileged -it  -d -p 8000:8000 -v /etc/localtime:/etc/localtime:ro  registry.cn-hangzhou.aliyuncs.com/mindskip/xzs:v3.8.0 /usr/sbin/init
 
1
2
上次更新: 2022/7/14 13:59:24
- + diff --git a/docs/guide/develop.html b/docs/guide/develop.html index ee156bc96..c5f816250 100644 --- a/docs/guide/develop.html +++ b/docs/guide/develop.html @@ -5,7 +5,7 @@ 5. 项目开发 | 学之思教程 - + @@ -86,6 +86,6 @@ - utils 公共方法 - views 视图、系统页面
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
上次更新: 2022/6/14 08:57:53
- + diff --git a/docs/guide/feature.html b/docs/guide/feature.html index 2bda63118..3ca76e637 100644 --- a/docs/guide/feature.html +++ b/docs/guide/feature.html @@ -5,11 +5,11 @@ 1. 功能列表 | 学之思教程 - +

1. 功能列表

1.1 学生系统功能

模块介绍
登录用户名、密码
注册年级、用户名、密码
任务中心管理员发布的年级任务,每个学生只能做一次
考试题干支持文本、图片、数学公式、表格等,学生答题支持:文本
固定试卷可重复练习、自行批改的试卷
时段试卷在时间限制内,可重复练习、自行批改的试卷
考试记录查看答卷记录和试卷信息
错题本答错题目会自动进入错题本,显示题目基本信息
个人信息显示学生个人资料
更新信息修改个人资料、头像
个人动态显示用户最近的个人动态
消息中心用于接收管理员发送的消息

1.2 管理系统功能

模块介绍
登录用户名、密码
主页试卷总数、题目总数、用户活跃度、题目月数量
学生列表显示系统所有的学生,新增、修改、删除、禁用
管理员列表显示系统所有的管理员,新增、修改、删除、禁用
学科列表学科查询、修改、删除
学科创编创建学科
试卷列表试卷查询、修改、删除
试卷创编创建的试卷为时段试卷、固定试卷、任务试卷
题目列表题目查询、修改、删除
题目创建题目支持单选题、多选题、判断题、填空题、简答题,题干支持文本、图片、表格、数学公式
任务列表任务查询、修改、删除
消息列表显示已发送的消息,消息已读人数等信息
消息发送发送消息给多个用户
用户日志显示所有用户日志
个人资料显示管理员用户名、真实姓名
时间线显示管理员创建时间
修改资料修改姓名、手机号

1.3 小程序功能

模块介绍
登录用户登录登出功能,登录会自动绑定微信账号,登出会解绑
注册年级、用户名、密码
任务中心管理员发布的年级任务,每个学生只能做一次
考试题干支持文本、图片、数学公式、表格等,学生答题支持:文本
固定试卷可重复练习、自行批改的试卷
时段试卷在时间限制内,可重复练习、自行批改的试卷
考试记录查看答卷记录和试卷信息
错题本答错题目会自动进入错题本,显示题目基本信息
个人信息显示学生个人资料
更新信息修改个人资料、头像
个人动态显示用户最近的个人动态
消息中心用于接收管理员发送的消息

展示图

上次更新: 2021/7/13 16:40:30
- + diff --git a/docs/guide/skill.html b/docs/guide/skill.html index 9cd029466..909f3d880 100644 --- a/docs/guide/skill.html +++ b/docs/guide/skill.html @@ -5,11 +5,11 @@ 2. 技术栈 | 学之思教程 - +

2. 技术栈

2.1 运行环境

环境版本
操作系统Windows / Linux
NodeJs14
Jdk1.8
Mysql8.0

2.2 后端系统

  • spring-boot 2.1.6.RELEASE
  • spring-boot-security 用户登录验证
  • undertow web容器
  • mysql 最流行的开源数据库
  • mybatis 数据库中间件
  • hikari 速度最快的数据库连接池
  • 七牛云存储 分布式文件存储中心

2.3 前端系统

  • vue 采用新版,使用了vue-cli4搭建的系统,减少大量配置文件
  • element-ui 最流行的vue UI框架
  • vue-element-admin 深度定制版
  • echarts 图表统计
  • ueditor 题目编辑器

2.4 微信小程序

  • iView 主题样式

2.5 架构图

架构图

上次更新: 2022/2/17 09:55:04
- + diff --git a/docs/guide/student.html b/docs/guide/student.html index e432018e8..00eea6fb8 100644 --- a/docs/guide/student.html +++ b/docs/guide/student.html @@ -5,7 +5,7 @@ 4.1 学生端 | 学之思教程 - + @@ -46,7 +46,7 @@ }
1
2
3
4
5
6
7
8
9
10
11

4.1.5 任务中心

  • 接口地址:/api/student/dashboard/task
  • 请求参数:无
  • 返回参数:
[
         {
-            "id": 45,  //任务id
+            "id": 91,  //任务id
             "title": "2021-04-25作业",  //任务标题
             "paperItems": [
                 {
@@ -99,7 +99,7 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 45,  //试卷id
+        "id": 91,  //试卷id
         "level": 1,  //年级
         "subjectId": 1,  //学科
         "paperType": 1,  //试卷类型
@@ -111,7 +111,7 @@
                 "name": "一、选择题",  //试卷标题
                 "questionItems": [
                     {
-                        "id": 45,      //题目id
+                        "id": 91,      //题目id
                         "questionType": 5,  //题型
                         "subjectId": 1,  //学科
                         "title": "默写咏鹅",  //标题
@@ -157,7 +157,7 @@
     "message": "成功",
     "response": {
         "paper": {  //试卷信息
-            "id": 45,  //试卷id
+            "id": 91,  //试卷id
             "level": 1, //年级
             "subjectId": 1,  //学科
             "paperType": 4,  //试卷类型
@@ -172,7 +172,7 @@
                     "name": "一、完成题目",  //标题
                     "questionItems": [   //题目列表
                         {
-                            "id": 45,  //题目id
+                            "id": 91,  //题目id
                             "questionType": 4,   //题目类型
                             "subjectId": 1,  //学科
                             "title": "曲项向天歌红掌拨清波",  //题目标题
@@ -205,12 +205,12 @@
             "score": "18"   //试卷分数
         },
         "answer": {  //答卷信息
-            "id": 45,  //答卷id
+            "id": 91,  //答卷id
             "doTime": 14,  //耗时
             "score": "2",  //得分
             "answerItems": [   //答题信息
                 {
-                    "id": 45,  //答题id
+                    "id": 91,  //答题id
                     "questionId": 4,  //题目id
                     "doRight": null,  //是否正确
                     "content": null, //答题内容
@@ -227,12 +227,12 @@
     }
 }
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

4.1.11 试卷批改

  • 接口地址:/api/student/exampaper/answer/edit
  • 请求参数:
{
-    "id": 45,  //答卷id
+    "id": 91,  //答卷id
     "doTime": 14,  //耗时
     "score": "2",  //得分数
     "answerItems": [
         {
-            "id": 45, //答题id
+            "id": 91, //答题id
             "questionId": 4, //题目id
             "doRight": null,  //是否正确
             "content": null,  //答题内容
@@ -358,7 +358,7 @@
     "code": 1,
     "message": "成功",
     "response": {
-        "id": 45,
+        "id": 91,
         "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",
         "userName": "student",  //用户名
         "realName": "Test",  //真实姓名
@@ -377,7 +377,7 @@
     }
 }
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

4.1.17 修改用户信息

  • 接口地址:/api/student/user/update
  • 请求参数:
{
-    "id": 45,
+    "id": 91,
     "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",
     "userName": "student",  //用户名
     "realName": "Test",  //真实姓名
@@ -410,7 +410,7 @@
         "total": 5,
         "list": [
             {
-                "id": 45,
+                "id": 91,
                 "title": "rwerw",   //消息标题
                 "messageId": 10,
                 "content": "sfsdf",  //消息内容
@@ -432,6 +432,6 @@
     "response": 0  //未读消息数量
 }
 
1
2
3
4
5
上次更新: 2022/7/14 13:59:24
- + diff --git a/docs/guide/video.html b/docs/guide/video.html index c0d19be6b..fa38be54c 100644 --- a/docs/guide/video.html +++ b/docs/guide/video.html @@ -5,7 +5,7 @@ 7. 视频教程 | 学之思教程 - + @@ -22,6 +22,6 @@
1

7.6 CentOS系统部署

  • 下载好xshell和xftp,这个工具用于连接centos服务器的
  • 可在群文件中找到Xftp-7.0.0063p 和 Xshell-7.0.0065p ,直接安装
  • 打开xshell , 连接准备好的centos服务器
  • 服务器中要安装好 mysql 8 、jdk 1.8、nginx , 可以自行搜索教程进行安装
  • 安装好后,我们检测下是否都在运行
  • 创建数据库xzs、导入xzs-mysql.sql脚本
  • 登录mysql,执行导入命令:
    mysql -u root -p -D xzs < /usr/local/xzs/sql/xzs-mysql.sql
 
1
  • 数据导入成功后,可以登录mysql数据库,检查一下是否成功
  • 打包jar文件,注意修改配置文件application-prod.yml ,正式环境用的这个文件,这里里面的数据库连接地址和账号等,由于都是服务器本地的,都用localhost即可
  • 上传jar包到服务器中
  • 启动学之思后端程序
    nohup java -Duser.timezone=Asia/Shanghai -jar -Dspring.profiles.active=prod  xzs-3.5.0.jar  > start1.log  2>&1 &
 
1

7.7 宝塔面板部署考试系统

7.8 使用手册

上次更新: 2021/10/15 13:39:29
- + diff --git a/docs/guide/wx.html b/docs/guide/wx.html index b5ca8c410..650882141 100644 --- a/docs/guide/wx.html +++ b/docs/guide/wx.html @@ -5,7 +5,7 @@ 4.2 小程序 | 学之思教程 - + @@ -44,7 +44,7 @@ "response": { "fixedPaper": [ //固定试卷 { - "id": 71, //试卷id + "id": 9, //试卷id "name": "aaa", //试卷名称 "limitStartTime": null, "limitEndTime": null @@ -52,7 +52,7 @@ ], "timeLimitPaper": [ //时段试卷 { - "id": 71, //试卷id + "id": 9, //试卷id "name": "202008705", //试卷名称 "limitStartTime": 1600704000000, "limitEndTime": 1664985600000, @@ -75,7 +75,7 @@ "message": "成功", "response": [ { - "id": 71, + "id": 9, "title": "基础任务", //任务标题 "paperItems": [ { @@ -98,7 +98,7 @@ "total": 9, "list": [ { - "id": 71, + "id": 9, "name": "固定试卷", //试卷名称 "questionCount": 1, //题目数量 "score": 50, //分数 @@ -121,7 +121,7 @@ "code": 1, "message": "成功", "response": { - "id": 71, //试卷id + "id": 9, //试卷id "level": 1, //年级 "subjectId": 4, //学科 "paperType": 1, //试卷类型 @@ -133,7 +133,7 @@ "name": "一、解答题", //标题名称 "questionItems": [ //题目列表 { - "id": 71, //题目id + "id": 9, //题目id "questionType": 1, //题目类型 "subjectId": 4, //学科 "title": "中华四大名著都有哪些,下列正确的是", //题干 @@ -203,7 +203,7 @@ "code": 1, "message": "成功", "response": { - "id": 71, + "id": 9, "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47", //用户uuid "userName": "student", //用户名 "realName": "学生", //真实姓名 @@ -231,7 +231,7 @@ "code": 1, "message": "成功", "response": { - "id": 71, + "id": 9, "userUuid": "d2d29da2-dcb3-4013-b874-727626236f47", //用户uuid "userName": "student", //用户名 "realName": "学生", //真实姓名 @@ -273,7 +273,7 @@ "total": 7, "list": [ { - "id": 71, //消息 + "id": 9, //消息 "title": "国庆假说明", //消息标题 "messageId": 17, //消息id "content": "假期七天请注意安全。。。", //消息内容 @@ -288,7 +288,7 @@ "code": 1, "message": "成功", "response": { - "id": 71, + "id": 9, "title": "国庆假说明", //消息标题 "content": "假期七天请注意安全。。。", //消息内容 "createTime": "2021-09-25 14:51:32", //创建时间 @@ -310,6 +310,6 @@ "response": null }
1
2
3
4
5
上次更新: 2022/7/14 13:59:24
- + diff --git a/docs/index.html b/docs/index.html index d3995d8f1..b381d262f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,11 +5,11 @@ 学之思教程 - +

项目介绍

学之思开源考试系统是一款 java + vue 的前后端分离的考试系统。主要优点是开发、部署简单快捷、界面设计友好、代码结构清晰。支持web端和微信小程序,能覆盖到pc机和手机等设备。 支持多种部署方式:集成部署、前后端分离部署、docker部署。

  • 码云最有价值开源项目
  • 累计star数超过 10000+
  • 开源在线考试系统排行首位
  • 交流人数超过 7000+

使用须知

开源协议: AGPL-3.0

仓库地址

码云

GitHub

QQ交流群

  • 开源交流群⑯:556522923
  • 开源交流群⑮:675037554 (满)
  • 开源交流群⑭:249966898 (满)
  • 开源交流群⑫:490584561 (满)
  • 开源交流群⑪:626073476 (满)
  • 开源交流群⑩:575732100 (满)
  • 开源交流群⑨:604864648 (满)
  • 开源交流群⑧:902855996 (满)
  • 开源交流群⑦:873533715 (满)
  • 开源交流群⑥:593529956 (满)
  • 开源交流群⑤:1074095891 (满)
  • 开源交流群④:1039666905 (满)
  • 开源交流群③:670546875 (满)
  • 开源交流群②:947654489 (满)
  • 开源交流群①:530136203 (满)
上次更新: 2022/6/6 14:27:02
- +