6%}@XwDO%4_#7=M6Z#s8enM+(izATtqcnzm5q>)iL
z`|5#MsNfw7XRu`94V<^|wy5u7N#V>iMQ#t>PRr?A_yE@wEJ>9UP~29{!WY<-rNOC`
zR{n#kMsV{MiG7~)n}iDh7Iq#UI$g4}JZp3(nhx`mLs?Sdm9Oz8Z%c~zDZ(E?@OQ+4
zG6A-QC9ccVDwK*+FZ=>^)Ou5rKHxP%;wOQVWB;g8@7!7uPEifcr%$eo4~V`X3%=HFN_
zP`3U-#=vF%&2d|o*p?3wNA$;yP#J_%mL~3pXOG+JKKD7|+V-%@H
zE+ZtTX&rzQ+=*ORrsCJ&L&g;x8kAAW#ljPu@~K@Y%^;)c^Lr&Q9b>#0@|*7R)nX_?
gJ1$o^$pc|KzdK2(`1j&ynP=rS_Ies1=y@Ja{vGU
diff --git a/security-java/target/classes/com/securityjava/pojo/Role.class b/security-java/target/classes/com/securityjava/pojo/Role.class
deleted file mode 100644
index 398b5a10af052e52f9a57c3d7b336fa6835f6e9e..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1900
zcma)6U2ofD6n@^sPMpMTv#@0CR#?Xd%jd#iFxE5!)^!kQO4XuCa5Xov8kaOKiG##n
z*$sE>rWYWwOaf_w8z%9afbksLBwdszbZwR-#2U9a!-_G=1>ecRg!?W6euJ+yVVP3whCr)O^s5BKc;7uH_a_jg-X
z_rBG4L=Kgj*Kr04%bP9tusX0?!@lEv=jSc0K0EO2J~O34s~}W1e>##l#_Vr~R+r{47<|5WV7I(l;VWX}z6eP8N@FUUJtR_FMKnN9K|ckgo~mCSJi=6ItXG&cA#h
zCaQST#5pXQcnud#ydmOSSX4MSy&`vpPPc9MO}vYn3Z|sW3n)&zZsId+3TbjG<(2=S
zsuSFT$;H0N`AxzF0JBBw=*aGIJ1etBcdF?yKX+)EEAi6TxWwC%;eCqmM-coIaUf5E
zZDEmgiBgqZk?X~up^kmC^Q19fnZgC0&ACmMFY=(5`Ft<$D8#lX#a6Y-Go+TZKXB#|%*v8B
zLfkjk1nMXzPzU|q2y%`4-NseqSzH!16bOF=*9m@+x+rcE#S%{%%8ZpmJZ}7j`8X=(
z-^j&rjeld@)>XEp$(o04-C|IIR+oOJ$9@ufeO!yq3Z#}0`+^S?F9}t$3lAAjBQK@X6vG9|7t6
zG9u5pQX2bKiY-H_=LBaWN0cl$Z(msF4nxSo=YK`w%O^-?QX`mB>Iie0`QRKQ%Pf$L
zke*)a0G!}X%K+!08K=6cwcosquV?s<21Kt@apTJt5
zz&EhCpo$A0z#Ff95iil6)v_$Bw*H>!{`>Eq-u}3EtG)GgXZs6qiglNLOh)M9isq_I
zh-*=
z%~Q=YMO*bvGuv1$)#sa)53To`GwQ7sThJ^@m4K5ME&qFH#YvF#I6{v<8_sqlSke?c
zij;)w@tm?^%>QP`{Ydq?Ueokgqq+Ic{$aI3SVkPhK^fI9v4_OMVY>hGS*F{6
zd~sn}a+ik)_R1|SR*AJ!Td2=LxKGfCLOcC}-fsd&IVLxSPH|j*N3S1?d}1&J3vfH%I4m*Cp<5JECpYwv%p|6l*?y|)g2In?~I{p~vt=Y4>qO!zs%q~dk}
z4^u&=Ne8*ZjN-1Y+zT+veIE}3JY+7&JPSTDJ|6jqD<1oJ5+KY|#j^k%Oz7}jBQNyo
zrQ(%h(I8Y@ug_PO^W}wl;dArjq@B%`3gx+ctx<6D28kJ`Qi`qSowZt_{-Ky{WM$K?
z{mav(>Pl>M7fAyfJ1sMuRV<0u_9RCfxt~1MV1zR^J)Aa}bt^`{o3J7s5ps&W&1>EW
z#pW#qw_=TV6>XMTF|eFUF0Uxrl&L7PHdWraKdqD}Le1Up?F_9_w^^fMvrc0(;r(Sc
zEliGa9D`0d(tVPk`Pf3R|W3H
x+$N()Dy}I~JNU5_*A*k}FNvYV&Q0mGL?+Crto){^>c7zEI@XTk|4;iC{00&zXwv`y
diff --git a/security-java/target/classes/com/securityjava/service/AdminService.class b/security-java/target/classes/com/securityjava/service/AdminService.class
deleted file mode 100644
index fb5d28b38fe3d6342e1b667b87cee9f8177937ab..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 921
zcmah{%We}f6ul04&=N}1QlPwwDpe#KtV--!A!So3Qh2Bl?422tI-S^&?Fs6yvET#v
zD8#Xy&{orkg~xO4bMEmy_x}F#^A{1lr-K%~YSC*(n@$!o^Ix5`jCQ)c;Z!UHFTE=G
zP&t3XXk(-%TKLjRM#mMv=`b@h?qpV4<*y=nZl;F!^O@2oAHZKKoSOm(4!VQh8b$yB
zzWq`93zL5lR?MWA)-kH7oYCQVslA%XZ_250A^+X?wKiUOWi*gSLt`gg%tdw~xf)LKG#Q(@E72@_q@?PywUe@WhG>Z>y)L2~`L^;UjOAp2T|FtDMQxH|r}-
z9x>WVj87;yagMvy)az_pC8=xB8MQ>7uY}haofy3VY!IPKXwk@&Hj`&6w5SvBN761-
zCf@}k813IS|CZ<7=((E*1HOl*{V?{DJG4$3e>InUnF_WaRb~Za7i7}7EPJ
z^LUE!Y%;B7j<|uS7ULG($KM9x28zM<0IMB1ZLEimHbL5=M@Z5w|6V^<4VZyoz
z8)>{u<5e1)4E@|`NOy-fo5Ew5E!R}T_C>AbNqu(APq^)HWp8&dM48xYxmq^FzVv0a
zF1B4)X|APmeTI#)@(yjk=}GtSz~c>Zs=Uv3RdCn04|q*0@66_x1be%s)v5G^L$bX^
z=}NuD(38vWGbG1#stRpg<|b;~0UD-l33dU8`8
zw_CTl)j45LnIfihrF;y-00^Ft4g)JO4DASgq?`}jv{MU@${Y^OmK^Hekuq1sFlrPd
zrWc~S#Sm5J?x9`L=Ar_7)`e!+f^59OU>eBbK*-o7TOns97nP2y@m+~OxG-axh;s~v5%8YVq@dwy9`jfyY
zMFR%W?ohNs0LCy*D`t8^C_`SQmBD2ezaw#u9)_>9>Q)%ERa8ARC`#3l+fo}x5IrLVGGgNk#7>NHz}E;co?tuR1VSv|5?nHNSq|@`)fkT=?QHFi?C68?
z0ZFBtA`kh1d{ioDb|nYA;Fs;~p6=7#r+em~fB*U$z#TlPBEaG#rm%DZ%Tu_4l`3vR
z`oFKLSk3=#P2x80RPi;|Dp;@Ju0WvLJrgx`^2UT(V7(FAo=kPvPmCLM)Eh-5I~&RE
zUfh-S13})fA#nahKXRt0cTH+qU0shN>y$G#N(JsVY_ccQI5E-Qt3>tmTbukWTUte_
ze5FEXlYvz417yAL>|2xQHesi-`ktyd)``I7VtH+4^Kx<@hMbC3nleNCQ54#?58FC2
z|ENnDCWF{nISP}{562U7V$(#%Z3&Fk7Iy{84~WY|4HM~|ey^pImx?_LOgC((y1Obd
zULP9E?zJHavRHd_$nz8OT#w_f2{XoC>eQvo8iY1-`WM%*s!f3Lj0%B^MWEPrhAc3w
zoLFDW+%ax1c@bbp8q#O
zU~*48KXud27MQJ7^Q7J=Fkjm~4u7~Svq!_{;b(HJ?KZFNYwMp4ff)~3SgQjBH3zBF
zJ(gqpr0Hz#Ypi_E9dg_xt$J*0CWAO^7O40syKcm|gH+|5Z!GR&fzM#TXK@TAe1enU
zO{F$Ld78517ouRB!KVcq{Ql7T8KWenpd4TN6XLfF=5u~MC2(V0_FIblMou^-k5vS;TnRr)-
- 进入
-
-
-
-
-
+
@@ -33,8 +28,8 @@
取 消
注 册
-
-
+
+
@@ -94,9 +89,7 @@
},
methods: {
- login(){
- this.dialogVisible = true;
- },
+
// logout() {
// this.$store.commit('del_token');
// this.getToken();
--
Gitee
From ad4d4c01f235b9907eddbde43fa3dd59648459bb Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 00:21:19 +0800
Subject: [PATCH 10/25] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security-vue/package-lock.json | 2 +-
security-vue/package.json | 1 +
security-vue/src/assets/css/global.css | 6 +
security-vue/src/layout/aside.vue | 23 ++++
security-vue/src/main.js | 3 +
security-vue/src/router/index.js | 8 +-
security-vue/src/views/biz/main1.vue | 14 +++
security-vue/src/views/biz/main2.vue | 14 +++
security-vue/src/views/biz/main3.vue | 14 +++
security-vue/src/views/index.vue | 150 +++++++++----------------
security-vue/src/views/index1.vue | 111 ++++++++++++++++++
security-vue/webpack.config.js | 2 +-
12 files changed, 248 insertions(+), 100 deletions(-)
create mode 100644 security-vue/src/assets/css/global.css
create mode 100644 security-vue/src/layout/aside.vue
create mode 100644 security-vue/src/views/biz/main1.vue
create mode 100644 security-vue/src/views/biz/main2.vue
create mode 100644 security-vue/src/views/biz/main3.vue
create mode 100644 security-vue/src/views/index1.vue
diff --git a/security-vue/package-lock.json b/security-vue/package-lock.json
index 949dcd2..4bb7a12 100644
--- a/security-vue/package-lock.json
+++ b/security-vue/package-lock.json
@@ -525,7 +525,7 @@
"babel-plugin-syntax-dynamic-import": {
"version": "6.18.0",
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz",
- "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=",
+ "integrity": "sha512-MioUE+LfjCEz65Wf7Z/Rm4XCP5k2c+TbMd2Z2JKc7U9uwjBhAfNPE48KC4GTGKhppMeYVepwDBNO/nGY6NYHBA==",
"dev": true
},
"babel-plugin-syntax-exponentiation-operator": {
diff --git a/security-vue/package.json b/security-vue/package.json
index 2dd5b94..ce1e34d 100644
--- a/security-vue/package.json
+++ b/security-vue/package.json
@@ -23,6 +23,7 @@
"autoprefixer": "^6.6.0",
"babel-core": "^6.24.1",
"babel-loader": "^6.4.0",
+ "babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-preset-vue-app": "^1.2.0",
"css-loader": "^0.27.0",
"file-loader": "^0.10.1",
diff --git a/security-vue/src/assets/css/global.css b/security-vue/src/assets/css/global.css
new file mode 100644
index 0000000..2b3e4ac
--- /dev/null
+++ b/security-vue/src/assets/css/global.css
@@ -0,0 +1,6 @@
+*{
+ margin:0;
+ padding:0;
+ box-sizing: border-box;
+ height: 100%;
+}
diff --git a/security-vue/src/layout/aside.vue b/security-vue/src/layout/aside.vue
new file mode 100644
index 0000000..24f2c16
--- /dev/null
+++ b/security-vue/src/layout/aside.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
diff --git a/security-vue/src/main.js b/security-vue/src/main.js
index 5136bd5..86c67fa 100644
--- a/security-vue/src/main.js
+++ b/security-vue/src/main.js
@@ -7,6 +7,9 @@ import VueAxios from 'vue-axios'
import router from './router/index'
import store from './store/index.js'
+
+//import './assets/css/global.css’;
+
Vue.prototype.$httpApi = axios
Vue.use(VueAxios, axios)
Vue.use(ElementUI)
diff --git a/security-vue/src/router/index.js b/security-vue/src/router/index.js
index 091217f..a360d6a 100644
--- a/security-vue/src/router/index.js
+++ b/security-vue/src/router/index.js
@@ -29,7 +29,13 @@ export default new VueRouter({
//起名字
name: 'Index',
//组件
- component: Index
+ component: Index,
+ children:[
+ {path: '/index/menu1',component: () => import('../views/biz/main1.vue')},
+ {path: '/index/menu2',component: () => import('../views/biz/main2.vue')},
+ {path: '/index/menu3',component: () => import('../views/biz/main3.vue')}
+ ]
+
},
]
})
diff --git a/security-vue/src/views/biz/main1.vue b/security-vue/src/views/biz/main1.vue
new file mode 100644
index 0000000..2976790
--- /dev/null
+++ b/security-vue/src/views/biz/main1.vue
@@ -0,0 +1,14 @@
+
+
+ 这是Main1
+
+
+
+
+
+
diff --git a/security-vue/src/views/biz/main2.vue b/security-vue/src/views/biz/main2.vue
new file mode 100644
index 0000000..96e0fea
--- /dev/null
+++ b/security-vue/src/views/biz/main2.vue
@@ -0,0 +1,14 @@
+
+
+ 这是Main2
+
+
+
+
+
+
diff --git a/security-vue/src/views/biz/main3.vue b/security-vue/src/views/biz/main3.vue
new file mode 100644
index 0000000..2ad16e1
--- /dev/null
+++ b/security-vue/src/views/biz/main3.vue
@@ -0,0 +1,14 @@
+
+
+ 这是Main3
+
+
+
+
+
+
diff --git a/security-vue/src/views/index.vue b/security-vue/src/views/index.vue
index 3a8faae..246e9c5 100644
--- a/security-vue/src/views/index.vue
+++ b/security-vue/src/views/index.vue
@@ -1,104 +1,60 @@
-
-
- 欢迎您:{{name}}
-
- 退出
-
-
- ROLE_user角色
- ROLE_root角色
- 查询权限
- 修改权限
- 添加权限
- 删除权限
-
-
+
+
+
+
+
+
+ >
+
+
+ Footer
+
+
+import Header from "../layout/header";
+import Aside from "../layout/Aside"
+export default {
+ name: 'Index',
+ components:{Header,Aside},
+ props: {
+ msg: String
+ }
+}
+
diff --git a/security-vue/src/views/index1.vue b/security-vue/src/views/index1.vue
new file mode 100644
index 0000000..6ab8c13
--- /dev/null
+++ b/security-vue/src/views/index1.vue
@@ -0,0 +1,111 @@
+
+
+
+ 欢迎您:{{name}}
+
+ 退出
+
+
+
+
+
+
+ >
+
+
+ ROLE_user角色
+ ROLE_root角色
+ 查询权限
+ 修改权限
+ 添加权限
+ 删除权限
+
+
+
+
+
+
+
diff --git a/security-vue/webpack.config.js b/security-vue/webpack.config.js
index 442303c..8770f89 100644
--- a/security-vue/webpack.config.js
+++ b/security-vue/webpack.config.js
@@ -24,7 +24,7 @@ module.exports = (options = {}) => ({
test: /\.js$/,
loader: 'babel-loader',
options: {
- presets: ['es2015']
+ plugins:['syntax-dynamic-import']
},
include: [resolve('src')]
},
--
Gitee
From 4189d6ec7961a23df2ec6e125239ad952dfaf4f5 Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 00:34:18 +0800
Subject: [PATCH 11/25] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security-vue/src/views/biz/main1.vue | 99 ++++++++++++++++++++++++++--
1 file changed, 94 insertions(+), 5 deletions(-)
diff --git a/security-vue/src/views/biz/main1.vue b/security-vue/src/views/biz/main1.vue
index 2976790..0942a6e 100644
--- a/security-vue/src/views/biz/main1.vue
+++ b/security-vue/src/views/biz/main1.vue
@@ -1,14 +1,103 @@
-
- 这是Main1
+
+
+ 欢迎您:{{name}}
+
+ 退出
+
+ ROLE_user角色
+ ROLE_root角色
+ 查询权限
+ 修改权限
+ 添加权限
+ 删除权限
+
-
--
Gitee
From 5ced4654097655205203c0f3ae8f9814b08b87be Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 00:37:55 +0800
Subject: [PATCH 12/25] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security-vue/src/layout/header.vue | 47 ++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 security-vue/src/layout/header.vue
diff --git a/security-vue/src/layout/header.vue b/security-vue/src/layout/header.vue
new file mode 100644
index 0000000..3700e9b
--- /dev/null
+++ b/security-vue/src/layout/header.vue
@@ -0,0 +1,47 @@
+
+
+
+
欢迎来到Vue项目
+
+
+
+
+
+ 个人中心
+ 退出登录
+
+
+
+
+
+
+
+
+
--
Gitee
From 6149247225ac9b80281595f4553b56706ed117c5 Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 08:17:34 +0800
Subject: [PATCH 13/25] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=A8=E6=80=81?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security-vue/src/layout/aside-dongtai.vue | 76 +++++++++++++++
security-vue/src/views/index.vue | 4 +-
security-vue/src/views/index1.vue | 111 ----------------------
3 files changed, 78 insertions(+), 113 deletions(-)
create mode 100644 security-vue/src/layout/aside-dongtai.vue
delete mode 100644 security-vue/src/views/index1.vue
diff --git a/security-vue/src/layout/aside-dongtai.vue b/security-vue/src/layout/aside-dongtai.vue
new file mode 100644
index 0000000..ce349ca
--- /dev/null
+++ b/security-vue/src/layout/aside-dongtai.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
diff --git a/security-vue/src/views/index.vue b/security-vue/src/views/index.vue
index 246e9c5..27db0ca 100644
--- a/security-vue/src/views/index.vue
+++ b/security-vue/src/views/index.vue
@@ -5,7 +5,7 @@
- >
+
Footer
@@ -15,7 +15,7 @@
-
-
--
Gitee
From bdb416e109960b9554724e59c374b84e2b13e228 Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 11:04:34 +0800
Subject: [PATCH 14/25] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=A8=E6=80=81?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security-vue/src/views/biz/main2.vue | 67 ++++++++++++++++++++---
security-vue/src/views/biz/userManage.vue | 66 ++++++++++++++++++++++
2 files changed, 124 insertions(+), 9 deletions(-)
create mode 100644 security-vue/src/views/biz/userManage.vue
diff --git a/security-vue/src/views/biz/main2.vue b/security-vue/src/views/biz/main2.vue
index 96e0fea..836dd30 100644
--- a/security-vue/src/views/biz/main2.vue
+++ b/security-vue/src/views/biz/main2.vue
@@ -1,14 +1,63 @@
-
- 这是Main2
-
+
+
+
+
+
+
+
+
-
+ data() {
+ return {
+ userData:
+ [
+ {
+ date: '2022-05-02',
+ name: '明世隐3号',
+ address: '江西省南昌市XXXXXX路1号'
+ }, {
+ date: '2022-05-04',
+ name: '明世隐4号',
+ address: '江西省南昌市XXXXXX路2号'
+ }, {
+ date: '2022-05-01',
+ name: '明世隐1号',
+ address: '江西省南昌市XXXXXX路4号'
+ }, {
+ date: '2022-05-03',
+ name: '明世隐2号',
+ address: '江西省南昌市XXXXXX路3号'
+ }
+ ]
+ };
+ },
+ created() { //钩子函数页面加载完调用
+
+
+ },
+ methods: {
-
+
+
+
+ }
+};
+
diff --git a/security-vue/src/views/biz/userManage.vue b/security-vue/src/views/biz/userManage.vue
new file mode 100644
index 0000000..886da67
--- /dev/null
+++ b/security-vue/src/views/biz/userManage.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
--
Gitee
From 172fdefc74959875f8550ceab5b816899599e855 Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 11:40:55 +0800
Subject: [PATCH 15/25] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=A8=E6=80=81?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security-vue/src/views/biz/main3.vue | 112 ++++++++++++++++++++--
security-vue/src/views/biz/userManage.vue | 1 -
2 files changed, 105 insertions(+), 8 deletions(-)
diff --git a/security-vue/src/views/biz/main3.vue b/security-vue/src/views/biz/main3.vue
index 2ad16e1..6c7243d 100644
--- a/security-vue/src/views/biz/main3.vue
+++ b/security-vue/src/views/biz/main3.vue
@@ -1,14 +1,112 @@
+
-
- 这是Main3
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/security-vue/src/views/biz/userManage.vue b/security-vue/src/views/biz/userManage.vue
index 886da67..8b35940 100644
--- a/security-vue/src/views/biz/userManage.vue
+++ b/security-vue/src/views/biz/userManage.vue
@@ -27,7 +27,6 @@
export default {
data() {
return {
-
userData:
[
{
--
Gitee
From 5d83b1fef08cfd03a71e5e8adf3b1f2759806eed Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 11:53:42 +0800
Subject: [PATCH 16/25] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=AE=BE?=
=?UTF-8?q?=E8=AE=A1=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
security.sql | 87 ------------------------------
security_demo.sql | 135 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 135 insertions(+), 87 deletions(-)
delete mode 100644 security.sql
create mode 100644 security_demo.sql
diff --git a/security.sql b/security.sql
deleted file mode 100644
index 7e6bd41..0000000
--- a/security.sql
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
-Navicat MySQL Data Transfer
-
-Source Server : myconn
-Source Server Version : 50625
-Source Host : localhost:3306
-Source Database : security
-
-Target Server Type : MYSQL
-Target Server Version : 50625
-File Encoding : 65001
-
-Date: 2021-12-21 09:19:23
-*/
-
-SET FOREIGN_KEY_CHECKS=0;
-
--- ----------------------------
--- Table structure for `admin`
--- ----------------------------
-DROP TABLE IF EXISTS `admin`;
-CREATE TABLE `admin` (
- `admin_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
- `username` varchar(30) NOT NULL COMMENT '用户账号',
- `password` varchar(100) NOT NULL COMMENT '用户密码',
- `role_id` bigint(20) NOT NULL DEFAULT '1' COMMENT '角色ID',
- PRIMARY KEY (`admin_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户表';
-
--- ----------------------------
--- Records of admin
--- ----------------------------
-INSERT INTO `admin` VALUES ('1', 'xxx', '$2a$10$62wvQSpB4FCnNKeijAzSB.5GcSYlwVhVTPV.fsENpMUDA4INCHxh2', '1');
-INSERT INTO `admin` VALUES ('3', '123', '$2a$10$m30GWAWzN7JmmlRa7nP/ue5unV8yzhMK02OsUX2lfb/COC6O3bGFm', '2');
-
--- ----------------------------
--- Table structure for `auty`
--- ----------------------------
-DROP TABLE IF EXISTS `auty`;
-CREATE TABLE `auty` (
- `auty_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '权限id',
- `auty_name` varchar(30) NOT NULL COMMENT '权限名称',
- PRIMARY KEY (`auty_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='权限表';
-
--- ----------------------------
--- Records of auty
--- ----------------------------
-INSERT INTO `auty` VALUES ('1', 'update');
-INSERT INTO `auty` VALUES ('2', 'deleted');
-INSERT INTO `auty` VALUES ('3', 'insert');
-INSERT INTO `auty` VALUES ('4', 'select');
-
--- ----------------------------
--- Table structure for `roau`
--- ----------------------------
-DROP TABLE IF EXISTS `roau`;
-CREATE TABLE `roau` (
- `roau_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角权ID',
- `role_id` bigint(20) NOT NULL COMMENT '角色ID',
- `auty_id` bigint(20) NOT NULL COMMENT '权限ID',
- PRIMARY KEY (`roau_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='角权关联表';
-
--- ----------------------------
--- Records of roau
--- ----------------------------
-INSERT INTO `roau` VALUES ('1', '1', '1');
-INSERT INTO `roau` VALUES ('2', '2', '1');
-INSERT INTO `roau` VALUES ('3', '2', '3');
-INSERT INTO `roau` VALUES ('4', '2', '4');
-
--- ----------------------------
--- Table structure for `role`
--- ----------------------------
-DROP TABLE IF EXISTS `role`;
-CREATE TABLE `role` (
- `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
- `role_name` varchar(30) NOT NULL COMMENT '角色名称',
- PRIMARY KEY (`role_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='角色表';
-
--- ----------------------------
--- Records of role
--- ----------------------------
-INSERT INTO `role` VALUES ('1', 'ROLE_user');
-INSERT INTO `role` VALUES ('2', 'ROLE_root');
diff --git a/security_demo.sql b/security_demo.sql
new file mode 100644
index 0000000..1863aa2
--- /dev/null
+++ b/security_demo.sql
@@ -0,0 +1,135 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server : localhost
+ Source Server Type : MySQL
+ Source Server Version : 50736
+ Source Host : localhost:3306
+ Source Schema : security_demo
+
+ Target Server Type : MySQL
+ Target Server Version : 50736
+ File Encoding : 65001
+
+ Date: 09/10/2022 11:52:44
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for t_menu
+-- ----------------------------
+DROP TABLE IF EXISTS `t_menu`;
+CREATE TABLE `t_menu` (
+ `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
+ `menu_name` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '菜单名称',
+ `menu_url` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT 'Controller路径',
+ `menu_code` varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '菜单编码',
+ `parent_id` int(8) DEFAULT NULL COMMENT '父菜单ID',
+ `menu_type` int(1) DEFAULT '0' COMMENT '菜单类型:0-菜单1-按钮',
+ `order_num` int(4) DEFAULT '99' COMMENT '显示序号',
+ `creator` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '创建人',
+ `create_time` datetime DEFAULT NULL COMMENT '创建时间',
+ `updator` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '修改人',
+ `update_time` datetime DEFAULT NULL COMMENT '修改时间',
+ `deleted` int(1) DEFAULT '0' COMMENT '删除状态:0-存在1-已删除',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+-- ----------------------------
+-- Records of t_menu
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_menu` VALUES (1, '公共资源', '/publicResource', NULL, 0, 0, 99, NULL, NULL, NULL, NULL, 0);
+INSERT INTO `t_menu` VALUES (2, 'VIP资源', '/vipResource', NULL, 0, 0, 99, NULL, NULL, NULL, NULL, 0);
+INSERT INTO `t_menu` VALUES (3, '主页', '/home', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, 0);
+INSERT INTO `t_menu` VALUES (4, '公共权限请求按钮', '/test/public', NULL, 0, 1, 99, NULL, NULL, NULL, NULL, 0);
+INSERT INTO `t_menu` VALUES (5, 'VIP权限请求按钮', '/test/vip', NULL, 0, 1, 99, NULL, NULL, NULL, NULL, 0);
+INSERT INTO `t_menu` VALUES (6, 'mian', '/main', NULL, 0, 0, 99, NULL, NULL, NULL, NULL, 0);
+COMMIT;
+
+-- ----------------------------
+-- Table structure for t_role
+-- ----------------------------
+DROP TABLE IF EXISTS `t_role`;
+CREATE TABLE `t_role` (
+ `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '角色id',
+ `role_name` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '角色名称',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+-- ----------------------------
+-- Records of t_role
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_role` VALUES (1, 'ROLE_USER');
+INSERT INTO `t_role` VALUES (2, 'ROLE_ADMIN');
+COMMIT;
+
+-- ----------------------------
+-- Table structure for t_role_menus
+-- ----------------------------
+DROP TABLE IF EXISTS `t_role_menus`;
+CREATE TABLE `t_role_menus` (
+ `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '角色菜单id',
+ `role_id` int(8) DEFAULT NULL COMMENT '角色id',
+ `menu_id` int(8) DEFAULT NULL COMMENT '菜单id',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+-- ----------------------------
+-- Records of t_role_menus
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_role_menus` VALUES (1, 1, 1);
+INSERT INTO `t_role_menus` VALUES (2, 2, 1);
+INSERT INTO `t_role_menus` VALUES (3, 2, 2);
+INSERT INTO `t_role_menus` VALUES (4, 1, 3);
+INSERT INTO `t_role_menus` VALUES (5, 2, 3);
+INSERT INTO `t_role_menus` VALUES (6, 1, 4);
+INSERT INTO `t_role_menus` VALUES (7, 2, 4);
+INSERT INTO `t_role_menus` VALUES (8, 2, 5);
+INSERT INTO `t_role_menus` VALUES (9, 1, 6);
+INSERT INTO `t_role_menus` VALUES (10, 2, 6);
+COMMIT;
+
+-- ----------------------------
+-- Table structure for t_user
+-- ----------------------------
+DROP TABLE IF EXISTS `t_user`;
+CREATE TABLE `t_user` (
+ `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '用户id',
+ `username` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '用户名',
+ `password` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '密码',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+-- ----------------------------
+-- Records of t_user
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_user` VALUES (1, 'user', '$2a$10$D5E9lza7z8uea6fP/oNOJeuRq/a/y8RXQWslTDONsqxQTPlgW7Hr6');
+INSERT INTO `t_user` VALUES (2, 'admin', '$2a$10$on7jUGJN.4CyjPZzyroZce0ugjCQFzA6dRuOTcEFTBLLhe3oYe5Gu');
+COMMIT;
+
+-- ----------------------------
+-- Table structure for t_user_roles
+-- ----------------------------
+DROP TABLE IF EXISTS `t_user_roles`;
+CREATE TABLE `t_user_roles` (
+ `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '用户角色对照ID',
+ `user_id` int(8) DEFAULT NULL COMMENT '用户ID',
+ `role_id` int(8) DEFAULT NULL COMMENT '角色ID',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+-- ----------------------------
+-- Records of t_user_roles
+-- ----------------------------
+BEGIN;
+INSERT INTO `t_user_roles` VALUES (1, 1, 1);
+INSERT INTO `t_user_roles` VALUES (2, 2, 2);
+COMMIT;
+
+SET FOREIGN_KEY_CHECKS = 1;
--
Gitee
From abece68a5a3196b8bc7f010bb4d725143917f8ba Mon Sep 17 00:00:00 2001
From: liuxinfeng <624310862@qq.com>
Date: Sun, 9 Oct 2022 13:50:05 +0800
Subject: [PATCH 17/25] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E5=BA=93=E7=9A=84=E5=AE=89=E5=85=A8=E6=A1=86=E6=9E=B6=EF=BC=8C?=
=?UTF-8?q?=E7=94=A8=E4=BA=8E=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/com/securityjava/dao/MenuDao.java | 19 ---
.../java/com/securityjava/dao/RoleDao.java | 15 --
.../java/com/securityjava/dao/UserDao.java | 18 ---
.../handler/CustomAccessDeniedHandler.java | 64 ---------
.../securityjava/handler/RbacPermission.java | 44 ------
.../com/securityjava/model/BaseEntity.java | 67 ---------
.../java/com/securityjava/model/Menu.java | 57 --------
.../java/com/securityjava/model/Role.java | 19 ---
.../com/securityjava/model/UserEntity.java | 100 -------------
.../com/securityjava/service/RoleService.java | 5 -
.../com/securityjava/service/UserService.java | 12 --
.../service/impl/RoleServiceImpl.java | 10 --
.../service/impl/UserDetailServiceImpl.java | 79 +++++-----
.../service/impl/UserServiceImpl.java | 22 ---
.../securityjava/dao/mapper/MenuMapper.xml | 24 ----
.../securityjava/dao/mapper/RoleMapper.xml | 14 --
.../securityjava/dao/mapper/UserMapper.xml | 19 ---
.../filter/JwtAuthenticationTokenFilter.class | Bin 3417 -> 3441 bytes
.../SecurityJavaApplicationTests.class | Bin 717 -> 0 bytes
security_demo.sql | 135 ------------------
20 files changed, 47 insertions(+), 676 deletions(-)
delete mode 100644 security-java/src/main/java/com/securityjava/dao/MenuDao.java
delete mode 100644 security-java/src/main/java/com/securityjava/dao/RoleDao.java
delete mode 100644 security-java/src/main/java/com/securityjava/dao/UserDao.java
delete mode 100644 security-java/src/main/java/com/securityjava/handler/CustomAccessDeniedHandler.java
delete mode 100644 security-java/src/main/java/com/securityjava/handler/RbacPermission.java
delete mode 100644 security-java/src/main/java/com/securityjava/model/BaseEntity.java
delete mode 100644 security-java/src/main/java/com/securityjava/model/Menu.java
delete mode 100644 security-java/src/main/java/com/securityjava/model/Role.java
delete mode 100644 security-java/src/main/java/com/securityjava/model/UserEntity.java
delete mode 100644 security-java/src/main/java/com/securityjava/service/RoleService.java
delete mode 100644 security-java/src/main/java/com/securityjava/service/UserService.java
delete mode 100644 security-java/src/main/java/com/securityjava/service/impl/RoleServiceImpl.java
delete mode 100644 security-java/src/main/java/com/securityjava/service/impl/UserServiceImpl.java
delete mode 100644 security-java/src/main/resources/com/securityjava/dao/mapper/MenuMapper.xml
delete mode 100644 security-java/src/main/resources/com/securityjava/dao/mapper/RoleMapper.xml
delete mode 100644 security-java/src/main/resources/com/securityjava/dao/mapper/UserMapper.xml
delete mode 100644 security-java/target/test-classes/com/securityjava/SecurityJavaApplicationTests.class
delete mode 100644 security_demo.sql
diff --git a/security-java/src/main/java/com/securityjava/dao/MenuDao.java b/security-java/src/main/java/com/securityjava/dao/MenuDao.java
deleted file mode 100644
index 9aacd13..0000000
--- a/security-java/src/main/java/com/securityjava/dao/MenuDao.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.securityjava.dao;
-
-import com.securityjava.model.Menu;
-import com.securityjava.model.Role;
-
-import org.apache.ibatis.annotations.Param;
-
-import java.util.List;
-
-public interface MenuDao {
-
- /**
- * 根据角色获取菜单列表
- * @param roles
- * @return
- */
- List