mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-10-11 20:43:44 +08:00
Compare commits
2886 Commits
v4.8.3-fas
...
v5.1.2
Author | SHA1 | Date | |
---|---|---|---|
|
203233fbaf | ||
|
5bc6b1de3a | ||
|
7445934371 | ||
|
521596bc12 | ||
|
00d85947b0 | ||
|
a62eba5c37 | ||
|
102d854743 | ||
|
953de2fb1c | ||
|
c241a715a4 | ||
|
3a51c58b82 | ||
|
0ac4a63e91 | ||
|
e981e2f69f | ||
|
296392b094 | ||
|
e1e409d89e | ||
|
7fb4d17913 | ||
|
469c334b95 | ||
|
ddcb13c7c3 | ||
|
c4582b085f | ||
|
45097ccb8f | ||
|
663e22ac29 | ||
|
0403c2c274 | ||
|
48fdfffc42 | ||
|
6037edb621 | ||
|
ce8a82383d | ||
|
e1390615b7 | ||
|
860afb8738 | ||
|
e509d95af9 | ||
|
4cefcf6ada | ||
|
affbce1957 | ||
|
5d97541b8f | ||
|
8ed5c75c6a | ||
|
a1adfa2e93 | ||
|
1999000322 | ||
|
677fe7e2a5 | ||
|
8704cae182 | ||
|
7dde869eba | ||
|
cb9a3c36e6 | ||
|
d131a833ab | ||
|
be1398137a | ||
|
183e39f1cd | ||
|
a6fc191df2 | ||
|
87981fb80c | ||
|
96ab48396c | ||
|
40ec6584c5 | ||
|
d811cb8e04 | ||
|
d3ad832ded | ||
|
b0cc1a913e | ||
|
b0faebc5e6 | ||
|
c45ffaec0f | ||
|
78c91d0733 | ||
|
3f1e5702a2 | ||
|
6bed331971 | ||
|
793737d69d | ||
|
4e8f2b130e | ||
|
ac6fe634dc | ||
|
1e1616ceb0 | ||
|
3046362ff4 | ||
|
f2956c322e | ||
|
754c22f8a6 | ||
|
16685a8e0c | ||
|
e2692aa9e9 | ||
|
9b0938e0d6 | ||
|
c4f69b466a | ||
|
3acbf6efee | ||
|
17cf957052 | ||
|
624a14d2de | ||
|
0682efb472 | ||
|
abc3acf489 | ||
|
f9ba1df798 | ||
|
9c7274b776 | ||
|
bf9f54c021 | ||
|
26369657e3 | ||
|
3d9b05a61a | ||
|
c93b666140 | ||
|
0f16051024 | ||
|
81f7a59caa | ||
|
2c4306b436 | ||
|
3a9379555e | ||
![]() |
e7ed4afe79 | ||
|
213cc8a3aa | ||
|
323c290ee9 | ||
|
5602976ee1 | ||
|
c709b44786 | ||
|
f34740ad03 | ||
|
51feaf7b99 | ||
|
c5bc6a97c9 | ||
|
864e5d695f | ||
|
635e36a882 | ||
|
002a880e8b | ||
|
5d58c27720 | ||
|
2709690f81 | ||
|
5f84ab968b | ||
|
cf1c18184e | ||
|
8d681eda21 | ||
|
e2b169e07a | ||
|
e58b010f4a | ||
|
23e85c5b9c | ||
|
4198dce4f0 | ||
|
b537b1ecd2 | ||
|
22a8057ea4 | ||
|
f1232a60f3 | ||
|
e2e7cee58b | ||
|
7abd419d8c | ||
|
3774d71bac | ||
|
29118ae78c | ||
|
f708492681 | ||
|
bf34781f04 | ||
|
0e6464d344 | ||
|
de3adb2230 | ||
|
653bf84929 | ||
|
9e796943b8 | ||
|
c4daabafbe | ||
|
8b45cb1963 | ||
|
ee5fc9507a | ||
|
905637d70f | ||
|
cb3ead140b | ||
|
aabd3990a0 | ||
![]() |
937de85647 | ||
|
be700f7ddc | ||
|
b2eceed943 | ||
|
40d652ab82 | ||
|
b24e6348c3 | ||
|
2c64c66ed1 | ||
|
977e9a119c | ||
|
bfe1b2ae50 | ||
|
23b7e5f8c7 | ||
|
de0fe48a72 | ||
|
6bc2bac957 | ||
|
0cd6712b2a | ||
|
7e62401bac | ||
|
3a67a6599f | ||
|
6381034b1f | ||
|
eb9e4b5eef | ||
|
052a8f71a3 | ||
|
58b4df7bb5 | ||
|
57bbf64fbf | ||
|
d0aa35e47e | ||
|
680ec7bbb7 | ||
|
116927e903 | ||
|
146c268dff | ||
|
992595f999 | ||
|
ef2bd5e6a4 | ||
|
c1b9b95581 | ||
|
5ebf079b4f | ||
|
301111fffd | ||
|
2a74329206 | ||
|
c1ed482c59 | ||
|
5429bb091c | ||
|
818e681cdf | ||
|
1962ebc370 | ||
|
c97cdbe5d4 | ||
|
eb22895abd | ||
|
72e0d9aeb6 | ||
|
b4cbefd2b8 | ||
|
84429206dc | ||
|
15a7a83966 | ||
|
f12afaab5d | ||
|
60c48fd27c | ||
|
1e423facaa | ||
|
af4b0cb107 | ||
|
703815dae7 | ||
|
29e7c5dc41 | ||
|
eb16b9e6a0 | ||
|
743ebc77d6 | ||
|
58e7849fc4 | ||
|
49f20f7d9f | ||
|
ae0d4dd6e5 | ||
|
afdc4b103d | ||
|
ddc43b3057 | ||
|
86a8f5a700 | ||
|
4a00998f13 | ||
|
9465803730 | ||
|
e042f7f6b3 | ||
|
b96f2c4f27 | ||
|
f1990e6ce8 | ||
|
6c9f1f1994 | ||
|
776b235cec | ||
|
bbe672208f | ||
|
c92c99c8da | ||
|
359ec45b05 | ||
|
352caa3e93 | ||
|
348938eb96 | ||
|
cb59082bad | ||
|
1cabccc9a8 | ||
|
0c09adfe0a | ||
|
e86765c6bc | ||
|
16e47a8466 | ||
|
17acf2ba7a | ||
|
0217706960 | ||
|
9e9a1920ac | ||
![]() |
fe03c2fb92 | ||
|
6d7f1adea8 | ||
|
a37b7cafad | ||
|
ea0b82997f | ||
|
3480e36dcd | ||
|
8df34e50fa | ||
|
d82a753ed5 | ||
|
9004f8fd9f | ||
|
77ea3ce514 | ||
|
a2e9a4e899 | ||
|
f51f96d01c | ||
|
27090fe116 | ||
|
66540b5e56 | ||
|
9a53ed796b | ||
|
1c081a5892 | ||
|
508882d21e | ||
|
beaf3efdf5 | ||
|
8eb43cbea1 | ||
|
17ecce9978 | ||
|
32e96434d2 | ||
|
e2525b1666 | ||
|
2dd7462053 | ||
|
525921c129 | ||
|
6df7b34b4a | ||
|
dbf4d6c713 | ||
|
1dc718291b | ||
|
82aeb75e31 | ||
|
5796c0aa9f | ||
|
1b85f0f0d3 | ||
|
af08632c37 | ||
|
10b5b0e82a | ||
|
ee8922729e | ||
|
1f303ff1de | ||
|
64b0748bf1 | ||
|
34639a8943 | ||
|
da69cfad3e | ||
|
2f5a6e996e | ||
|
53bad85b00 | ||
|
73f39deb01 | ||
|
cd4520836e | ||
|
69c5e781ac | ||
|
7a6660dd8d | ||
|
ab711047b4 | ||
|
bd50596038 | ||
|
01d94ecd89 | ||
|
c8ea31541d | ||
|
b6c1c0917d | ||
|
f89bc278f2 | ||
|
c4032aae88 | ||
|
c763a9ab83 | ||
|
53ad4969b0 | ||
|
611b147cc3 | ||
|
3166b99f74 | ||
|
bb2836b6f1 | ||
|
06588f3ad4 | ||
|
6b14778691 | ||
|
6bbe11d494 | ||
|
8bff33d672 | ||
|
c616a55647 | ||
|
a7586639ab | ||
|
55c8ea7082 | ||
|
7bde8054d9 | ||
|
b0909dbe3d | ||
|
19da4f7522 | ||
|
cd6bfb2a3a | ||
|
9b9f424e6c | ||
|
08ba802e12 | ||
|
33c2d8e833 | ||
|
7193ee08c9 | ||
|
8573ffdd7f | ||
|
d7947b8be5 | ||
|
4a9aafe853 | ||
|
47e64c9290 | ||
|
5cbd1d26c2 | ||
|
02423ec320 | ||
|
7accca933f | ||
|
6f4e3b478e | ||
|
b7c0e76da2 | ||
|
9448782f45 | ||
|
50fbfe2cb4 | ||
|
b7ce933971 | ||
|
35ad306730 | ||
|
c8d94da4fb | ||
|
77a849992e | ||
|
98aa0b9f18 | ||
|
bda0e0ec64 | ||
|
effd504d48 | ||
|
aec0e22747 | ||
|
bbe9dc7dc8 | ||
|
da41c65213 | ||
|
ec2cbac35d | ||
|
005e7df1b8 | ||
|
cf4bc969be | ||
|
9bc1e4ac1e | ||
|
9ec982a23e | ||
|
5110961eb9 | ||
|
76dc239875 | ||
|
be774f5ca6 | ||
|
1275e416cd | ||
|
2d894c1309 | ||
|
e4b405491f | ||
|
745c40cd00 | ||
|
014550c816 | ||
|
9968912322 | ||
|
0b79ada24c | ||
|
60edd6148b | ||
|
bb587607e1 | ||
|
d34be960cb | ||
|
204d882a8e | ||
|
ffedfd89a1 | ||
|
ef77672466 | ||
|
789858199b | ||
|
eb37e25ad3 | ||
|
2e5702dc86 | ||
|
d058fd01ca | ||
|
28d69701c9 | ||
|
3303b9aa59 | ||
|
7b6dc06a06 | ||
|
512108cf5a | ||
|
d5c33b5604 | ||
|
f78df97bcc | ||
|
8de7fef44a | ||
|
f51c654c58 | ||
|
ee7c5fbbd9 | ||
|
f2892a672a | ||
|
8d69be093e | ||
|
13c776ec34 | ||
|
2f0bc7489b | ||
|
21b0b4baae | ||
|
feb36d6f39 | ||
|
3a052c3ef8 | ||
|
1b1f4d097e | ||
|
af3a8dd245 | ||
|
9e061669b1 | ||
|
b9578e28b7 | ||
|
b8e389bb7e | ||
|
f687bde93b | ||
|
bdddef0aa0 | ||
|
d3a1b496fb | ||
|
cff90251ef | ||
|
491e6f6ebc | ||
|
9121a5ac9b | ||
|
cbd05fbc89 | ||
|
f2b2fe3103 | ||
|
48ee686ade | ||
|
a558939d0f | ||
|
f4e639ac32 | ||
|
8f307bf05b | ||
|
b25137f129 | ||
|
ddc8acd978 | ||
|
4450c06163 | ||
|
210d198fa3 | ||
|
3f50eb158d | ||
|
0d9cc23d3a | ||
|
21968ea8e6 | ||
|
4e1f970195 | ||
|
093e7212cf | ||
|
1bfcbfa456 | ||
|
8d0d85444a | ||
|
a345bcc0a0 | ||
|
bec7f8c802 | ||
|
5b7c787b31 | ||
|
0ebcac34e3 | ||
|
8ecbdfd472 | ||
|
4fc7401b67 | ||
|
0f161d7d6c | ||
|
5cfffb6367 | ||
|
fd8d1a243d | ||
|
44a796ed57 | ||
|
4e911a1a98 | ||
|
8a555eb191 | ||
|
9c22f7a0d0 | ||
|
2ac0468288 | ||
|
9d84e4065e | ||
|
d868d6c8f1 | ||
|
efc4f86d88 | ||
|
1983c51747 | ||
|
30819dab84 | ||
|
083011c018 | ||
|
fd6db2de2c | ||
|
750cbe9312 | ||
|
851f92cf80 | ||
|
798bc43f6a | ||
|
77fa4e0aa8 | ||
|
7862d58f01 | ||
|
27be95a15b | ||
|
4ba109a2b7 | ||
|
bfd5a07b13 | ||
|
dffd5bf02a | ||
|
df38aad2b5 | ||
|
c36bc040d0 | ||
|
1dd9a952d5 | ||
|
2e92773b8c | ||
|
92e15c2f16 | ||
|
ae21e0c3d0 | ||
|
1ed1752f67 | ||
|
181166f4c0 | ||
|
5b39017708 | ||
|
210570c005 | ||
|
b022c12419 | ||
|
42f5735c55 | ||
|
4db6a638d4 | ||
|
a29550445d | ||
|
63a240b1d4 | ||
|
6ed424f89e | ||
|
c4b62788b5 | ||
|
0c1d6e111a | ||
|
65ae5ab362 | ||
|
abca91c18f | ||
|
5e0dcea4f1 | ||
|
c3f23156ee | ||
|
e0d921b1ac | ||
|
930eebdd1e | ||
|
2670877343 | ||
|
92dfee0275 | ||
|
3b6ced8185 | ||
|
c00c9ba386 | ||
|
7dfa67c88c | ||
|
64cfb487d6 | ||
|
94846d281f | ||
|
aa29f1cec5 | ||
|
91ce812225 | ||
|
22c681a8d4 | ||
|
50cae03b6f | ||
|
f1dd87abd5 | ||
|
04c2d845dc | ||
|
6ed2779d15 | ||
|
1bab808025 | ||
|
fbfb53b169 | ||
|
520cbec1b3 | ||
|
53cb1c801f | ||
|
169e2e9ae9 | ||
|
2406d1063d | ||
|
3bf946392d | ||
|
f8c8770737 | ||
|
daa2b734ef | ||
|
0673aeec7d | ||
|
99ce2887f4 | ||
|
a45fa3e2ec | ||
|
7ac4ca554e | ||
|
dbb7ce4c29 | ||
|
c55157dce0 | ||
|
51a558d690 | ||
|
7b8747c831 | ||
|
9df7f92d9c | ||
|
aa81264d04 | ||
|
9dd57179da | ||
|
700b441bbb | ||
|
82345cbf47 | ||
|
bde5353547 | ||
|
d303e6524a | ||
|
0ad45df788 | ||
|
b14fa6e12f | ||
|
5a150544c6 | ||
|
c82bde9792 | ||
|
0ec6fbd34c | ||
|
4f301205fe | ||
|
876145dcec | ||
|
662df23d4d | ||
|
4ffb0acc35 | ||
|
d1b1f06fc4 | ||
|
408da809a0 | ||
|
f0a9768d8e | ||
|
69edf436da | ||
|
cdb509a4fa | ||
|
f8c98a1f48 | ||
|
6a813c0e41 | ||
|
891f71b1c2 | ||
|
a3ecc71558 | ||
|
8095db9e28 | ||
|
183af84117 | ||
|
f55fa60f4d | ||
|
0b761fe52b | ||
|
d4b4eb4004 | ||
|
3cd8b6da30 | ||
|
9ed5b521d6 | ||
|
84871d4cfb | ||
|
a28dd0fe40 | ||
|
5cf45e8663 | ||
|
ca59c2a512 | ||
|
856f0767b4 | ||
|
0fdd97203f | ||
|
b4645daf2a | ||
|
11e4b56313 | ||
|
5e3f504c80 | ||
|
f6c96bd246 | ||
|
2f558094d1 | ||
|
6e21c64728 | ||
|
37794b5738 | ||
|
4b814886b2 | ||
|
1fd09f8ca3 | ||
|
37290d023e | ||
|
7c5d645639 | ||
|
4bfdf357a2 | ||
|
06f42fa0ea | ||
|
6fde4fb4ef | ||
|
402bad1e88 | ||
|
3ab03bf0e7 | ||
|
d957914c30 | ||
|
a49ed727b6 | ||
|
c6746ed788 | ||
|
e7dc439ed3 | ||
|
380cb2db29 | ||
|
c1036a3df2 | ||
|
70b8340a5f | ||
|
80aa636348 | ||
|
d56c77d6ba | ||
|
1ac98f522f | ||
|
0af7c94ae6 | ||
|
e7242d4011 | ||
|
fcea03a975 | ||
|
9b2a7c4b45 | ||
|
0ea206dfe1 | ||
|
cb80568828 | ||
|
3baad24912 | ||
|
f8bb302fef | ||
|
d696ed9841 | ||
|
2aabdb83ad | ||
|
895e19768b | ||
|
173261e644 | ||
|
45ac0f23e1 | ||
|
a8d5644f2e | ||
|
c59122a194 | ||
|
287253166a | ||
|
f0bbc53a0c | ||
|
07590f30f6 | ||
|
08565363a9 | ||
|
69b8a3cfec | ||
|
d09ea16f46 | ||
|
234f74f8f0 | ||
|
fdc6c89bc2 | ||
|
4d22f5928b | ||
|
296437569c | ||
|
922a8345e2 | ||
|
2787212362 | ||
|
5cce09b5c2 | ||
|
0d755d2266 | ||
|
c681862724 | ||
|
e8483729b1 | ||
|
e8225fbdee | ||
|
075ef635c6 | ||
|
fbdae78675 | ||
|
949eeb213d | ||
|
771a1045ee | ||
|
bf344753fb | ||
|
c67cc725d4 | ||
|
bff9720b6f | ||
|
a5835aa0c2 | ||
|
5057628b52 | ||
|
c2208270bd | ||
|
c19b3c6a7a | ||
|
a0eaa5a0f6 | ||
|
2d2e06dfc0 | ||
|
ee11117fd7 | ||
|
13d2ce975f | ||
|
1f963caed6 | ||
|
f0eae7cdb5 | ||
|
e94ed91f0b | ||
|
97f453efc7 | ||
|
27a2943362 | ||
|
226f1ae89a | ||
|
3ba8323cb7 | ||
|
1e1c79f163 | ||
|
f93ccd68e9 | ||
|
912b14c288 | ||
|
2d264ad558 | ||
|
1d90aee7ce | ||
|
be27328d81 | ||
|
fedb04611b | ||
|
0faf7a5c59 | ||
|
5493557820 | ||
|
4c75b5b514 | ||
|
eca2bb4824 | ||
|
558d76c6bb | ||
|
27df5aba2f | ||
|
8557765c9b | ||
|
57da2e33a6 | ||
|
afbc78b672 | ||
|
4ce596aa9c | ||
|
2ae3681286 | ||
|
71a2a8245d | ||
|
40f28e9869 | ||
|
04eefe2ba9 | ||
|
7d1c53f927 | ||
|
a986b0e75d | ||
|
a12f6472da | ||
|
ec004e9ba3 | ||
|
f3aff34602 | ||
|
df6867ee05 | ||
|
5911e94b65 | ||
|
8ae8c5498d | ||
|
61ef4c71bc | ||
|
2023de973e | ||
|
0fc796b90d | ||
|
ac9e3f2ca4 | ||
|
68e57803f3 | ||
|
25f89bd236 | ||
|
d270f7ac8b | ||
|
c7dcbd5c3b | ||
|
a3e23b259c | ||
|
02bd7ec552 | ||
|
41242cd4aa | ||
|
b0996853d1 | ||
|
c1df1dc7a0 | ||
|
f3c6513d5a | ||
|
10f88f5458 | ||
|
c79c3ee5b6 | ||
|
f9d9eb2d70 | ||
|
242e26abee | ||
|
52d33195ec | ||
|
d8b486c793 | ||
|
00b6ca5dfe | ||
|
9ebaf936c1 | ||
|
dac463efa6 | ||
|
da1b18792b | ||
|
85b4adf400 | ||
|
70f39cb1ee | ||
|
d87dfd6397 | ||
|
996835d124 | ||
|
f6f3db1701 | ||
|
6ee3085260 | ||
|
a6f6562693 | ||
|
d8585d0ee7 | ||
|
4761237849 | ||
|
f1a09711c1 | ||
|
346a3cf7f1 | ||
|
c42229bc54 | ||
|
317ab351ce | ||
|
e1579622de | ||
|
f2ff839106 | ||
|
c494ab9963 | ||
|
15f7d4dc47 | ||
|
dd9ef8431b | ||
|
e729a924d4 | ||
|
aeacfea536 | ||
|
43b31edb75 | ||
|
8448bcdc6d | ||
|
e1efdb8602 | ||
|
409849db1a | ||
|
9d6b0b35a3 | ||
|
7f00861e68 | ||
|
d2b1177580 | ||
|
ef91551449 | ||
|
4063b0c2dd | ||
|
5117fe2958 | ||
|
9ed60f22de | ||
|
8498ead56c | ||
|
53ae4ea6bc | ||
|
4c8137daf2 | ||
|
6e017c35f7 | ||
|
06cda3fb18 | ||
|
b38151a0bb | ||
|
2790b5ddc4 | ||
|
f70951d374 | ||
|
9ebe1ae918 | ||
|
06e6f7af0c | ||
|
e130475259 | ||
|
115af9c402 | ||
|
8b914c1091 | ||
|
9c368e8e68 | ||
|
700db1fc15 | ||
|
35f9c0fb72 | ||
|
3091241279 | ||
|
56050aa650 | ||
|
b5cbb58c2d | ||
|
adaa93acfb | ||
|
5d043078b2 | ||
|
fe8db721d7 | ||
|
4d02466fed | ||
|
ca69c00cf4 | ||
|
6733e48ea1 | ||
|
dca5d69dd2 | ||
|
842af57d74 | ||
|
8dc92383d9 | ||
|
1ae35032a5 | ||
|
223ae7ae72 | ||
|
87a212f093 | ||
|
5952b1c90e | ||
|
83ba9be342 | ||
|
a1431c5cb1 | ||
|
e41a58b10d | ||
|
da94e89825 | ||
|
0381df6b17 | ||
|
31acd6b301 | ||
|
3c5dfdcf57 | ||
|
e0b65b857d | ||
|
83395d4e2f | ||
|
a6bed384d7 | ||
|
afac00de33 | ||
|
ee80e97578 | ||
|
35fac6cc0c | ||
|
e5515751fd | ||
|
c9c1e5ca7f | ||
|
b47e67ff30 | ||
|
f5de8b9ddf | ||
|
a63abbf268 | ||
|
1f42bd3d22 | ||
|
93c4cc2cd1 | ||
|
ab4b21ff58 | ||
|
83a09c475d | ||
|
9d99afd159 | ||
|
1858ac6b25 | ||
|
78290128e7 | ||
|
68193fd37f | ||
|
cd9c3c3f4f | ||
|
8bd023b49f | ||
|
57daef9ced | ||
|
fb134da091 | ||
|
c1a3eaaffb | ||
|
b6dbe7b5a5 | ||
|
8138063bfe | ||
|
4c8dc500c7 | ||
|
85247991b6 | ||
|
a127eaa0e9 | ||
|
ebb9f15a75 | ||
|
cd137bd9fc | ||
|
07bde5f88a | ||
|
6fffa02acf | ||
|
5830c3c96d | ||
|
9f2dc5c233 | ||
|
ec076c1e0d | ||
|
6e8ef308ed | ||
|
dc48f9858b | ||
|
a6b2ac5dcd | ||
|
c0685b7f7f | ||
|
fb2d616c57 | ||
|
6ff6853082 | ||
|
f8014ae969 | ||
|
88ed6e25ca | ||
|
1de2b7a57e | ||
|
95f7ba0080 | ||
|
bb73b31e6b | ||
|
9ecc4475dd | ||
|
f01aa37394 | ||
|
efa2f23510 | ||
|
408155ff5c | ||
|
785c7495c1 | ||
|
4517dea98d | ||
|
0358dc233a | ||
|
e21396870f | ||
|
b67f6a0fec | ||
|
42d8104505 | ||
|
f40a0eab23 | ||
|
b6153d1aef | ||
|
a2c585daa4 | ||
|
5a60bf0b0a | ||
|
d2e58ba46b | ||
|
9dcddc7876 | ||
|
b970185536 | ||
|
a64a029323 | ||
|
98bb1f00ee | ||
|
78f4d1c85b | ||
|
bf83fe568b | ||
|
02f4fdb2e5 | ||
|
cb61a84acb | ||
|
dc56e211e6 | ||
|
e4d33b7d13 | ||
|
f7de561ac5 | ||
|
fde624998f | ||
|
6505432bf4 | ||
|
7d953c1a8b | ||
|
95010d4a4c | ||
|
a32a931d24 | ||
|
4d72fb4289 | ||
|
186c04d90a | ||
|
84de5a5d42 | ||
|
6fe80cff6b | ||
|
c542b7ac32 | ||
|
3607e008a3 | ||
|
5b8edbf381 | ||
|
03f7bc0f3f | ||
|
0c54416040 | ||
|
0d188d6a39 | ||
|
e95a1245c5 | ||
|
a3b761f4e0 | ||
|
6e0c5817d5 | ||
|
e410fc8c41 | ||
|
9e7141f97c | ||
|
d7441edae7 | ||
|
5053361a7f | ||
|
91c99d305c | ||
|
2c39f26de3 | ||
|
a680a84d91 | ||
|
390edc5e3e | ||
|
663024ac7f | ||
|
0e75aa6250 | ||
|
693a33f660 | ||
|
8af85e8066 | ||
|
513bda53cd | ||
|
cf7df6a14c | ||
|
acbdd6365a | ||
|
e781f88eca | ||
|
86d16d070d | ||
|
3c4c91dc7d | ||
|
574837a92a | ||
|
854b405d89 | ||
|
7d66a5bd84 | ||
|
2c7663d971 | ||
|
6281ec0456 | ||
|
c3faa1a925 | ||
|
111db70908 | ||
|
d6400e382a | ||
|
7135a917c5 | ||
|
e2bcd943f5 | ||
|
d7c855b6f5 | ||
|
adfae03953 | ||
|
8298a08592 | ||
|
9a3111487a | ||
|
8c9c52417e | ||
|
be51b4bf25 | ||
|
5761ba4271 | ||
|
9e075f5c85 | ||
|
37d6cc8146 | ||
|
2293822dc2 | ||
|
f5bec70911 | ||
|
87c53a049b | ||
|
5bcd2825b6 | ||
|
fc442f482d | ||
|
a26c02006f | ||
|
be37190c09 | ||
|
036144b9ea | ||
|
2f2021caaf | ||
|
4a00e4c9b1 | ||
|
541c2df8db | ||
|
0e39f6fa2d | ||
|
17f0c20242 | ||
|
24be022d4c | ||
|
1f41b1db02 | ||
|
bd338dd934 | ||
|
1920ba94b7 | ||
|
ccb1449fb2 | ||
|
3fb15d8ec3 | ||
|
3f4d51b485 | ||
|
64ce9daf88 | ||
|
0a07236347 | ||
|
42d602b7a8 | ||
|
d4b800036c | ||
|
0b0a52c699 | ||
|
b289f4c1b1 | ||
|
edbde96487 | ||
|
2f380f0c41 | ||
|
bc76319f28 | ||
|
5c2313d622 | ||
|
aa638475e9 | ||
|
4af334f2ad | ||
|
21ab56ff78 | ||
|
09c4c40d4d | ||
|
2cb1b84204 | ||
|
d1ef8f5eb3 | ||
|
39efed1710 | ||
|
9a895763d5 | ||
|
3950f3c869 | ||
|
7347cbaedf | ||
|
ba2994210c | ||
|
f1a4b363c6 | ||
|
a78b5b7b2a | ||
|
e104f0cce5 | ||
|
5d6f76d11a | ||
|
99d1760b98 | ||
|
4d71cfa90a | ||
|
e02f692359 | ||
|
9a7e66826c | ||
|
77ec8d1c9a | ||
|
66ce21ec29 | ||
|
27e0937235 | ||
|
aadb7a41cb | ||
|
9b3767a954 | ||
|
d1681dc18c | ||
|
0c58ba5057 | ||
|
34997ef3e1 | ||
|
7d57725490 | ||
|
0fa0070062 | ||
|
851dc54b49 | ||
|
9f2fe90e50 | ||
|
cf2c4e02c6 | ||
|
d351c59b38 | ||
|
8837119aad | ||
|
f9a9431958 | ||
|
56d209cd20 | ||
|
0936aaccea | ||
|
89c1e4f91d | ||
|
88b5715eae | ||
|
5b05d4a123 | ||
|
893ef39401 | ||
|
890ad682d7 | ||
|
5d367b7bf8 | ||
|
b9f45057b8 | ||
|
89008c28df | ||
|
af7d0a3409 | ||
|
1cd2eef899 | ||
|
8c7b93ec4f | ||
|
3f7bf545b5 | ||
|
07f3517b6f | ||
|
e57682aa53 | ||
|
46287da60e | ||
|
0cecbec3b3 | ||
|
515657616a | ||
|
be7766b5f0 | ||
|
168d49fe0b | ||
|
cbedec7ca6 | ||
|
fb1bac2114 | ||
|
d0f399a66a | ||
|
e73dbd470a | ||
|
e0cd5381e2 | ||
|
8fe07a7e6d | ||
|
4a796d0e81 | ||
|
aee5d417ed | ||
|
250c5ba226 | ||
|
b91c848962 | ||
|
027cd821a2 | ||
|
e3e9fe5106 | ||
|
26b0dc336a | ||
|
d4475d0e8d | ||
|
1c935819db | ||
|
0c9398776a | ||
|
aff54ab5fe | ||
|
06177addf5 | ||
|
9f3b91fe57 | ||
|
80d25863db | ||
|
cf8a7f8678 | ||
|
a8d798c38a | ||
|
975b84a394 | ||
|
ef121fa664 | ||
|
f4c1816084 | ||
|
86fc709b03 | ||
|
afc4f9552f | ||
|
b8b58cb202 | ||
|
96970ff951 | ||
|
c2c0a03932 | ||
|
9bc2d2981b | ||
|
7cc9d17424 | ||
|
bc8b5f1079 | ||
|
5ec5e1a65d | ||
|
1f0e742710 | ||
|
801615f780 | ||
|
28b9fbb4d2 | ||
|
d51b77f42b | ||
|
a2843b599d | ||
|
55ba098e50 | ||
|
1fdd81b4fa | ||
|
d4af02f600 | ||
|
d7cf341eb3 | ||
|
079e6f7c20 | ||
|
8a930bd7d5 | ||
|
2c79dc906e | ||
|
1852017ecc | ||
|
ca301891db | ||
|
ce7536df9f | ||
|
424d11896a | ||
|
ae707d340b | ||
|
edefee46b2 | ||
|
77ac99a1d0 | ||
|
918708a227 | ||
|
3ba8cf4102 | ||
|
73db68b08b | ||
|
ecc4aa5571 | ||
|
a1a13708be | ||
|
c7c3da2038 | ||
|
eb9f3d3772 | ||
|
1a61790407 | ||
|
fe98fba5b5 | ||
|
ff3ad74fb4 | ||
|
7cf93278d3 | ||
|
1d9f2d2ce7 | ||
|
f109bd4a02 | ||
|
aeebf7fa95 | ||
|
c57ab693e4 | ||
|
af54608f62 | ||
|
f2d502faf8 | ||
|
6c1e146bc1 | ||
|
15d5eb858c | ||
|
ac1d7aa69f | ||
|
da4077f3b7 | ||
|
25f9f72366 | ||
|
7f04327625 | ||
|
dd25573ebc | ||
|
d9e54388e7 | ||
|
0b07780619 | ||
|
48cb0a1bb1 | ||
|
84f00e7cad | ||
|
a46a7458e1 | ||
|
c33aa5c969 | ||
|
0ee5fd1ac0 | ||
|
4eb8809a8a | ||
|
9315417935 | ||
|
1bb1b3886b | ||
|
9cd4f0c332 | ||
|
0d8510b8b3 | ||
|
6b57a8161c | ||
|
0a893d196e | ||
|
a0a09c23da | ||
|
1270b6717f | ||
|
d1f8b2ed17 | ||
|
765deae84d | ||
|
686068c8ed | ||
|
ec45cf04af | ||
|
b9931cda30 | ||
|
8a97d2717b | ||
|
b80f733cdb | ||
|
c6b0e61f44 | ||
|
b73324e800 | ||
|
2bd6ad9963 | ||
|
ea3d66fda3 | ||
|
181eaefea8 | ||
|
5e73b88a8a | ||
|
5e6d0b79e3 | ||
|
6b0d9214a9 | ||
|
7545323eba | ||
|
5eff9a50b6 | ||
|
7dc33c9247 | ||
|
6f48fc3c58 | ||
|
8558954da7 | ||
|
2ae41df23b | ||
|
47b8daf69c | ||
|
ef31a0de42 | ||
|
8c956d681b | ||
|
89eb44afbc | ||
|
9d7e32fb07 | ||
|
abb88d622a | ||
|
1ccdd75019 | ||
|
aaedafff52 | ||
|
3ccf5c0e50 | ||
|
f25a9832b8 | ||
|
11d5e2cdbb | ||
|
15f7a7db65 | ||
|
aec194ba61 | ||
|
63eb145772 | ||
|
db5fea922f | ||
|
0214d93299 | ||
|
1124a203cc | ||
|
e8fbf5fdbd | ||
|
8fd4ae1282 | ||
|
eab1b450d5 | ||
|
98fc30786e | ||
|
4cb8e239ae | ||
|
ea781293df | ||
|
0a2979360e | ||
|
0c75048e70 | ||
|
a07c004983 | ||
|
1018a0eda6 | ||
|
d1e4898924 | ||
|
a46c4bf04e | ||
|
d40667a798 | ||
|
0eca9e7401 | ||
|
b76af31155 | ||
|
426aeb0a7f | ||
|
8a222df60e | ||
|
4c79fcb6ed | ||
|
b27e55f4de | ||
|
a246cd044e | ||
|
880101f338 | ||
|
a2d0ff1328 | ||
|
5479b4db2b | ||
|
da0c86dd54 | ||
|
e9f29cd147 | ||
|
263448faa2 | ||
|
34396de03a | ||
|
f6fa17a3a8 | ||
|
1dceadba4c | ||
|
666c80877c | ||
|
4cb9aab9ce | ||
|
51593aafb2 | ||
|
5ced7e05f5 | ||
|
b97a662f2e | ||
|
9639c096ba | ||
|
e4af41e89a | ||
|
52e1717014 | ||
|
0ced5d2eaa | ||
|
ab8111bdeb | ||
|
8dc23ea1ce | ||
|
8a2e3d13f2 | ||
|
a29a0648ad | ||
|
63d471ec94 | ||
|
9fa3eac3aa | ||
|
a3ba78d7bd | ||
|
4b07be6bfd | ||
|
e320c50e49 | ||
|
524ad4e6dd | ||
|
e515d6f776 | ||
|
c137965dec | ||
|
a9e68e13a8 | ||
|
77fffda10e | ||
|
88fe5c641f | ||
|
da0309eb09 | ||
|
4e6f47d50a | ||
|
7e626ea219 | ||
|
8a6ccabffb | ||
|
f546ba85aa | ||
|
73e1d3b046 | ||
|
b2c8062131 | ||
|
6805a96e53 | ||
|
a92667c000 | ||
|
4a0619cadb | ||
|
a7e16d582d | ||
|
b3a4da5e4d | ||
|
5ea298a238 | ||
|
859c0915fb | ||
|
45fd96cd0d | ||
|
ffe2b3c24d | ||
|
b5b8d941f3 | ||
|
970561b956 | ||
|
9c3b53b701 | ||
|
6a69be88c5 | ||
|
3a918ae8f6 | ||
|
f668089e64 | ||
|
af6a08398e | ||
|
4d7def4311 | ||
|
ae960f5220 | ||
|
5be9ce1823 | ||
|
5693bbe1f5 | ||
|
e4267c5c56 | ||
|
99dfd42372 | ||
|
8d36924cb6 | ||
|
80d1e28d0f | ||
|
60132e9947 | ||
|
940b996e2d | ||
|
0055f479cb | ||
|
1c41b701dd | ||
|
e1e26d53e6 | ||
|
f9131832c7 | ||
|
ce14b5e9fb | ||
|
c40aa1f950 | ||
|
7d1d3d3f05 | ||
|
5e6a895fef | ||
|
d2fe2a7fc5 | ||
|
44a8025e0f | ||
|
71e392c1f9 | ||
|
416088a2de | ||
|
e57d11d55a | ||
|
781ae8d5c8 | ||
|
b01d45cf5c | ||
|
4941aaa5c1 | ||
|
07559a5aaa | ||
|
92f030887b | ||
|
9476f7f616 | ||
|
cbe405f6ea | ||
|
e18cf51c01 | ||
|
f32813951f | ||
|
7ba8fc256b | ||
|
c7972aa5e6 | ||
|
eaef38f79c | ||
|
7414bc492e | ||
|
6f14087a16 | ||
|
aac6e0521a | ||
|
7e25a80c5b | ||
|
328d4b916d | ||
|
596ff28207 | ||
|
70c1a37bbd | ||
|
4902276921 | ||
|
83cdeacaa8 | ||
|
e6e2f48f7e | ||
|
e316f613d0 | ||
|
9a8c87a43e | ||
|
67140f996b | ||
|
2f5d9ced6d | ||
|
3dfb116fdd | ||
|
eb1047a149 | ||
|
b42a8176ca | ||
|
2a9beec31d | ||
|
910fe6261b | ||
|
0c820b96d8 | ||
|
9689efedc4 | ||
|
97561f428e | ||
|
df0497fb58 | ||
|
30f0bdc754 | ||
|
c3c49a05c2 | ||
|
e72b878380 | ||
|
d51d8ad877 | ||
|
68a616d7c7 | ||
|
a0447de061 | ||
|
46db06a22b | ||
|
7984fdfd20 | ||
|
d637f03067 | ||
|
4c57c2a044 | ||
|
94b09c3fc0 | ||
|
de5ae4a05e | ||
|
517c5705b6 | ||
|
5d3e977761 | ||
|
c0d430f4e5 | ||
|
d910888181 | ||
|
db2dfee6ae | ||
|
d311d56bbf | ||
|
a33898c2a0 | ||
|
e6940d48e3 | ||
|
3bc5ef38d3 | ||
|
bac3b3a0dc | ||
|
07fded4da9 | ||
|
4f0a584efc | ||
|
1139fb39c5 | ||
|
4cd7c07344 | ||
|
a854e0ca8e | ||
|
de1766abde | ||
|
ebd005e1b1 | ||
|
9ba61037a4 | ||
|
c74b878372 | ||
|
01a566c794 | ||
|
5362a633e6 | ||
|
b2c3f45141 | ||
|
d5f9b5b74a | ||
|
d217ef37bf | ||
|
95bea7f64a | ||
|
58b63a24c2 | ||
|
53c90cfc99 | ||
|
2043d1f439 | ||
|
61034d4dde | ||
|
6605bf35a8 | ||
|
b2b93e5060 | ||
|
098286fcaf | ||
|
a6f30412ad | ||
|
b624648115 | ||
|
9d1d74c022 | ||
|
0c79d1a619 | ||
|
1ea8eebfec | ||
|
1dcc03aae0 | ||
|
3be9535225 | ||
|
8cad83a9dc | ||
|
0488495a34 | ||
|
a5eb8ce21e | ||
|
1dbcd4ee6e | ||
|
7e1f024d28 | ||
|
4a353896e3 | ||
|
eaa12de740 | ||
|
0e4372b4a3 | ||
|
b0c31ae486 | ||
|
a43e4b8aa7 | ||
|
ce3f80144a | ||
|
cd33cd66ae | ||
|
f2a2c2d407 | ||
|
5f0481c067 | ||
|
f30f3ac37b | ||
|
d31ed1f2e1 | ||
|
cf67d606ae | ||
|
76b859f6ba | ||
|
a326e301f0 | ||
|
a16ae7dadc | ||
|
ac47375aba | ||
|
857054179c | ||
|
fd5a87eedf | ||
|
4770b0d3e3 | ||
|
181ec4633b | ||
|
dc5e5c6c08 | ||
|
dcdf423d66 | ||
|
1a19c3b3a5 | ||
|
0a3fcfd9f4 | ||
|
49ac180329 | ||
|
0271aa5414 | ||
|
880b3290e8 | ||
|
a0364f0758 | ||
|
ed693e89c9 | ||
|
526957e0ac | ||
|
3341eb5f2c | ||
|
51fba42b83 | ||
|
12f5327e0e | ||
|
40f9fac1a5 | ||
|
0b5e924a21 | ||
|
cd312f1348 | ||
|
e480f616e0 | ||
|
2285a94958 | ||
|
7f1356a447 | ||
|
420a43cdd5 | ||
|
1aab88859d | ||
|
3210fce113 | ||
|
0a1b026d92 | ||
|
29e1bf3f2e | ||
|
333a38978e | ||
|
91c7b46d52 | ||
|
870d51bf10 | ||
|
7c0f41c785 | ||
|
647d3391bb | ||
|
0d24f34d83 | ||
|
a68a32d9b6 | ||
|
8a89054c2f | ||
|
cd46d08afd | ||
|
5e8ccda522 | ||
|
78d0e67987 | ||
|
62fc38078c | ||
|
bc4f844cd8 | ||
|
d73cd5ed27 | ||
|
2bf3d3a9c5 | ||
|
e3b64387a5 | ||
|
bd0454309f | ||
|
a72fa8038f | ||
|
f15f8e3295 | ||
|
604c671d41 | ||
|
6130bebbb3 | ||
|
9f944c043f | ||
|
092b3214c5 | ||
|
07dfef48be | ||
|
e9571fc2e2 | ||
|
db3a83d163 | ||
|
22f7ccc11d | ||
|
ea53b3faba | ||
|
645ccb2f87 | ||
|
b40cc02e2a | ||
|
98418272ab | ||
|
a32cc879cc | ||
|
adf329cf1a | ||
|
4bd5009ec1 | ||
|
74a9b4c058 | ||
|
8ee749f137 | ||
|
46fa404d83 | ||
|
cb8f5de5af | ||
|
3c7c5380f4 | ||
|
04d611e1c2 | ||
|
2d813b2191 | ||
|
f1bf549e0f | ||
|
d3a3ad5cbd | ||
|
8091a46005 | ||
|
18cffc4678 | ||
|
c1d01fb1e1 | ||
|
4d0c84bcf5 | ||
|
8db5c27d81 | ||
|
2ff36d81a1 | ||
|
56feff0455 | ||
|
cf17bcb15c | ||
|
b2d3abd9d6 | ||
|
a54cb7d3e4 | ||
|
00549c267f | ||
|
f41bfdb8eb | ||
|
42df37bb21 | ||
|
c23c986543 | ||
|
2190d87dc9 | ||
|
eefdba947c | ||
|
b9afd55856 | ||
|
147eb7a9e5 | ||
|
81ab861036 | ||
|
e6014dd0e9 | ||
|
ac030b7275 | ||
|
9370747479 | ||
|
45efd9290e | ||
|
96edba7eec | ||
|
6751b97db9 | ||
|
927b05713a | ||
|
8f23ff7274 | ||
|
158e883e47 | ||
|
7faa364c53 | ||
|
e62e8e372c | ||
|
568e2a9337 | ||
|
77756eb08d | ||
|
8b097af195 | ||
|
81ff77c2d5 | ||
|
bb65cd1976 | ||
|
1086c00929 | ||
|
9aaa9ce8aa | ||
|
cb5a6d29e2 | ||
|
4d8bd8805b | ||
|
d9b9f0b3d3 | ||
|
c8c57b545a | ||
|
d0f7a317e4 | ||
|
3517a8f494 | ||
|
aa9ed2e863 | ||
|
075f7fc19e | ||
|
ea7ea2ec59 | ||
|
64b183da36 | ||
|
54c6c4e547 | ||
|
986b48cf36 | ||
|
3bb9b03add | ||
|
f05aa674ab | ||
|
965bdc9986 | ||
|
edce19e406 | ||
|
1687f20760 | ||
|
2917d335bc | ||
|
30e90619f5 | ||
|
d53dc28b83 | ||
|
3446b38cbb | ||
|
bb793d71e7 | ||
|
587fb27484 | ||
|
7f305962f2 | ||
|
f6edb48df9 | ||
|
e793138031 | ||
|
5c2992ef16 | ||
|
d734bfc34f | ||
|
86d5a1d190 | ||
|
cb713e32d3 | ||
|
84fe0737de | ||
|
4ea636366d | ||
|
54f5b59c8c | ||
|
657b6a9fae | ||
|
6c01241b96 | ||
|
961073ec96 | ||
|
e2b786d97b | ||
|
2fbf9ab7be | ||
|
68a23c4918 | ||
|
b49dbcdbbe | ||
|
ee2f74dc5e | ||
|
81630a096f | ||
|
21780d8106 | ||
|
b7b4364db2 | ||
|
d9859de756 | ||
|
5e6fd0d1e1 | ||
|
a91d7cdd72 | ||
|
d00dc3b03a | ||
|
f5c69bae30 | ||
|
89fe17f419 | ||
|
c491257359 | ||
|
8a2f988be6 | ||
|
83c0b70a2d | ||
|
b7082c0eb4 | ||
|
61e2a07ee2 | ||
|
dd5e514d92 | ||
|
2532e40f9c | ||
|
50236ae4e5 | ||
|
04c36018d6 | ||
|
1273421498 | ||
|
7bd34cb1da | ||
|
d99dd4b875 | ||
|
c99eb98001 | ||
|
a29201a248 | ||
|
6f0c59d7be | ||
|
844e8b2f77 | ||
|
5a0a9e3a1c | ||
|
a6ed5667ab | ||
|
53da7140c2 | ||
|
eb87229ee9 | ||
|
0b852faf00 | ||
|
ce9e033551 | ||
|
eefe3a9c6e | ||
|
06535c8eac | ||
|
651867055c | ||
|
8c7e49dd54 | ||
|
612c4293d1 | ||
|
8007b22b85 | ||
|
35664d818d | ||
|
aa9f2c9a3c | ||
|
5764befa46 | ||
|
29462b83ff | ||
|
129a49a60b | ||
|
0da30f4623 | ||
|
69bcebdf86 | ||
|
c0d749b1e2 | ||
|
e6bcced213 | ||
|
3706d2e1db | ||
|
03bda9422d | ||
|
f89b4e9336 | ||
|
cd510b43b1 | ||
|
0c8f727bd8 | ||
|
ad18449753 | ||
|
1fe08f49c7 | ||
|
48b007543a | ||
|
d52ece745e | ||
|
0f75f789d8 | ||
|
bc9098bc22 | ||
|
76f1650109 | ||
|
c636e6909b | ||
|
b5b1b94a9d | ||
|
b87aeb9b95 | ||
|
5f0e4e81f0 | ||
|
7306feb6ef | ||
|
dccb3ac6c6 | ||
|
89cd2106ed | ||
|
74f991b8c5 | ||
|
dcf79d9119 | ||
|
911867d5a5 | ||
|
3600875707 | ||
|
8052d75957 | ||
|
cc2624d08e | ||
|
e72cfff7bb | ||
|
a43e6e06e0 | ||
|
dc0af0a419 | ||
|
868942e202 | ||
|
3fef2b68dc | ||
|
404cb4c7a6 | ||
|
a966b95a5b | ||
|
15f05b602f | ||
|
9e51d3f250 | ||
|
d7ca248bc8 | ||
|
3980b2f2ff | ||
|
bed9fcea46 | ||
|
b1b82857ba | ||
|
0b09272a60 | ||
|
f9129bd54e | ||
|
c0f3dff0f6 | ||
|
6ca8535166 | ||
|
ff4a429136 | ||
|
9a5cea2b23 | ||
|
cd1a68f15e | ||
|
a0bed51d96 | ||
|
857dec38d1 | ||
|
8f6484e470 | ||
|
5413b37d71 | ||
|
869dcf73f8 | ||
|
96a34d1ad7 | ||
|
26fc652d33 | ||
|
766361ac83 | ||
|
fc8c96399f | ||
|
9bad713db5 | ||
|
6f222ab02b | ||
|
9bd7509e87 | ||
|
e47596383a | ||
|
7487c92a52 | ||
|
29cc9da934 | ||
|
eaeb324c74 | ||
|
9f7acd4cf9 | ||
|
d9a0de20f8 | ||
|
eb11337f7d | ||
|
d2872539e3 | ||
|
1a5b024df6 | ||
|
578d65dfb4 | ||
|
db4c2d3dd5 | ||
|
47842a1611 | ||
|
f4f4cd9b1f | ||
|
b7452cc281 | ||
|
92653f3deb | ||
|
c526ab1870 | ||
|
1c7d840ff6 | ||
|
8ba91fc9dd | ||
|
09b03465d8 | ||
|
c8d9b3f8fc | ||
|
c9d19cbe56 | ||
|
10ae0bce65 | ||
|
7bc15245aa | ||
|
cb6228800b | ||
|
6ef899d000 | ||
|
6353f4ff09 | ||
|
fb673107f3 | ||
|
bb1af390a7 | ||
|
f65cd6245d | ||
|
530b2a51d5 | ||
|
d51e7cbb51 | ||
|
f244fe1855 | ||
|
293db76bd6 | ||
|
5b257b2b57 | ||
|
4e04f5e967 | ||
|
29f0ded88b | ||
|
6c4882b907 | ||
|
45e6accd2a | ||
|
51b19fcff4 | ||
|
c4cfaab621 | ||
|
8bf27bf76b | ||
|
ccb132374b | ||
|
c82afc8c46 | ||
|
08e0ed4fc6 | ||
|
261d9f8ebc | ||
|
948ad86049 | ||
|
ed659da488 | ||
|
1294f68265 | ||
|
0e771a6c1b | ||
|
a8227453fc | ||
|
225eda7176 | ||
|
dd37247e65 | ||
|
295cd3670f | ||
|
e4df0c6da1 | ||
|
2a421deaa3 | ||
|
7b23b6db6f | ||
|
5ca038d888 | ||
|
caf93da26a | ||
|
3454e34c7c | ||
|
619a80228f | ||
|
89de1beb6f | ||
|
b6442b4640 | ||
|
be412faf6c | ||
|
fd3a699ad8 | ||
|
4c99cea3e4 | ||
|
1d54ef57c7 | ||
|
673b225da2 | ||
|
c3fe137720 | ||
|
c28aa299bd | ||
|
b2189ae965 | ||
|
a3504dac6e | ||
|
a028b566ed | ||
|
ca2405c104 | ||
|
08f4ae04e1 | ||
|
83d69ba507 | ||
|
63cb34b563 | ||
|
271e42176c | ||
|
e5647793ce | ||
|
b87e45ce32 | ||
|
903b5aebca | ||
|
7492dcc9e6 | ||
|
5d2b162bea | ||
|
3fce90dbb9 | ||
|
d40b9324ca | ||
|
6875935d37 | ||
|
8978012f9d | ||
|
7cf4a5da87 | ||
|
47b67331d4 | ||
|
6e14601c7c | ||
|
3546ac2854 | ||
|
d600cdd8a0 | ||
|
d2c6e27d07 | ||
|
8041ced02d | ||
|
d81056cbe7 | ||
|
44e8a012e2 | ||
|
30483dacfb | ||
|
9d81d95700 | ||
|
e6b45d4cdb | ||
|
c2e28b5d94 | ||
|
fef7ead0d5 | ||
|
06aef0587a | ||
|
bf7c259cdd | ||
|
43d76e5990 | ||
|
ffde310d30 | ||
|
44bc7dd9a5 | ||
|
9e5b64e1b7 | ||
|
2599073f56 | ||
|
a2d49f9981 | ||
|
877a9d510b | ||
|
2455d0b859 | ||
|
b3c3afc2b4 | ||
|
3f97d19381 | ||
|
3ab3d49055 | ||
|
bd89cc0287 | ||
|
d365a52cd6 | ||
|
5e38e054a7 | ||
|
317f6d5c87 | ||
|
c876776a25 | ||
|
e1c7115d8c | ||
|
bb4d75aff0 | ||
|
c5dbd04c9c | ||
|
2a8a72a085 | ||
|
29c46a15f9 | ||
|
aae3fe5305 | ||
|
2743785aaf | ||
|
abc378c727 | ||
|
79fc16eeb7 | ||
|
2a235917dc | ||
|
c9e9341b4a | ||
|
da247c61b7 | ||
|
2cd2e6dd19 | ||
|
e442bce607 | ||
|
f7664a2d7e | ||
|
8a5c8d0db5 | ||
|
bcd5b713f8 | ||
|
a9488ba3c9 | ||
|
be13e3494a | ||
|
a62d65a9b8 | ||
|
44ce6774dc | ||
|
b911d7f78f | ||
|
4644176e26 | ||
|
df6759b033 | ||
|
bf8bac2bcc | ||
|
37def02ee1 | ||
|
09dfb25d73 | ||
|
850b98337b | ||
|
7f2921f26b | ||
|
836017f2b9 | ||
|
ed22f395ba | ||
|
bcbc7c1d47 | ||
|
1445d6d24a | ||
|
4de4763baf | ||
|
8362fe1b39 | ||
|
258dc16cfd | ||
|
8f8e796c77 | ||
|
a39a98cda9 | ||
|
90ba39593a | ||
|
c3061a19a2 | ||
|
e11a6163dd | ||
|
1b752c35cc | ||
|
8b9d3541dd | ||
|
dff7d70f0a | ||
|
e763381186 | ||
|
d4f49b10d7 | ||
|
5ba39c0086 | ||
|
b5db6fe186 | ||
|
8d2886e1ca | ||
|
965ebd0f03 | ||
|
cb306b0793 | ||
|
c5dc08e082 | ||
|
b00c6dd89b | ||
|
2fd28ca5c8 | ||
|
14a05ddaca | ||
|
209654fdff | ||
|
f30aa02e7c | ||
|
dd4374229b | ||
|
7eedf37149 | ||
|
7aea32f48b | ||
|
ac38f7b909 | ||
|
2c3f1c28e5 | ||
|
e8ee5ad691 | ||
|
5322f5f707 | ||
|
408f5055a9 | ||
|
6bfae2652f | ||
|
9036370d67 | ||
|
9bc730866f | ||
|
a2d3f987c0 | ||
|
5a271b8fde | ||
|
f43a5cb244 | ||
|
bf4ac3ad7a | ||
|
4f0e73ba97 | ||
|
f28a91969a | ||
|
ca285f5e53 | ||
|
34f2552cad | ||
|
c8720b1524 | ||
|
4238266ea3 | ||
|
230d19a7aa | ||
|
d2b7843d97 | ||
|
9351d47948 | ||
|
bf98ee3c93 | ||
|
dbba894544 | ||
|
52673152cc | ||
|
42295ef2ac | ||
|
a8a4f2101d | ||
|
f46bd8b6ba | ||
|
d4e1d4ec38 | ||
|
f517dc05ef | ||
|
a627de02c7 | ||
|
a94a0589dd | ||
|
81755a280d | ||
|
89d776acb5 | ||
|
daf660e66d | ||
|
e4020faff3 | ||
|
e11b727584 | ||
|
0a36a94b73 | ||
|
89e7cb19b9 | ||
|
fa2bdcd5ac | ||
|
ea71c9b214 | ||
|
c00e397405 | ||
|
a2a2640d29 | ||
|
7c4a104823 | ||
|
7892ec5a59 | ||
|
e5fd1f76db | ||
|
554ebebb92 | ||
|
f604cf4988 | ||
|
9de0e9157a | ||
|
b1be47f0a0 | ||
|
6502f21072 | ||
|
a9e21702aa | ||
|
48fd65d7f8 | ||
|
c1b0e176e5 | ||
|
e2d370bd9d | ||
|
2fe8291f1d | ||
|
1d1732ab4a | ||
|
1010ccca4d | ||
|
c21ff85b57 | ||
|
c3bb4d2a61 | ||
|
d2b7f8ef0f | ||
|
af25588b88 | ||
|
7546ef649c | ||
|
2a3bf1d994 | ||
|
450657f871 | ||
|
664192da0b | ||
|
9fc3e220a7 | ||
|
64f6a69d9a | ||
|
16734b1d88 | ||
|
31106c91fb | ||
|
026a427103 | ||
|
7a4f36c00e | ||
|
1f3ef4ffe1 | ||
|
c364836a9d | ||
|
97a12075b1 | ||
|
bafb1372a7 | ||
|
b4f032fab4 | ||
|
d36d944b3a | ||
|
7af22453ba | ||
|
d0c4b5bc76 | ||
|
4f194aa101 | ||
|
ef4bfde4a8 | ||
|
65a1245a03 | ||
|
486e4f8dd3 | ||
|
4cfbd8a9d2 | ||
|
7ab51b8960 | ||
|
18cbd96280 | ||
|
2cdea69719 | ||
|
6c053b6266 | ||
|
20eea9914e | ||
|
6d3f4f5a04 | ||
|
20e782eb21 | ||
|
e30fa57ab4 | ||
|
ef0b07d5c4 | ||
|
b9b1ec8f41 | ||
|
019526fbe9 | ||
|
a4cd5bd424 | ||
|
421593c0ba | ||
|
91ad85aec1 | ||
|
d1eacc1d1c | ||
|
e41dd8a0f1 | ||
|
5e1d4f215d | ||
|
9a7bb81cd0 | ||
|
321bb010cb | ||
|
e24a79f87b | ||
|
2dd0add3e7 | ||
|
ce279ca360 | ||
|
fcf606acde | ||
|
084907eeca | ||
|
f8487f581b | ||
|
40c9559d9e | ||
|
531e0ef918 | ||
|
2781655b0a | ||
|
64add90edd | ||
|
8de93d35ed | ||
|
eb844e3260 | ||
|
cedd2d1daf | ||
|
81d04fb31f | ||
|
caba6fb01e | ||
|
1c8d44b309 | ||
|
984098abce | ||
|
ead6da4760 | ||
|
2ab96587ef | ||
|
cb9c0e79eb | ||
|
96d2b2d6b8 | ||
|
b699b5fef5 | ||
|
b374ff4d6d | ||
|
149b136e0b | ||
|
5389663b72 | ||
|
a610c5c8c6 | ||
|
874cf18566 | ||
|
53cb0826bc | ||
|
6904f38ea2 | ||
|
223ff4ebff | ||
|
d2ec3e7d9a | ||
|
b00171366f | ||
|
7079a4e7e4 | ||
|
4e817a1109 | ||
|
d185d4e4cc | ||
|
3b574875cb | ||
|
4d5048435c | ||
|
57df7f8dfe | ||
|
74b36fbd98 | ||
|
8ea56d3b22 | ||
|
019f585c83 | ||
|
19b7f0747a | ||
|
c7c9bd6b08 | ||
|
b132f04f71 | ||
|
2f21f293c1 | ||
|
5b3c390e08 | ||
|
8a93371baa | ||
|
95dcae1a85 | ||
|
03e2ff587e | ||
|
1ea73a67ca | ||
|
1d32420a27 | ||
|
53dd9a35a0 | ||
|
0b35927b16 | ||
|
bbbe83b737 | ||
|
06f06ce390 | ||
|
cc4c52c998 | ||
|
bd09e5b11c | ||
|
181f62c15e | ||
|
1ff306ff40 | ||
|
c4e17ff847 | ||
|
3ae5ec92a5 | ||
|
2fe919b6ce | ||
|
a8ab3ffd01 | ||
|
f3c9a4a81c | ||
|
cd0aad10b0 | ||
|
da2cb61cae | ||
|
e4c691fd5f | ||
|
ea2e560bd9 | ||
|
25321984fa | ||
|
24ebc73ee5 | ||
|
d6e080d546 | ||
|
f5f16aac96 | ||
|
5c6f30a8a9 | ||
|
e8e8ae9fd7 | ||
|
3353ead5d3 | ||
|
160beb8e1c | ||
|
3f0d3ffb8a | ||
|
13c770b6be | ||
|
2eb55528ec | ||
|
839f631d6b | ||
|
8faae71157 | ||
|
b87e0fa124 | ||
|
d1037c6c9a | ||
|
bb205a5cdb | ||
|
6e73d8b3ab | ||
|
82a2dd8732 | ||
|
7e3c9c1094 | ||
|
695cb6d76b | ||
|
dbb2d8462b | ||
|
3bf96c6cd7 | ||
|
61375c4bbb | ||
|
2e4689d557 | ||
|
b6596d021b | ||
|
0628dc9b2f | ||
|
3117080be3 | ||
|
16d6e11e94 | ||
|
c9a3164a29 | ||
|
790aa0d24b | ||
|
d254340b9b | ||
|
42a3117e2a | ||
|
e47dcb10de | ||
|
8a7dcf8a80 | ||
|
0c30ffa11f | ||
|
0904bf6446 | ||
|
2173ed504d | ||
|
4583787759 | ||
|
17550a5f4b | ||
|
a4558c32b2 | ||
|
ef4fef3d56 | ||
|
3dbbc6a223 | ||
|
d3696f5223 | ||
|
b8a8b76c38 | ||
|
296e6171a1 | ||
|
2d7d137abd | ||
|
336adbd056 | ||
|
32bfe334c0 | ||
|
c1c4fb2ca4 | ||
|
6c9dc9ae51 | ||
|
6ab575cd49 | ||
|
c9274307f2 | ||
|
2489c46a7f | ||
|
f4b619d1d1 | ||
|
255c8a083e | ||
|
d0700172fa | ||
|
83ce927d16 | ||
|
809774d87c | ||
|
6f3f89a0d3 | ||
|
a870a1c6bc | ||
|
e04938666c | ||
|
c0eb3c53c1 | ||
|
b6443e0c01 | ||
|
83922c5737 | ||
|
78cd6f36ef | ||
|
eed4e09282 | ||
|
aaa15b403a | ||
|
82f1f5d0cf | ||
|
2b0452207e | ||
|
bc67d0b7b7 | ||
|
a8092ace32 | ||
|
12d76e4f20 | ||
|
c60130e534 | ||
|
3eeeb27d70 | ||
|
c2a179e9dd | ||
|
8b6f7b4e4c | ||
|
ce7097b498 | ||
|
1ae369855b | ||
|
60404a6564 | ||
|
519ea854d5 | ||
|
e66d0e4f74 | ||
|
9e0ec2b03c | ||
|
36e501b457 | ||
|
284f47e76c | ||
|
b47f8fd784 | ||
|
37a8addf52 | ||
|
a6fb88d74c | ||
|
bb43b2853d | ||
|
ba1585de34 | ||
|
6684812014 | ||
|
1419700c43 | ||
|
14f6249031 | ||
|
ea249c33fd | ||
|
1c0b410f55 | ||
|
1eaea5c81c | ||
|
64ec206ecb | ||
|
e7afea4cb7 | ||
|
6d6271d6c9 | ||
|
1f1d4e2def | ||
|
91c4253f06 | ||
|
cbb0c98f98 | ||
|
aaf9f57459 | ||
|
2006e5e51e | ||
|
741a5b275b | ||
|
eb4376b649 | ||
|
b1e5ebab8f | ||
|
8bd6296721 | ||
|
ae5c68368b | ||
|
4fdb0f48ec | ||
|
c4207f640b | ||
|
f6e477b4f5 | ||
|
7ae47b50b8 | ||
|
0b14155a75 | ||
|
f1fed76273 | ||
|
bc6db547d6 | ||
|
48813161f6 | ||
|
a006904724 | ||
|
5477ce3c39 | ||
|
f38d7811e3 | ||
|
a09f1b8666 | ||
|
c7071752a7 | ||
|
e2de22bdce | ||
|
100f6603f2 | ||
|
5382a2a15e | ||
|
29163a41c2 | ||
|
0a9d4ea17b | ||
|
f05138df62 | ||
|
6e67e1a849 | ||
|
3401f38edc | ||
|
76a2e7f8e5 | ||
|
3f142dd0fa | ||
|
22b4f87232 | ||
|
ca5823fcdf | ||
|
49fc74be5d | ||
|
25f50d74c5 | ||
|
266f4d6806 | ||
|
a6a9814c06 | ||
|
5a8d3ddef0 | ||
|
b082da73a1 | ||
|
99dcbe0207 | ||
|
75b22e9a23 | ||
|
c4f8c1b296 | ||
|
eecefdc4fa | ||
|
ded99502ae | ||
|
02b95f95a8 | ||
|
2a6d2d733e | ||
|
6976c7f386 | ||
|
7702175130 | ||
|
c2e43cc781 | ||
|
6f6a3566ac | ||
|
3434610349 | ||
|
bcac70b2ab | ||
|
369438a46d | ||
|
aed8969498 | ||
|
4a8781f4d9 | ||
|
bff9d0560d | ||
|
36f8eb71f3 | ||
|
f7982ede73 | ||
|
92804151a3 | ||
|
0f2caf1cb6 | ||
|
06442d5aa2 | ||
|
8a81f37d22 | ||
|
125547f08f | ||
|
0d24be4c05 | ||
|
30c89b33fe | ||
|
7479ff4b06 | ||
|
9801e9c29a | ||
|
821f40882f | ||
|
02ce9868a7 | ||
|
6f870e11ff | ||
|
a8f2ff4531 | ||
|
eaa3baab3c | ||
|
77bce8b1e8 | ||
|
6480282826 | ||
|
6197ad5090 | ||
|
b477e40d3c | ||
|
7c8eae3735 | ||
|
f8cc7ce328 | ||
|
553c29ab8a | ||
|
1a5881b1d0 | ||
|
071c4c1412 | ||
|
03b31652a2 | ||
|
852bc4887a | ||
|
fa124aeb8b | ||
|
258335cc65 | ||
|
bdebca94b3 | ||
|
f85bad3388 | ||
|
e9b0289eff | ||
|
40984e201e | ||
|
76bf987203 | ||
|
3b42abef44 | ||
|
26f0737c60 | ||
|
ac94242875 | ||
|
54bfa627f0 | ||
|
36c058188a | ||
|
5306a45093 | ||
|
a292cccb63 | ||
|
5ccd9877b4 | ||
|
7108ec41b5 | ||
|
5188d56b4a | ||
|
8f7ed66544 | ||
|
c99b9262a8 | ||
|
2ccbaf9143 | ||
|
d54ab2733c | ||
|
2f18d0d709 | ||
|
41c75a808a | ||
|
1e55853036 | ||
|
931ed0eb00 | ||
|
9342bbef56 | ||
|
aaae404b2a | ||
|
f3a8b4625f | ||
|
4021020d3b | ||
|
2569e8c0a4 | ||
|
dcaeb18870 | ||
|
30fe14c0ff | ||
|
089b3d6e6d | ||
|
17b90f8381 | ||
|
f9c62fc23b | ||
|
900867df02 | ||
|
12ab8b03d9 | ||
|
50599487f8 | ||
|
2b53e9d86a | ||
|
23270c60bc | ||
|
2cb6709323 | ||
|
917bc03a43 | ||
|
d71e35893d | ||
|
efd277e7ed | ||
|
dbe3446b63 | ||
|
d3d3972bea | ||
|
5285735c7a | ||
|
b84e7013d2 | ||
|
9bc5414b44 | ||
|
6e28683411 | ||
|
b27a8afc3b | ||
|
662251e208 | ||
|
e314a5e333 | ||
|
a0c165c418 | ||
|
c604c2de98 | ||
|
d6107025fa | ||
|
a7ecfb68c1 | ||
|
188d27159d | ||
|
2af534eea4 | ||
|
db193a46e8 | ||
|
808bb9a958 | ||
|
eca8ea1eb6 | ||
|
d9681e1791 | ||
|
7f96363ecb | ||
|
04c340627d | ||
|
c1c6c1cf30 | ||
|
5bb7b0dda5 | ||
|
61edd5588e | ||
|
e1c993c277 | ||
|
15abd4d053 | ||
|
a7376b36f8 | ||
|
d2b61762b7 | ||
|
a5e38f6f99 | ||
|
4988b585f8 | ||
|
3b5fb07c3d | ||
|
ddf8d6ad6b | ||
|
182edef28a | ||
|
97cffa048e | ||
|
c5d46591fe | ||
|
38f03855eb | ||
|
0d8421e7ab | ||
|
43301bee8b | ||
|
36b0ebf54c | ||
|
e7f83fb695 | ||
|
ab4b75fe30 | ||
|
b35f708c07 | ||
|
0e6150720c | ||
|
44adf03d2c | ||
|
9ae5edaa74 | ||
|
14c6c796e8 | ||
|
2d6c306ae1 | ||
|
b2ab087313 | ||
|
22daef0b51 | ||
|
067029eebe | ||
|
5d72f9d224 | ||
|
4dd235124d | ||
|
04c03d7ab7 | ||
|
fd8affdc8a | ||
|
e49f0cebf1 | ||
|
237b598264 | ||
|
f566c39026 | ||
|
6361e4efdc | ||
|
cfa86bd4fe | ||
|
a56bc47a81 | ||
|
80784433b8 | ||
|
ab9bc35f9f | ||
|
f3d6d1e43b | ||
|
8b2f7f0e64 | ||
|
76710e453e | ||
|
6801490e3b | ||
|
a15bfdfb46 | ||
|
1a695159e3 | ||
|
ee823b8326 | ||
|
b461c8cc99 | ||
|
adb31b71f8 | ||
|
57178e72a4 | ||
|
52ca1e7d06 | ||
|
b8317a562c | ||
|
8040ad8c03 | ||
|
c628aa5be8 | ||
|
1370d4a43c | ||
|
f22aa6d94a | ||
|
bdfd2f0787 | ||
|
673d10c6c4 | ||
|
e54033f4e4 | ||
|
bfeca2cd7c | ||
|
41de169dd2 | ||
|
b036e78d85 | ||
|
4e8c6fb7c0 | ||
|
134835c870 | ||
|
5ade90debf | ||
|
bb0aeb39e3 | ||
|
dc0f655781 | ||
|
94be46d065 | ||
|
a5acc3b27e | ||
|
ee927ad6dc | ||
|
b71e8970fe | ||
|
0c438ad8e9 | ||
|
31c2cfa53c | ||
|
23ce0af2e8 | ||
|
0014be5242 | ||
|
7c6fe5f244 | ||
|
3e5ae811bf | ||
|
5df5e63afe | ||
|
545f0bd4b0 | ||
|
8ffe111086 | ||
|
1cd64a1c4e | ||
|
098c650655 | ||
|
e52092c6d4 | ||
|
fc98a260d6 | ||
|
613fe5d35a | ||
|
f5b90af6d0 | ||
|
bf86e5979b | ||
|
dae8ee4afc | ||
|
89911e7caf | ||
|
72f3971ca2 | ||
|
0fc266fe80 | ||
|
f91ebd93d2 | ||
|
dea627f02c | ||
|
3c0f992e76 | ||
|
5f2f4bb7ef | ||
|
92a32fe380 | ||
|
a0fc78f9e6 | ||
|
3ade542d81 | ||
|
0e2ff6a6da | ||
|
0c9a778736 | ||
|
d1ef19f08a | ||
|
e6e10308ff | ||
|
d48c57917c | ||
|
40347e4cb8 | ||
|
33c16e562b | ||
|
cb5ee9c8a1 | ||
|
c3b44e835d | ||
|
c380b77617 | ||
|
7fafd94e39 | ||
|
89a75e7800 | ||
|
1e37f0430b | ||
|
295173258c | ||
|
fec90d0487 | ||
|
aead560227 | ||
|
c91d33e4ab | ||
|
36fae5c926 | ||
|
a33a919169 | ||
|
88e3805ff9 | ||
|
8133c60ab3 | ||
|
96c4c4da56 | ||
|
e981388aa7 | ||
|
cf4b49ca3b | ||
|
9dd0ed4329 | ||
|
6a8deaf61a | ||
|
e3d90b820d | ||
|
8c7507b048 | ||
|
0375fd319c | ||
|
b19111b9bf | ||
|
a937e3f268 | ||
|
4eb94f4a1e | ||
|
8cc673ec95 | ||
|
c271ffc066 | ||
|
896939ce4e | ||
|
5c155f5f11 | ||
|
5bfb2dae13 | ||
|
52d0d62c35 | ||
|
d3abd6c96e | ||
|
03cf98d3c9 | ||
|
6f51f729ba | ||
|
73d2ed4c02 | ||
|
57b159eb98 | ||
|
08da6834a5 | ||
|
268468fb47 | ||
|
333e19339c | ||
|
25b47db3cb | ||
|
7b6ccd9b22 | ||
|
881edb3e62 | ||
|
bb1d8d5796 | ||
|
cb13642e85 | ||
|
6473d4d8be | ||
|
5d6f134609 | ||
|
f02743bde5 | ||
|
8c09c30ca0 | ||
|
86fba4aed4 | ||
|
a5a71bf505 | ||
|
652a39b11c | ||
|
824635df7f | ||
|
3003bb0f50 | ||
|
5139265d32 | ||
|
c9f7314cd0 | ||
|
8a67af6c26 | ||
|
8e4802505e | ||
|
8ee641c1bc | ||
|
779508989f | ||
|
d9e805a6a5 | ||
|
2b0c4acfa1 | ||
|
2915548bce | ||
|
c9a9da7f49 | ||
|
8adbdee9d9 | ||
|
5645356fa9 | ||
|
6a66aaff47 | ||
|
253f28bb2b | ||
|
a48154a2ee | ||
|
0883b9eff1 | ||
|
2c2dad24d5 | ||
|
cec4e083ef | ||
|
05316b08b4 | ||
|
7be17ea89a | ||
|
1f07641d9b | ||
|
c0f4f805d0 | ||
|
c2de299834 | ||
|
9bfa420a76 | ||
|
b84224d7ba | ||
|
98a143f1fe | ||
|
3243428009 | ||
|
7736097f6b | ||
|
f544ffc568 | ||
|
c06a02fb97 | ||
|
fc60c003c3 | ||
|
4d15ab766f | ||
|
6896db47af | ||
|
313d8e8484 | ||
|
8c912a8133 | ||
|
ffd3dc335f | ||
|
4e54190e3a | ||
|
79bf332c53 | ||
|
08db4a5f53 | ||
|
ffed5a09cb | ||
|
5ca4478540 | ||
|
9cf4794146 | ||
|
43901370e9 | ||
|
b65856227f | ||
|
e1fcbc6476 | ||
|
0e8a8fca31 | ||
|
01e8fe5ddb | ||
|
0ec756cf58 | ||
|
0539c2f927 | ||
|
80067d32fc | ||
|
19d5f2dd78 | ||
|
13dde63463 | ||
|
da4e080656 | ||
|
89cca8af07 | ||
|
170908ef8d | ||
|
70b77d9801 | ||
|
2b1c3335f6 | ||
|
ad15978ccb | ||
|
c813046594 | ||
|
5740561cd3 | ||
|
28073ef2fe | ||
|
c958217d19 | ||
|
f8ab5663ef | ||
|
cfdeada3fd | ||
|
210b5af1c7 | ||
|
946242e8f1 | ||
|
1cb79223ff | ||
|
68ae4df2dc | ||
|
de33e6ecc8 | ||
|
a1cc346aca | ||
|
5397e345ca | ||
|
ba99070ca4 | ||
|
c65acd6a28 | ||
|
a6bde3c5da | ||
|
39783f2b19 | ||
|
8ed7916b61 | ||
|
2de5cc52d1 | ||
|
f6bc28000e | ||
|
90d2a7af03 | ||
|
d29a7adc9a | ||
|
0158fb437d | ||
|
2ef70303c5 | ||
|
7e613f8da6 | ||
|
826bef86b2 | ||
|
0bfc4b433b | ||
|
6b5dd4d2be | ||
|
4da51c739b | ||
|
5dbf39beee | ||
|
e6becb9337 | ||
|
c191b24024 | ||
|
13da3c71d8 | ||
|
eb2be90e74 | ||
|
973471c63b | ||
|
79766fa8c2 | ||
|
8da55fb72a | ||
|
6e75e88d71 | ||
|
06944747fd | ||
|
6a5c86541a | ||
|
3803ac78e2 | ||
|
51ae60820d | ||
|
7cf6064200 | ||
|
4095a1b6ee | ||
|
3347ca4d74 | ||
|
2e1761423d | ||
|
79eb42d3fe | ||
|
11c73d8877 | ||
|
a5fbb1cd1f | ||
|
a3f1a00078 | ||
|
280196c9e5 | ||
|
83cc800e97 | ||
|
da5a1293b3 | ||
|
48817519a9 | ||
|
b7f6f73342 | ||
|
9b1883988b | ||
|
49c8a007cc | ||
|
64f6d28441 | ||
|
c26d87c677 | ||
|
97ae0eb7c7 | ||
|
6c1cccd031 | ||
|
856d1ceba8 | ||
|
60673b3b64 | ||
|
0a516e3001 | ||
|
bb87f35797 | ||
|
90d4fd8cf1 | ||
|
fbe9ad2392 | ||
|
b539939a90 | ||
|
1dfc9bbaa6 | ||
|
334fe11584 | ||
|
c43f9bc3c2 | ||
|
46b43b1bd9 | ||
|
c92ae6a9d2 | ||
|
8dbda47174 | ||
|
dd9340090b | ||
|
7114fc2720 | ||
|
22fd00832d | ||
|
2d17123b74 | ||
|
bb67924233 | ||
|
1f2cf719da | ||
|
85376e8d6e | ||
|
ed197ce7ac | ||
|
cdace51197 | ||
|
a4c019ace2 | ||
|
c24fc4282c | ||
|
eea8f33cf9 | ||
|
0a128e454c | ||
|
b12bdd1f15 | ||
|
0bf40ba600 | ||
|
7d4f60e89d | ||
|
59006cb931 | ||
|
acf40052c4 | ||
|
aad482a7e0 | ||
|
dc3a017301 | ||
|
50b7421f28 | ||
|
61daaa3506 | ||
|
5b42f87ec4 | ||
|
3aaf4e2384 | ||
|
1891dbc566 | ||
|
00b9043915 | ||
|
fdd8c65b36 | ||
|
7cffafcdaa | ||
|
f847f67982 | ||
|
4b921f5e72 | ||
|
089e288a6e | ||
|
d642c08c2e | ||
|
7e90d84598 | ||
|
d7fde6fe0d | ||
|
b616a2f2e7 | ||
|
dfebbfc331 | ||
|
a42acb03ab | ||
|
1031ba44b7 | ||
|
28fa991fc2 | ||
|
60abdf1dbc | ||
|
83905db717 | ||
|
55546dfc80 | ||
|
a412b6b03a | ||
|
fd5414f82e | ||
|
79965e30af | ||
|
5c8de41b32 | ||
|
6bf38a806c | ||
|
15c45eae11 | ||
|
45b9acd57b | ||
|
3b765f3ac9 | ||
|
7b894da43c | ||
|
c8b66f9b04 | ||
|
25d9edd5c9 | ||
|
fdad98b321 | ||
|
8ddd71a818 | ||
|
5632278688 | ||
|
1cbe4c0d88 | ||
|
77a21d098f | ||
|
cd34c87afa | ||
|
d30ba9d52e | ||
|
e085ec9418 | ||
|
aac20ca789 | ||
|
599016a63a | ||
|
8231953e29 | ||
|
170cfb356c | ||
|
5879c2484a | ||
|
c02dad2ca3 | ||
|
1bfa14e3c6 | ||
|
ea506de048 | ||
|
d6bb7ab832 | ||
|
43486f2f41 | ||
|
5dec58e7f5 | ||
|
8321f92d2c | ||
|
da1095e298 | ||
|
1c11d7ccc1 | ||
|
33ae270b0d | ||
|
4c500eb50c | ||
|
dcad0cdf92 | ||
|
bc5898b8cd | ||
|
18705b4f26 | ||
|
e169366638 | ||
|
ae8c0b6c43 | ||
|
6a8e281b66 | ||
|
821f54f1ab | ||
|
e30079d656 | ||
|
f56da498ab | ||
|
6905522b91 | ||
|
e259093e01 | ||
|
e963a86b15 | ||
|
e447fb806b | ||
|
d0bbcc4e77 | ||
|
282f3b0632 | ||
|
80e74eb91c | ||
|
61e2a60438 | ||
|
59114a14ff | ||
|
aa14085746 | ||
|
9ac87fd66f | ||
|
54688ce7c7 | ||
|
2fc3dcfc74 | ||
|
90c41d498c | ||
|
ce6bea4ba0 | ||
|
769e298e0a | ||
|
dfb4d9f049 | ||
|
2704e921c8 | ||
|
99051916eb | ||
|
de194880ae | ||
|
c26073afeb | ||
|
b9128b6074 | ||
|
d6ca9e548d | ||
|
2d8f380b71 | ||
|
9c7901f526 | ||
|
945b6c1e59 | ||
|
5647cf7a7e | ||
|
d4be4df871 | ||
|
d92560b64b | ||
|
4952f7dcdb | ||
|
200170e5f3 | ||
|
10a6a9192d | ||
|
99de90a015 | ||
|
cb54546259 | ||
|
efd1fc017b | ||
|
04f5a93aa8 | ||
|
751ca90690 | ||
|
b73a67455d | ||
|
b51b8b1b41 | ||
|
4d7ef44aee | ||
|
3148781045 | ||
|
96507d3709 | ||
|
5ddfd5bf11 | ||
|
f6dd60c051 | ||
|
beef02a4b6 | ||
|
676ecd9052 | ||
|
4962ec7589 | ||
|
cc2fbc7b89 | ||
|
66f453452e | ||
|
24c7ff7959 | ||
|
dfd7f594b5 | ||
|
9b76b5ac98 | ||
|
9edab3dc55 | ||
|
3eee19c9a2 | ||
|
8195e948a1 | ||
|
1dfeae6a03 | ||
|
ae43edeb4f | ||
|
1488a09b8e | ||
|
152a386ac1 | ||
|
c4712bcb52 | ||
|
4545beab51 | ||
|
f48e807cee | ||
|
c12dc71ece | ||
|
ce3562b3ea | ||
|
d05458aa3a | ||
|
1ed60c79c0 | ||
|
aee1e53140 | ||
|
c822e2f6cc | ||
|
f098222a43 | ||
|
715abe1140 | ||
|
645c926bbd | ||
|
56eba9cded | ||
|
253e2b2de1 | ||
|
1790c81603 | ||
|
b1413f021e | ||
|
fef57cb312 | ||
|
a129fafb69 | ||
|
81897d0b04 | ||
|
40bba563d6 | ||
|
1caf76f64b | ||
|
8338913ac5 | ||
|
c950daf301 | ||
|
cf16e31632 | ||
|
f48d708e28 | ||
|
f585992c6f | ||
|
9c55b83dea | ||
|
ff5edc44ed | ||
|
dcd95d013f | ||
|
d507111008 | ||
|
3ff6339e29 | ||
|
3cc028fa29 | ||
|
85ae3a9420 | ||
|
46b67fef7a | ||
|
c98ab8fb51 | ||
|
281b6b6d2b | ||
|
60c22b6a43 | ||
|
3f05ed6ffa | ||
|
e87f2dda85 | ||
|
44bbe8b307 | ||
|
a8c1d02ee1 | ||
|
a2e4f747e0 | ||
|
7dd18c75b0 | ||
|
090ad5323a | ||
|
47266f712a | ||
|
0140965a30 | ||
|
8bda10c23c | ||
|
d10099d9e9 | ||
|
ac3f9e5f33 | ||
|
0d9fb68a04 | ||
|
c3636f1527 | ||
|
a0392865f4 | ||
|
9f856e9ec2 | ||
|
f9967cca4c | ||
|
a1717eac6d | ||
|
bb2ade75a8 | ||
|
7bdce848e7 | ||
|
feb7c85d57 | ||
|
2cdc12055d | ||
|
639816369a | ||
|
3e90fd010d | ||
|
462862ba65 | ||
|
7601a72faf | ||
|
7ab14ff293 | ||
|
d98faaffee | ||
|
c2cf7ba16a | ||
|
5311937b69 | ||
|
a044519b21 | ||
|
8349e631d2 | ||
|
b3541e9758 | ||
|
97a0c890bf | ||
|
200106df39 | ||
|
83718c61cd | ||
|
a51f7d52ed | ||
|
bf3a88ff1a | ||
|
ea66e20282 | ||
|
346e80839f | ||
|
a209b39552 | ||
|
24da85fea3 | ||
|
57df2690da | ||
|
35f607f9a5 | ||
|
557672ba9f | ||
|
427430fc48 | ||
|
48d9fc10ea | ||
|
c5c8afe147 | ||
|
b348b766fc | ||
|
b561f7d906 | ||
|
9d05d2bac5 | ||
|
a3116cd27d | ||
|
f6ccfe6ed3 | ||
|
1bf9dd1217 | ||
|
524683eabd | ||
|
2103731f10 | ||
|
ceeac476ec | ||
|
a6ba7d9093 | ||
|
f45b50a796 | ||
|
2ace3257f9 | ||
|
c16ee7fc2c | ||
|
fd33fe869d | ||
|
9a792e601e | ||
|
00d024ff86 | ||
|
428a6ed71b | ||
|
f087b37cb3 | ||
|
2027dae30b | ||
|
450c6759eb | ||
|
dcf125a08a | ||
|
ad6386a618 | ||
|
6fc141497a | ||
|
d674d934e7 | ||
|
85bf5fbc9b | ||
|
b7446f8d0f | ||
|
19924cd184 | ||
|
77a7cac830 | ||
|
01c34b837d | ||
|
5cc9b34132 | ||
|
a5975a489c | ||
|
edaf57148a | ||
|
85470a1549 | ||
|
2a604c0548 | ||
|
2ab7c7feae | ||
|
6b789e2eb0 | ||
|
329c95196e | ||
|
375a7f7b4c | ||
|
9590de2c19 | ||
|
430addf520 | ||
|
0fe064b8a2 | ||
|
2ee2e4505a | ||
|
7c20d6e28c | ||
|
a961fff69d | ||
|
b7f3c68eca | ||
|
edd2981076 | ||
|
5c40c4b958 | ||
|
a287599c8f | ||
|
0bc71e28a1 | ||
|
45fe77ce4a | ||
|
a4edce5a93 | ||
|
83ba79dca2 | ||
|
d1351503a8 | ||
|
d9dd76f2ae | ||
|
54d97b53de | ||
|
7437092765 | ||
|
c90ca8c2a6 | ||
|
d815317d7c | ||
|
7bbeea0b81 | ||
|
99c4692a0d | ||
|
f3aaa7ea7a | ||
|
38c3c878e1 | ||
|
90063ad03c | ||
|
8ba346faa6 | ||
|
079dc12fe1 | ||
|
d7359122b4 | ||
|
c105a63c8b | ||
|
01fef0b9e1 | ||
|
7b7f098dee | ||
|
a02aeb468e | ||
|
a3a682eeb1 | ||
|
456f31901c | ||
|
6d5a0d8a7e | ||
|
6192d42564 | ||
|
8cc2aee13e | ||
|
0860934888 | ||
|
d2b077af35 | ||
|
4bca89f072 | ||
|
fcfc5c85c7 | ||
|
06513446a0 | ||
|
2d53896f92 | ||
|
e523764b0f | ||
|
8e7d9e1bc7 | ||
|
38d2a97582 | ||
|
01d2b6ded9 | ||
|
080770a493 | ||
|
3aaa219d5e | ||
|
df8a6bbaa2 | ||
|
08d82bb12f | ||
|
57e071fe6b | ||
|
8d761fa60c | ||
|
b7bd67b4cb | ||
|
ead1136e31 | ||
|
3d54400163 | ||
|
7779cbca4d | ||
|
8d6c9e116d | ||
|
d0b2166525 | ||
|
b4f9d3a8f2 | ||
|
af9cfb40a4 | ||
|
6fa3bfe051 | ||
|
454a07b775 | ||
|
8a6bc41938 | ||
|
f793ee395d | ||
|
d2f0ea6fa0 | ||
|
c94756f8a2 | ||
|
a42c1e4711 | ||
|
25264faf37 | ||
|
380b4e5f3a | ||
|
9bd78a8c22 | ||
|
a570589dcc | ||
|
2885ced2c7 | ||
|
5dc873209e | ||
|
3131b7ea9d | ||
|
ca903ebd1f | ||
|
a2ca46004b | ||
|
5795958a18 | ||
|
6c195af2a3 | ||
|
5e64a93d11 | ||
|
caa81d1f4d | ||
|
5f584e683a | ||
|
4aabf5d8be | ||
|
cf6254a8d5 | ||
|
883cff5de9 | ||
|
7e79c4f249 | ||
|
504638eb41 | ||
|
2adac4a899 | ||
|
56a943bf48 | ||
|
77ebca264a | ||
|
7b94ae3a9a | ||
|
bd1edc6dcc | ||
|
09d166e97d | ||
|
a272ea07a9 | ||
|
69dd3ab639 | ||
|
798ffd9065 | ||
|
f3e5d908d6 | ||
|
9651a7d7fc | ||
|
1d38d51ac1 | ||
|
f80b8f0d42 | ||
|
d0dbe49bfd | ||
|
39a0e05f87 | ||
|
34e7f20f24 | ||
|
dc7eeaa45d | ||
|
b2914cbcb1 | ||
|
97a237bbdc | ||
|
3d25dfbebe | ||
|
7076deb2b6 | ||
|
db18050b86 | ||
|
8c744e13bc | ||
|
eb12d7bd73 | ||
|
5e32b5f0bf | ||
|
0fc1f4e10e | ||
|
3b79eff2f1 | ||
|
92a54a5320 | ||
|
65ca0f2554 | ||
|
72de8f57a7 | ||
|
d0a4d6b111 | ||
|
c4eb641d9c | ||
|
b431703262 | ||
|
2ebcffb22e | ||
|
89fa1dff09 | ||
|
5bc6057050 | ||
|
87164d574e | ||
|
b366f8b053 | ||
|
be6a9ba72c | ||
|
3e08a8e1c1 | ||
|
3c57f468c6 | ||
|
84c1841e85 | ||
|
a7833a3b72 | ||
|
df6f3e658a | ||
|
b885e1eeff | ||
|
69b9a4db2b | ||
|
ee064fa84c | ||
|
9d94d0fce9 | ||
|
b5064021e6 | ||
|
31db658929 | ||
|
322d9d66a8 | ||
|
488cce767f | ||
|
2316379160 | ||
|
d459bb61dc | ||
|
590f4e07af | ||
|
e071b4315a | ||
|
869e975ed1 | ||
|
dab99405c5 | ||
|
d2c745d3fd | ||
|
6067cb1797 | ||
|
51efddcfb0 | ||
|
0c7e52d9c3 | ||
|
81b50b9b3c | ||
|
7c26e516c9 | ||
|
9c95c93630 | ||
|
7f73591742 | ||
|
f01bb5966a | ||
|
b0417338cc | ||
|
20e82d708b | ||
|
9f5a03edcd | ||
|
a34fef3478 | ||
|
685504e1d0 | ||
|
fddc128156 | ||
|
9159e2ed22 | ||
|
15fdb9b218 | ||
|
3b73bbe0ac | ||
|
c33c3de43a | ||
|
99726be9ac | ||
|
32f333a00e | ||
|
be5c19b764 | ||
|
dd384e4a31 | ||
|
bdde195e2b | ||
|
dafdb43c84 | ||
|
961c60dd1a | ||
|
e124de4b80 | ||
|
98624e66e5 | ||
|
5343b03493 | ||
|
60895bf8d6 | ||
|
d50e7a3d17 | ||
|
a181c09786 | ||
|
7c8dd238de | ||
|
0b6952d0fe | ||
|
6ce4c93b3c | ||
|
14ea071306 | ||
|
50034301ac | ||
|
85ed712c50 | ||
|
f67d682345 | ||
|
0656dc381d | ||
|
3f1427eef9 | ||
|
882f65fdce | ||
|
7d0f5e94ef | ||
|
f1fccb7a66 | ||
|
73db99398f | ||
|
0af493ad67 | ||
|
bc182f1392 | ||
|
91c6ae307d | ||
|
aabae8eb01 | ||
|
e3ea16d020 | ||
|
ad991c9d8e | ||
|
c0e5e9cb24 | ||
|
ae48c160b0 | ||
|
4e723f4936 | ||
|
251547e79e | ||
|
b222c4215b | ||
|
734073019f | ||
|
9a26a3c4e8 | ||
|
1bef814c51 | ||
|
6dc791c34f | ||
|
5fcef39a2e | ||
|
7ae9f21f82 | ||
|
5b4e9ef4db | ||
|
39e9df47bc | ||
|
9173f9c9cb | ||
|
62081aebb9 | ||
|
a4b71278c0 | ||
|
3f07632cd4 | ||
|
2c94587263 | ||
|
db43f678d8 | ||
|
a4f2aa1981 | ||
|
78149e19dc | ||
|
046b0bc98a | ||
|
97873a7b2b | ||
|
f8633f8c4e | ||
|
ef27ee0a28 | ||
|
bf5315d306 | ||
|
9c7efa8e0e | ||
|
a1c44b4987 | ||
|
55f8624388 | ||
|
927777291e | ||
|
3fc3818231 | ||
|
f093da99ec | ||
|
adeaa77864 | ||
|
48d61a3cdf | ||
|
876a06a9cd | ||
|
20d40ea691 | ||
|
d69d1fbfe8 | ||
|
323fe960bd | ||
|
938ca5c451 | ||
|
4500db395f | ||
|
d48946ab90 | ||
|
88841ac01f | ||
|
8b37eca241 | ||
|
1d3a361a66 | ||
|
c862484f00 | ||
|
ccd48965a8 | ||
|
b6472f3469 | ||
|
866c69e706 | ||
|
a50df84a72 | ||
|
6760942218 | ||
|
b71e74927e | ||
|
7e50364244 | ||
|
b82fa6534b | ||
|
74a4848205 | ||
|
4e58887b9a | ||
|
dfcd84c2bc |
@@ -1,5 +1,5 @@
|
||||
name: Bug 反馈
|
||||
description: 当你中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲。
|
||||
description: 当你使用过程中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲,请在这里反馈。
|
||||
title: "[Bug]: "
|
||||
labels: ["bug"]
|
||||
body:
|
||||
@@ -9,14 +9,14 @@ body:
|
||||
label: 版本
|
||||
description: 你当前正在使用我们软件的哪个版本(pom文件内的版本号)?
|
||||
value: |
|
||||
jdk版本(带上尾号): 例如 1.8.0
|
||||
框架版本(项目启动时输出的版本号): 例如 4.4.0
|
||||
jdk版本(带上尾号): 例如 17.0.8
|
||||
框架版本(项目启动时输出的版本号): 例如 5.1.1
|
||||
其他依赖版本(你觉得有必要的):
|
||||
validations:
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: 功能不好用不会用是否已经看过项目文档?
|
||||
label: 功能不好用不会用是否已经看过项目文档?
|
||||
options:
|
||||
- label: https://plus-doc.dromara.org
|
||||
required: true
|
||||
@@ -35,10 +35,10 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
label: 如何复现
|
||||
description: 请详细告诉我们如何复现你遇到的问题
|
||||
description: 请详细告诉我们如何复现你遇到的问题。
|
||||
value: |
|
||||
如涉及代码 可提供一个最小代码示例 并使用```附上它 或者截图均可 越详细越好<br>
|
||||
大多数问题都是 代码编写错误问题 逻辑问题 或者用法错误等问题
|
||||
如涉及代码,可提供一个最小代码示例,并使用```附上它,或者截图均可,越详细越好。<br>
|
||||
大多数问题都是:代码编写错误问题,逻辑问题,或者用法错误等问题。
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
|
@@ -1,5 +1,5 @@
|
||||
name: 功能建议
|
||||
description: 对本项目提出一个功能建议
|
||||
description: 对本项目提出一个功能建议。
|
||||
title: "[功能建议]: "
|
||||
labels: ["enhancement"]
|
||||
body:
|
||||
@@ -39,5 +39,5 @@ body:
|
||||
attributes:
|
||||
label: 意向参与贡献
|
||||
options:
|
||||
- label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区
|
||||
required: false
|
||||
- label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区。
|
||||
required: false
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -44,3 +44,5 @@ nbdist/
|
||||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
!*/build/*.xml
|
||||
|
||||
.flattened-pom.xml
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<configuration default="false" name="ruoyi-monitor-admin" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
|
||||
<deployment type="dockerfile">
|
||||
<settings>
|
||||
<option name="imageTag" value="ruoyi/ruoyi-monitor-admin:4.8.2" />
|
||||
<option name="imageTag" value="ruoyi/ruoyi-monitor-admin:5.1.2" />
|
||||
<option name="buildOnly" value="true" />
|
||||
<option name="sourceFilePath" value="ruoyi-extend/ruoyi-monitor-admin/Dockerfile" />
|
||||
</settings>
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="ruoyi-xxl-job-admin" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
|
||||
<configuration default="false" name="ruoyi-powerjob-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
|
||||
<deployment type="dockerfile">
|
||||
<settings>
|
||||
<option name="imageTag" value="ruoyi/ruoyi-xxl-job-admin:4.8.2" />
|
||||
<option name="imageTag" value="ruoyi/ruoyi-powerjob-server:5.1.2" />
|
||||
<option name="buildOnly" value="true" />
|
||||
<option name="sourceFilePath" value="ruoyi-extend/ruoyi-xxl-job-admin/Dockerfile" />
|
||||
<option name="sourceFilePath" value="ruoyi-extend/ruoyi-powerjob-server/Dockerfile" />
|
||||
</settings>
|
||||
</deployment>
|
||||
<method v="2" />
|
@@ -2,7 +2,7 @@
|
||||
<configuration default="false" name="ruoyi-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
|
||||
<deployment type="dockerfile">
|
||||
<settings>
|
||||
<option name="imageTag" value="ruoyi/ruoyi-server:4.8.2" />
|
||||
<option name="imageTag" value="ruoyi/ruoyi-server:5.1.2" />
|
||||
<option name="buildOnly" value="true" />
|
||||
<option name="sourceFilePath" value="ruoyi-admin/Dockerfile" />
|
||||
</settings>
|
||||
|
136
README.md
136
README.md
@@ -2,45 +2,41 @@
|
||||
<div style="height: 10px; clear: both;"></div>
|
||||
|
||||
- - -
|
||||
|
||||
## 版本状态说明
|
||||
|
||||
由于 springboot 2.X 与 vue 2.X 官方均宣布停止维护, 故而 框架 4.X 版本 进入维护状态(只处理问题不更新功能)
|
||||
|
||||
停止维护时间预计: 2024年6-10月具体根据使用人数动态决定, 此版本已经相当稳定 即便不更新功能也不影响使用
|
||||
|
||||
如果依旧选择使用 jdk8 或者 jdk11 可以放心使用此版本, 如果希望使用 jdk17 或者 jdk21 可以选择使用 5.X 分支
|
||||
|
||||
## 平台简介
|
||||
|
||||
[](https://gitee.com/dromara/RuoYi-Vue-Plus)
|
||||
[](https://github.com/dromara/RuoYi-Vue-Plus)
|
||||
[](https://github.com/dromara/RuoYi-Vue-Plus)
|
||||
[](https://gitee.com/dromara/RuoYi-Vue-Plus/blob/master/LICENSE)
|
||||
[](https://www.jetbrains.com/?from=RuoYi-Vue-Plus)
|
||||
<br>
|
||||
[](https://gitee.com/dromara/RuoYi-Vue-Plus)
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
[](https://gitee.com/dromara/RuoYi-Vue-Plus)
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
|
||||
> RuoYi-Vue-Plus 是重写 RuoYi-Vue 针对 `分布式集群` 场景全方位升级(不兼容原框架)
|
||||
> RuoYi-Vue-Plus 是重写 RuoYi-Vue 针对 `分布式集群与多租户` 场景全方位升级(不兼容原框架)
|
||||
|
||||
> 项目代码、文档 均开源免费可商用 遵循开源协议在项目中保留开源协议文件即可<br>
|
||||
活到老写到老 为兴趣而开源 为学习而开源 为让大家真正可以学到技术而开源
|
||||
|
||||
> 系统演示: [传送门](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4836388&doc_id=1469725)
|
||||
> 系统演示: [传送门](https://plus-doc.dromara.org/#/common/demo_system)
|
||||
|
||||
> 前端项目地址: [plus-ui](https://gitee.com/JavaLionLi/plus-ui)
|
||||
|
||||
> 文档地址: [plus-doc](https://plus-doc.dromara.org) - [plus-doc(国内备用)](https://dromara.gitee.io/plus-doc)
|
||||
|
||||
# 本框架与RuoYi的功能差异
|
||||
|
||||
| 功能 | 本框架 | RuoYi |
|
||||
|-------------|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
|
||||
| 前端项目 | 基于vue3-element-admin开源项目重写<br/>Vue3 + TS + ElementPlus | 基于Vue2/Vue3 + JS |
|
||||
| 前端项目 | 采用 Vue3 + TS + ElementPlus 重写 | 基于Vue2/Vue3 + JS |
|
||||
| 后端项目结构 | 采用插件化 + 扩展包形式 结构解耦 易于扩展 | 模块相互注入耦合严重难以扩展 |
|
||||
| 后端代码风格 | 严格遵守Alibaba规范与项目统一配置的代码格式化 | 代码书写与常规结构不同阅读障碍大 |
|
||||
| Web容器 | 采用 Undertow 基于 XNIO 的高性能容器 | 采用 Tomcat |
|
||||
| 权限认证 | 采用 Sa-Token、Jwt 静态使用功能齐全 低耦合 高扩展 | Spring Security 配置繁琐扩展性极差 |
|
||||
| 权限注解 | 采用 Sa-Token 支持注解 登录校验、角色校验、权限校验、二级认证校验、HttpBasic校验、忽略校验<br/>角色与权限校验支持多种条件 如 `AND` `OR` 或 `权限 OR 角色` 等复杂表达式 | 只支持是否存在匹配 |
|
||||
| 关系数据库支持 | 原生支持 MySQL、Oracle、PostgreSQL、SQLServer<br/>可同时使用异构切换 | 支持 Mysql、Oracle 不支持同时使用、不支持异构切换 |
|
||||
| 三方鉴权 | 采用 JustAuth 第三方登录组件 支持微信、钉钉等数十种三方认证 | 无 |
|
||||
| 关系数据库支持 | 原生支持 MySQL、Oracle、PostgreSQL、SQLServer<br/>可同时使用异构切换(支持其他 mybatis-plus 支持的所有数据库 只需要增加jdbc依赖即可使用 达梦金仓等均有成功案例) | 支持 Mysql、Oracle 不支持同时使用、不支持异构切换 |
|
||||
| 缓存数据库 | 支持 Redis 5-7 支持大部分新功能特性 如 分布式限流、分布式队列 | Redis 简单 get set 支持 |
|
||||
| Redis客户端 | 采用 Redisson Redis官方推荐 基于Netty的客户端工具<br/>支持Redis 90%以上的命令 底层优化规避很多不正确的用法 例如: keys被转换为scan<br/>支持单机、哨兵、单主集群、多主集群等模式 | Lettuce + RedisTemplate 支持模式少 工具使用繁琐<br/>连接池采用 common-pool Bug多经常性出问题 |
|
||||
| 缓存注解 | 采用 Spring-Cache 注解 对其扩展了实现支持了更多功能<br/>例如 过期时间 最大空闲时间 组最大长度等 只需一个注解即可完成数据自动缓存 | 需手动编写Redis代码逻辑 |
|
||||
@@ -50,6 +46,7 @@
|
||||
| 数据权限 | 采用 Mybatis-Plus 插件 自行分析拼接SQL 无感式过滤<br/>只需为Mapper设置好注解条件 支持多种自定义 不限于部门角色 | 采用 注解+aop 实现 基于部门角色 生成的sql兼容性差 不支持其他业务扩展<br/>生成sql后需手动拼接到具体业务sql上 对于多个Mapper查询不起作用 |
|
||||
| 数据脱敏 | 采用 注解 + jackson 序列化期间脱敏 支持不同模块不同的脱敏条件<br/>支持多种策略 如身份证、手机号、地址、邮箱、银行卡等 可自行扩展 | 无 |
|
||||
| 数据加解密 | 采用 注解 + mybatis 拦截器 对存取数据期间自动加解密<br/>支持多种策略 如BASE64、AES、RSA、SM2、SM4等 | 无 |
|
||||
| 接口传输加密 | 采用 动态 AES + RSA 加密请求 body 每一次请求秘钥都不同大幅度降低可破解性 | 无 |
|
||||
| 数据翻译 | 采用 注解 + jackson 序列化期间动态修改数据 数据进行翻译<br/>支持多种模式: `映射翻译` `直接翻译` `其他扩展条件翻译` 接口化两步即可完成自定义扩展 内置多种翻译实现 | 无 |
|
||||
| 多数据源框架 | 采用 dynamic-datasource 支持世面大部分数据库<br/>通过yml配置即可动态管理异构不同种类的数据库 也可通过前端页面添加数据源<br/>支持spel表达式从请求头参数等条件切换数据源 | 基于 druid 手动编写代码配置数据源 配置繁琐 支持性差 |
|
||||
| 多数据源事务 | 采用 dynamic-datasource 支持多数据源不同种类的数据库事务回滚 | 不支持 |
|
||||
@@ -58,7 +55,8 @@
|
||||
| WebSocket协议 | 基于 Spring 封装的 WebSocket 协议 扩展了Token鉴权与分布式会话同步 不再只是基于单机的废物 | 无 |
|
||||
| 序列化 | 采用 Jackson Spring官方内置序列化 靠谱!!! | 采用 fastjson bugjson 远近闻名 |
|
||||
| 分布式幂等 | 参考美团GTIS防重系统简化实现(细节可看文档) | 手动编写注解基于aop实现 |
|
||||
| 分布式任务调度 | 采用 Xxl-Job 天生支持分布式 统一的管理中心 | 采用 Quartz 基于数据库锁性能差 集群需要做很多配置与改造 |
|
||||
| 分布式锁 | 采用 Lock4j 底层基于 Redisson | 无 |
|
||||
| 分布式任务调度 | 采用 PowerJob 天生支持分布式 统一的管理中心 | 采用 Quartz 基于数据库锁性能差 集群需要做很多配置与改造 |
|
||||
| 文件存储 | 采用 Minio 分布式文件存储 天生支持多机、多硬盘、多分片、多副本存储<br/>支持权限管理 安全可靠 文件可加密存储 | 采用 本机文件存储 文件裸漏 易丢失泄漏 不支持集群有单点效应 |
|
||||
| 云存储 | 采用 AWS S3 协议客户端 支持 七牛、阿里、腾讯 等一切支持S3协议的厂家 | 不支持 |
|
||||
| 短信 | 采用 sms4j 短信融合包 支持数十种短信厂家 只需在yml配置好厂家密钥即可使用 可多厂家共用 | 不支持 |
|
||||
@@ -79,70 +77,76 @@
|
||||
|
||||
## 本框架与RuoYi的业务差异
|
||||
|
||||
| 业务 | 功能说明 | 本框架 | RuoYi |
|
||||
|--------|-----------------------------------------|-----|------------------|
|
||||
| 用户管理 | 用户的管理配置 如:新增用户、分配用户所属部门、角色、岗位等 | 支持 | 支持 |
|
||||
| 部门管理 | 配置系统组织机构(公司、部门、小组) 树结构展现支持数据权限 | 支持 | 支持 |
|
||||
| 岗位管理 | 配置系统用户所属担任职务 | 支持 | 支持 |
|
||||
| 菜单管理 | 配置系统菜单、操作权限、按钮权限标识等 | 支持 | 支持 |
|
||||
| 角色管理 | 角色菜单权限分配、设置角色按机构进行数据范围权限划分 | 支持 | 支持 |
|
||||
| 字典管理 | 对系统中经常使用的一些较为固定的数据进行维护 | 支持 | 支持 |
|
||||
| 参数管理 | 对系统动态配置常用参数 | 支持 | 支持 |
|
||||
| 通知公告 | 系统通知公告信息发布维护 | 支持 | 支持 |
|
||||
| 操作日志 | 系统正常操作日志记录和查询 系统异常信息日志记录和查询 | 支持 | 支持 |
|
||||
| 登录日志 | 系统登录日志记录查询包含登录异常 | 支持 | 支持 |
|
||||
| 文件管理 | 系统文件展示、上传、下载、删除等管理 | 支持 | 无 |
|
||||
| 文件配置管理 | 系统文件上传、下载所需要的配置信息动态添加、修改、删除等管理 | 支持 | 无 |
|
||||
| 在线用户管理 | 已登录系统的在线用户信息监控与强制踢出操作 | 支持 | 支持 |
|
||||
| 定时任务 | 运行报表、任务管理(添加、修改、删除)、日志管理、执行器管理等 | 支持 | 仅支持任务与日志管理 |
|
||||
| 代码生成 | 多数据源前后端代码的生成(java、html、xml、sql)支持CRUD下载 | 支持 | 仅支持单数据源 |
|
||||
| 系统接口 | 根据业务代码自动生成相关的api接口文档 | 支持 | 支持 |
|
||||
| 服务监控 | 监视集群系统CPU、内存、磁盘、堆栈、在线日志、Spring相关配置等 | 支持 | 仅支持单机CPU、内存、磁盘监控 |
|
||||
| 缓存监控 | 对系统的缓存信息查询,命令统计等。 | 支持 | 支持 |
|
||||
| 在线构建器 | 拖动表单元素生成相应的HTML代码。 | 支持 | 支持 |
|
||||
| 使用案例 | 系统的一些功能案例 | 支持 | 不支持 |
|
||||
| 业务 | 功能说明 | 本框架 | RuoYi |
|
||||
|--------|----------------------------------------------------------------------|-----|------------------|
|
||||
| 租户管理 | 系统内租户的管理 如:租户套餐、过期时间、用户数量、企业信息等 | 支持 | 无 |
|
||||
| 租户套餐管理 | 系统内租户所能使用的套餐管理 如:套餐内所包含的菜单等 | 支持 | 无 |
|
||||
| 客户端管理 | 系统内对接的所有客户端管理 如: pc端、小程序端等<br>支持动态授权登录方式 如: 短信登录、密码登录等 支持动态控制token时效 | 支持 | 无 |
|
||||
| 用户管理 | 用户的管理配置 如:新增用户、分配用户所属部门、角色、岗位等 | 支持 | 支持 |
|
||||
| 部门管理 | 配置系统组织机构(公司、部门、小组) 树结构展现支持数据权限 | 支持 | 支持 |
|
||||
| 岗位管理 | 配置系统用户所属担任职务 | 支持 | 支持 |
|
||||
| 菜单管理 | 配置系统菜单、操作权限、按钮权限标识等 | 支持 | 支持 |
|
||||
| 角色管理 | 角色菜单权限分配、设置角色按机构进行数据范围权限划分 | 支持 | 支持 |
|
||||
| 字典管理 | 对系统中经常使用的一些较为固定的数据进行维护 | 支持 | 支持 |
|
||||
| 参数管理 | 对系统动态配置常用参数 | 支持 | 支持 |
|
||||
| 通知公告 | 系统通知公告信息发布维护 | 支持 | 支持 |
|
||||
| 操作日志 | 系统正常操作日志记录和查询 系统异常信息日志记录和查询 | 支持 | 支持 |
|
||||
| 登录日志 | 系统登录日志记录查询包含登录异常 | 支持 | 支持 |
|
||||
| 文件管理 | 系统文件展示、上传、下载、删除等管理 | 支持 | 无 |
|
||||
| 文件配置管理 | 系统文件上传、下载所需要的配置信息动态添加、修改、删除等管理 | 支持 | 无 |
|
||||
| 在线用户管理 | 已登录系统的在线用户信息监控与强制踢出操作 | 支持 | 支持 |
|
||||
| 定时任务 | 运行报表、任务管理(添加、修改、删除)、日志管理、执行器管理等 | 支持 | 仅支持任务与日志管理 |
|
||||
| 代码生成 | 多数据源前后端代码的生成(java、html、xml、sql)支持CRUD下载 | 支持 | 仅支持单数据源 |
|
||||
| 系统接口 | 根据业务代码自动生成相关的api接口文档 | 支持 | 支持 |
|
||||
| 服务监控 | 监视集群系统CPU、内存、磁盘、堆栈、在线日志、Spring相关配置等 | 支持 | 仅支持单机CPU、内存、磁盘监控 |
|
||||
| 缓存监控 | 对系统的缓存信息查询,命令统计等。 | 支持 | 支持 |
|
||||
| 在线构建器 | 拖动表单元素生成相应的HTML代码。 | 支持 | 支持 |
|
||||
| 使用案例 | 系统的一些功能案例 | 支持 | 不支持 |
|
||||
|
||||
## 参考文档
|
||||
|
||||
使用框架前请仔细阅读文档重点注意事项
|
||||
<br>
|
||||
>[初始化项目 必看](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4164117&doc_id=1469725)
|
||||
>>[https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4164117&doc_id=1469725](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4164117&doc_id=1469725)
|
||||
>[初始化项目 必看](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/init)
|
||||
>>[https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/init](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/init)
|
||||
>
|
||||
>[专栏与视频 入门必看](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=5473272&doc_id=1469725)
|
||||
>>[https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=5473272&doc_id=1469725](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=5473272&doc_id=1469725)
|
||||
>[专栏与视频 入门必看](https://plus-doc.dromara.org/#/common/column)
|
||||
>>[https://plus-doc.dromara.org/#/common/column](https://plus-doc.dromara.org/#/common/column)
|
||||
>
|
||||
>[部署项目 必看](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4219382&doc_id=1469725)
|
||||
>>[https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4219382&doc_id=1469725](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4219382&doc_id=1469725)
|
||||
>[部署项目 必看](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/deploy)
|
||||
>>[https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/deploy](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/deploy)
|
||||
>
|
||||
>[参考文档 Wiki](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages)
|
||||
>>[https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages)
|
||||
>[参考文档 Wiki](https://plus-doc.dromara.org)
|
||||
>>[https://plus-doc.dromara.org](https://plus-doc.dromara.org)
|
||||
>
|
||||
>[参考文档(国内备份)](https://dromara.gitee.io/plus-doc)
|
||||
>>[https://dromara.gitee.io/plus-doc](https://dromara.gitee.io/plus-doc)
|
||||
|
||||
|
||||
## 软件架构图
|
||||
|
||||

|
||||
## 贡献代码
|
||||

|
||||
|
||||
欢迎各路英雄豪杰 `PR` 代码 请提交到 `dev` 开发分支 统一测试发版
|
||||
## 如何参与贡献
|
||||
|
||||
框架定位为 `通用后台管理系统(分布式集群强化)` 原则上不接受业务 `PR`
|
||||
[参与贡献的方式 https://plus-doc.dromara.org/#/common/contribution](https://plus-doc.dromara.org/#/common/contribution)
|
||||
|
||||
### 其他
|
||||
|
||||
* 同步升级 RuoYi-Vue
|
||||
* GitHub 地址 [RuoYi-Vue-Plus-github](https://github.com/dromara/RuoYi-Vue-Plus)
|
||||
* 单模块 分支 [RuoYi-Vue-Plus-fast](https://gitee.com/dromara/RuoYi-Vue-Plus/tree/fast/)
|
||||
* 定期同步升级 RuoYi-Vue 有用的更新
|
||||
* GitHub 地址 [RuoYi-Vue-Plus](https://github.com/dromara/RuoYi-Vue-Plus)
|
||||
* 微服务 分支 [RuoYi-Cloud-Plus](https://gitee.com/JavaLionLi/RuoYi-Cloud-Plus)
|
||||
* 用户扩展项目 [扩展项目列表](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/pages?sort_id=4478302&doc_id=1469725)
|
||||
* 前端项目 地址 [plus-ui](https://gitee.com/JavaLionLi/plus-ui)
|
||||
* 用户扩展项目 [扩展项目列表](https://plus-doc.dromara.org/#/ruoyi-vue-plus/extend-project/list)
|
||||
|
||||
## 加群与捐献
|
||||
>[加群与捐献](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/加群与捐献?sort_id=4104598)
|
||||
>>[https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/加群与捐献?sort_id=4104598](https://gitee.com/dromara/RuoYi-Vue-Plus/wikis/加群与捐献?sort_id=4104598)
|
||||
>[加群与捐献](https://plus-doc.dromara.org/#/ruoyi-vue-plus/other/group_chat)
|
||||
>>[https://plus-doc.dromara.org/#/ruoyi-vue-plus/other/group_chat](https://plus-doc.dromara.org/#/ruoyi-vue-plus/other/group_chat)
|
||||
|
||||
## 捐献作者
|
||||
作者为兼职做开源,平时还需要工作,如果帮到了您可以请作者吃个盒饭
|
||||
<img src="https://images.gitee.com/uploads/images/2022/0218/213734_b1b8197f_1766278.jpeg" width="300px" height="450px" />
|
||||
<img src="https://images.gitee.com/uploads/images/2021/0525/101713_3d18b119_1766278.jpeg" width="300px" height="450px" />
|
||||
<img src="https://foruda.gitee.com/images/1678975784848381069/d8661ed9_1766278.png" width="300px" height="450px" />
|
||||
<img src="https://foruda.gitee.com/images/1678975801230205215/6f96229d_1766278.png" width="300px" height="450px" />
|
||||
|
||||
## 演示图例
|
||||
|
||||
@@ -169,3 +173,13 @@
|
||||
|  |  |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
218
pom.xml
218
pom.xml
@@ -4,46 +4,58 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-vue-plus</artifactId>
|
||||
<version>4.8.2</version>
|
||||
<version>${revision}</version>
|
||||
|
||||
<name>RuoYi-Vue-Plus</name>
|
||||
<url>https://gitee.com/dromara/RuoYi-Vue-Plus</url>
|
||||
<description>RuoYi-Vue-Plus后台管理系统</description>
|
||||
<description>RuoYi-Vue-Plus多租户管理系统</description>
|
||||
|
||||
<properties>
|
||||
<ruoyi-vue-plus.version>4.8.2</ruoyi-vue-plus.version>
|
||||
<spring-boot.version>2.7.18</spring-boot.version>
|
||||
<revision>5.1.2</revision>
|
||||
<spring-boot.version>3.1.7</spring-boot.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
|
||||
<spring-boot.mybatis>2.2.2</spring-boot.mybatis>
|
||||
<springdoc.version>1.6.15</springdoc.version>
|
||||
<java.version>17</java.version>
|
||||
<spring-boot.mybatis>3.0.3</spring-boot.mybatis>
|
||||
<springdoc.version>2.2.0</springdoc.version>
|
||||
<therapi-javadoc.version>0.15.0</therapi-javadoc.version>
|
||||
<poi.version>5.2.3</poi.version>
|
||||
<easyexcel.version>3.3.2</easyexcel.version>
|
||||
<easyexcel.version>3.3.3</easyexcel.version>
|
||||
<velocity.version>2.3</velocity.version>
|
||||
<satoken.version>1.37.0</satoken.version>
|
||||
<mybatis-plus.version>3.5.4</mybatis-plus.version>
|
||||
<p6spy.version>3.9.1</p6spy.version>
|
||||
<hutool.version>5.8.22</hutool.version>
|
||||
<okhttp.version>4.10.0</okhttp.version>
|
||||
<spring-boot-admin.version>2.7.11</spring-boot-admin.version>
|
||||
<redisson.version>3.20.1</redisson.version>
|
||||
<lock4j.version>2.2.3</lock4j.version>
|
||||
<dynamic-ds.version>3.5.2</dynamic-ds.version>
|
||||
<alibaba-ttl.version>2.14.2</alibaba-ttl.version>
|
||||
<xxl-job.version>2.4.0</xxl-job.version>
|
||||
<spring-boot-admin.version>3.1.8</spring-boot-admin.version>
|
||||
<redisson.version>3.24.3</redisson.version>
|
||||
<lock4j.version>2.2.5</lock4j.version>
|
||||
<dynamic-ds.version>4.2.0</dynamic-ds.version>
|
||||
<alibaba-ttl.version>2.14.4</alibaba-ttl.version>
|
||||
<powerjob.version>4.3.6</powerjob.version>
|
||||
<mapstruct-plus.version>1.3.5</mapstruct-plus.version>
|
||||
<mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
|
||||
<lombok.version>1.18.30</lombok.version>
|
||||
<bouncycastle.version>1.72</bouncycastle.version>
|
||||
<bouncycastle.version>1.76</bouncycastle.version>
|
||||
<justauth.version>1.16.6</justauth.version>
|
||||
<!-- 离线IP地址定位库 -->
|
||||
<ip2region.version>2.7.0</ip2region.version>
|
||||
|
||||
<!-- OSS 配置 -->
|
||||
<aws-java-sdk-s3.version>1.12.540</aws-java-sdk-s3.version>
|
||||
<aws-java-sdk-s3.version>1.12.600</aws-java-sdk-s3.version>
|
||||
<!-- SMS 配置 -->
|
||||
<sms4j.version>2.2.0</sms4j.version>
|
||||
<!-- 限制框架中的fastjson版本 -->
|
||||
<fastjson.version>1.2.83</fastjson.version>
|
||||
|
||||
<!-- 插件版本 -->
|
||||
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
|
||||
<maven-war-plugin.version>3.2.2</maven-war-plugin.version>
|
||||
<maven-compiler-plugin.verison>3.11.0</maven-compiler-plugin.verison>
|
||||
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
|
||||
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
@@ -98,18 +110,34 @@
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- JustAuth 的依赖配置-->
|
||||
<dependency>
|
||||
<groupId>org.springdoc</groupId>
|
||||
<artifactId>springdoc-openapi-webmvc-core</artifactId>
|
||||
<version>${springdoc.version}</version>
|
||||
<groupId>me.zhyd.oauth</groupId>
|
||||
<artifactId>JustAuth</artifactId>
|
||||
<version>${justauth.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- common 的依赖配置-->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-bom</artifactId>
|
||||
<version>${revision}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springdoc</groupId>
|
||||
<artifactId>springdoc-openapi-javadoc</artifactId>
|
||||
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
|
||||
<version>${springdoc.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.therapi</groupId>
|
||||
<artifactId>therapi-runtime-javadoc</artifactId>
|
||||
<version>${therapi-javadoc.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
@@ -148,7 +176,7 @@
|
||||
<!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
|
||||
<dependency>
|
||||
<groupId>cn.dev33</groupId>
|
||||
<artifactId>sa-token-spring-boot-starter</artifactId>
|
||||
<artifactId>sa-token-spring-boot3-starter</artifactId>
|
||||
<version>${satoken.version}</version>
|
||||
</dependency>
|
||||
<!-- Sa-Token 整合 jwt -->
|
||||
@@ -163,20 +191,37 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.dev33</groupId>
|
||||
<artifactId>sa-token-core</artifactId>
|
||||
<version>${satoken.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- dynamic-datasource 多数据源-->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
|
||||
<version>${dynamic-ds.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>${spring-boot.mybatis}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>${mybatis-plus.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-annotation</artifactId>
|
||||
<version>${mybatis-plus.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- sql性能分析插件 -->
|
||||
<dependency>
|
||||
<groupId>p6spy</groupId>
|
||||
@@ -195,7 +240,6 @@
|
||||
<artifactId>aws-java-sdk-s3</artifactId>
|
||||
<version>${aws-java-sdk-s3.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--短信sms4j-->
|
||||
<dependency>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
@@ -219,17 +263,6 @@
|
||||
<groupId>org.redisson</groupId>
|
||||
<artifactId>redisson-spring-boot-starter</artifactId>
|
||||
<version>${redisson.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.redisson</groupId>
|
||||
<artifactId>redisson-spring-data-30</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.redisson</groupId>
|
||||
<artifactId>redisson-spring-data-27</artifactId>
|
||||
<version>${redisson.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@@ -238,11 +271,16 @@
|
||||
<version>${lock4j.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- xxl-job-core -->
|
||||
<!-- PowerJob -->
|
||||
<dependency>
|
||||
<groupId>com.xuxueli</groupId>
|
||||
<artifactId>xxl-job-core</artifactId>
|
||||
<version>${xxl-job.version}</version>
|
||||
<groupId>tech.powerjob</groupId>
|
||||
<artifactId>powerjob-worker-spring-boot-starter</artifactId>
|
||||
<version>${powerjob.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>tech.powerjob</groupId>
|
||||
<artifactId>powerjob-official-processors</artifactId>
|
||||
<version>${powerjob.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@@ -251,13 +289,6 @@
|
||||
<version>${alibaba-ttl.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 离线IP地址定位库 ip2region -->
|
||||
<dependency>
|
||||
<groupId>org.lionsoul</groupId>
|
||||
<artifactId>ip2region</artifactId>
|
||||
<version>${ip2region.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 加密包引入 -->
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
@@ -265,12 +296,57 @@
|
||||
<version>${bouncycastle.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.github.linpeilie</groupId>
|
||||
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
|
||||
<version>${mapstruct-plus.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 离线IP地址定位库 ip2region -->
|
||||
<dependency>
|
||||
<groupId>org.lionsoul</groupId>
|
||||
<artifactId>ip2region</artifactId>
|
||||
<version>${ip2region.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>${fastjson.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-system</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-job</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-generator</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-demo</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<modules>
|
||||
<module>ruoyi</module>
|
||||
<module>ruoyi-admin</module>
|
||||
<module>ruoyi-common</module>
|
||||
<module>ruoyi-extend</module>
|
||||
<module>ruoyi-modules</module>
|
||||
</modules>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -279,7 +355,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.9.0</version>
|
||||
<version>${maven-compiler-plugin.verison}</version>
|
||||
<configuration>
|
||||
<source>${java.version}</source>
|
||||
<target>${java.version}</target>
|
||||
@@ -288,7 +364,7 @@
|
||||
<path>
|
||||
<groupId>com.github.therapi</groupId>
|
||||
<artifactId>therapi-runtime-javadoc-scribe</artifactId>
|
||||
<version>0.15.0</version>
|
||||
<version>${therapi-javadoc.version}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
@@ -300,22 +376,60 @@
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>io.github.linpeilie</groupId>
|
||||
<artifactId>mapstruct-plus-processor</artifactId>
|
||||
<version>${mapstruct-plus.version}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok-mapstruct-binding</artifactId>
|
||||
<version>${mapstruct-plus.lombok.version}</version>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
<compilerArgs>
|
||||
<arg>-parameters</arg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- 单元测试使用 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.2</version>
|
||||
<version>${maven-surefire-plugin.version}</version>
|
||||
<configuration>
|
||||
<argLine>-Dfile.encoding=UTF-8</argLine>
|
||||
<!-- 根据打包环境执行对应的@Tag测试方法 -->
|
||||
<groups>${profiles.active}</groups>
|
||||
<!-- 排除标签 -->
|
||||
<excludedGroups>exclude</excludedGroups>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- 统一版本号管理 -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>flatten-maven-plugin</artifactId>
|
||||
<version>${flatten-maven-plugin.version}</version>
|
||||
<configuration>
|
||||
<updatePomFile>true</updatePomFile>
|
||||
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>flatten</id>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>flatten</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>flatten.clean</id>
|
||||
<phase>clean</phase>
|
||||
<goals>
|
||||
<goal>clean</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
|
24
ruoyi-admin/Dockerfile
Normal file
24
ruoyi-admin/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
#FROM findepi/graalvm:java17-native
|
||||
FROM openjdk:17.0.2-oraclelinux8
|
||||
|
||||
MAINTAINER Lion Li
|
||||
|
||||
RUN mkdir -p /ruoyi/server/logs \
|
||||
/ruoyi/server/temp \
|
||||
/ruoyi/skywalking/agent
|
||||
|
||||
WORKDIR /ruoyi/server
|
||||
|
||||
ENV SERVER_PORT=8080 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
|
||||
|
||||
EXPOSE ${SERVER_PORT}
|
||||
|
||||
ADD ./target/ruoyi-admin.jar ./app.jar
|
||||
|
||||
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
|
||||
# 应用名称 如果想区分集群节点监控 改成不同的名称即可
|
||||
#-Dskywalking.agent.service_name=ruoyi-server \
|
||||
#-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \
|
||||
-jar app.jar \
|
||||
-XX:+HeapDumpOnOutOfMemoryError -Xlog:gc*,:time,tags,level -XX:+UseZGC ${JAVA_OPTS}
|
||||
|
140
ruoyi-admin/pom.xml
Normal file
140
ruoyi-admin/pom.xml
Normal file
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>ruoyi-vue-plus</artifactId>
|
||||
<groupId>org.dromara</groupId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>ruoyi-admin</artifactId>
|
||||
|
||||
<description>
|
||||
web服务入口
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- Mysql驱动包 -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
<!-- Oracle -->
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
</dependency>
|
||||
<!-- PostgreSql -->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
<!-- SqlServer -->
|
||||
<dependency>
|
||||
<groupId>com.microsoft.sqlserver</groupId>
|
||||
<artifactId>mssql-jdbc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-doc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-social</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-ratelimiter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-system</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-job</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 代码生成-->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-generator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- demo模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-demo</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>de.codecentric</groupId>
|
||||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>me.zhyd.oauth</groupId>
|
||||
<artifactId>JustAuth</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- skywalking 整合 logback -->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.apache.skywalking</groupId>-->
|
||||
<!-- <artifactId>apm-toolkit-logback-1.x</artifactId>-->
|
||||
<!-- <version>${与你的agent探针版本保持一致}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.apache.skywalking</groupId>-->
|
||||
<!-- <artifactId>apm-toolkit-trace</artifactId>-->
|
||||
<!-- <version>${与你的agent探针版本保持一致}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${maven-jar-plugin.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>${maven-war-plugin.version}</version>
|
||||
<configuration>
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
<warName>${project.artifactId}</warName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi;
|
||||
package org.dromara;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -7,15 +7,14 @@ import org.springframework.boot.context.metrics.buffering.BufferingApplicationSt
|
||||
/**
|
||||
* 启动程序
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author Lion Li
|
||||
*/
|
||||
|
||||
@SpringBootApplication
|
||||
public class RuoYiApplication {
|
||||
public class DromaraApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication application = new SpringApplication(RuoYiApplication.class);
|
||||
SpringApplication application = new SpringApplication(DromaraApplication.class);
|
||||
application.setApplicationStartup(new BufferingApplicationStartup(2048));
|
||||
application.run(args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ RuoYi-Vue-Plus启动成功 ლ(´ڡ`ლ)゙");
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi;
|
||||
package org.dromara;
|
||||
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
@@ -6,13 +6,13 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
||||
/**
|
||||
* web容器中进行部署
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author Lion Li
|
||||
*/
|
||||
public class RuoYiServletInitializer extends SpringBootServletInitializer {
|
||||
public class DromaraServletInitializer extends SpringBootServletInitializer {
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(RuoYiApplication.class);
|
||||
return application.sources(DromaraApplication.class);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,205 @@
|
||||
package org.dromara.web.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import me.zhyd.oauth.model.AuthResponse;
|
||||
import me.zhyd.oauth.model.AuthUser;
|
||||
import me.zhyd.oauth.request.AuthRequest;
|
||||
import me.zhyd.oauth.utils.AuthStateUtils;
|
||||
import org.dromara.common.core.constant.UserConstants;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.domain.model.LoginBody;
|
||||
import org.dromara.common.core.domain.model.RegisterBody;
|
||||
import org.dromara.common.core.domain.model.SocialLoginBody;
|
||||
import org.dromara.common.core.utils.*;
|
||||
import org.dromara.common.encrypt.annotation.ApiEncrypt;
|
||||
import org.dromara.common.json.utils.JsonUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.social.config.properties.SocialLoginConfigProperties;
|
||||
import org.dromara.common.social.config.properties.SocialProperties;
|
||||
import org.dromara.common.social.utils.SocialUtils;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.common.websocket.utils.WebSocketUtils;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.system.domain.bo.SysTenantBo;
|
||||
import org.dromara.system.domain.vo.SysTenantVo;
|
||||
import org.dromara.system.service.ISysClientService;
|
||||
import org.dromara.system.service.ISysConfigService;
|
||||
import org.dromara.system.service.ISysSocialService;
|
||||
import org.dromara.system.service.ISysTenantService;
|
||||
import org.dromara.web.domain.vo.LoginTenantVo;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
import org.dromara.web.domain.vo.TenantListVo;
|
||||
import org.dromara.web.service.IAuthStrategy;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.dromara.web.service.SysRegisterService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* 认证
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Slf4j
|
||||
@SaIgnore
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/auth")
|
||||
public class AuthController {
|
||||
|
||||
private final SocialProperties socialProperties;
|
||||
private final SysLoginService loginService;
|
||||
private final SysRegisterService registerService;
|
||||
private final ISysConfigService configService;
|
||||
private final ISysTenantService tenantService;
|
||||
private final ISysSocialService socialUserService;
|
||||
private final ISysClientService clientService;
|
||||
private final ScheduledExecutorService scheduledExecutorService;
|
||||
|
||||
|
||||
/**
|
||||
* 登录方法
|
||||
*
|
||||
* @param body 登录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@ApiEncrypt
|
||||
@PostMapping("/login")
|
||||
public R<LoginVo> login(@RequestBody String body) {
|
||||
LoginBody loginBody = JsonUtils.parseObject(body, LoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
// 授权类型和客户端id
|
||||
String clientId = loginBody.getClientId();
|
||||
String grantType = loginBody.getGrantType();
|
||||
SysClient client = clientService.queryByClientId(clientId);
|
||||
// 查询不到 client 或 client 内不包含 grantType
|
||||
if (ObjectUtil.isNull(client) || !StringUtils.contains(client.getGrantType(), grantType)) {
|
||||
log.info("客户端id: {} 认证类型:{} 异常!.", clientId, grantType);
|
||||
return R.fail(MessageUtils.message("auth.grant.type.error"));
|
||||
} else if (!UserConstants.NORMAL.equals(client.getStatus())) {
|
||||
return R.fail(MessageUtils.message("auth.grant.type.blocked"));
|
||||
}
|
||||
// 校验租户
|
||||
loginService.checkTenant(loginBody.getTenantId());
|
||||
// 登录
|
||||
LoginVo loginVo = IAuthStrategy.login(body, client, grantType);
|
||||
|
||||
Long userId = LoginHelper.getUserId();
|
||||
scheduledExecutorService.schedule(() -> {
|
||||
WebSocketUtils.sendMessage(userId, "欢迎登录RuoYi-Vue-Plus后台管理系统");
|
||||
}, 3, TimeUnit.SECONDS);
|
||||
return R.ok(loginVo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 第三方登录请求
|
||||
*
|
||||
* @param source 登录来源
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/binding/{source}")
|
||||
public R<String> authBinding(@PathVariable("source") String source) {
|
||||
SocialLoginConfigProperties obj = socialProperties.getType().get(source);
|
||||
if (ObjectUtil.isNull(obj)) {
|
||||
return R.fail(source + "平台账号暂不支持");
|
||||
}
|
||||
AuthRequest authRequest = SocialUtils.getAuthRequest(source, socialProperties);
|
||||
String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
|
||||
return R.ok("操作成功", authorizeUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 第三方登录回调业务处理 绑定授权
|
||||
*
|
||||
* @param loginBody 请求体
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/social/callback")
|
||||
public R<Void> socialCallback(@RequestBody SocialLoginBody loginBody) {
|
||||
// 获取第三方登录信息
|
||||
AuthResponse<AuthUser> response = SocialUtils.loginAuth(
|
||||
loginBody.getSource(), loginBody.getSocialCode(),
|
||||
loginBody.getSocialState(), socialProperties);
|
||||
AuthUser authUserData = response.getData();
|
||||
// 判断授权响应是否成功
|
||||
if (!response.ok()) {
|
||||
return R.fail(response.getMsg());
|
||||
}
|
||||
loginService.socialRegister(authUserData);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 取消授权
|
||||
*
|
||||
* @param socialId socialId
|
||||
*/
|
||||
@DeleteMapping(value = "/unlock/{socialId}")
|
||||
public R<Void> unlockSocial(@PathVariable Long socialId) {
|
||||
Boolean rows = socialUserService.deleteWithValidById(socialId);
|
||||
return rows ? R.ok() : R.fail("取消授权失败");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
@PostMapping("/logout")
|
||||
public R<Void> logout() {
|
||||
loginService.logout();
|
||||
return R.ok("退出成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户注册
|
||||
*/
|
||||
@ApiEncrypt
|
||||
@PostMapping("/register")
|
||||
public R<Void> register(@Validated @RequestBody RegisterBody user) {
|
||||
if (!configService.selectRegisterEnabled(user.getTenantId())) {
|
||||
return R.fail("当前系统没有开启注册功能!");
|
||||
}
|
||||
registerService.register(user);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录页面租户下拉框
|
||||
*
|
||||
* @return 租户列表
|
||||
*/
|
||||
@GetMapping("/tenant/list")
|
||||
public R<LoginTenantVo> tenantList(HttpServletRequest request) throws Exception {
|
||||
List<SysTenantVo> tenantList = tenantService.queryList(new SysTenantBo());
|
||||
List<TenantListVo> voList = MapstructUtils.convert(tenantList, TenantListVo.class);
|
||||
// 获取域名
|
||||
String host;
|
||||
String referer = request.getHeader("referer");
|
||||
if (StringUtils.isNotBlank(referer)) {
|
||||
// 这里从referer中取值是为了本地使用hosts添加虚拟域名,方便本地环境调试
|
||||
host = referer.split("//")[1].split("/")[0];
|
||||
} else {
|
||||
host = new URL(request.getRequestURL().toString()).getHost();
|
||||
}
|
||||
// 根据域名进行筛选
|
||||
List<TenantListVo> list = StreamUtils.filter(voList, vo ->
|
||||
StringUtils.equals(vo.getDomain(), host));
|
||||
// 返回对象
|
||||
LoginTenantVo vo = new LoginTenantVo();
|
||||
vo.setVoList(CollUtil.isNotEmpty(list) ? list : voList);
|
||||
vo.setTenantEnabled(TenantHelper.isEnable());
|
||||
return R.ok(vo);
|
||||
}
|
||||
|
||||
}
|
@@ -1,28 +1,31 @@
|
||||
package com.ruoyi.web.controller.common;
|
||||
package org.dromara.web.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import cn.hutool.captcha.AbstractCaptcha;
|
||||
import cn.hutool.captcha.generator.CodeGenerator;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import com.ruoyi.common.constant.CacheConstants;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.enums.CaptchaType;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.email.MailUtils;
|
||||
import com.ruoyi.common.utils.redis.RedisUtils;
|
||||
import com.ruoyi.common.utils.reflect.ReflectUtils;
|
||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||
import com.ruoyi.framework.config.properties.CaptchaProperties;
|
||||
import com.ruoyi.framework.config.properties.MailProperties;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.utils.SpringUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.core.utils.reflect.ReflectUtils;
|
||||
import org.dromara.common.mail.config.properties.MailProperties;
|
||||
import org.dromara.common.mail.utils.MailUtils;
|
||||
import org.dromara.common.ratelimiter.annotation.RateLimiter;
|
||||
import org.dromara.common.ratelimiter.enums.LimitType;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.web.config.properties.CaptchaProperties;
|
||||
import org.dromara.common.web.enums.CaptchaType;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.core.factory.SmsFactory;
|
||||
import org.dromara.sms4j.provider.enumerate.SupplierType;
|
||||
import org.dromara.web.domain.vo.CaptchaVo;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.expression.Expression;
|
||||
import org.springframework.expression.ExpressionParser;
|
||||
import org.springframework.expression.spel.standard.SpelExpressionParser;
|
||||
@@ -30,11 +33,8 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.time.Duration;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 验证码操作处理
|
||||
@@ -49,7 +49,6 @@ import java.util.Map;
|
||||
public class CaptchaController {
|
||||
|
||||
private final CaptchaProperties captchaProperties;
|
||||
private final ISysConfigService configService;
|
||||
private final MailProperties mailProperties;
|
||||
|
||||
/**
|
||||
@@ -57,9 +56,10 @@ public class CaptchaController {
|
||||
*
|
||||
* @param phonenumber 用户手机号
|
||||
*/
|
||||
@GetMapping("/captchaSms")
|
||||
public R<Void> smsCaptcha(@NotBlank(message = "{user.phonenumber.not.blank}") String phonenumber) {
|
||||
String key = CacheConstants.CAPTCHA_CODE_KEY + phonenumber;
|
||||
@RateLimiter(key = "#phonenumber", time = 60, count = 1)
|
||||
@GetMapping("/resource/sms/code")
|
||||
public R<Void> smsCode(@NotBlank(message = "{user.phonenumber.not.blank}") String phonenumber) {
|
||||
String key = GlobalConstants.CAPTCHA_CODE_KEY + phonenumber;
|
||||
String code = RandomUtil.randomNumbers(4);
|
||||
RedisUtils.setCacheObject(key, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION));
|
||||
// 验证码模板id 自行处理 (查数据库或写死均可)
|
||||
@@ -80,12 +80,13 @@ public class CaptchaController {
|
||||
*
|
||||
* @param email 邮箱
|
||||
*/
|
||||
@GetMapping("/captchaEmail")
|
||||
@RateLimiter(key = "#email", time = 60, count = 1)
|
||||
@GetMapping("/resource/email/code")
|
||||
public R<Void> emailCode(@NotBlank(message = "{user.email.not.blank}") String email) {
|
||||
if (!mailProperties.getEnabled()) {
|
||||
return R.fail("当前系统没有开启邮箱功能!");
|
||||
}
|
||||
String key = CacheConstants.CAPTCHA_CODE_KEY + email;
|
||||
String key = GlobalConstants.CAPTCHA_CODE_KEY + email;
|
||||
String code = RandomUtil.randomNumbers(4);
|
||||
RedisUtils.setCacheObject(key, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION));
|
||||
try {
|
||||
@@ -100,17 +101,18 @@ public class CaptchaController {
|
||||
/**
|
||||
* 生成验证码
|
||||
*/
|
||||
@GetMapping("/captchaImage")
|
||||
public R<Map<String, Object>> getCode() {
|
||||
Map<String, Object> ajax = new HashMap<>();
|
||||
boolean captchaEnabled = configService.selectCaptchaEnabled();
|
||||
ajax.put("captchaEnabled", captchaEnabled);
|
||||
@RateLimiter(time = 60, count = 10, limitType = LimitType.IP)
|
||||
@GetMapping("/auth/code")
|
||||
public R<CaptchaVo> getCode() {
|
||||
CaptchaVo captchaVo = new CaptchaVo();
|
||||
boolean captchaEnabled = captchaProperties.getEnable();
|
||||
if (!captchaEnabled) {
|
||||
return R.ok(ajax);
|
||||
captchaVo.setCaptchaEnabled(false);
|
||||
return R.ok(captchaVo);
|
||||
}
|
||||
// 保存验证码信息
|
||||
String uuid = IdUtil.simpleUUID();
|
||||
String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + uuid;
|
||||
String verifyKey = GlobalConstants.CAPTCHA_CODE_KEY + uuid;
|
||||
// 生成验证码
|
||||
CaptchaType captchaType = captchaProperties.getType();
|
||||
boolean isMath = CaptchaType.MATH == captchaType;
|
||||
@@ -126,9 +128,9 @@ public class CaptchaController {
|
||||
code = exp.getValue(String.class);
|
||||
}
|
||||
RedisUtils.setCacheObject(verifyKey, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION));
|
||||
ajax.put("uuid", uuid);
|
||||
ajax.put("img", captcha.getImageBase64());
|
||||
return R.ok(ajax);
|
||||
captchaVo.setUuid(uuid);
|
||||
captchaVo.setImg(captcha.getImageBase64());
|
||||
return R.ok(captchaVo);
|
||||
}
|
||||
|
||||
}
|
@@ -1,8 +1,8 @@
|
||||
package com.ruoyi.web.controller.system;
|
||||
package org.dromara.web.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import org.dromara.common.core.config.RuoYiConfig;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@@ -12,9 +12,10 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@SaIgnore
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
public class SysIndexController {
|
||||
public class IndexController {
|
||||
|
||||
/**
|
||||
* 系统基础配置
|
||||
@@ -24,7 +25,6 @@ public class SysIndexController {
|
||||
/**
|
||||
* 访问首页,提示语
|
||||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/")
|
||||
public String index() {
|
||||
return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion());
|
@@ -0,0 +1,25 @@
|
||||
package org.dromara.web.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 验证码信息
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Data
|
||||
public class CaptchaVo {
|
||||
|
||||
/**
|
||||
* 是否开启验证码
|
||||
*/
|
||||
private Boolean captchaEnabled = true;
|
||||
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 验证码图片
|
||||
*/
|
||||
private String img;
|
||||
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
package org.dromara.web.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 登录租户对象
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Data
|
||||
public class LoginTenantVo {
|
||||
|
||||
/**
|
||||
* 租户开关
|
||||
*/
|
||||
private Boolean tenantEnabled;
|
||||
|
||||
/**
|
||||
* 租户对象列表
|
||||
*/
|
||||
private List<TenantListVo> voList;
|
||||
|
||||
}
|
@@ -0,0 +1,54 @@
|
||||
package org.dromara.web.domain.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 登录验证信息
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Data
|
||||
public class LoginVo {
|
||||
|
||||
/**
|
||||
* 授权令牌
|
||||
*/
|
||||
@JsonProperty("access_token")
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
@JsonProperty("refresh_token")
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 授权令牌 access_token 的有效期
|
||||
*/
|
||||
@JsonProperty("expire_in")
|
||||
private Long expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌 refresh_token 的有效期
|
||||
*/
|
||||
@JsonProperty("refresh_expire_in")
|
||||
private Long refreshExpireIn;
|
||||
|
||||
/**
|
||||
* 应用id
|
||||
*/
|
||||
@JsonProperty("client_id")
|
||||
private String clientId;
|
||||
|
||||
/**
|
||||
* 令牌权限
|
||||
*/
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 用户 openid
|
||||
*/
|
||||
private String openid;
|
||||
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
package org.dromara.web.domain.vo;
|
||||
|
||||
import org.dromara.system.domain.vo.SysTenantVo;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 租户列表
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Data
|
||||
@AutoMapper(target = SysTenantVo.class)
|
||||
public class TenantListVo {
|
||||
|
||||
private String tenantId;
|
||||
|
||||
private String companyName;
|
||||
|
||||
private String domain;
|
||||
|
||||
}
|
@@ -1,20 +1,24 @@
|
||||
package com.ruoyi.framework.listener;
|
||||
package org.dromara.web.listener;
|
||||
|
||||
import cn.dev33.satoken.config.SaTokenConfig;
|
||||
import cn.dev33.satoken.listener.SaTokenListener;
|
||||
import cn.dev33.satoken.stp.SaLoginModel;
|
||||
import cn.hutool.http.useragent.UserAgent;
|
||||
import cn.hutool.http.useragent.UserAgentUtil;
|
||||
import com.ruoyi.common.constant.CacheConstants;
|
||||
import com.ruoyi.common.core.domain.dto.UserOnlineDTO;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.enums.UserType;
|
||||
import com.ruoyi.common.helper.LoginHelper;
|
||||
import com.ruoyi.common.utils.ServletUtils;
|
||||
import com.ruoyi.common.utils.ip.AddressUtils;
|
||||
import com.ruoyi.common.utils.redis.RedisUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.constant.CacheConstants;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.domain.dto.UserOnlineDTO;
|
||||
import org.dromara.common.core.domain.model.LoginUser;
|
||||
import org.dromara.common.core.utils.MessageUtils;
|
||||
import org.dromara.common.core.utils.ServletUtils;
|
||||
import org.dromara.common.core.utils.SpringUtils;
|
||||
import org.dromara.common.core.utils.ip.AddressUtils;
|
||||
import org.dromara.common.log.event.LogininforEvent;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.Duration;
|
||||
@@ -30,35 +34,43 @@ import java.time.Duration;
|
||||
public class UserActionListener implements SaTokenListener {
|
||||
|
||||
private final SaTokenConfig tokenConfig;
|
||||
private final SysLoginService loginService;
|
||||
|
||||
/**
|
||||
* 每次登录时触发
|
||||
*/
|
||||
@Override
|
||||
public void doLogin(String loginType, Object loginId, String tokenValue, SaLoginModel loginModel) {
|
||||
UserType userType = UserType.getUserType(loginId.toString());
|
||||
if (userType == UserType.SYS_USER) {
|
||||
UserAgent userAgent = UserAgentUtil.parse(ServletUtils.getRequest().getHeader("User-Agent"));
|
||||
String ip = ServletUtils.getClientIP();
|
||||
LoginUser user = LoginHelper.getLoginUser();
|
||||
UserOnlineDTO dto = new UserOnlineDTO();
|
||||
dto.setIpaddr(ip);
|
||||
dto.setLoginLocation(AddressUtils.getRealAddressByIP(ip));
|
||||
dto.setBrowser(userAgent.getBrowser().getName());
|
||||
dto.setOs(userAgent.getOs().getName());
|
||||
dto.setLoginTime(System.currentTimeMillis());
|
||||
dto.setTokenId(tokenValue);
|
||||
dto.setUserName(user.getUsername());
|
||||
dto.setDeptName(user.getDeptName());
|
||||
if(tokenConfig.getTimeout() == -1) {
|
||||
RedisUtils.setCacheObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue, dto);
|
||||
} else {
|
||||
RedisUtils.setCacheObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue, dto, Duration.ofSeconds(tokenConfig.getTimeout()));
|
||||
}
|
||||
log.info("user doLogin, userId:{}, token:{}", loginId, tokenValue);
|
||||
} else if (userType == UserType.APP_USER) {
|
||||
// app端 自行根据业务编写
|
||||
UserAgent userAgent = UserAgentUtil.parse(ServletUtils.getRequest().getHeader("User-Agent"));
|
||||
String ip = ServletUtils.getClientIP();
|
||||
LoginUser user = LoginHelper.getLoginUser();
|
||||
UserOnlineDTO dto = new UserOnlineDTO();
|
||||
dto.setIpaddr(ip);
|
||||
dto.setLoginLocation(AddressUtils.getRealAddressByIP(ip));
|
||||
dto.setBrowser(userAgent.getBrowser().getName());
|
||||
dto.setOs(userAgent.getOs().getName());
|
||||
dto.setLoginTime(System.currentTimeMillis());
|
||||
dto.setTokenId(tokenValue);
|
||||
dto.setUserName(user.getUsername());
|
||||
dto.setClientKey(user.getClientKey());
|
||||
dto.setDeviceType(user.getDeviceType());
|
||||
dto.setDeptName(user.getDeptName());
|
||||
if(tokenConfig.getTimeout() == -1) {
|
||||
RedisUtils.setCacheObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue, dto);
|
||||
} else {
|
||||
RedisUtils.setCacheObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue, dto, Duration.ofSeconds(tokenConfig.getTimeout()));
|
||||
}
|
||||
// 记录登录日志
|
||||
LogininforEvent logininforEvent = new LogininforEvent();
|
||||
logininforEvent.setTenantId(user.getTenantId());
|
||||
logininforEvent.setUsername(user.getUsername());
|
||||
logininforEvent.setStatus(Constants.LOGIN_SUCCESS);
|
||||
logininforEvent.setMessage(MessageUtils.message("user.login.success"));
|
||||
logininforEvent.setRequest(ServletUtils.getRequest());
|
||||
SpringUtils.context().publishEvent(logininforEvent);
|
||||
// 更新登录信息
|
||||
loginService.recordLoginInfo(user.getUserId(), ip);
|
||||
log.info("user doLogin, userId:{}, token:{}", loginId, tokenValue);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,7 +88,7 @@ public class UserActionListener implements SaTokenListener {
|
||||
@Override
|
||||
public void doKickout(String loginType, Object loginId, String tokenValue) {
|
||||
RedisUtils.deleteObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue);
|
||||
log.info("user doLogoutByLoginId, userId:{}, token:{}", loginId, tokenValue);
|
||||
log.info("user doKickout, userId:{}, token:{}", loginId, tokenValue);
|
||||
}
|
||||
|
||||
/**
|
@@ -0,0 +1,36 @@
|
||||
package org.dromara.web.service;
|
||||
|
||||
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.common.core.utils.SpringUtils;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
|
||||
/**
|
||||
* 授权策略
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
public interface IAuthStrategy {
|
||||
|
||||
String BASE_NAME = "AuthStrategy";
|
||||
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
static LoginVo login(String body, SysClient client, String grantType) {
|
||||
// 授权类型和客户端id
|
||||
String beanName = grantType + BASE_NAME;
|
||||
if (!SpringUtils.containsBean(beanName)) {
|
||||
throw new ServiceException("授权类型不正确!");
|
||||
}
|
||||
IAuthStrategy instance = SpringUtils.getBean(beanName);
|
||||
return instance.login(body, client);
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
LoginVo login(String body, SysClient client);
|
||||
|
||||
}
|
@@ -0,0 +1,232 @@
|
||||
package org.dromara.web.service;
|
||||
|
||||
import cn.dev33.satoken.exception.NotLoginException;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import me.zhyd.oauth.model.AuthUser;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.constant.TenantConstants;
|
||||
import org.dromara.common.core.domain.dto.RoleDTO;
|
||||
import org.dromara.common.core.domain.model.LoginUser;
|
||||
import org.dromara.common.core.enums.LoginType;
|
||||
import org.dromara.common.core.enums.TenantStatus;
|
||||
import org.dromara.common.core.exception.user.UserException;
|
||||
import org.dromara.common.core.utils.*;
|
||||
import org.dromara.common.log.event.LogininforEvent;
|
||||
import org.dromara.common.mybatis.helper.DataPermissionHelper;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.tenant.exception.TenantException;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.system.domain.SysUser;
|
||||
import org.dromara.system.domain.bo.SysSocialBo;
|
||||
import org.dromara.system.domain.vo.SysSocialVo;
|
||||
import org.dromara.system.domain.vo.SysTenantVo;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.system.mapper.SysUserMapper;
|
||||
import org.dromara.system.service.ISysPermissionService;
|
||||
import org.dromara.system.service.ISysSocialService;
|
||||
import org.dromara.system.service.ISysTenantService;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* 登录校验方法
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
@Service
|
||||
public class SysLoginService {
|
||||
|
||||
@Value("${user.password.maxRetryCount}")
|
||||
private Integer maxRetryCount;
|
||||
|
||||
@Value("${user.password.lockTime}")
|
||||
private Integer lockTime;
|
||||
|
||||
private final ISysTenantService tenantService;
|
||||
private final ISysPermissionService permissionService;
|
||||
private final ISysSocialService sysSocialService;
|
||||
private final SysUserMapper userMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 绑定第三方用户
|
||||
*
|
||||
* @param authUserData 授权响应实体
|
||||
* @return 统一响应实体
|
||||
*/
|
||||
public void socialRegister(AuthUser authUserData) {
|
||||
String authId = authUserData.getSource() + authUserData.getUuid();
|
||||
// 第三方用户信息
|
||||
SysSocialBo bo = BeanUtil.toBean(authUserData, SysSocialBo.class);
|
||||
BeanUtil.copyProperties(authUserData.getToken(), bo);
|
||||
bo.setUserId(LoginHelper.getUserId());
|
||||
bo.setAuthId(authId);
|
||||
bo.setOpenId(authUserData.getUuid());
|
||||
bo.setUserName(authUserData.getUsername());
|
||||
bo.setNickName(authUserData.getNickname());
|
||||
// 查询是否已经绑定用户
|
||||
List<SysSocialVo> list = sysSocialService.selectByAuthId(authId);
|
||||
if (CollUtil.isEmpty(list)) {
|
||||
// 没有绑定用户, 新增用户信息
|
||||
sysSocialService.insertByBo(bo);
|
||||
} else {
|
||||
// 更新用户信息
|
||||
bo.setId(list.get(0).getId());
|
||||
sysSocialService.updateByBo(bo);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
public void logout() {
|
||||
try {
|
||||
LoginUser loginUser = LoginHelper.getLoginUser();
|
||||
if (ObjectUtil.isNull(loginUser)) {
|
||||
return;
|
||||
}
|
||||
if (TenantHelper.isEnable() && LoginHelper.isSuperAdmin()) {
|
||||
// 超级管理员 登出清除动态租户
|
||||
TenantHelper.clearDynamic();
|
||||
}
|
||||
recordLogininfor(loginUser.getTenantId(), loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"));
|
||||
} catch (NotLoginException ignored) {
|
||||
} finally {
|
||||
try {
|
||||
StpUtil.logout();
|
||||
} catch (NotLoginException ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录登录信息
|
||||
*
|
||||
* @param tenantId 租户ID
|
||||
* @param username 用户名
|
||||
* @param status 状态
|
||||
* @param message 消息内容
|
||||
*/
|
||||
public void recordLogininfor(String tenantId, String username, String status, String message) {
|
||||
LogininforEvent logininforEvent = new LogininforEvent();
|
||||
logininforEvent.setTenantId(tenantId);
|
||||
logininforEvent.setUsername(username);
|
||||
logininforEvent.setStatus(status);
|
||||
logininforEvent.setMessage(message);
|
||||
logininforEvent.setRequest(ServletUtils.getRequest());
|
||||
SpringUtils.context().publishEvent(logininforEvent);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 构建登录用户
|
||||
*/
|
||||
public LoginUser buildLoginUser(SysUserVo user) {
|
||||
LoginUser loginUser = new LoginUser();
|
||||
loginUser.setTenantId(user.getTenantId());
|
||||
loginUser.setUserId(user.getUserId());
|
||||
loginUser.setDeptId(user.getDeptId());
|
||||
loginUser.setUsername(user.getUserName());
|
||||
loginUser.setNickname(user.getNickName());
|
||||
loginUser.setUserType(user.getUserType());
|
||||
loginUser.setMenuPermission(permissionService.getMenuPermission(user.getUserId()));
|
||||
loginUser.setRolePermission(permissionService.getRolePermission(user.getUserId()));
|
||||
loginUser.setDeptName(ObjectUtil.isNull(user.getDept()) ? "" : user.getDept().getDeptName());
|
||||
List<RoleDTO> roles = BeanUtil.copyToList(user.getRoles(), RoleDTO.class);
|
||||
loginUser.setRoles(roles);
|
||||
return loginUser;
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录登录信息
|
||||
*
|
||||
* @param userId 用户ID
|
||||
*/
|
||||
public void recordLoginInfo(Long userId, String ip) {
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserId(userId);
|
||||
sysUser.setLoginIp(ip);
|
||||
sysUser.setLoginDate(DateUtils.getNowDate());
|
||||
sysUser.setUpdateBy(userId);
|
||||
DataPermissionHelper.ignore(() -> userMapper.updateById(sysUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录校验
|
||||
*/
|
||||
public void checkLogin(LoginType loginType, String tenantId, String username, Supplier<Boolean> supplier) {
|
||||
String errorKey = GlobalConstants.PWD_ERR_CNT_KEY + username;
|
||||
String loginFail = Constants.LOGIN_FAIL;
|
||||
|
||||
// 获取用户登录错误次数,默认为0 (可自定义限制策略 例如: key + username + ip)
|
||||
int errorNumber = ObjectUtil.defaultIfNull(RedisUtils.getCacheObject(errorKey), 0);
|
||||
// 锁定时间内登录 则踢出
|
||||
if (errorNumber >= maxRetryCount) {
|
||||
recordLogininfor(tenantId, username, loginFail, MessageUtils.message(loginType.getRetryLimitExceed(), maxRetryCount, lockTime));
|
||||
throw new UserException(loginType.getRetryLimitExceed(), maxRetryCount, lockTime);
|
||||
}
|
||||
|
||||
if (supplier.get()) {
|
||||
// 错误次数递增
|
||||
errorNumber++;
|
||||
RedisUtils.setCacheObject(errorKey, errorNumber, Duration.ofMinutes(lockTime));
|
||||
// 达到规定错误次数 则锁定登录
|
||||
if (errorNumber >= maxRetryCount) {
|
||||
recordLogininfor(tenantId, username, loginFail, MessageUtils.message(loginType.getRetryLimitExceed(), maxRetryCount, lockTime));
|
||||
throw new UserException(loginType.getRetryLimitExceed(), maxRetryCount, lockTime);
|
||||
} else {
|
||||
// 未达到规定错误次数
|
||||
recordLogininfor(tenantId, username, loginFail, MessageUtils.message(loginType.getRetryLimitCount(), errorNumber));
|
||||
throw new UserException(loginType.getRetryLimitCount(), errorNumber);
|
||||
}
|
||||
}
|
||||
|
||||
// 登录成功 清空错误次数
|
||||
RedisUtils.deleteObject(errorKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验租户
|
||||
*
|
||||
* @param tenantId 租户ID
|
||||
*/
|
||||
public void checkTenant(String tenantId) {
|
||||
if (!TenantHelper.isEnable()) {
|
||||
return;
|
||||
}
|
||||
if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) {
|
||||
return;
|
||||
}
|
||||
if (StringUtils.isBlank(tenantId)) {
|
||||
throw new TenantException("tenant.number.not.blank");
|
||||
}
|
||||
SysTenantVo tenant = tenantService.queryByTenantId(tenantId);
|
||||
if (ObjectUtil.isNull(tenant)) {
|
||||
log.info("登录租户:{} 不存在.", tenantId);
|
||||
throw new TenantException("tenant.not.exists");
|
||||
} else if (TenantStatus.DISABLE.getCode().equals(tenant.getStatus())) {
|
||||
log.info("登录租户:{} 已被停用.", tenantId);
|
||||
throw new TenantException("tenant.blocked");
|
||||
} else if (ObjectUtil.isNotNull(tenant.getExpireTime())
|
||||
&& new Date().after(tenant.getExpireTime())) {
|
||||
log.info("登录租户:{} 已超过有效期.", tenantId);
|
||||
throw new TenantException("tenant.expired");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,117 @@
|
||||
package org.dromara.web.service;
|
||||
|
||||
import cn.dev33.satoken.secure.BCrypt;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.domain.model.RegisterBody;
|
||||
import org.dromara.common.core.enums.UserType;
|
||||
import org.dromara.common.core.exception.user.CaptchaException;
|
||||
import org.dromara.common.core.exception.user.CaptchaExpireException;
|
||||
import org.dromara.common.core.exception.user.UserException;
|
||||
import org.dromara.common.core.utils.MessageUtils;
|
||||
import org.dromara.common.core.utils.ServletUtils;
|
||||
import org.dromara.common.core.utils.SpringUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.log.event.LogininforEvent;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.common.web.config.properties.CaptchaProperties;
|
||||
import org.dromara.system.domain.SysUser;
|
||||
import org.dromara.system.domain.bo.SysUserBo;
|
||||
import org.dromara.system.mapper.SysUserMapper;
|
||||
import org.dromara.system.service.ISysUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 注册校验方法
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class SysRegisterService {
|
||||
|
||||
private final ISysUserService userService;
|
||||
private final SysUserMapper userMapper;
|
||||
private final CaptchaProperties captchaProperties;
|
||||
|
||||
/**
|
||||
* 注册
|
||||
*/
|
||||
public void register(RegisterBody registerBody) {
|
||||
String tenantId = registerBody.getTenantId();
|
||||
String username = registerBody.getUsername();
|
||||
String password = registerBody.getPassword();
|
||||
// 校验用户类型是否存在
|
||||
String userType = UserType.getUserType(registerBody.getUserType()).getUserType();
|
||||
|
||||
boolean captchaEnabled = captchaProperties.getEnable();
|
||||
// 验证码开关
|
||||
if (captchaEnabled) {
|
||||
validateCaptcha(tenantId, username, registerBody.getCode(), registerBody.getUuid());
|
||||
}
|
||||
SysUserBo sysUser = new SysUserBo();
|
||||
sysUser.setUserName(username);
|
||||
sysUser.setNickName(username);
|
||||
sysUser.setPassword(BCrypt.hashpw(password));
|
||||
sysUser.setUserType(userType);
|
||||
|
||||
boolean exist = TenantHelper.dynamic(tenantId, () -> {
|
||||
return userMapper.exists(new LambdaQueryWrapper<SysUser>()
|
||||
.eq(SysUser::getUserName, sysUser.getUserName())
|
||||
.ne(ObjectUtil.isNotNull(sysUser.getUserId()), SysUser::getUserId, sysUser.getUserId()));
|
||||
});
|
||||
if (exist) {
|
||||
throw new UserException("user.register.save.error", username);
|
||||
}
|
||||
boolean regFlag = userService.registerUser(sysUser, tenantId);
|
||||
if (!regFlag) {
|
||||
throw new UserException("user.register.error");
|
||||
}
|
||||
recordLogininfor(tenantId, username, Constants.REGISTER, MessageUtils.message("user.register.success"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验验证码
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param code 验证码
|
||||
* @param uuid 唯一标识
|
||||
*/
|
||||
public void validateCaptcha(String tenantId, String username, String code, String uuid) {
|
||||
String verifyKey = GlobalConstants.CAPTCHA_CODE_KEY + StringUtils.defaultString(uuid, "");
|
||||
String captcha = RedisUtils.getCacheObject(verifyKey);
|
||||
RedisUtils.deleteObject(verifyKey);
|
||||
if (captcha == null) {
|
||||
recordLogininfor(tenantId, username, Constants.REGISTER, MessageUtils.message("user.jcaptcha.expire"));
|
||||
throw new CaptchaExpireException();
|
||||
}
|
||||
if (!code.equalsIgnoreCase(captcha)) {
|
||||
recordLogininfor(tenantId, username, Constants.REGISTER, MessageUtils.message("user.jcaptcha.error"));
|
||||
throw new CaptchaException();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录登录信息
|
||||
*
|
||||
* @param tenantId 租户ID
|
||||
* @param username 用户名
|
||||
* @param status 状态
|
||||
* @param message 消息内容
|
||||
* @return
|
||||
*/
|
||||
private void recordLogininfor(String tenantId, String username, String status, String message) {
|
||||
LogininforEvent logininforEvent = new LogininforEvent();
|
||||
logininforEvent.setTenantId(tenantId);
|
||||
logininforEvent.setUsername(username);
|
||||
logininforEvent.setStatus(status);
|
||||
logininforEvent.setMessage(message);
|
||||
logininforEvent.setRequest(ServletUtils.getRequest());
|
||||
SpringUtils.context().publishEvent(logininforEvent);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,107 @@
|
||||
package org.dromara.web.service.impl;
|
||||
|
||||
import cn.dev33.satoken.stp.SaLoginModel;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.domain.model.EmailLoginBody;
|
||||
import org.dromara.common.core.domain.model.LoginUser;
|
||||
import org.dromara.common.core.enums.LoginType;
|
||||
import org.dromara.common.core.enums.UserStatus;
|
||||
import org.dromara.common.core.exception.user.CaptchaExpireException;
|
||||
import org.dromara.common.core.exception.user.UserException;
|
||||
import org.dromara.common.core.utils.MessageUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.core.utils.ValidatorUtils;
|
||||
import org.dromara.common.json.utils.JsonUtils;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.system.domain.SysUser;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.system.mapper.SysUserMapper;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
import org.dromara.web.service.IAuthStrategy;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 邮件认证策略
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Slf4j
|
||||
@Service("email" + IAuthStrategy.BASE_NAME)
|
||||
@RequiredArgsConstructor
|
||||
public class EmailAuthStrategy implements IAuthStrategy {
|
||||
|
||||
private final SysLoginService loginService;
|
||||
private final SysUserMapper userMapper;
|
||||
|
||||
@Override
|
||||
public LoginVo login(String body, SysClient client) {
|
||||
EmailLoginBody loginBody = JsonUtils.parseObject(body, EmailLoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
String tenantId = loginBody.getTenantId();
|
||||
String email = loginBody.getEmail();
|
||||
String emailCode = loginBody.getEmailCode();
|
||||
|
||||
// 通过邮箱查找用户
|
||||
SysUserVo user = loadUserByEmail(tenantId, email);
|
||||
|
||||
loginService.checkLogin(LoginType.EMAIL, tenantId, user.getUserName(), () -> !validateEmailCode(tenantId, email, emailCode));
|
||||
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
||||
LoginUser loginUser = loginService.buildLoginUser(user);
|
||||
loginUser.setClientKey(client.getClientKey());
|
||||
loginUser.setDeviceType(client.getDeviceType());
|
||||
SaLoginModel model = new SaLoginModel();
|
||||
model.setDevice(client.getDeviceType());
|
||||
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
||||
// 例如: 后台用户30分钟过期 app用户1天过期
|
||||
model.setTimeout(client.getTimeout());
|
||||
model.setActiveTimeout(client.getActiveTimeout());
|
||||
model.setExtra(LoginHelper.CLIENT_KEY, client.getClientId());
|
||||
// 生成token
|
||||
LoginHelper.login(loginUser, model);
|
||||
|
||||
LoginVo loginVo = new LoginVo();
|
||||
loginVo.setAccessToken(StpUtil.getTokenValue());
|
||||
loginVo.setExpireIn(StpUtil.getTokenTimeout());
|
||||
loginVo.setClientId(client.getClientId());
|
||||
return loginVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验邮箱验证码
|
||||
*/
|
||||
private boolean validateEmailCode(String tenantId, String email, String emailCode) {
|
||||
String code = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY + email);
|
||||
if (StringUtils.isBlank(code)) {
|
||||
loginService.recordLogininfor(tenantId, email, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"));
|
||||
throw new CaptchaExpireException();
|
||||
}
|
||||
return code.equals(emailCode);
|
||||
}
|
||||
|
||||
private SysUserVo loadUserByEmail(String tenantId, String email) {
|
||||
return TenantHelper.dynamic(tenantId, () -> {
|
||||
SysUser user = userMapper.selectOne(new LambdaQueryWrapper<SysUser>()
|
||||
.select(SysUser::getEmail, SysUser::getStatus)
|
||||
.eq(SysUser::getEmail, email));
|
||||
if (ObjectUtil.isNull(user)) {
|
||||
log.info("登录用户:{} 不存在.", email);
|
||||
throw new UserException("user.not.exists", email);
|
||||
} else if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
||||
log.info("登录用户:{} 已被停用.", email);
|
||||
throw new UserException("user.blocked", email);
|
||||
}
|
||||
return userMapper.selectUserByEmail(email);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,126 @@
|
||||
package org.dromara.web.service.impl;
|
||||
|
||||
import cn.dev33.satoken.secure.BCrypt;
|
||||
import cn.dev33.satoken.stp.SaLoginModel;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.domain.model.LoginUser;
|
||||
import org.dromara.common.core.domain.model.PasswordLoginBody;
|
||||
import org.dromara.common.core.enums.LoginType;
|
||||
import org.dromara.common.core.enums.UserStatus;
|
||||
import org.dromara.common.core.exception.user.CaptchaException;
|
||||
import org.dromara.common.core.exception.user.CaptchaExpireException;
|
||||
import org.dromara.common.core.exception.user.UserException;
|
||||
import org.dromara.common.core.utils.MessageUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.core.utils.ValidatorUtils;
|
||||
import org.dromara.common.json.utils.JsonUtils;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.common.web.config.properties.CaptchaProperties;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.system.domain.SysUser;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.system.mapper.SysUserMapper;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
import org.dromara.web.service.IAuthStrategy;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 密码认证策略
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Slf4j
|
||||
@Service("password" + IAuthStrategy.BASE_NAME)
|
||||
@RequiredArgsConstructor
|
||||
public class PasswordAuthStrategy implements IAuthStrategy {
|
||||
|
||||
private final CaptchaProperties captchaProperties;
|
||||
private final SysLoginService loginService;
|
||||
private final SysUserMapper userMapper;
|
||||
|
||||
@Override
|
||||
public LoginVo login(String body, SysClient client) {
|
||||
PasswordLoginBody loginBody = JsonUtils.parseObject(body, PasswordLoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
String tenantId = loginBody.getTenantId();
|
||||
String username = loginBody.getUsername();
|
||||
String password = loginBody.getPassword();
|
||||
String code = loginBody.getCode();
|
||||
String uuid = loginBody.getUuid();
|
||||
|
||||
boolean captchaEnabled = captchaProperties.getEnable();
|
||||
// 验证码开关
|
||||
if (captchaEnabled) {
|
||||
validateCaptcha(tenantId, username, code, uuid);
|
||||
}
|
||||
|
||||
SysUserVo user = loadUserByUsername(tenantId, username);
|
||||
loginService.checkLogin(LoginType.PASSWORD, tenantId, username, () -> !BCrypt.checkpw(password, user.getPassword()));
|
||||
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
||||
LoginUser loginUser = loginService.buildLoginUser(user);
|
||||
loginUser.setClientKey(client.getClientKey());
|
||||
loginUser.setDeviceType(client.getDeviceType());
|
||||
SaLoginModel model = new SaLoginModel();
|
||||
model.setDevice(client.getDeviceType());
|
||||
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
||||
// 例如: 后台用户30分钟过期 app用户1天过期
|
||||
model.setTimeout(client.getTimeout());
|
||||
model.setActiveTimeout(client.getActiveTimeout());
|
||||
model.setExtra(LoginHelper.CLIENT_KEY, client.getClientId());
|
||||
// 生成token
|
||||
LoginHelper.login(loginUser, model);
|
||||
|
||||
LoginVo loginVo = new LoginVo();
|
||||
loginVo.setAccessToken(StpUtil.getTokenValue());
|
||||
loginVo.setExpireIn(StpUtil.getTokenTimeout());
|
||||
loginVo.setClientId(client.getClientId());
|
||||
return loginVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验验证码
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param code 验证码
|
||||
* @param uuid 唯一标识
|
||||
*/
|
||||
private void validateCaptcha(String tenantId, String username, String code, String uuid) {
|
||||
String verifyKey = GlobalConstants.CAPTCHA_CODE_KEY + StringUtils.defaultString(uuid, "");
|
||||
String captcha = RedisUtils.getCacheObject(verifyKey);
|
||||
RedisUtils.deleteObject(verifyKey);
|
||||
if (captcha == null) {
|
||||
loginService.recordLogininfor(tenantId, username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"));
|
||||
throw new CaptchaExpireException();
|
||||
}
|
||||
if (!code.equalsIgnoreCase(captcha)) {
|
||||
loginService.recordLogininfor(tenantId, username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.error"));
|
||||
throw new CaptchaException();
|
||||
}
|
||||
}
|
||||
|
||||
private SysUserVo loadUserByUsername(String tenantId, String username) {
|
||||
return TenantHelper.dynamic(tenantId, () -> {
|
||||
SysUser user = userMapper.selectOne(new LambdaQueryWrapper<SysUser>()
|
||||
.select(SysUser::getUserName, SysUser::getStatus)
|
||||
.eq(SysUser::getUserName, username));
|
||||
if (ObjectUtil.isNull(user)) {
|
||||
log.info("登录用户:{} 不存在.", username);
|
||||
throw new UserException("user.not.exists", username);
|
||||
} else if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
||||
log.info("登录用户:{} 已被停用.", username);
|
||||
throw new UserException("user.blocked", username);
|
||||
}
|
||||
return userMapper.selectUserByUserName(username);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,107 @@
|
||||
package org.dromara.web.service.impl;
|
||||
|
||||
import cn.dev33.satoken.stp.SaLoginModel;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.constant.Constants;
|
||||
import org.dromara.common.core.constant.GlobalConstants;
|
||||
import org.dromara.common.core.domain.model.LoginUser;
|
||||
import org.dromara.common.core.domain.model.SmsLoginBody;
|
||||
import org.dromara.common.core.enums.LoginType;
|
||||
import org.dromara.common.core.enums.UserStatus;
|
||||
import org.dromara.common.core.exception.user.CaptchaExpireException;
|
||||
import org.dromara.common.core.exception.user.UserException;
|
||||
import org.dromara.common.core.utils.MessageUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.core.utils.ValidatorUtils;
|
||||
import org.dromara.common.json.utils.JsonUtils;
|
||||
import org.dromara.common.redis.utils.RedisUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.system.domain.SysUser;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.system.mapper.SysUserMapper;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
import org.dromara.web.service.IAuthStrategy;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 短信认证策略
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Slf4j
|
||||
@Service("sms" + IAuthStrategy.BASE_NAME)
|
||||
@RequiredArgsConstructor
|
||||
public class SmsAuthStrategy implements IAuthStrategy {
|
||||
|
||||
private final SysLoginService loginService;
|
||||
private final SysUserMapper userMapper;
|
||||
|
||||
@Override
|
||||
public LoginVo login(String body, SysClient client) {
|
||||
SmsLoginBody loginBody = JsonUtils.parseObject(body, SmsLoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
String tenantId = loginBody.getTenantId();
|
||||
String phonenumber = loginBody.getPhonenumber();
|
||||
String smsCode = loginBody.getSmsCode();
|
||||
|
||||
// 通过手机号查找用户
|
||||
SysUserVo user = loadUserByPhonenumber(tenantId, phonenumber);
|
||||
|
||||
loginService.checkLogin(LoginType.SMS, tenantId, user.getUserName(), () -> !validateSmsCode(tenantId, phonenumber, smsCode));
|
||||
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
||||
LoginUser loginUser = loginService.buildLoginUser(user);
|
||||
loginUser.setClientKey(client.getClientKey());
|
||||
loginUser.setDeviceType(client.getDeviceType());
|
||||
SaLoginModel model = new SaLoginModel();
|
||||
model.setDevice(client.getDeviceType());
|
||||
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
||||
// 例如: 后台用户30分钟过期 app用户1天过期
|
||||
model.setTimeout(client.getTimeout());
|
||||
model.setActiveTimeout(client.getActiveTimeout());
|
||||
model.setExtra(LoginHelper.CLIENT_KEY, client.getClientId());
|
||||
// 生成token
|
||||
LoginHelper.login(loginUser, model);
|
||||
|
||||
LoginVo loginVo = new LoginVo();
|
||||
loginVo.setAccessToken(StpUtil.getTokenValue());
|
||||
loginVo.setExpireIn(StpUtil.getTokenTimeout());
|
||||
loginVo.setClientId(client.getClientId());
|
||||
return loginVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验短信验证码
|
||||
*/
|
||||
private boolean validateSmsCode(String tenantId, String phonenumber, String smsCode) {
|
||||
String code = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY + phonenumber);
|
||||
if (StringUtils.isBlank(code)) {
|
||||
loginService.recordLogininfor(tenantId, phonenumber, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"));
|
||||
throw new CaptchaExpireException();
|
||||
}
|
||||
return code.equals(smsCode);
|
||||
}
|
||||
|
||||
private SysUserVo loadUserByPhonenumber(String tenantId, String phonenumber) {
|
||||
return TenantHelper.dynamic(tenantId, () -> {
|
||||
SysUser user = userMapper.selectOne(new LambdaQueryWrapper<SysUser>()
|
||||
.select(SysUser::getPhonenumber, SysUser::getStatus)
|
||||
.eq(SysUser::getPhonenumber, phonenumber));
|
||||
if (ObjectUtil.isNull(user)) {
|
||||
log.info("登录用户:{} 不存在.", phonenumber);
|
||||
throw new UserException("user.not.exists", phonenumber);
|
||||
} else if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
||||
log.info("登录用户:{} 已被停用.", phonenumber);
|
||||
throw new UserException("user.blocked", phonenumber);
|
||||
}
|
||||
return userMapper.selectUserByPhonenumber(phonenumber);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,131 @@
|
||||
package org.dromara.web.service.impl;
|
||||
|
||||
import cn.dev33.satoken.stp.SaLoginModel;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import cn.hutool.http.Method;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import me.zhyd.oauth.model.AuthResponse;
|
||||
import me.zhyd.oauth.model.AuthUser;
|
||||
import org.dromara.common.core.domain.model.LoginUser;
|
||||
import org.dromara.common.core.domain.model.SocialLoginBody;
|
||||
import org.dromara.common.core.enums.UserStatus;
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.common.core.exception.user.UserException;
|
||||
import org.dromara.common.core.utils.ValidatorUtils;
|
||||
import org.dromara.common.json.utils.JsonUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.social.config.properties.SocialProperties;
|
||||
import org.dromara.common.social.utils.SocialUtils;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.system.domain.SysUser;
|
||||
import org.dromara.system.domain.vo.SysSocialVo;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.system.mapper.SysUserMapper;
|
||||
import org.dromara.system.service.ISysSocialService;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
import org.dromara.web.service.IAuthStrategy;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* 第三方授权策略
|
||||
*
|
||||
* @author thiszhc is 三三
|
||||
*/
|
||||
@Slf4j
|
||||
@Service("social" + IAuthStrategy.BASE_NAME)
|
||||
@RequiredArgsConstructor
|
||||
public class SocialAuthStrategy implements IAuthStrategy {
|
||||
|
||||
private final SocialProperties socialProperties;
|
||||
private final ISysSocialService sysSocialService;
|
||||
private final SysUserMapper userMapper;
|
||||
private final SysLoginService loginService;
|
||||
|
||||
/**
|
||||
* 登录-第三方授权登录
|
||||
*
|
||||
* @param body 登录信息
|
||||
* @param client 客户端信息
|
||||
*/
|
||||
@Override
|
||||
public LoginVo login(String body, SysClient client) {
|
||||
SocialLoginBody loginBody = JsonUtils.parseObject(body, SocialLoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
AuthResponse<AuthUser> response = SocialUtils.loginAuth(
|
||||
loginBody.getSource(), loginBody.getSocialCode(),
|
||||
loginBody.getSocialState(), socialProperties);
|
||||
if (!response.ok()) {
|
||||
throw new ServiceException(response.getMsg());
|
||||
}
|
||||
AuthUser authUserData = response.getData();
|
||||
if ("GITEE".equals(authUserData.getSource())) {
|
||||
// 如用户使用 gitee 登录顺手 star 给作者一点支持 拒绝白嫖
|
||||
HttpUtil.createRequest(Method.PUT, "https://gitee.com/api/v5/user/starred/dromara/RuoYi-Vue-Plus")
|
||||
.formStr(MapUtil.of("access_token", authUserData.getToken().getAccessToken()))
|
||||
.executeAsync();
|
||||
HttpUtil.createRequest(Method.PUT, "https://gitee.com/api/v5/user/starred/dromara/RuoYi-Cloud-Plus")
|
||||
.formStr(MapUtil.of("access_token", authUserData.getToken().getAccessToken()))
|
||||
.executeAsync();
|
||||
}
|
||||
|
||||
List<SysSocialVo> list = sysSocialService.selectByAuthId(authUserData.getSource() + authUserData.getUuid());
|
||||
if (CollUtil.isEmpty(list)) {
|
||||
throw new ServiceException("你还没有绑定第三方账号,绑定后才可以登录!");
|
||||
}
|
||||
Optional<SysSocialVo> opt = list.stream().filter(x -> x.getTenantId().equals(loginBody.getTenantId())).findAny();
|
||||
if (opt.isEmpty()) {
|
||||
throw new ServiceException("对不起,你没有权限登录当前租户!");
|
||||
}
|
||||
SysSocialVo social = opt.get();
|
||||
// 查找用户
|
||||
SysUserVo user = loadUser(social.getTenantId(), social.getUserId());
|
||||
|
||||
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
||||
LoginUser loginUser = loginService.buildLoginUser(user);
|
||||
loginUser.setClientKey(client.getClientKey());
|
||||
loginUser.setDeviceType(client.getDeviceType());
|
||||
SaLoginModel model = new SaLoginModel();
|
||||
model.setDevice(client.getDeviceType());
|
||||
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
||||
// 例如: 后台用户30分钟过期 app用户1天过期
|
||||
model.setTimeout(client.getTimeout());
|
||||
model.setActiveTimeout(client.getActiveTimeout());
|
||||
model.setExtra(LoginHelper.CLIENT_KEY, client.getClientId());
|
||||
// 生成token
|
||||
LoginHelper.login(loginUser, model);
|
||||
|
||||
LoginVo loginVo = new LoginVo();
|
||||
loginVo.setAccessToken(StpUtil.getTokenValue());
|
||||
loginVo.setExpireIn(StpUtil.getTokenTimeout());
|
||||
loginVo.setClientId(client.getClientId());
|
||||
return loginVo;
|
||||
}
|
||||
|
||||
private SysUserVo loadUser(String tenantId, Long userId) {
|
||||
return TenantHelper.dynamic(tenantId, () -> {
|
||||
SysUser user = userMapper.selectOne(new LambdaQueryWrapper<SysUser>()
|
||||
.select(SysUser::getUserName, SysUser::getStatus)
|
||||
.eq(SysUser::getUserId, userId));
|
||||
if (ObjectUtil.isNull(user)) {
|
||||
log.info("登录用户:{} 不存在.", "");
|
||||
throw new UserException("user.not.exists", "");
|
||||
} else if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
||||
log.info("登录用户:{} 已被停用.", "");
|
||||
throw new UserException("user.blocked", "");
|
||||
}
|
||||
return userMapper.selectUserByUserName(user.getUserName());
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,91 @@
|
||||
package org.dromara.web.service.impl;
|
||||
|
||||
import cn.dev33.satoken.stp.SaLoginModel;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.domain.model.XcxLoginBody;
|
||||
import org.dromara.common.core.domain.model.XcxLoginUser;
|
||||
import org.dromara.common.core.enums.UserStatus;
|
||||
import org.dromara.common.core.utils.ValidatorUtils;
|
||||
import org.dromara.common.json.utils.JsonUtils;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.system.domain.SysClient;
|
||||
import org.dromara.system.domain.vo.SysUserVo;
|
||||
import org.dromara.web.domain.vo.LoginVo;
|
||||
import org.dromara.web.service.IAuthStrategy;
|
||||
import org.dromara.web.service.SysLoginService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 邮件认证策略
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@Slf4j
|
||||
@Service("xcx" + IAuthStrategy.BASE_NAME)
|
||||
@RequiredArgsConstructor
|
||||
public class XcxAuthStrategy implements IAuthStrategy {
|
||||
|
||||
private final SysLoginService loginService;
|
||||
|
||||
@Override
|
||||
public LoginVo login(String body, SysClient client) {
|
||||
XcxLoginBody loginBody = JsonUtils.parseObject(body, XcxLoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
// xcxCode 为 小程序调用 wx.login 授权后获取
|
||||
String xcxCode = loginBody.getXcxCode();
|
||||
// 多个小程序识别使用
|
||||
String appid = loginBody.getAppid();
|
||||
|
||||
// todo 以下自行实现
|
||||
// 校验 appid + appsrcret + xcxCode 调用登录凭证校验接口 获取 session_key 与 openid
|
||||
String openid = "";
|
||||
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
|
||||
SysUserVo user = loadUserByOpenid(openid);
|
||||
|
||||
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
||||
XcxLoginUser loginUser = new XcxLoginUser();
|
||||
loginUser.setTenantId(user.getTenantId());
|
||||
loginUser.setUserId(user.getUserId());
|
||||
loginUser.setUsername(user.getUserName());
|
||||
loginUser.setNickname(user.getNickName());
|
||||
loginUser.setUserType(user.getUserType());
|
||||
loginUser.setClientKey(client.getClientKey());
|
||||
loginUser.setDeviceType(client.getDeviceType());
|
||||
loginUser.setOpenid(openid);
|
||||
|
||||
SaLoginModel model = new SaLoginModel();
|
||||
model.setDevice(client.getDeviceType());
|
||||
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
||||
// 例如: 后台用户30分钟过期 app用户1天过期
|
||||
model.setTimeout(client.getTimeout());
|
||||
model.setActiveTimeout(client.getActiveTimeout());
|
||||
model.setExtra(LoginHelper.CLIENT_KEY, client.getClientId());
|
||||
// 生成token
|
||||
LoginHelper.login(loginUser, model);
|
||||
|
||||
LoginVo loginVo = new LoginVo();
|
||||
loginVo.setAccessToken(StpUtil.getTokenValue());
|
||||
loginVo.setExpireIn(StpUtil.getTokenTimeout());
|
||||
loginVo.setClientId(client.getClientId());
|
||||
loginVo.setOpenid(openid);
|
||||
return loginVo;
|
||||
}
|
||||
|
||||
private SysUserVo loadUserByOpenid(String openid) {
|
||||
// 使用 openid 查询绑定用户 如未绑定用户 则根据业务自行处理 例如 创建默认用户
|
||||
// todo 自行实现 userService.selectUserByOpenid(openid);
|
||||
SysUserVo user = new SysUserVo();
|
||||
if (ObjectUtil.isNull(user)) {
|
||||
log.info("登录用户:{} 不存在.", openid);
|
||||
// todo 用户不存在 业务逻辑自行实现
|
||||
} else if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
||||
log.info("登录用户:{} 已被停用.", openid);
|
||||
// todo 用户已被停用 业务逻辑自行实现
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
}
|
@@ -8,27 +8,21 @@ spring.boot.admin.client:
|
||||
username: ruoyi
|
||||
password: 123456
|
||||
|
||||
--- # xxl-job 配置
|
||||
xxl.job:
|
||||
# 执行器开关
|
||||
enabled: true
|
||||
# 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。
|
||||
admin-addresses: http://localhost:9100/xxl-job-admin
|
||||
# 执行器通讯TOKEN:非空时启用
|
||||
access-token: xxl-job
|
||||
executor:
|
||||
# 执行器AppName:执行器心跳注册分组依据;为空则关闭自动注册
|
||||
appname: xxl-job-executor
|
||||
--- # powerjob 配置
|
||||
powerjob:
|
||||
worker:
|
||||
# 如何开启调度中心请查看文档教程
|
||||
enabled: false
|
||||
# 需要先在 powerjob 登录页执行应用注册后才能使用
|
||||
app-name: ruoyi-worker
|
||||
allow-lazy-connect-server: false
|
||||
max-appended-wf-context-length: 4096
|
||||
max-result-length: 4096
|
||||
# 28080 端口 随着主应用端口飘逸 避免集群冲突
|
||||
port: 2${server.port}
|
||||
# 执行器注册:默认IP:PORT
|
||||
address:
|
||||
# 执行器IP:默认自动获取IP
|
||||
ip:
|
||||
# 执行器运行日志文件存储磁盘路径
|
||||
logpath: ./logs/xxl-job
|
||||
# 执行器日志文件保存天数:大于3生效
|
||||
logretentiondays: 30
|
||||
protocol: http
|
||||
server-address: 127.0.0.1:7700
|
||||
store-strategy: disk
|
||||
|
||||
--- # 数据源配置
|
||||
spring:
|
||||
@@ -49,7 +43,7 @@ spring:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: root
|
||||
# 从库数据源
|
||||
@@ -57,7 +51,7 @@ spring:
|
||||
lazy: true
|
||||
type: ${spring.datasource.type}
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
||||
username:
|
||||
password:
|
||||
# oracle:
|
||||
@@ -66,8 +60,6 @@ spring:
|
||||
# url: jdbc:oracle:thin:@//localhost:1521/XE
|
||||
# username: ROOT
|
||||
# password: root
|
||||
# hikari:
|
||||
# connectionTestQuery: SELECT 1 FROM DUAL
|
||||
# postgres:
|
||||
# type: ${spring.datasource.type}
|
||||
# driverClassName: org.postgresql.Driver
|
||||
@@ -93,13 +85,11 @@ spring:
|
||||
idleTimeout: 600000
|
||||
# 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
|
||||
maxLifetime: 1800000
|
||||
# 连接测试query(配置检测连接是否有效)
|
||||
connectionTestQuery: SELECT 1
|
||||
# 多久检查一次连接的活性
|
||||
keepaliveTime: 30000
|
||||
|
||||
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
|
||||
spring:
|
||||
spring.data:
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost
|
||||
@@ -112,7 +102,7 @@ spring:
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
# 是否开启ssl
|
||||
ssl: false
|
||||
ssl.enabled: false
|
||||
|
||||
redisson:
|
||||
# redis key前缀
|
||||
@@ -184,3 +174,74 @@ sms:
|
||||
sdkAppId: appid
|
||||
#地域信息默认为 ap-guangzhou 如无特殊改变可不用设置
|
||||
territory: ap-guangzhou
|
||||
|
||||
|
||||
--- # 三方授权
|
||||
justauth:
|
||||
enabled: true
|
||||
# 前端外网访问地址
|
||||
address: http://localhost:80
|
||||
type:
|
||||
maxkey:
|
||||
# maxkey 服务器地址
|
||||
# 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
|
||||
server-url: http://sso.maxkey.top
|
||||
client-id: 876892492581044224
|
||||
client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
|
||||
redirect-uri: ${justauth.address}/social-callback?source=maxkey
|
||||
qq:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=qq
|
||||
union-id: false
|
||||
weibo:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=weibo
|
||||
gitee:
|
||||
client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
|
||||
client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
|
||||
redirect-uri: ${justauth.address}/social-callback?source=gitee
|
||||
dingtalk:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=dingtalk
|
||||
baidu:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=baidu
|
||||
csdn:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=csdn
|
||||
coding:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=coding
|
||||
coding-group-name: xx
|
||||
oschina:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=oschina
|
||||
alipay_wallet:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet
|
||||
alipay-public-key: MIIB**************DAQAB
|
||||
wechat_open:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=wechat_open
|
||||
wechat_mp:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
|
||||
wechat_enterprise:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
|
||||
agent-id: 1000002
|
||||
gitlab:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=gitlab
|
@@ -11,27 +11,21 @@ spring.boot.admin.client:
|
||||
username: ruoyi
|
||||
password: 123456
|
||||
|
||||
--- # xxl-job 配置
|
||||
xxl.job:
|
||||
# 执行器开关
|
||||
enabled: true
|
||||
# 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。
|
||||
admin-addresses: http://localhost:9100/xxl-job-admin
|
||||
# 执行器通讯TOKEN:非空时启用
|
||||
access-token: xxl-job
|
||||
executor:
|
||||
# 执行器AppName:执行器心跳注册分组依据;为空则关闭自动注册
|
||||
appname: xxl-job-executor
|
||||
--- # powerjob 配置
|
||||
powerjob:
|
||||
worker:
|
||||
# 如何开启调度中心请查看文档教程
|
||||
enabled: false
|
||||
# 需要先在 powerjob 登录页执行应用注册后才能使用
|
||||
app-name: ruoyi-worker
|
||||
allow-lazy-connect-server: false
|
||||
max-appended-wf-context-length: 4096
|
||||
max-result-length: 4096
|
||||
# 28080 端口 随着主应用端口飘逸 避免集群冲突
|
||||
port: 2${server.port}
|
||||
# 执行器注册:默认IP:PORT
|
||||
address:
|
||||
# 执行器IP:默认自动获取IP
|
||||
ip:
|
||||
# 执行器运行日志文件存储磁盘路径
|
||||
logpath: ./logs/xxl-job
|
||||
# 执行器日志文件保存天数:大于3生效
|
||||
logretentiondays: 30
|
||||
protocol: http
|
||||
server-address: 127.0.0.1:7700
|
||||
store-strategy: disk
|
||||
|
||||
--- # 数据源配置
|
||||
spring:
|
||||
@@ -52,7 +46,7 @@ spring:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: root
|
||||
# 从库数据源
|
||||
@@ -60,7 +54,7 @@ spring:
|
||||
lazy: true
|
||||
type: ${spring.datasource.type}
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
||||
username:
|
||||
password:
|
||||
# oracle:
|
||||
@@ -69,8 +63,6 @@ spring:
|
||||
# url: jdbc:oracle:thin:@//localhost:1521/XE
|
||||
# username: ROOT
|
||||
# password: root
|
||||
# hikari:
|
||||
# connectionTestQuery: SELECT 1 FROM DUAL
|
||||
# postgres:
|
||||
# type: ${spring.datasource.type}
|
||||
# driverClassName: org.postgresql.Driver
|
||||
@@ -96,13 +88,11 @@ spring:
|
||||
idleTimeout: 600000
|
||||
# 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
|
||||
maxLifetime: 1800000
|
||||
# 连接测试query(配置检测连接是否有效)
|
||||
connectionTestQuery: SELECT 1
|
||||
# 多久检查一次连接的活性
|
||||
keepaliveTime: 30000
|
||||
|
||||
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
|
||||
spring:
|
||||
spring.data:
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost
|
||||
@@ -115,7 +105,7 @@ spring:
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
# 是否开启ssl
|
||||
ssl: false
|
||||
ssl.enabled: false
|
||||
|
||||
redisson:
|
||||
# redis key前缀
|
||||
@@ -187,3 +177,73 @@ sms:
|
||||
sdkAppId: appid
|
||||
#地域信息默认为 ap-guangzhou 如无特殊改变可不用设置
|
||||
territory: ap-guangzhou
|
||||
|
||||
--- # 三方授权
|
||||
justauth:
|
||||
enabled: true
|
||||
# 前端外网访问地址
|
||||
address: http://localhost:80
|
||||
type:
|
||||
maxkey:
|
||||
# maxkey 服务器地址
|
||||
# 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
|
||||
server-url: http://sso.maxkey.top
|
||||
client-id: 876892492581044224
|
||||
client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
|
||||
redirect-uri: ${justauth.address}/social-callback?source=maxkey
|
||||
qq:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=qq
|
||||
union-id: false
|
||||
weibo:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=weibo
|
||||
gitee:
|
||||
client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
|
||||
client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
|
||||
redirect-uri: ${justauth.address}/social-callback?source=gitee
|
||||
dingtalk:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=dingtalk
|
||||
baidu:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=baidu
|
||||
csdn:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=csdn
|
||||
coding:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=coding
|
||||
coding-group-name: xx
|
||||
oschina:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=oschina
|
||||
alipay_wallet:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet
|
||||
alipay-public-key: MIIB**************DAQAB
|
||||
wechat_open:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=wechat_open
|
||||
wechat_mp:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
|
||||
wechat_enterprise:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
|
||||
agent-id: 1000002
|
||||
gitlab:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=gitlab
|
@@ -3,13 +3,12 @@ ruoyi:
|
||||
# 名称
|
||||
name: RuoYi-Vue-Plus
|
||||
# 版本
|
||||
version: ${ruoyi-vue-plus.version}
|
||||
version: ${revision}
|
||||
# 版权年份
|
||||
copyrightYear: 2023
|
||||
# 缓存懒加载
|
||||
cacheLazy: false
|
||||
|
||||
captcha:
|
||||
enable: true
|
||||
# 页面 <参数设置> 可开启关闭 验证码校验
|
||||
# 验证码类型 math 数组计算 char 字符验证
|
||||
type: MATH
|
||||
@@ -45,8 +44,9 @@ server:
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.ruoyi: @logging.level@
|
||||
org.dromara: @logging.level@
|
||||
org.springframework: warn
|
||||
tech.powerjob.worker.background: warn
|
||||
config: classpath:logback-plus.xml
|
||||
|
||||
# 用户配置
|
||||
@@ -74,11 +74,6 @@ spring:
|
||||
max-file-size: 10MB
|
||||
# 设置总上传的文件大小
|
||||
max-request-size: 20MB
|
||||
# 服务模块
|
||||
devtools:
|
||||
restart:
|
||||
# 热部署开关
|
||||
enabled: true
|
||||
mvc:
|
||||
format:
|
||||
date-time: yyyy-MM-dd HH:mm:ss
|
||||
@@ -98,23 +93,10 @@ spring:
|
||||
sa-token:
|
||||
# token名称 (同时也是cookie名称)
|
||||
token-name: Authorization
|
||||
# token有效期 设为一天 (必定过期) 单位: 秒
|
||||
timeout: 86400
|
||||
# 多端不同 token 有效期 可查看 LoginHelper.loginByDevice 方法自定义
|
||||
# token最低活跃时间 (指定时间无操作就过期) 单位: 秒
|
||||
active-timeout: 1800
|
||||
# 允许动态设置 token 有效期
|
||||
dynamic-active-timeout: true
|
||||
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
|
||||
is-concurrent: true
|
||||
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
|
||||
is-share: false
|
||||
# 是否尝试从header里读取token
|
||||
is-read-header: true
|
||||
# 是否尝试从cookie里读取token
|
||||
is-read-cookie: false
|
||||
# token前缀
|
||||
token-prefix: "Bearer"
|
||||
# jwt秘钥
|
||||
jwt-secret-key: abcdefghijklmnopqrstuvwxyz
|
||||
|
||||
@@ -137,49 +119,38 @@ security:
|
||||
- /actuator
|
||||
- /actuator/**
|
||||
|
||||
# 多租户配置
|
||||
tenant:
|
||||
# 是否开启
|
||||
enable: true
|
||||
# 排除表
|
||||
excludes:
|
||||
- sys_menu
|
||||
- sys_tenant
|
||||
- sys_tenant_package
|
||||
- sys_role_dept
|
||||
- sys_role_menu
|
||||
- sys_user_post
|
||||
- sys_user_role
|
||||
- sys_client
|
||||
- sys_oss_config
|
||||
|
||||
# MyBatisPlus配置
|
||||
# https://baomidou.com/config/
|
||||
mybatis-plus:
|
||||
# 不支持多包, 如有需要可在注解配置 或 提升扫包等级
|
||||
# 例如 com.**.**.mapper
|
||||
mapperPackage: com.ruoyi.**.mapper
|
||||
mapperPackage: org.dromara.**.mapper
|
||||
# 对应的 XML 文件位置
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
||||
# 实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.ruoyi.**.domain
|
||||
# 启动时是否检查 MyBatis XML 文件的存在,默认不检查
|
||||
checkConfigLocation: false
|
||||
configuration:
|
||||
# 自动驼峰命名规则(camel case)映射
|
||||
mapUnderscoreToCamelCase: true
|
||||
# MyBatis 自动映射策略
|
||||
# NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
|
||||
autoMappingBehavior: PARTIAL
|
||||
# MyBatis 自动映射时未知列或未知属性处理策
|
||||
# NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
|
||||
autoMappingUnknownColumnBehavior: NONE
|
||||
# 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
|
||||
# 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
||||
typeAliasesPackage: org.dromara.**.domain
|
||||
global-config:
|
||||
# 是否打印 Logo banner
|
||||
banner: true
|
||||
dbConfig:
|
||||
# 主键类型
|
||||
# AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
|
||||
# 如需改为自增 需要将数据库表全部设置为自增
|
||||
idType: ASSIGN_ID
|
||||
# 逻辑已删除值
|
||||
logicDeleteValue: 2
|
||||
# 逻辑未删除值
|
||||
logicNotDeleteValue: 0
|
||||
# 字段验证策略之 insert,在 insert 的时候的字段验证策略
|
||||
# IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
|
||||
insertStrategy: NOT_NULL
|
||||
# 字段验证策略之 update,在 update 的时候的字段验证策略
|
||||
updateStrategy: NOT_NULL
|
||||
# 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
|
||||
where-strategy: NOT_NULL
|
||||
|
||||
# 数据加密
|
||||
mybatis-encryptor:
|
||||
@@ -195,6 +166,19 @@ mybatis-encryptor:
|
||||
publicKey:
|
||||
privateKey:
|
||||
|
||||
# api接口加密
|
||||
api-decrypt:
|
||||
# 是否开启全局接口加密
|
||||
enabled: true
|
||||
# AES 加密头标识
|
||||
headerFlag: encrypt-key
|
||||
# 响应加密公钥 非对称算法的公私钥 如:SM2,RSA 使用者请自行更换
|
||||
# 对应前端解密私钥 MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAmc3CuPiGL/LcIIm7zryCEIbl1SPzBkr75E2VMtxegyZ1lYRD+7TZGAPkvIsBcaMs6Nsy0L78n2qh+lIZMpLH8wIDAQABAkEAk82Mhz0tlv6IVCyIcw/s3f0E+WLmtPFyR9/WtV3Y5aaejUkU60JpX4m5xNR2VaqOLTZAYjW8Wy0aXr3zYIhhQQIhAMfqR9oFdYw1J9SsNc+CrhugAvKTi0+BF6VoL6psWhvbAiEAxPPNTmrkmrXwdm/pQQu3UOQmc2vCZ5tiKpW10CgJi8kCIFGkL6utxw93Ncj4exE/gPLvKcT+1Emnoox+O9kRXss5AiAMtYLJDaLEzPrAWcZeeSgSIzbL+ecokmFKSDDcRske6QIgSMkHedwND1olF8vlKsJUGK3BcdtM8w4Xq7BpSBwsloE=
|
||||
publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJnNwrj4hi/y3CCJu868ghCG5dUj8wZK++RNlTLcXoMmdZWEQ/u02RgD5LyLAXGjLOjbMtC+/J9qofpSGTKSx/MCAwEAAQ==
|
||||
# 请求解密私钥 非对称算法的公私钥 如:SM2,RSA 使用者请自行更换
|
||||
# 对应前端加密公钥 MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==
|
||||
privateKey: MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKNPuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gAkM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWowcSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99EcvDQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthhYhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3UP8iWi1Qw0Y=
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
# 是否开启接口文档
|
||||
@@ -204,11 +188,11 @@ springdoc:
|
||||
# persistAuthorization: true
|
||||
info:
|
||||
# 标题
|
||||
title: '标题:${ruoyi.name}后台管理系统_接口文档'
|
||||
title: '标题:${ruoyi.name}多租户管理系统_接口文档'
|
||||
# 描述
|
||||
description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...'
|
||||
# 版本
|
||||
version: '版本号: ${ruoyi-vue-plus.version}'
|
||||
version: '版本号: ${ruoyi.version}'
|
||||
# 作者信息
|
||||
contact:
|
||||
name: Lion Li
|
||||
@@ -224,11 +208,13 @@ springdoc:
|
||||
#这里定义了两个分组,可定义多个,也可以不定义
|
||||
group-configs:
|
||||
- group: 1.演示模块
|
||||
packages-to-scan: com.ruoyi.demo
|
||||
- group: 2.系统模块
|
||||
packages-to-scan: com.ruoyi.web
|
||||
- group: 3.代码生成模块
|
||||
packages-to-scan: com.ruoyi.generator
|
||||
packages-to-scan: org.dromara.demo
|
||||
- group: 2.通用模块
|
||||
packages-to-scan: org.dromara.web
|
||||
- group: 3.系统模块
|
||||
packages-to-scan: org.dromara.system
|
||||
- group: 4.代码生成模块
|
||||
packages-to-scan: org.dromara.generator
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
@@ -266,3 +252,12 @@ management:
|
||||
show-details: ALWAYS
|
||||
logfile:
|
||||
external-file: ./logs/sys-console.log
|
||||
|
||||
--- # websocket
|
||||
websocket:
|
||||
# 如果关闭 需要和前端开关一起关闭
|
||||
enabled: true
|
||||
# 路径
|
||||
path: /resource/websocket
|
||||
# 设置访问源地址
|
||||
allowedOrigins: '*'
|
@@ -1,4 +1,4 @@
|
||||
Application Version: ${ruoyi-vue-plus.version}
|
||||
Application Version: ${revision}
|
||||
Spring Boot Version: ${spring-boot.version}
|
||||
__________ _____.___.__ ____ ____ __________.__
|
||||
\______ \__ __ ____\__ | |__| \ \ / /_ __ ____ \______ \ | __ __ ______
|
@@ -28,6 +28,10 @@ user.register.error=注册失败,请联系系统管理人员
|
||||
user.notfound=请重新登录
|
||||
user.forcelogout=管理员强制退出,请重新登录
|
||||
user.unknown.error=未知错误,请重新登录
|
||||
auth.grant.type.error=认证权限类型错误
|
||||
auth.grant.type.blocked=认证权限类型已禁用
|
||||
auth.grant.type.not.blank=认证权限类型不能为空
|
||||
auth.clientid.not.blank=认证客户端id不能为空
|
||||
##文件上传消息
|
||||
upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
|
||||
upload.filename.exceed.length=上传的文件名最长{0}个字符
|
||||
@@ -46,4 +50,12 @@ sms.code.retry.limit.exceed=短信验证码输入错误{0}次,帐户锁定{1}
|
||||
email.code.not.blank=邮箱验证码不能为空
|
||||
email.code.retry.limit.count=邮箱验证码输入错误{0}次
|
||||
email.code.retry.limit.exceed=邮箱验证码输入错误{0}次,帐户锁定{1}分钟
|
||||
xcx.code.not.blank=小程序code不能为空
|
||||
xcx.code.not.blank=小程序[code]不能为空
|
||||
social.source.not.blank=第三方登录平台[source]不能为空
|
||||
social.code.not.blank=第三方登录平台[code]不能为空
|
||||
social.state.not.blank=第三方登录平台[state]不能为空
|
||||
##租户
|
||||
tenant.number.not.blank=租户编号不能为空
|
||||
tenant.not.exists=对不起, 您的租户不存在,请联系管理员
|
||||
tenant.blocked=对不起,您的租户已禁用,请联系管理员
|
||||
tenant.expired=对不起,您的租户已过期,请联系管理员
|
@@ -28,6 +28,10 @@ user.register.error=Register failed, please contact system administrator
|
||||
user.notfound=Please login again
|
||||
user.forcelogout=The administrator is forced to exit,please login again
|
||||
user.unknown.error=Unknown error, please login again
|
||||
auth.grant.type.error=Auth grant type error
|
||||
auth.grant.type.blocked=Auth grant type disabled
|
||||
auth.grant.type.not.blank=Auth grant type cannot be blank
|
||||
auth.clientid.not.blank=Auth clientid cannot be blank
|
||||
##文件上传消息
|
||||
upload.exceed.maxSize=The uploaded file size exceeds the limit file size!<br/>the maximum allowed file size is:{0}MB!
|
||||
upload.filename.exceed.length=The maximum length of uploaded file name is {0} characters
|
||||
@@ -46,4 +50,12 @@ sms.code.retry.limit.exceed=Sms code input error {0} times, account locked for {
|
||||
email.code.not.blank=Email code cannot be blank
|
||||
email.code.retry.limit.count=Email code input error {0} times
|
||||
email.code.retry.limit.exceed=Email code input error {0} times, account locked for {1} minutes
|
||||
xcx.code.not.blank=Mini program code cannot be blank
|
||||
xcx.code.not.blank=Mini program [code] cannot be blank
|
||||
social.source.not.blank=Social login platform [source] cannot be blank
|
||||
social.code.not.blank=Social login platform [code] cannot be blank
|
||||
social.state.not.blank=Social login platform [state] cannot be blank
|
||||
##租户
|
||||
tenant.number.not.blank=Tenant number cannot be blank
|
||||
tenant.not.exists=Sorry, your tenant does not exist. Please contact the administrator
|
||||
tenant.blocked=Sorry, your tenant is disabled. Please contact the administrator
|
||||
tenant.expired=Sorry, your tenant has expired. Please contact the administrator.
|
@@ -28,6 +28,10 @@ user.register.error=注册失败,请联系系统管理人员
|
||||
user.notfound=请重新登录
|
||||
user.forcelogout=管理员强制退出,请重新登录
|
||||
user.unknown.error=未知错误,请重新登录
|
||||
auth.grant.type.error=认证权限类型错误
|
||||
auth.grant.type.blocked=认证权限类型已禁用
|
||||
auth.grant.type.not.blank=认证权限类型不能为空
|
||||
auth.clientid.not.blank=认证客户端id不能为空
|
||||
##文件上传消息
|
||||
upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
|
||||
upload.filename.exceed.length=上传的文件名最长{0}个字符
|
||||
@@ -46,4 +50,12 @@ sms.code.retry.limit.exceed=短信验证码输入错误{0}次,帐户锁定{1}
|
||||
email.code.not.blank=邮箱验证码不能为空
|
||||
email.code.retry.limit.count=邮箱验证码输入错误{0}次
|
||||
email.code.retry.limit.exceed=邮箱验证码输入错误{0}次,帐户锁定{1}分钟
|
||||
xcx.code.not.blank=小程序code不能为空
|
||||
xcx.code.not.blank=小程序[code]不能为空
|
||||
social.source.not.blank=第三方登录平台[source]不能为空
|
||||
social.code.not.blank=第三方登录平台[code]不能为空
|
||||
social.state.not.blank=第三方登录平台[state]不能为空
|
||||
##租户
|
||||
tenant.number.not.blank=租户编号不能为空
|
||||
tenant.not.exists=对不起, 您的租户不存在,请联系管理员
|
||||
tenant.blocked=对不起,您的租户已禁用,请联系管理员
|
||||
tenant.expired=对不起,您的租户已过期,请联系管理员
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.test;
|
||||
package org.dromara.test;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.DisplayName;
|
@@ -1,6 +1,6 @@
|
||||
package com.ruoyi.test;
|
||||
package org.dromara.test;
|
||||
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import org.dromara.common.core.config.RuoYiConfig;
|
||||
import org.junit.jupiter.api.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
@@ -1,6 +1,6 @@
|
||||
package com.ruoyi.test;
|
||||
package org.dromara.test;
|
||||
|
||||
import com.ruoyi.common.enums.UserType;
|
||||
import org.dromara.common.core.enums.UserType;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.DisplayName;
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.test;
|
||||
package org.dromara.test;
|
||||
|
||||
import org.junit.jupiter.api.*;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
45
ruoyi-common/pom.xml
Normal file
45
ruoyi-common/pom.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>ruoyi-vue-plus</artifactId>
|
||||
<groupId>org.dromara</groupId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<modules>
|
||||
<module>ruoyi-common-bom</module>
|
||||
<module>ruoyi-common-social</module>
|
||||
<module>ruoyi-common-core</module>
|
||||
<module>ruoyi-common-doc</module>
|
||||
<module>ruoyi-common-excel</module>
|
||||
<module>ruoyi-common-idempotent</module>
|
||||
<module>ruoyi-common-job</module>
|
||||
<module>ruoyi-common-log</module>
|
||||
<module>ruoyi-common-mail</module>
|
||||
<module>ruoyi-common-mybatis</module>
|
||||
<module>ruoyi-common-oss</module>
|
||||
<module>ruoyi-common-ratelimiter</module>
|
||||
<module>ruoyi-common-redis</module>
|
||||
<module>ruoyi-common-satoken</module>
|
||||
<module>ruoyi-common-security</module>
|
||||
<module>ruoyi-common-sms</module>
|
||||
<module>ruoyi-common-web</module>
|
||||
<module>ruoyi-common-translation</module>
|
||||
<module>ruoyi-common-sensitive</module>
|
||||
<module>ruoyi-common-json</module>
|
||||
<module>ruoyi-common-encrypt</module>
|
||||
<module>ruoyi-common-tenant</module>
|
||||
<module>ruoyi-common-websocket</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<description>
|
||||
common 通用模块
|
||||
</description>
|
||||
|
||||
</project>
|
178
ruoyi-common/ruoyi-common-bom/pom.xml
Normal file
178
ruoyi-common/ruoyi-common-bom/pom.xml
Normal file
@@ -0,0 +1,178 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-bom</artifactId>
|
||||
<version>${revision}</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<description>
|
||||
ruoyi-common-bom common依赖项
|
||||
</description>
|
||||
|
||||
<properties>
|
||||
<revision>5.1.2</revision>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<!-- 核心模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-core</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 接口模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-doc</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- excel -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-excel</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 幂等 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-idempotent</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 调度模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-job</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 日志记录 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-log</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 邮件服务 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-mail</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 数据库服务 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-mybatis</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- OSS -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-oss</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 限流 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-ratelimiter</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 缓存服务 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-redis</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- satoken -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-satoken</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 安全模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-security</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 短信模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-sms</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-social</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- web服务 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-web</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 翻译模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-translation</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 脱敏模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-sensitive</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 序列化模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-json</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 数据库加解密模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-encrypt</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 租户模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-tenant</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- WebSocket模块 -->
|
||||
<dependency>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common-websocket</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
</project>
|
99
ruoyi-common/ruoyi-common-core/pom.xml
Normal file
99
ruoyi-common/ruoyi-common-core/pom.xml
Normal file
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>org.dromara</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>ruoyi-common-core</artifactId>
|
||||
|
||||
<description>
|
||||
ruoyi-common-core 核心模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<!-- Spring框架基本的核心工具 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context-support</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringWeb模块 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 自定义验证注解 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-aop</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--常用工具类 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- servlet包 -->
|
||||
<dependency>
|
||||
<groupId>jakarta.servlet</groupId>
|
||||
<artifactId>jakarta.servlet-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-http</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-extra</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 自动生成YML配置关联JSON文件 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-properties-migrator</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.github.linpeilie</groupId>
|
||||
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 离线IP地址定位库 -->
|
||||
<dependency>
|
||||
<groupId>org.lionsoul</groupId>
|
||||
<artifactId>ip2region</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@@ -1,6 +1,6 @@
|
||||
package com.ruoyi.framework.config;
|
||||
package org.dromara.common.core.config;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
|
||||
/**
|
||||
@@ -8,7 +8,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Configuration
|
||||
@AutoConfiguration
|
||||
// 表示通过aop框架暴露该代理对象,AopContext能够访问
|
||||
@EnableAspectJAutoProxy(exposeProxy = true)
|
||||
public class ApplicationConfig {
|
@@ -1,17 +1,15 @@
|
||||
package com.ruoyi.framework.config;
|
||||
package org.dromara.common.core.config;
|
||||
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.common.core.utils.SpringUtils;
|
||||
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.annotation.AsyncConfigurerSupport;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.scheduling.annotation.AsyncConfigurer;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
|
||||
/**
|
||||
* 异步配置
|
||||
@@ -19,19 +17,15 @@ import java.util.concurrent.ScheduledExecutorService;
|
||||
* @author Lion Li
|
||||
*/
|
||||
@EnableAsync(proxyTargetClass = true)
|
||||
@Configuration
|
||||
public class AsyncConfig extends AsyncConfigurerSupport {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("scheduledExecutorService")
|
||||
private ScheduledExecutorService scheduledExecutorService;
|
||||
@AutoConfiguration
|
||||
public class AsyncConfig implements AsyncConfigurer {
|
||||
|
||||
/**
|
||||
* 自定义 @Async 注解使用系统线程池
|
||||
*/
|
||||
@Override
|
||||
public Executor getAsyncExecutor() {
|
||||
return scheduledExecutorService;
|
||||
return SpringUtils.getBean("scheduledExecutorService");
|
||||
}
|
||||
|
||||
/**
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.config;
|
||||
package org.dromara.common.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
@@ -30,9 +30,4 @@ public class RuoYiConfig {
|
||||
*/
|
||||
private String copyrightYear;
|
||||
|
||||
/**
|
||||
* 缓存懒加载
|
||||
*/
|
||||
private boolean cacheLazy;
|
||||
|
||||
}
|
@@ -1,12 +1,14 @@
|
||||
package com.ruoyi.framework.config;
|
||||
package org.dromara.common.core.config;
|
||||
|
||||
import com.ruoyi.common.utils.Threads;
|
||||
import com.ruoyi.framework.config.properties.ThreadPoolProperties;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.concurrent.BasicThreadFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.dromara.common.core.config.properties.ThreadPoolProperties;
|
||||
import org.dromara.common.core.utils.Threads;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
@@ -18,7 +20,9 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||
*
|
||||
* @author Lion Li
|
||||
**/
|
||||
@Configuration
|
||||
@Slf4j
|
||||
@AutoConfiguration
|
||||
@EnableConfigurationProperties(ThreadPoolProperties.class)
|
||||
public class ThreadPoolConfig {
|
||||
|
||||
/**
|
||||
@@ -26,12 +30,11 @@ public class ThreadPoolConfig {
|
||||
*/
|
||||
private final int core = Runtime.getRuntime().availableProcessors() + 1;
|
||||
|
||||
@Autowired
|
||||
private ThreadPoolProperties threadPoolProperties;
|
||||
private ScheduledExecutorService scheduledExecutorService;
|
||||
|
||||
@Bean(name = "threadPoolTaskExecutor")
|
||||
@ConditionalOnProperty(prefix = "thread-pool", name = "enabled", havingValue = "true")
|
||||
public ThreadPoolTaskExecutor threadPoolTaskExecutor() {
|
||||
public ThreadPoolTaskExecutor threadPoolTaskExecutor(ThreadPoolProperties threadPoolProperties) {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
executor.setCorePoolSize(core);
|
||||
executor.setMaxPoolSize(core * 2);
|
||||
@@ -46,7 +49,7 @@ public class ThreadPoolConfig {
|
||||
*/
|
||||
@Bean(name = "scheduledExecutorService")
|
||||
protected ScheduledExecutorService scheduledExecutorService() {
|
||||
return new ScheduledThreadPoolExecutor(core,
|
||||
ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(core,
|
||||
new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build(),
|
||||
new ThreadPoolExecutor.CallerRunsPolicy()) {
|
||||
@Override
|
||||
@@ -55,5 +58,21 @@ public class ThreadPoolConfig {
|
||||
Threads.printException(r, t);
|
||||
}
|
||||
};
|
||||
this.scheduledExecutorService = scheduledThreadPoolExecutor;
|
||||
return scheduledThreadPoolExecutor;
|
||||
}
|
||||
|
||||
/**
|
||||
* 销毁事件
|
||||
*/
|
||||
@PreDestroy
|
||||
public void destroy() {
|
||||
try {
|
||||
log.info("====关闭后台任务任务线程池====");
|
||||
Threads.shutdownAndAwaitTermination(scheduledExecutorService);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
package org.dromara.common.core.config;
|
||||
|
||||
import jakarta.validation.Validator;
|
||||
import org.hibernate.validator.HibernateValidator;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* 校验框架配置类
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@AutoConfiguration
|
||||
public class ValidatorConfig {
|
||||
|
||||
/**
|
||||
* 配置校验框架 快速返回模式
|
||||
*/
|
||||
@Bean
|
||||
public Validator validator(MessageSource messageSource) {
|
||||
try (LocalValidatorFactoryBean factoryBean = new LocalValidatorFactoryBean()) {
|
||||
// 国际化
|
||||
factoryBean.setValidationMessageSource(messageSource);
|
||||
// 设置使用 HibernateValidator 校验器
|
||||
factoryBean.setProviderClass(HibernateValidator.class);
|
||||
Properties properties = new Properties();
|
||||
// 设置 快速异常返回
|
||||
properties.setProperty("hibernate.validator.fail_fast", "true");
|
||||
factoryBean.setValidationProperties(properties);
|
||||
// 加载配置
|
||||
factoryBean.afterPropertiesSet();
|
||||
return factoryBean.getValidator();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -1,8 +1,7 @@
|
||||
package com.ruoyi.framework.config.properties;
|
||||
package org.dromara.common.core.config.properties;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 线程池 配置属性
|
||||
@@ -10,7 +9,6 @@ import org.springframework.stereotype.Component;
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Data
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "thread-pool")
|
||||
public class ThreadPoolProperties {
|
||||
|
@@ -0,0 +1,25 @@
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 缓存的key 常量
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
public interface CacheConstants {
|
||||
|
||||
/**
|
||||
* 在线用户 redis key
|
||||
*/
|
||||
String ONLINE_TOKEN_KEY = "online_tokens:";
|
||||
|
||||
/**
|
||||
* 参数管理 cache key
|
||||
*/
|
||||
String SYS_CONFIG_KEY = "sys_config:";
|
||||
|
||||
/**
|
||||
* 字典管理 cache key
|
||||
*/
|
||||
String SYS_DICT_KEY = "sys_dict:";
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.constant;
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 缓存组名称常量
|
||||
@@ -30,11 +30,21 @@ public interface CacheNames {
|
||||
*/
|
||||
String SYS_DICT = "sys_dict";
|
||||
|
||||
/**
|
||||
* 租户
|
||||
*/
|
||||
String SYS_TENANT = GlobalConstants.GLOBAL_REDIS_KEY + "sys_tenant#30d";
|
||||
|
||||
/**
|
||||
* 用户账户
|
||||
*/
|
||||
String SYS_USER_NAME = "sys_user_name#30d";
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
String SYS_NICKNAME = "sys_nickname#30d";
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
@@ -48,7 +58,7 @@ public interface CacheNames {
|
||||
/**
|
||||
* OSS配置
|
||||
*/
|
||||
String SYS_OSS_CONFIG = "sys_oss_config";
|
||||
String SYS_OSS_CONFIG = GlobalConstants.GLOBAL_REDIS_KEY + "sys_oss_config";
|
||||
|
||||
/**
|
||||
* 在线用户
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.constant;
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 通用常量信息
|
||||
@@ -72,5 +72,10 @@ public interface Constants {
|
||||
*/
|
||||
String TOKEN = "token";
|
||||
|
||||
/**
|
||||
* 顶级部门id
|
||||
*/
|
||||
Long TOP_PARENT_ID = 0L;
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,39 @@
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 全局的key常量 (业务无关的key)
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
public interface GlobalConstants {
|
||||
|
||||
/**
|
||||
* 全局 redis key (业务无关的key)
|
||||
*/
|
||||
String GLOBAL_REDIS_KEY = "global:";
|
||||
|
||||
/**
|
||||
* 验证码 redis key
|
||||
*/
|
||||
String CAPTCHA_CODE_KEY = GLOBAL_REDIS_KEY + "captcha_codes:";
|
||||
|
||||
/**
|
||||
* 防重提交 redis key
|
||||
*/
|
||||
String REPEAT_SUBMIT_KEY = GLOBAL_REDIS_KEY + "repeat_submit:";
|
||||
|
||||
/**
|
||||
* 限流 redis key
|
||||
*/
|
||||
String RATE_LIMIT_KEY = GLOBAL_REDIS_KEY + "rate_limit:";
|
||||
|
||||
/**
|
||||
* 登录账户密码错误次数 redis key
|
||||
*/
|
||||
String PWD_ERR_CNT_KEY = GLOBAL_REDIS_KEY + "pwd_err_cnt:";
|
||||
|
||||
/**
|
||||
* 三方认证 redis key
|
||||
*/
|
||||
String SOCIAL_AUTH_CODE_KEY = GLOBAL_REDIS_KEY + "social_auth_codes:";
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.constant;
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 返回状态码
|
@@ -0,0 +1,45 @@
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 租户常量信息
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
public interface TenantConstants {
|
||||
|
||||
/**
|
||||
* 租户正常状态
|
||||
*/
|
||||
String NORMAL = "0";
|
||||
|
||||
/**
|
||||
* 租户封禁状态
|
||||
*/
|
||||
String DISABLE = "1";
|
||||
|
||||
/**
|
||||
* 超级管理员ID
|
||||
*/
|
||||
Long SUPER_ADMIN_ID = 1L;
|
||||
|
||||
/**
|
||||
* 超级管理员角色 roleKey
|
||||
*/
|
||||
String SUPER_ADMIN_ROLE_KEY = "superadmin";
|
||||
|
||||
/**
|
||||
* 租户管理员角色 roleKey
|
||||
*/
|
||||
String TENANT_ADMIN_ROLE_KEY = "admin";
|
||||
|
||||
/**
|
||||
* 租户管理员角色名称
|
||||
*/
|
||||
String TENANT_ADMIN_ROLE_NAME = "管理员";
|
||||
|
||||
/**
|
||||
* 默认租户ID
|
||||
*/
|
||||
String DEFAULT_TENANT_ID = "000000";
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.constant;
|
||||
package org.dromara.common.core.constant;
|
||||
|
||||
/**
|
||||
* 用户常量信息
|
||||
@@ -135,13 +135,8 @@ public interface UserConstants {
|
||||
int PASSWORD_MAX_LENGTH = 20;
|
||||
|
||||
/**
|
||||
* 管理员ID
|
||||
* 超级管理员ID
|
||||
*/
|
||||
Long ADMIN_ID = 1L;
|
||||
|
||||
/**
|
||||
* 管理员角色key
|
||||
*/
|
||||
String ADMIN_ROLE_KEY = "admin";
|
||||
Long SUPER_ADMIN_ID = 1L;
|
||||
|
||||
}
|
@@ -1,9 +1,10 @@
|
||||
package com.ruoyi.common.core.domain;
|
||||
package org.dromara.common.core.domain;
|
||||
|
||||
import com.ruoyi.common.constant.HttpStatus;
|
||||
import org.dromara.common.core.constant.HttpStatus;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@@ -14,6 +15,8 @@ import java.io.Serializable;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class R<T> implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.core.domain.dto;
|
||||
package org.dromara.common.core.domain.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
@@ -1,8 +1,9 @@
|
||||
package com.ruoyi.common.core.domain.dto;
|
||||
package org.dromara.common.core.domain.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@@ -15,6 +16,7 @@ import java.io.Serializable;
|
||||
@NoArgsConstructor
|
||||
public class UserOnlineDTO implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
@@ -32,6 +34,16 @@ public class UserOnlineDTO implements Serializable {
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 客户端
|
||||
*/
|
||||
private String clientKey;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* 登录IP地址
|
||||
*/
|
@@ -1,18 +1,19 @@
|
||||
package com.ruoyi.common.core.domain.model;
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.Email;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Email;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 邮箱登录对象
|
||||
* 邮件登录对象
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class EmailLoginBody {
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class EmailLoginBody extends LoginBody {
|
||||
|
||||
/**
|
||||
* 邮箱
|
@@ -0,0 +1,48 @@
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 用户登录对象
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class LoginBody implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 客户端id
|
||||
*/
|
||||
@NotBlank(message = "{auth.clientid.not.blank}")
|
||||
private String clientId;
|
||||
|
||||
/**
|
||||
* 授权类型
|
||||
*/
|
||||
@NotBlank(message = "{auth.grant.type.not.blank}")
|
||||
private String grantType;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
}
|
@@ -1,9 +1,10 @@
|
||||
package com.ruoyi.common.core.domain.model;
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import com.ruoyi.common.core.domain.dto.RoleDTO;
|
||||
import org.dromara.common.core.domain.dto.RoleDTO;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -18,8 +19,14 @@ import java.util.Set;
|
||||
@NoArgsConstructor
|
||||
public class LoginUser implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@@ -90,6 +97,11 @@ public class LoginUser implements Serializable {
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 角色对象
|
||||
*/
|
||||
@@ -100,6 +112,16 @@ public class LoginUser implements Serializable {
|
||||
*/
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 客户端
|
||||
*/
|
||||
private String clientKey;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* 获取登录id
|
||||
*/
|
@@ -0,0 +1,33 @@
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import static org.dromara.common.core.constant.UserConstants.*;
|
||||
|
||||
/**
|
||||
* 密码登录对象
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class PasswordLoginBody extends LoginBody {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@NotBlank(message = "{user.username.not.blank}")
|
||||
@Length(min = USERNAME_MIN_LENGTH, max = USERNAME_MAX_LENGTH, message = "{user.username.length.valid}")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户密码
|
||||
*/
|
||||
@NotBlank(message = "{user.password.not.blank}")
|
||||
@Length(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH, message = "{user.password.length.valid}")
|
||||
private String password;
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import static org.dromara.common.core.constant.UserConstants.*;
|
||||
|
||||
/**
|
||||
* 用户注册对象
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RegisterBody extends LoginBody {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@NotBlank(message = "{user.username.not.blank}")
|
||||
@Length(min = USERNAME_MIN_LENGTH, max = USERNAME_MAX_LENGTH, message = "{user.username.length.valid}")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户密码
|
||||
*/
|
||||
@NotBlank(message = "{user.password.not.blank}")
|
||||
@Length(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH, message = "{user.password.length.valid}")
|
||||
private String password;
|
||||
|
||||
private String userType;
|
||||
|
||||
}
|
@@ -1,8 +1,8 @@
|
||||
package com.ruoyi.common.core.domain.model;
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 短信登录对象
|
||||
@@ -11,7 +11,8 @@ import javax.validation.constraints.NotBlank;
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class SmsLoginBody {
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsLoginBody extends LoginBody {
|
||||
|
||||
/**
|
||||
* 手机号
|
@@ -0,0 +1,35 @@
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 三方登录对象
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SocialLoginBody extends LoginBody {
|
||||
|
||||
/**
|
||||
* 第三方登录平台
|
||||
*/
|
||||
@NotBlank(message = "{social.source.not.blank}")
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 第三方登录code
|
||||
*/
|
||||
@NotBlank(message = "{social.code.not.blank}")
|
||||
private String socialCode;
|
||||
|
||||
/**
|
||||
* 第三方登录socialState
|
||||
*/
|
||||
@NotBlank(message = "{social.state.not.blank}")
|
||||
private String socialState;
|
||||
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 三方登录对象
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class XcxLoginBody extends LoginBody {
|
||||
|
||||
/**
|
||||
* 小程序id(多个小程序时使用)
|
||||
*/
|
||||
private String appid;
|
||||
|
||||
/**
|
||||
* 小程序code
|
||||
*/
|
||||
@NotBlank(message = "{xcx.code.not.blank}")
|
||||
private String xcxCode;
|
||||
|
||||
}
|
@@ -1,9 +1,11 @@
|
||||
package com.ruoyi.common.core.domain.model;
|
||||
package org.dromara.common.core.domain.model;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 小程序登录用户身份权限
|
||||
*
|
||||
@@ -14,6 +16,7 @@ import lombok.NoArgsConstructor;
|
||||
@NoArgsConstructor
|
||||
public class XcxLoginUser extends LoginUser {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.enums;
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@@ -26,7 +26,12 @@ public enum DeviceType {
|
||||
/**
|
||||
* 小程序端
|
||||
*/
|
||||
XCX("xcx");
|
||||
XCX("xcx"),
|
||||
|
||||
/**
|
||||
* social第三方端
|
||||
*/
|
||||
SOCIAL("social");
|
||||
|
||||
private final String device;
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.enums;
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
@@ -0,0 +1,30 @@
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 用户状态
|
||||
*
|
||||
* @author LionLi
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum TenantStatus {
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
OK("0", "正常"),
|
||||
/**
|
||||
* 停用
|
||||
*/
|
||||
DISABLE("1", "停用"),
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
DELETED("2", "删除");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 用户状态
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum UserStatus {
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
OK("0", "正常"),
|
||||
/**
|
||||
* 停用
|
||||
*/
|
||||
DISABLE("1", "停用"),
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
DELETED("2", "删除");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
package com.ruoyi.common.enums;
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
@@ -1,11 +1,24 @@
|
||||
package com.ruoyi.common.exception;
|
||||
package org.dromara.common.core.exception;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 业务异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public final class ServiceException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
@@ -20,17 +33,9 @@ public final class ServiceException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* 错误明细,内部调试错误
|
||||
* <p>
|
||||
* 和 {@link CommonResult#getDetailMessage()} 一致的设计
|
||||
*/
|
||||
private String detailMessage;
|
||||
|
||||
/**
|
||||
* 空构造方法,避免反序列化问题
|
||||
*/
|
||||
public ServiceException() {
|
||||
}
|
||||
|
||||
public ServiceException(String message) {
|
||||
this.message = message;
|
||||
}
|
@@ -1,11 +1,14 @@
|
||||
package com.ruoyi.common.exception.base;
|
||||
package org.dromara.common.core.exception.base;
|
||||
|
||||
import com.ruoyi.common.utils.MessageUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.dromara.common.core.utils.MessageUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 基础异常
|
||||
*
|
||||
@@ -14,7 +17,10 @@ import lombok.NoArgsConstructor;
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class BaseException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
@@ -37,13 +43,6 @@ public class BaseException extends RuntimeException {
|
||||
*/
|
||||
private String defaultMessage;
|
||||
|
||||
public BaseException(String module, String code, Object[] args, String defaultMessage) {
|
||||
this.module = module;
|
||||
this.code = code;
|
||||
this.args = args;
|
||||
this.defaultMessage = defaultMessage;
|
||||
}
|
||||
|
||||
public BaseException(String module, String code, Object[] args) {
|
||||
this(module, code, args, null);
|
||||
}
|
@@ -1,6 +1,8 @@
|
||||
package com.ruoyi.common.exception.file;
|
||||
package org.dromara.common.core.exception.file;
|
||||
|
||||
import com.ruoyi.common.exception.base.BaseException;
|
||||
import org.dromara.common.core.exception.base.BaseException;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 文件信息异常类
|
||||
@@ -8,6 +10,8 @@ import com.ruoyi.common.exception.base.BaseException;
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class FileException extends BaseException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public FileException(String code, Object[] args) {
|
@@ -1,4 +1,6 @@
|
||||
package com.ruoyi.common.exception.file;
|
||||
package org.dromara.common.core.exception.file;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 文件名称超长限制异常类
|
||||
@@ -6,6 +8,8 @@ package com.ruoyi.common.exception.file;
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class FileNameLengthLimitExceededException extends FileException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public FileNameLengthLimitExceededException(int defaultFileNameLength) {
|
@@ -1,4 +1,6 @@
|
||||
package com.ruoyi.common.exception.file;
|
||||
package org.dromara.common.core.exception.file;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 文件名大小限制异常类
|
||||
@@ -6,6 +8,8 @@ package com.ruoyi.common.exception.file;
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class FileSizeLimitExceededException extends FileException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public FileSizeLimitExceededException(long defaultMaxSize) {
|
@@ -1,4 +1,6 @@
|
||||
package com.ruoyi.common.exception.user;
|
||||
package org.dromara.common.core.exception.user;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 验证码错误异常类
|
||||
@@ -6,6 +8,8 @@ package com.ruoyi.common.exception.user;
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class CaptchaException extends UserException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public CaptchaException() {
|
@@ -1,4 +1,6 @@
|
||||
package com.ruoyi.common.exception.user;
|
||||
package org.dromara.common.core.exception.user;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 验证码失效异常类
|
||||
@@ -6,6 +8,8 @@ package com.ruoyi.common.exception.user;
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class CaptchaExpireException extends UserException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public CaptchaExpireException() {
|
@@ -1,6 +1,8 @@
|
||||
package com.ruoyi.common.exception.user;
|
||||
package org.dromara.common.core.exception.user;
|
||||
|
||||
import com.ruoyi.common.exception.base.BaseException;
|
||||
import org.dromara.common.core.exception.base.BaseException;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户信息异常类
|
||||
@@ -8,6 +10,8 @@ import com.ruoyi.common.exception.base.BaseException;
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class UserException extends BaseException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public UserException(String code, Object... args) {
|
@@ -0,0 +1,31 @@
|
||||
package org.dromara.common.core.factory;
|
||||
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
|
||||
import org.springframework.core.env.PropertiesPropertySource;
|
||||
import org.springframework.core.env.PropertySource;
|
||||
import org.springframework.core.io.support.DefaultPropertySourceFactory;
|
||||
import org.springframework.core.io.support.EncodedResource;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* yml 配置源工厂
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
public class YmlPropertySourceFactory extends DefaultPropertySourceFactory {
|
||||
|
||||
@Override
|
||||
public PropertySource<?> createPropertySource(String name, EncodedResource resource) throws IOException {
|
||||
String sourceName = resource.getResource().getFilename();
|
||||
if (StringUtils.isNotBlank(sourceName) && StringUtils.endsWithAny(sourceName, ".yml", ".yaml")) {
|
||||
YamlPropertiesFactoryBean factory = new YamlPropertiesFactoryBean();
|
||||
factory.setResources(resource.getResource());
|
||||
factory.afterPropertiesSet();
|
||||
return new PropertiesPropertySource(sourceName, factory.getObject());
|
||||
}
|
||||
return super.createPropertySource(name, resource);
|
||||
}
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.core.service;
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
/**
|
||||
* 通用 参数配置服务
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.core.service;
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
/**
|
||||
* 通用 部门服务
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.core.service;
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@@ -63,4 +63,5 @@ public interface DictService {
|
||||
* @return dictValue为key,dictLabel为值组成的Map
|
||||
*/
|
||||
Map<String, String> getAllDictByDictType(String dictType);
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.core.service;
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
/**
|
||||
* 通用 OSS服务
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.core.service;
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
/**
|
||||
* 通用 用户服务
|
||||
@@ -15,4 +15,12 @@ public interface UserService {
|
||||
*/
|
||||
String selectUserNameById(Long userId);
|
||||
|
||||
/**
|
||||
* 通过用户ID查询用户账户
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return 用户账户
|
||||
*/
|
||||
String selectNicknameById(Long userId);
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
@@ -0,0 +1,93 @@
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import io.github.linpeilie.Converter;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Mapstruct 工具类
|
||||
* <p>参考文档:<a href="https://mapstruct.plus/introduction/quick-start.html">mapstruct-plus</a></p>
|
||||
*
|
||||
*
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class MapstructUtils {
|
||||
|
||||
private final static Converter CONVERTER = SpringUtils.getBean(Converter.class);
|
||||
|
||||
/**
|
||||
* 将 T 类型对象,转换为 desc 类型的对象并返回
|
||||
*
|
||||
* @param source 数据来源实体
|
||||
* @param desc 描述对象 转换后的对象
|
||||
* @return desc
|
||||
*/
|
||||
public static <T, V> V convert(T source, Class<V> desc) {
|
||||
if (ObjectUtil.isNull(source)) {
|
||||
return null;
|
||||
}
|
||||
if (ObjectUtil.isNull(desc)) {
|
||||
return null;
|
||||
}
|
||||
return CONVERTER.convert(source, desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将 T 类型对象,按照配置的映射字段规则,给 desc 类型的对象赋值并返回 desc 对象
|
||||
*
|
||||
* @param source 数据来源实体
|
||||
* @param desc 转换后的对象
|
||||
* @return desc
|
||||
*/
|
||||
public static <T, V> V convert(T source, V desc) {
|
||||
if (ObjectUtil.isNull(source)) {
|
||||
return null;
|
||||
}
|
||||
if (ObjectUtil.isNull(desc)) {
|
||||
return null;
|
||||
}
|
||||
return CONVERTER.convert(source, desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将 T 类型的集合,转换为 desc 类型的集合并返回
|
||||
*
|
||||
* @param sourceList 数据来源实体列表
|
||||
* @param desc 描述对象 转换后的对象
|
||||
* @return desc
|
||||
*/
|
||||
public static <T, V> List<V> convert(List<T> sourceList, Class<V> desc) {
|
||||
if (ObjectUtil.isNull(sourceList)) {
|
||||
return null;
|
||||
}
|
||||
if (CollUtil.isEmpty(sourceList)) {
|
||||
return CollUtil.newArrayList();
|
||||
}
|
||||
return CONVERTER.convert(sourceList, desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将 Map 转换为 beanClass 类型的集合并返回
|
||||
*
|
||||
* @param map 数据来源
|
||||
* @param beanClass bean类
|
||||
* @return bean对象
|
||||
*/
|
||||
public static <T> T convert(Map<String, Object> map, Class<T> beanClass) {
|
||||
if (MapUtil.isEmpty(map)) {
|
||||
return null;
|
||||
}
|
||||
if (ObjectUtil.isNull(beanClass)) {
|
||||
return null;
|
||||
}
|
||||
return CONVERTER.convert(map, beanClass);
|
||||
}
|
||||
|
||||
}
|
@@ -1,9 +1,9 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.NoSuchMessageException;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
|
||||
/**
|
||||
@@ -24,6 +24,10 @@ public class MessageUtils {
|
||||
* @return 获取国际化翻译值
|
||||
*/
|
||||
public static String message(String code, Object... args) {
|
||||
return MESSAGE_SOURCE.getMessage(code, args, LocaleContextHolder.getLocale());
|
||||
try {
|
||||
return MESSAGE_SOURCE.getMessage(code, args, LocaleContextHolder.getLocale());
|
||||
} catch (NoSuchMessageException e) {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,26 +1,26 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.extra.servlet.ServletUtil;
|
||||
import cn.hutool.extra.servlet.JakartaServletUtil;
|
||||
import cn.hutool.http.HttpStatus;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import jakarta.servlet.ServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.servlet.http.HttpSession;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.util.LinkedCaseInsensitiveMap;
|
||||
import org.springframework.web.context.request.RequestAttributes;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
|
||||
import javax.servlet.ServletRequest;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
* @author ruoyi
|
||||
*/
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class ServletUtils extends ServletUtil {
|
||||
public class ServletUtils extends JakartaServletUtil {
|
||||
|
||||
/**
|
||||
* 获取String参数
|
||||
@@ -103,14 +103,22 @@ public class ServletUtils extends ServletUtil {
|
||||
* 获取request
|
||||
*/
|
||||
public static HttpServletRequest getRequest() {
|
||||
return getRequestAttributes().getRequest();
|
||||
try {
|
||||
return getRequestAttributes().getRequest();
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取response
|
||||
*/
|
||||
public static HttpServletResponse getResponse() {
|
||||
return getRequestAttributes().getResponse();
|
||||
try {
|
||||
return getRequestAttributes().getResponse();
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,8 +129,33 @@ public class ServletUtils extends ServletUtil {
|
||||
}
|
||||
|
||||
public static ServletRequestAttributes getRequestAttributes() {
|
||||
RequestAttributes attributes = RequestContextHolder.getRequestAttributes();
|
||||
return (ServletRequestAttributes) attributes;
|
||||
try {
|
||||
RequestAttributes attributes = RequestContextHolder.getRequestAttributes();
|
||||
return (ServletRequestAttributes) attributes;
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static String getHeader(HttpServletRequest request, String name) {
|
||||
String value = request.getHeader(name);
|
||||
if (StringUtils.isEmpty(value)) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
return urlDecode(value);
|
||||
}
|
||||
|
||||
public static Map<String, String> getHeaders(HttpServletRequest request) {
|
||||
Map<String, String> map = new LinkedCaseInsensitiveMap<>();
|
||||
Enumeration<String> enumeration = request.getHeaderNames();
|
||||
if (enumeration != null) {
|
||||
while (enumeration.hasMoreElements()) {
|
||||
String key = enumeration.nextElement();
|
||||
String value = request.getHeader(key);
|
||||
map.put(key, value);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -179,11 +212,7 @@ public class ServletUtils extends ServletUtil {
|
||||
* @return 编码后的内容
|
||||
*/
|
||||
public static String urlEncode(String str) {
|
||||
try {
|
||||
return URLEncoder.encode(str, Constants.UTF8);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
return URLEncoder.encode(str, StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -193,11 +222,7 @@ public class ServletUtils extends ServletUtil {
|
||||
* @return 解码后的内容
|
||||
*/
|
||||
public static String urlDecode(String str) {
|
||||
try {
|
||||
return URLDecoder.decode(str, Constants.UTF8);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
return URLDecoder.decode(str, StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.utils.spring;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import org.springframework.aop.framework.AopContext;
|
||||
@@ -16,9 +16,6 @@ public final class SpringUtils extends SpringUtil {
|
||||
|
||||
/**
|
||||
* 如果BeanFactory包含一个与所给名称匹配的bean定义,则返回true
|
||||
*
|
||||
* @param name
|
||||
* @return boolean
|
||||
*/
|
||||
public static boolean containsBean(String name) {
|
||||
return getBeanFactory().containsBean(name);
|
||||
@@ -27,16 +24,12 @@ public final class SpringUtils extends SpringUtil {
|
||||
/**
|
||||
* 判断以给定名字注册的bean定义是一个singleton还是一个prototype。
|
||||
* 如果与给定名字相应的bean定义没有被找到,将会抛出一个异常(NoSuchBeanDefinitionException)
|
||||
*
|
||||
* @param name
|
||||
* @return boolean
|
||||
*/
|
||||
public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException {
|
||||
return getBeanFactory().isSingleton(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name
|
||||
* @return Class 注册对象的类型
|
||||
*/
|
||||
public static Class<?> getType(String name) throws NoSuchBeanDefinitionException {
|
||||
@@ -45,8 +38,6 @@ public final class SpringUtils extends SpringUtil {
|
||||
|
||||
/**
|
||||
* 如果给定的bean名字在bean定义中有别名,则返回这些别名
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public static String[] getAliases(String name) throws NoSuchBeanDefinitionException {
|
||||
return getBeanFactory().getAliases(name);
|
||||
@@ -54,9 +45,6 @@ public final class SpringUtils extends SpringUtil {
|
||||
|
||||
/**
|
||||
* 获取aop代理对象
|
||||
*
|
||||
* @param invoker
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T> T getAopProxy(T invoker) {
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
@@ -30,6 +30,7 @@ public class StreamUtils {
|
||||
if (CollUtil.isEmpty(collection)) {
|
||||
return CollUtil.newArrayList();
|
||||
}
|
||||
// 注意此处不要使用 .toList() 新语法 因为返回的是不可变List 会导致序列化问题
|
||||
return collection.stream().filter(function).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@@ -70,6 +71,7 @@ public class StreamUtils {
|
||||
if (CollUtil.isEmpty(collection)) {
|
||||
return CollUtil.newArrayList();
|
||||
}
|
||||
// 注意此处不要使用 .toList() 新语法 因为返回的是不可变List 会导致序列化问题
|
||||
return collection.stream().filter(Objects::nonNull).sorted(comparing).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@@ -188,6 +190,7 @@ public class StreamUtils {
|
||||
.stream()
|
||||
.map(function)
|
||||
.filter(Objects::nonNull)
|
||||
// 注意此处不要使用 .toList() 新语法 因为返回的是不可变List 会导致序列化问题
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
@@ -256,17 +256,13 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
if (s != null) {
|
||||
final int len = s.length();
|
||||
if (s.length() <= size) {
|
||||
for (int i = size - len; i > 0; i--) {
|
||||
sb.append(c);
|
||||
}
|
||||
sb.append(String.valueOf(c).repeat(size - len));
|
||||
sb.append(s);
|
||||
} else {
|
||||
return s.substring(len - size, len);
|
||||
}
|
||||
} else {
|
||||
for (int i = size; i > 0; i--) {
|
||||
sb.append(c);
|
||||
}
|
||||
sb.append(String.valueOf(c).repeat(Math.max(0, size)));
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
@@ -1,11 +1,11 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.lang.tree.Tree;
|
||||
import cn.hutool.core.lang.tree.TreeNodeConfig;
|
||||
import cn.hutool.core.lang.tree.TreeUtil;
|
||||
import cn.hutool.core.lang.tree.parser.NodeParser;
|
||||
import com.ruoyi.common.utils.reflect.ReflectUtils;
|
||||
import org.dromara.common.core.utils.reflect.ReflectUtils;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@@ -1,12 +1,11 @@
|
||||
package com.ruoyi.common.utils;
|
||||
package org.dromara.common.core.utils;
|
||||
|
||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.ConstraintViolationException;
|
||||
import javax.validation.Validator;
|
||||
import jakarta.validation.ConstraintViolation;
|
||||
import jakarta.validation.ConstraintViolationException;
|
||||
import jakarta.validation.Validator;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
@@ -1,11 +1,10 @@
|
||||
package com.ruoyi.common.utils.file;
|
||||
package org.dromara.common.core.utils.file;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
@@ -23,19 +22,11 @@ public class FileUtils extends FileUtil {
|
||||
* @param response 响应对象
|
||||
* @param realFileName 真实文件名
|
||||
*/
|
||||
public static void setAttachmentResponseHeader(HttpServletResponse response, String realFileName) throws UnsupportedEncodingException {
|
||||
public static void setAttachmentResponseHeader(HttpServletResponse response, String realFileName) {
|
||||
String percentEncodedFileName = percentEncode(realFileName);
|
||||
|
||||
StringBuilder contentDispositionValue = new StringBuilder();
|
||||
contentDispositionValue.append("attachment; filename=")
|
||||
.append(percentEncodedFileName)
|
||||
.append(";")
|
||||
.append("filename*=")
|
||||
.append("utf-8''")
|
||||
.append(percentEncodedFileName);
|
||||
|
||||
String contentDispositionValue = "attachment; filename=%s;filename*=utf-8''%s".formatted(percentEncodedFileName, percentEncodedFileName);
|
||||
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition,download-filename");
|
||||
response.setHeader("Content-disposition", contentDispositionValue.toString());
|
||||
response.setHeader("Content-disposition", contentDispositionValue);
|
||||
response.setHeader("download-filename", percentEncodedFileName);
|
||||
}
|
||||
|
||||
@@ -45,8 +36,8 @@ public class FileUtils extends FileUtil {
|
||||
* @param s 需要百分号编码的字符串
|
||||
* @return 百分号编码后的字符串
|
||||
*/
|
||||
public static String percentEncode(String s) throws UnsupportedEncodingException {
|
||||
String encode = URLEncoder.encode(s, StandardCharsets.UTF_8.toString());
|
||||
public static String percentEncode(String s) {
|
||||
String encode = URLEncoder.encode(s, StandardCharsets.UTF_8);
|
||||
return encode.replaceAll("\\+", "%20");
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user