mirror of
https://github.com/mindskip/xzs-mysql.git
synced 2026-08-28 11:07:50 +08:00
docker教程更新
This commit is contained in:
@@ -7,19 +7,24 @@
|
||||
CREATE DATABASE `xzs` CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
|
||||
USE xzs;
|
||||
```
|
||||
|
||||
* sql文件改好后,将文件移动到 docker/sql 目录下
|
||||
* 将整个docker目录中的文件,复制到/usr/local/xzs下面
|
||||
* 进入到install目录,执行下面命令,安装docker-compose
|
||||
|
||||
```docker-compose
|
||||
cd /usr/local/xzs/install
|
||||
mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
docker-compose --version
|
||||
```
|
||||
|
||||
* 执行下面命令,启动学之思网站,有问题可以看下/usr/local/xzs/log中的日志
|
||||
|
||||
```docker-xzs
|
||||
cd /usr/local/xzs
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
* 学生端访问地址为:<http://ip:8000/student>
|
||||
* 管理员端访问地址为:<http://ip:8000/admin>
|
||||
+3
-3
@@ -24,10 +24,10 @@
|
||||
</script>
|
||||
<title> | 学之思教程</title><meta name="description" content="学之思开发部署教程">
|
||||
<link rel="preload" href="/xzs-mysql/assets/style.dc49a209.css" as="style" /><link rel="stylesheet" href="/xzs-mysql/assets/style.dc49a209.css" />
|
||||
<link rel="modulepreload" href="/xzs-mysql/assets/app.19eee009.js"><link rel="modulepreload" href="/xzs-mysql/assets/404.html.7adebeaa.js"><link rel="modulepreload" href="/xzs-mysql/assets/404.html.c3e557d0.js"><link rel="prefetch" href="/xzs-mysql/assets/index.html.93cbac08.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/admin.html.de3aa466.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/database.html.d0f44a34.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/deploy.html.c0cb4b0b.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/develop.html.2080e0b6.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/feature.html.261d99f8.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/skill.html.f2c35381.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/student.html.d614382b.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/video.html.dba570b1.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/wx.html.b73bd842.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/index.html.e0b20a13.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/admin.html.efe7102f.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/database.html.9f9da590.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/deploy.html.2aae59c9.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/develop.html.623beb75.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/feature.html.a4614d01.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/skill.html.acdde357.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/student.html.b83372ce.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/video.html.3e4eb810.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/wx.html.acc87353.js" as="script" />
|
||||
<link rel="modulepreload" href="/xzs-mysql/assets/app.e40e699d.js"><link rel="modulepreload" href="/xzs-mysql/assets/404.html.d4b420e3.js"><link rel="modulepreload" href="/xzs-mysql/assets/404.html.c3e557d0.js"><link rel="prefetch" href="/xzs-mysql/assets/index.html.93cbac08.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/admin.html.de3aa466.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/database.html.d0f44a34.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/deploy.html.c0cb4b0b.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/develop.html.2080e0b6.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/feature.html.261d99f8.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/skill.html.f2c35381.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/student.html.d614382b.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/video.html.dba570b1.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/wx.html.b73bd842.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/index.html.6cc389ec.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/admin.html.50c7c5db.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/database.html.08fe7302.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/deploy.html.20a595ab.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/develop.html.f51fbae1.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/feature.html.521b1b27.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/skill.html.cccb8f7e.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/student.html.c42e5a4a.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/video.html.0c1bac8b.js" as="script" /><link rel="prefetch" href="/xzs-mysql/assets/wx.html.c9b04c9d.js" as="script" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"><!--[--><div class="theme-container"><main class="page"><div class="theme-default-content"><h1>404</h1><blockquote>There's nothing here.</blockquote><a href="/xzs-mysql/" class="">Take me home</a></div></main></div><!----><!--]--></div>
|
||||
<script type="module" src="/xzs-mysql/assets/app.19eee009.js" defer></script>
|
||||
<div id="app"><!--[--><div class="theme-container"><main class="page"><div class="theme-default-content"><h1>404</h1><blockquote>That's a Four-Oh-Four.</blockquote><a href="/xzs-mysql/" class="">Take me home</a></div></main></div><!----><!--]--></div>
|
||||
<script type="module" src="/xzs-mysql/assets/app.e40e699d.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1 +1 @@
|
||||
import{_ as e,o as c,c as t}from"./app.19eee009.js";const _={};function o(r,n){return c(),t("div")}const a=e(_,[["render",o],["__file","404.html.vue"]]);export{a as default};
|
||||
import{_ as e,o as c,c as t}from"./app.e40e699d.js";const _={};function o(r,n){return c(),t("div")}const a=e(_,[["render",o],["__file","404.html.vue"]]);export{a as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 id="_4-3-管理端" tabindex="-1"><a class="header-anchor" href="#_4-3-管理端" aria-hidden="true">#</a> 4.3 管理端</h1><h3 id="_4-3-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-3-1-登录" aria-hidden="true">#</a> 4.3.1 登录</h3><ul><li>接口地址:/api/user/login</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
import{_ as e,o as i,c as n,e as u}from"./app.e40e699d.js";const l={},d=u(`<h1 id="_4-3-管理端" tabindex="-1"><a class="header-anchor" href="#_4-3-管理端" aria-hidden="true">#</a> 4.3 管理端</h1><h3 id="_4-3-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-3-1-登录" aria-hidden="true">#</a> 4.3.1 登录</h3><ul><li>接口地址:/api/user/login</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"userName": "admin", //用户名
|
||||
"password": "", //密码
|
||||
"remember": false //记住我
|
||||
@@ -152,7 +152,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"message": "成功",
|
||||
"response": [
|
||||
{
|
||||
"id": 13, //学科id
|
||||
"id": 23, //学科id
|
||||
"name": "语文", //学科名称
|
||||
"level": 1, //年级
|
||||
"levelName": "一年级", //年级名称
|
||||
@@ -173,7 +173,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 2,
|
||||
"list": [
|
||||
{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"name": "数学", //学科名称
|
||||
"level": 1, //年级
|
||||
"levelName": "一年级" //年级名称
|
||||
@@ -185,14 +185,14 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"name": "数学", //学科名称
|
||||
"level": 1, //年级
|
||||
"levelName": "一年级" //年级名称
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-3-12-学科编辑" tabindex="-1"><a class="header-anchor" href="#_4-3-12-学科编辑" aria-hidden="true">#</a> 4.3.12 学科编辑</h3><ul><li>接口地址:/api/admin/education/subject/edit</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"name": "数学", //学科名称
|
||||
"level": 2, //年级
|
||||
"levelName": "二年级" //年级名称
|
||||
@@ -221,7 +221,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 9,
|
||||
"list": [
|
||||
{
|
||||
"id": 13, //试卷id
|
||||
"id": 23, //试卷id
|
||||
"name": "中级任务二", //试卷名称
|
||||
"questionCount": 5, //题目总数
|
||||
"score": 180, //试卷分数
|
||||
@@ -238,7 +238,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 13, //试卷id
|
||||
"id": 23, //试卷id
|
||||
"level": 1, //年级
|
||||
"subjectId": 1, //学科
|
||||
"paperType": 1, //试卷类型
|
||||
@@ -250,7 +250,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"name": "一、选择题", //试卷标题
|
||||
"questionItems": [
|
||||
{
|
||||
"id": 13, //题目id
|
||||
"id": 23, //题目id
|
||||
"questionType": 5, //题目类型
|
||||
"subjectId": 1, //学科
|
||||
"title": "默写咏鹅", //题干
|
||||
@@ -270,7 +270,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-3-16-试卷编辑" tabindex="-1"><a class="header-anchor" href="#_4-3-16-试卷编辑" aria-hidden="true">#</a> 4.3.16 试卷编辑</h3><ul><li>接口地址:/api/admin/exam/paper/edit</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 13, //试卷id
|
||||
"id": 23, //试卷id
|
||||
"level": 1, //年级
|
||||
"subjectId": 1, //学科
|
||||
"paperType": 6, //试卷类型
|
||||
@@ -282,7 +282,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"name": "一、选择题", //标题
|
||||
"questionItems": [ //题目列表
|
||||
{
|
||||
"id": 13, //题目id
|
||||
"id": 23, //题目id
|
||||
"questionType": 2, //题型
|
||||
"subjectId": 1, //学科
|
||||
"title": "以下哪些诗句是静夜思的?", //题干
|
||||
@@ -314,7 +314,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 13, //试卷id
|
||||
"id": 23, //试卷id
|
||||
"level": 1, //年级
|
||||
"subjectId": 1, //学科
|
||||
"paperType": 6, //试卷类型
|
||||
@@ -326,7 +326,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"name": "一、选择题", //标题
|
||||
"questionItems": [
|
||||
{
|
||||
"id": 13, //题目id
|
||||
"id": 23, //题目id
|
||||
"questionType": 2, //题型
|
||||
"subjectId": 1, //学科
|
||||
"title": "以下哪些诗句是静夜思的?", //题干
|
||||
@@ -374,7 +374,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 1,
|
||||
"list": [
|
||||
{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"name": "任务试卷五", //试卷名称
|
||||
"questionCount": 2, //题目总数
|
||||
"score": 60, //试卷分数
|
||||
@@ -402,7 +402,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 7,
|
||||
"list": [
|
||||
{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"questionType": 5, //题型
|
||||
"textContentId": null,
|
||||
"createTime": "2021-01-21 11:45:57", //创建时间
|
||||
@@ -437,7 +437,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-3-21-题目编辑" tabindex="-1"><a class="header-anchor" href="#_4-3-21-题目编辑" aria-hidden="true">#</a> 4.3.21 题目编辑</h3><ul><li>接口地址:/api/admin/question/edit</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 13, //题目id
|
||||
"id": 23, //题目id
|
||||
"questionType": 5, //题型
|
||||
"subjectId": 1, //学科
|
||||
"title": "默写咏鹅", //题干
|
||||
@@ -472,7 +472,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 2,
|
||||
"list": [
|
||||
{
|
||||
"id": 13, //任务id
|
||||
"id": 23, //任务id
|
||||
"title": "中级任务", //任务标题
|
||||
"gradeLevel": 1, //年级
|
||||
"createUserName": "admin", //创建人用户名
|
||||
@@ -486,7 +486,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 13, //任务id
|
||||
"id": 23, //任务id
|
||||
"gradeLevel": 12, //年级
|
||||
"title": "考试", //任务标题
|
||||
"paperItems": [
|
||||
@@ -506,12 +506,12 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-3-25-任务编辑" tabindex="-1"><a class="header-anchor" href="#_4-3-25-任务编辑" aria-hidden="true">#</a> 4.3.25 任务编辑</h3><ul><li>接口地址:/api/admin/task/edit</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"gradeLevel": 1,
|
||||
"title": "中级任务",
|
||||
"paperItems": [
|
||||
{
|
||||
"id": 13, //试卷id
|
||||
"id": 23, //试卷id
|
||||
"name": "中级任务一", //试卷名称
|
||||
"questionCount": 5, //题目数量
|
||||
"score": 180, //试卷分数
|
||||
@@ -527,12 +527,12 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 13, //任务id
|
||||
"id": 23, //任务id
|
||||
"gradeLevel": 1, //年级
|
||||
"title": "中级任务", //任务标题
|
||||
"paperItems": [
|
||||
{
|
||||
"id": 13, //试卷id
|
||||
"id": 23, //试卷id
|
||||
"name": "中级任务一", //试卷名称
|
||||
"questionCount": 5, //题目数量
|
||||
"score": 180, //试卷分数
|
||||
@@ -562,7 +562,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 36,
|
||||
"list": [
|
||||
{
|
||||
"id": 13, //消息id
|
||||
"id": 23, //消息id
|
||||
"title": "你好,同学!", //消息标题
|
||||
"content": "考试请不要作弊", //消息内容
|
||||
"sendUserName": "admin", //发送人用户名
|
||||
@@ -598,7 +598,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 4,
|
||||
"list": [
|
||||
{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"createTime": "2021-07-07 14:03:02", //提交时间
|
||||
"userScore": "16", //用户得分
|
||||
"subjectName": "语文", //学科名称
|
||||
@@ -629,7 +629,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"total": 68,
|
||||
"list": [
|
||||
{
|
||||
"id": 13, //日志id
|
||||
"id": 23, //日志id
|
||||
"userId": 2, //用户id
|
||||
"userName": "admin", //用户名
|
||||
"realName": "管理员", //真实姓名
|
||||
@@ -643,7 +643,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户uuid
|
||||
"userName": "admin", //用户名
|
||||
"realName": "管理员", //真实姓名
|
||||
@@ -661,7 +661,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-3-32-用户信息更新" tabindex="-1"><a class="header-anchor" href="#_4-3-32-用户信息更新" aria-hidden="true">#</a> 4.3.32 用户信息更新</h3><ul><li>接口地址:/api/admin/user/update</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 13, //用户id
|
||||
"id": 23, //用户id
|
||||
"userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户标识
|
||||
"userName": "admin", //用户名
|
||||
"realName": "管理员", //真实姓名
|
||||
@@ -702,7 +702,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const l={},d=u(`<h1 i
|
||||
"state": "SUCCESS"
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-3-34-个人信息修改" tabindex="-1"><a class="header-anchor" href="#_4-3-34-个人信息修改" aria-hidden="true">#</a> 4.3.34 个人信息修改</h3><ul><li>接口地址:/api/admin/user/update</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 13,
|
||||
"id": 23,
|
||||
"userUuid": "52045f5f-a13f-4ccc-93dd-f7ee8270ad4c", //用户uuid
|
||||
"userName": "admin", //用户名
|
||||
"realName": "管理员", //真实姓名
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{_ as t,r as o,o as i,c as r,a as n,b as s,d as a,e as l}from"./app.19eee009.js";const c={},d=l(`<h1 id="_6-项目部署" tabindex="-1"><a class="header-anchor" href="#_6-项目部署" aria-hidden="true">#</a> 6. 项目部署</h1><h3 id="_6-1-集成部署" tabindex="-1"><a class="header-anchor" href="#_6-1-集成部署" aria-hidden="true">#</a> 6.1 集成部署</h3><ul><li>分别在\\source\\vue\\xzs-student目录和source\\vue\\xzs-admin目录,执行前端打包命令</li></ul><div class="language-npm line-numbers-mode" data-ext="npm"><pre class="language-npm"><code>npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
||||
import{_ as t,r as o,o as i,c as r,a as n,b as s,d as a,e as l}from"./app.e40e699d.js";const c={},d=l(`<h1 id="_6-项目部署" tabindex="-1"><a class="header-anchor" href="#_6-项目部署" aria-hidden="true">#</a> 6. 项目部署</h1><h3 id="_6-1-集成部署" tabindex="-1"><a class="header-anchor" href="#_6-1-集成部署" aria-hidden="true">#</a> 6.1 集成部署</h3><ul><li>分别在\\source\\vue\\xzs-student目录和source\\vue\\xzs-admin目录,执行前端打包命令</li></ul><div class="language-npm line-numbers-mode" data-ext="npm"><pre class="language-npm"><code>npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
||||
npm install --registry https://registry.npm.taobao.org
|
||||
npm run build
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,4),p=n("li",null,"打包后的目录为student和admin",-1),u=n("li",null,"将文件放到\\source\\xzs\\src\\main\\resources\\static下,然后将java程序打包成jar包",-1),m=n("li",null,"修改application-prod.yml中的datasource地址",-1),k={href:"http://ip:8000/student",target:"_blank",rel:"noopener noreferrer"},v={href:"http://ip:8000/admin",target:"_blank",rel:"noopener noreferrer"},h=n("li",null,"执行下列命令,运行程序",-1),_=l(`<div class="language-java line-numbers-mode" data-ext="java"><pre class="language-java"><code>nohup java <span class="token operator">-</span><span class="token class-name">Duser</span><span class="token punctuation">.</span>timezone<span class="token operator">=</span><span class="token class-name">Asia</span><span class="token operator">/</span><span class="token class-name">Shanghai</span> <span class="token operator">-</span>jar <span class="token operator">-</span><span class="token class-name">Dspring</span><span class="token punctuation">.</span>profiles<span class="token punctuation">.</span>active<span class="token operator">=</span>prod xzs<span class="token operator">-</span><span class="token number">3.9</span><span class="token number">.0</span><span class="token punctuation">.</span>jar <span class="token operator">></span> start1<span class="token punctuation">.</span>log <span class="token number">2</span><span class="token operator">></span><span class="token operator">&</span><span class="token number">1</span> <span class="token operator">&</span>
|
||||
@@ -1,4 +1,4 @@
|
||||
import{_ as l,r as d,o as a,c as r,a as e,b as n,d as s,e as t}from"./app.19eee009.js";const c={},o=e("h1",{id:"_5-项目开发",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-项目开发","aria-hidden":"true"},"#"),n(" 5. 项目开发")],-1),v=e("h3",{id:"_5-1-开发环境",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-1-开发环境","aria-hidden":"true"},"#"),n(" 5.1 开发环境")],-1),u=e("thead",null,[e("tr",null,[e("th",null,"环境"),e("th",null,"版本"),e("th",null,"下载地址")])],-1),m=e("td",null,"NodeJs",-1),h=e("td",null,"16",-1),b={href:"https://nodejs.org/download/release/latest-v16.x/",target:"_blank",rel:"noopener noreferrer"},_=e("td",null,"Jdk",-1),p=e("td",null,"1.8",-1),x={href:"https://www.oracle.com/java/technologies/downloads/#java8-windows",target:"_blank",rel:"noopener noreferrer"},g=e("td",null,"Mysql",-1),w=e("td",null,"8.0",-1),f={href:"https://dev.mysql.com/downloads/windows/installer/8.0.html",target:"_blank",rel:"noopener noreferrer"},y=e("h3",{id:"_5-2-开发说明",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-2-开发说明","aria-hidden":"true"},"#"),n(" 5.2 开发说明")],-1),k={href:"https://www.mindskip.net:999",target:"_blank",rel:"noopener noreferrer"},z=e("li",null,"代码下载 mysql版本,配合相应的数据库使用",-1),q=e("li",null,"安装mysql ,导入xzs-mysql.sql脚本",-1),j=e("li",null,"学生端默认账号:student / 123456",-1),I=e("li",null,"管理端默认账号:admin / 123456",-1),B=e("h3",{id:"_5-3-后端开发",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-3-后端开发","aria-hidden":"true"},"#"),n(" 5.3 后端开发")],-1),N=e("li",null,"/uexam/source/xzs为后台代码,建议使用IntelliJ IDEA打开",-1),T=e("li",null,"打开application-dev.yml文件中,配置好mysql的服务地址",-1),V=e("li",null,"去七牛云官网申请好对象存储账号,修改application.yml中的qn相关的配置,七牛云主要用于文件存储",-1),E=e("li",null,"启动后台程序,默认端口为8000",-1),J={href:"http://ip:8000/student",target:"_blank",rel:"noopener noreferrer"},S={href:"http://ip:8000/admin",target:"_blank",rel:"noopener noreferrer"},L=t(`<h3 id="_5-4-前端开发" tabindex="-1"><a class="header-anchor" href="#_5-4-前端开发" aria-hidden="true">#</a> 5.4 前端开发</h3><ul><li>前端使用webstorm或者vscode,分别打开文件夹打开源代码\\source\\vue\\xzs-student和source\\vue\\xzs-admin</li><li>执行下面2个命令,安装node_module:</li></ul><div class="language-npm line-numbers-mode" data-ext="npm"><pre class="language-npm"><code>npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
||||
import{_ as l,r as d,o as a,c as r,a as e,b as n,d as s,e as t}from"./app.e40e699d.js";const c={},o=e("h1",{id:"_5-项目开发",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-项目开发","aria-hidden":"true"},"#"),n(" 5. 项目开发")],-1),v=e("h3",{id:"_5-1-开发环境",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-1-开发环境","aria-hidden":"true"},"#"),n(" 5.1 开发环境")],-1),u=e("thead",null,[e("tr",null,[e("th",null,"环境"),e("th",null,"版本"),e("th",null,"下载地址")])],-1),m=e("td",null,"NodeJs",-1),h=e("td",null,"16",-1),b={href:"https://nodejs.org/download/release/latest-v16.x/",target:"_blank",rel:"noopener noreferrer"},_=e("td",null,"Jdk",-1),p=e("td",null,"1.8",-1),x={href:"https://www.oracle.com/java/technologies/downloads/#java8-windows",target:"_blank",rel:"noopener noreferrer"},g=e("td",null,"Mysql",-1),w=e("td",null,"8.0",-1),f={href:"https://dev.mysql.com/downloads/windows/installer/8.0.html",target:"_blank",rel:"noopener noreferrer"},y=e("h3",{id:"_5-2-开发说明",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-2-开发说明","aria-hidden":"true"},"#"),n(" 5.2 开发说明")],-1),k={href:"https://www.mindskip.net:999",target:"_blank",rel:"noopener noreferrer"},z=e("li",null,"代码下载 mysql版本,配合相应的数据库使用",-1),q=e("li",null,"安装mysql ,导入xzs-mysql.sql脚本",-1),j=e("li",null,"学生端默认账号:student / 123456",-1),I=e("li",null,"管理端默认账号:admin / 123456",-1),B=e("h3",{id:"_5-3-后端开发",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_5-3-后端开发","aria-hidden":"true"},"#"),n(" 5.3 后端开发")],-1),N=e("li",null,"/uexam/source/xzs为后台代码,建议使用IntelliJ IDEA打开",-1),T=e("li",null,"打开application-dev.yml文件中,配置好mysql的服务地址",-1),V=e("li",null,"去七牛云官网申请好对象存储账号,修改application.yml中的qn相关的配置,七牛云主要用于文件存储",-1),E=e("li",null,"启动后台程序,默认端口为8000",-1),J={href:"http://ip:8000/student",target:"_blank",rel:"noopener noreferrer"},S={href:"http://ip:8000/admin",target:"_blank",rel:"noopener noreferrer"},L=t(`<h3 id="_5-4-前端开发" tabindex="-1"><a class="header-anchor" href="#_5-4-前端开发" aria-hidden="true">#</a> 5.4 前端开发</h3><ul><li>前端使用webstorm或者vscode,分别打开文件夹打开源代码\\source\\vue\\xzs-student和source\\vue\\xzs-admin</li><li>执行下面2个命令,安装node_module:</li></ul><div class="language-npm line-numbers-mode" data-ext="npm"><pre class="language-npm"><code>npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
||||
npm install --registry https://registry.npm.taobao.org
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>执行下面命令,启动前端代码</li></ul><div class="language-npm line-numbers-mode" data-ext="npm"><pre class="language-npm"><code>npm run serve
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><ul><li>打包命名</li></ul><div class="language-npm line-numbers-mode" data-ext="npm"><pre class="language-npm"><code>npm run build
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{_ as e,o as t,c as i,e as a}from"./app.19eee009.js";const d={},r=a('<h1 id="_2-技术栈" tabindex="-1"><a class="header-anchor" href="#_2-技术栈" aria-hidden="true">#</a> 2. 技术栈</h1><h3 id="_2-1-运行环境" tabindex="-1"><a class="header-anchor" href="#_2-1-运行环境" aria-hidden="true">#</a> 2.1 运行环境</h3><table><thead><tr><th>环境</th><th>版本</th></tr></thead><tbody><tr><td>操作系统</td><td>Windows / Linux</td></tr><tr><td>NodeJs</td><td>14</td></tr><tr><td>Jdk</td><td>1.8</td></tr><tr><td>Mysql</td><td>8.0</td></tr></tbody></table><h3 id="_2-2-后端系统" tabindex="-1"><a class="header-anchor" href="#_2-2-后端系统" aria-hidden="true">#</a> 2.2 后端系统</h3><ul><li>spring-boot 2.1.6.RELEASE</li><li>spring-boot-security 用户登录验证</li><li>undertow web容器</li><li>mysql 最流行的开源数据库</li><li>mybatis 数据库中间件</li><li>hikari 速度最快的数据库连接池</li><li>七牛云存储 分布式文件存储中心</li></ul><h3 id="_2-3-前端系统" tabindex="-1"><a class="header-anchor" href="#_2-3-前端系统" aria-hidden="true">#</a> 2.3 前端系统</h3><ul><li>vue 采用新版,使用了vue-cli4搭建的系统,减少大量配置文件</li><li>element-ui 最流行的vue UI框架</li><li>vue-element-admin 深度定制版</li><li>echarts 图表统计</li><li>ueditor 题目编辑器</li></ul><h3 id="_2-4-微信小程序" tabindex="-1"><a class="header-anchor" href="#_2-4-微信小程序" aria-hidden="true">#</a> 2.4 微信小程序</h3><ul><li>iView 主题样式</li></ul><h3 id="_2-5-架构图" tabindex="-1"><a class="header-anchor" href="#_2-5-架构图" aria-hidden="true">#</a> 2.5 架构图</h3><p><img src="https://www.mindskip.net/style/git/images/frame/1.png" alt="架构图"></p>',11),l=[r];function h(n,s){return t(),i("div",null,l)}const o=e(d,[["render",h],["__file","skill.html.vue"]]);export{o as default};
|
||||
import{_ as e,o as t,c as i,e as a}from"./app.e40e699d.js";const d={},r=a('<h1 id="_2-技术栈" tabindex="-1"><a class="header-anchor" href="#_2-技术栈" aria-hidden="true">#</a> 2. 技术栈</h1><h3 id="_2-1-运行环境" tabindex="-1"><a class="header-anchor" href="#_2-1-运行环境" aria-hidden="true">#</a> 2.1 运行环境</h3><table><thead><tr><th>环境</th><th>版本</th></tr></thead><tbody><tr><td>操作系统</td><td>Windows / Linux</td></tr><tr><td>NodeJs</td><td>14</td></tr><tr><td>Jdk</td><td>1.8</td></tr><tr><td>Mysql</td><td>8.0</td></tr></tbody></table><h3 id="_2-2-后端系统" tabindex="-1"><a class="header-anchor" href="#_2-2-后端系统" aria-hidden="true">#</a> 2.2 后端系统</h3><ul><li>spring-boot 2.1.6.RELEASE</li><li>spring-boot-security 用户登录验证</li><li>undertow web容器</li><li>mysql 最流行的开源数据库</li><li>mybatis 数据库中间件</li><li>hikari 速度最快的数据库连接池</li><li>七牛云存储 分布式文件存储中心</li></ul><h3 id="_2-3-前端系统" tabindex="-1"><a class="header-anchor" href="#_2-3-前端系统" aria-hidden="true">#</a> 2.3 前端系统</h3><ul><li>vue 采用新版,使用了vue-cli4搭建的系统,减少大量配置文件</li><li>element-ui 最流行的vue UI框架</li><li>vue-element-admin 深度定制版</li><li>echarts 图表统计</li><li>ueditor 题目编辑器</li></ul><h3 id="_2-4-微信小程序" tabindex="-1"><a class="header-anchor" href="#_2-4-微信小程序" aria-hidden="true">#</a> 2.4 微信小程序</h3><ul><li>iView 主题样式</li></ul><h3 id="_2-5-架构图" tabindex="-1"><a class="header-anchor" href="#_2-5-架构图" aria-hidden="true">#</a> 2.5 架构图</h3><p><img src="https://www.mindskip.net/style/git/images/frame/1.png" alt="架构图"></p>',11),l=[r];function h(n,s){return t(),i("div",null,l)}const o=e(d,[["render",h],["__file","skill.html.vue"]]);export{o as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 id="_4-1-学生端" tabindex="-1"><a class="header-anchor" href="#_4-1-学生端" aria-hidden="true">#</a> 4.1 学生端</h1><h3 id="_4-1-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-1-1-登录" aria-hidden="true">#</a> 4.1.1 登录</h3><ul><li>接口地址:/api/user/login</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
import{_ as e,o as i,c as n,e as u}from"./app.e40e699d.js";const d={},s=u(`<h1 id="_4-1-学生端" tabindex="-1"><a class="header-anchor" href="#_4-1-学生端" aria-hidden="true">#</a> 4.1 学生端</h1><h3 id="_4-1-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-1-1-登录" aria-hidden="true">#</a> 4.1.1 登录</h3><ul><li>接口地址:/api/user/login</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"userName": "student", //用户名
|
||||
"password": "", //密码
|
||||
"remember": false //下次自动登录
|
||||
@@ -35,7 +35,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-1-5-任务中心" tabindex="-1"><a class="header-anchor" href="#_4-1-5-任务中心" aria-hidden="true">#</a> 4.1.5 任务中心</h3><ul><li>接口地址:/api/student/dashboard/task</li><li>请求参数:无</li><li>返回参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>[
|
||||
{
|
||||
"id": 8, //任务id
|
||||
"id": 36, //任务id
|
||||
"title": "2021-04-25作业", //任务标题
|
||||
"paperItems": [
|
||||
{
|
||||
@@ -88,7 +88,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 8, //试卷id
|
||||
"id": 36, //试卷id
|
||||
"level": 1, //年级
|
||||
"subjectId": 1, //学科
|
||||
"paperType": 1, //试卷类型
|
||||
@@ -100,7 +100,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"name": "一、选择题", //试卷标题
|
||||
"questionItems": [
|
||||
{
|
||||
"id": 8, //题目id
|
||||
"id": 36, //题目id
|
||||
"questionType": 5, //题型
|
||||
"subjectId": 1, //学科
|
||||
"title": "默写咏鹅", //标题
|
||||
@@ -146,7 +146,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"paper": { //试卷信息
|
||||
"id": 8, //试卷id
|
||||
"id": 36, //试卷id
|
||||
"level": 1, //年级
|
||||
"subjectId": 1, //学科
|
||||
"paperType": 4, //试卷类型
|
||||
@@ -161,7 +161,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"name": "一、完成题目", //标题
|
||||
"questionItems": [ //题目列表
|
||||
{
|
||||
"id": 8, //题目id
|
||||
"id": 36, //题目id
|
||||
"questionType": 4, //题目类型
|
||||
"subjectId": 1, //学科
|
||||
"title": "曲项向天歌红掌拨清波", //题目标题
|
||||
@@ -194,12 +194,12 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"score": "18" //试卷分数
|
||||
},
|
||||
"answer": { //答卷信息
|
||||
"id": 8, //答卷id
|
||||
"id": 36, //答卷id
|
||||
"doTime": 14, //耗时
|
||||
"score": "2", //得分
|
||||
"answerItems": [ //答题信息
|
||||
{
|
||||
"id": 8, //答题id
|
||||
"id": 36, //答题id
|
||||
"questionId": 4, //题目id
|
||||
"doRight": null, //是否正确
|
||||
"content": null, //答题内容
|
||||
@@ -216,12 +216,12 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-1-11-试卷批改" tabindex="-1"><a class="header-anchor" href="#_4-1-11-试卷批改" aria-hidden="true">#</a> 4.1.11 试卷批改</h3><ul><li>接口地址:/api/student/exampaper/answer/edit</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 8, //答卷id
|
||||
"id": 36, //答卷id
|
||||
"doTime": 14, //耗时
|
||||
"score": "2", //得分数
|
||||
"answerItems": [
|
||||
{
|
||||
"id": 8, //答题id
|
||||
"id": 36, //答题id
|
||||
"questionId": 4, //题目id
|
||||
"doRight": null, //是否正确
|
||||
"content": null, //答题内容
|
||||
@@ -347,7 +347,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 8,
|
||||
"id": 36,
|
||||
"userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",
|
||||
"userName": "student", //用户名
|
||||
"realName": "Test", //真实姓名
|
||||
@@ -366,7 +366,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
}
|
||||
}
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="_4-1-17-修改用户信息" tabindex="-1"><a class="header-anchor" href="#_4-1-17-修改用户信息" aria-hidden="true">#</a> 4.1.17 修改用户信息</h3><ul><li>接口地址:/api/student/user/update</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
"id": 8,
|
||||
"id": 36,
|
||||
"userUuid": "d2d29da2-dcb3-4013-b874-727626236f47",
|
||||
"userName": "student", //用户名
|
||||
"realName": "Test", //真实姓名
|
||||
@@ -399,7 +399,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"total": 5,
|
||||
"list": [
|
||||
{
|
||||
"id": 8,
|
||||
"id": 36,
|
||||
"title": "rwerw", //消息标题
|
||||
"messageId": 10,
|
||||
"content": "sfsdf", //消息内容
|
||||
@@ -1,4 +1,4 @@
|
||||
import{_ as s,r as o,o as r,c as d,a as e,b as i,d as t,e as n}from"./app.19eee009.js";const a={},c=e("h1",{id:"_7-视频教程",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_7-视频教程","aria-hidden":"true"},"#"),i(" 7. 视频教程")],-1),_=e("h3",{id:"_7-1-基础软件安装",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_7-1-基础软件安装","aria-hidden":"true"},"#"),i(" 7.1 基础软件安装")],-1),h={href:"https://gitee.com/mindskip/xzs-mysql",target:"_blank",rel:"noopener noreferrer"},u=e("li",null,"加群QQ交流群,找管理员拿到数据库脚本",-1),m=e("li",null,"工具介绍",-1),p=n(`<div class="language-软件简介 line-numbers-mode" data-ext="软件简介"><pre class="language-软件简介"><code> ideaIU-2020.3.3 : java开发工具
|
||||
import{_ as s,r as o,o as r,c as d,a as e,b as i,d as t,e as n}from"./app.e40e699d.js";const a={},c=e("h1",{id:"_7-视频教程",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_7-视频教程","aria-hidden":"true"},"#"),i(" 7. 视频教程")],-1),_=e("h3",{id:"_7-1-基础软件安装",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_7-1-基础软件安装","aria-hidden":"true"},"#"),i(" 7.1 基础软件安装")],-1),h={href:"https://gitee.com/mindskip/xzs-mysql",target:"_blank",rel:"noopener noreferrer"},u=e("li",null,"加群QQ交流群,找管理员拿到数据库脚本",-1),m=e("li",null,"工具介绍",-1),p=n(`<div class="language-软件简介 line-numbers-mode" data-ext="软件简介"><pre class="language-软件简介"><code> ideaIU-2020.3.3 : java开发工具
|
||||
mysql-installer-community-8.0.19.0 : Mysql数据库安装包
|
||||
navicat150_mysql_cs_x64 : Mysql数据库连接工具
|
||||
WebStorm-2020.3.3: 前端开发工具
|
||||
@@ -1,4 +1,4 @@
|
||||
import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 id="_4-2-小程序" tabindex="-1"><a class="header-anchor" href="#_4-2-小程序" aria-hidden="true">#</a> 4.2 小程序</h1><h3 id="_4-2-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-2-1-登录" aria-hidden="true">#</a> 4.2.1 登录</h3><ul><li>接口地址:/api/wx/student/auth/bind</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code> userName: student //用户名
|
||||
import{_ as e,o as i,c as n,e as u}from"./app.e40e699d.js";const d={},s=u(`<h1 id="_4-2-小程序" tabindex="-1"><a class="header-anchor" href="#_4-2-小程序" aria-hidden="true">#</a> 4.2 小程序</h1><h3 id="_4-2-1-登录" tabindex="-1"><a class="header-anchor" href="#_4-2-1-登录" aria-hidden="true">#</a> 4.2.1 登录</h3><ul><li>接口地址:/api/wx/student/auth/bind</li><li>请求参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code> userName: student //用户名
|
||||
password: 123456 //密码
|
||||
code: 023BNuFa1CQ14B07KVHa16RHM94BNuF0 //授权码
|
||||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>返回参数:</li></ul><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>{
|
||||
@@ -33,7 +33,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"response": {
|
||||
"fixedPaper": [ //固定试卷
|
||||
{
|
||||
"id": 35, //试卷id
|
||||
"id": 78, //试卷id
|
||||
"name": "aaa", //试卷名称
|
||||
"limitStartTime": null,
|
||||
"limitEndTime": null
|
||||
@@ -41,7 +41,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
],
|
||||
"timeLimitPaper": [ //时段试卷
|
||||
{
|
||||
"id": 35, //试卷id
|
||||
"id": 78, //试卷id
|
||||
"name": "202008705", //试卷名称
|
||||
"limitStartTime": 1600704000000,
|
||||
"limitEndTime": 1664985600000,
|
||||
@@ -64,7 +64,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"message": "成功",
|
||||
"response": [
|
||||
{
|
||||
"id": 35,
|
||||
"id": 78,
|
||||
"title": "基础任务", //任务标题
|
||||
"paperItems": [
|
||||
{
|
||||
@@ -87,7 +87,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"total": 9,
|
||||
"list": [
|
||||
{
|
||||
"id": 35,
|
||||
"id": 78,
|
||||
"name": "固定试卷", //试卷名称
|
||||
"questionCount": 1, //题目数量
|
||||
"score": 50, //分数
|
||||
@@ -110,7 +110,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 35, //试卷id
|
||||
"id": 78, //试卷id
|
||||
"level": 1, //年级
|
||||
"subjectId": 4, //学科
|
||||
"paperType": 1, //试卷类型
|
||||
@@ -122,7 +122,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"name": "一、解答题", //标题名称
|
||||
"questionItems": [ //题目列表
|
||||
{
|
||||
"id": 35, //题目id
|
||||
"id": 78, //题目id
|
||||
"questionType": 1, //题目类型
|
||||
"subjectId": 4, //学科
|
||||
"title": "中华四大名著都有哪些,下列正确的是", //题干
|
||||
@@ -192,7 +192,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 35,
|
||||
"id": 78,
|
||||
"userUuid": "d2d29da2-dcb3-4013-b874-727626236f47", //用户uuid
|
||||
"userName": "student", //用户名
|
||||
"realName": "学生", //真实姓名
|
||||
@@ -220,7 +220,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 35,
|
||||
"id": 78,
|
||||
"userUuid": "d2d29da2-dcb3-4013-b874-727626236f47", //用户uuid
|
||||
"userName": "student", //用户名
|
||||
"realName": "学生", //真实姓名
|
||||
@@ -262,7 +262,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"total": 7,
|
||||
"list": [
|
||||
{
|
||||
"id": 35, //消息
|
||||
"id": 78, //消息
|
||||
"title": "国庆假说明", //消息标题
|
||||
"messageId": 17, //消息id
|
||||
"content": "假期七天请注意安全。。。", //消息内容
|
||||
@@ -277,7 +277,7 @@ import{_ as e,o as i,c as n,e as u}from"./app.19eee009.js";const d={},s=u(`<h1 i
|
||||
"code": 1,
|
||||
"message": "成功",
|
||||
"response": {
|
||||
"id": 35,
|
||||
"id": 78,
|
||||
"title": "国庆假说明", //消息标题
|
||||
"content": "假期七天请注意安全。。。", //消息内容
|
||||
"createTime": "2021-09-25 14:51:32", //创建时间
|
||||
+28
-28
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+14
-14
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+12
-12
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+26
-9
@@ -49,14 +49,31 @@ server {
|
||||
|
||||
### docker部署
|
||||
|
||||
* 准备好centos服务器
|
||||
* 先检查服务器端口、ip转发的是否配置正确,否则无法访问到docker内部
|
||||
* docker内部镜像已经安装了java、mysql,均已配置好,无需其他操作
|
||||
* 执行下列docker命令,拉取镜像,启动容器
|
||||
* 打开网站<https://gitee.com/mindskip/xzs-mysql>,找到docker目录,里面有已配置好的文件
|
||||
* 下载sql脚本,下载教程<https://www.mindskip.net:999>,然后解压sql压缩包,找到xzs-mysql.sql文件,编辑此文件,在文件开头加如下代码:
|
||||
|
||||
```xzs-mysql
|
||||
CREATE DATABASE `xzs` CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
|
||||
USE xzs;
|
||||
```
|
||||
|
||||
* sql文件改好后,将文件移动到 docker/sql 目录下
|
||||
* 将整个docker目录中的文件,复制到/usr/local/xzs下面
|
||||
* 进入到install目录,执行下面命令,安装docker-compose
|
||||
|
||||
```docker-compose
|
||||
cd /usr/local/xzs/install
|
||||
mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
docker-compose --version
|
||||
```
|
||||
|
||||
* 执行下面命令,启动学之思网站,有问题可以看下/usr/local/xzs/log中的日志
|
||||
|
||||
```docker-xzs
|
||||
cd /usr/local/xzs
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
* 学生端访问地址为:<http://ip:8000/student>
|
||||
* 管理员端访问地址为:<http://ip:8000/admin>
|
||||
|
||||
```docker
|
||||
docker pull registry.cn-hangzhou.aliyuncs.com/mindskip/xzs:v3.9.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.9.0 /usr/sbin/init
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user