mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-10-31 06:13:44 +08:00 
			
		
		
		
	Compare commits
	
		
			2876 Commits
		
	
	
		
			v3.2.0
			...
			e1e3843ec0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | e1e3843ec0 | ||
|  | 15905b7022 | ||
|  | 1c5ae2f168 | ||
|  | f29e0223a7 | ||
|  | 9fbe3cf399 | ||
|  | e4f1da30fc | ||
|  | 21deab4bf1 | ||
|  | d7d7dcbcf7 | ||
|  | 3f680385a9 | ||
|  | 7ecf4bbf1c | ||
|  | ae65985fbc | ||
|  | 2a34c3ebb2 | ||
|  | 3b46f8c8cf | ||
|  | 7c2efb1aef | ||
|  | ea25474529 | ||
|  | 33e1d34ce5 | ||
|  | 142fb33d81 | ||
|  | ee6c0388da | ||
|  | c171817d6a | ||
|  | 71dddee146 | ||
|  | d456ff64f1 | ||
|  | 9e78fcccf7 | ||
|  | 878cd7e9f0 | ||
|  | 5c9721cfac | ||
|  | 31502dccc7 | ||
|  | 538aa8d908 | ||
|  | 00003b2c57 | ||
|  | a2c238d466 | ||
|  | d89f147c54 | ||
|  | 53cf1b2013 | ||
|  | 564ab331d7 | ||
|  | a690ece164 | ||
|  | b50904c6ff | ||
|  | 70aa14ecf8 | ||
|  | c37b92978a | ||
|  | ef39ad7107 | ||
|  | 48d3ef9818 | ||
|  | 5bf901cdcd | ||
|  | 8e99dd306a | ||
|  | 07fdc240d7 | ||
|  | 023ceaaf91 | ||
|  | 9e551a0b2a | ||
|  | 7c3f3523ea | ||
|  | 40eac07789 | ||
|  | 5868fadbf5 | ||
|  | 124bcc4bba | ||
|  | e71d6fa983 | ||
|  | 7129ad4fac | ||
|  | 16923cc86a | ||
|  | 3761473967 | ||
|  | 34031cae8d | ||
|  | 26abb98747 | ||
|  | c2f67b4a77 | ||
|  | 4d925a4d62 | ||
|  | 4e62054bd1 | ||
|  | fe40d7db32 | ||
|  | c0eeafb5cd | ||
|  | 5626b97a19 | ||
|  | 0f95e9393d | ||
|  | 5de1ffff90 | ||
|  | 33698ee448 | ||
|  | 5e5d478cf2 | ||
|  | 778096d100 | ||
|  | bba163f7b4 | ||
|  | d4f792810e | ||
|  | d14ee59912 | ||
|  | be5d69d5a5 | ||
|  | 97c36674e4 | ||
|  | 1f1564fad9 | ||
|  | c79e053bea | ||
|  | 92e9ed771b | ||
|  | 800c6c8ff3 | ||
|  | 865627fdad | ||
|  | 192537672e | ||
|  | 384f9528e7 | ||
|  | 5fc76b6426 | ||
|  | 4d8a45204c | ||
|  | 2de9397db8 | ||
|  | bfc73ed214 | ||
|  | 8bf741fd5b | ||
|  | 460545a75e | ||
|  | a93b30ec91 | ||
|  | 34bac1add9 | ||
|  | f028cb76fc | ||
|  | 5a4be5fba1 | ||
|  | 23245b78ca | ||
|  | 13ac302525 | ||
|  | 96a62a3564 | ||
|  | 7adf702283 | ||
|  | 279c8e014a | ||
|  | b7517cbbd4 | ||
|  | 45eac02f4f | ||
|  | a6b7c3afe6 | ||
|  | e99e4f6c58 | ||
|  | bcb97bc406 | ||
|  | ad01406fc1 | ||
|  | 15eb08c065 | ||
|  | 2340556091 | ||
|  | 65c54184e8 | ||
|  | 9dcb7c6a12 | ||
|  | 0c6faa751a | ||
|  | b465cb34de | ||
|  | 21c12a791a | ||
|  | 723a0b6d9c | ||
|  | c4ef053958 | ||
|  | 055d1f3bb2 | ||
|  | fe27d8920a | ||
|  | df65670d3d | ||
|  | 2623d0b343 | ||
|  | c0e0b41d13 | ||
|  | 8763bfa3d3 | ||
|  | 71180584da | ||
|  | 319a89e320 | ||
|  | 0673cf8849 | ||
|  | b537899e62 | ||
|  | 7b679e60e0 | ||
|  | bb475a6088 | ||
|  | a217c495d1 | ||
|  | bdb86e2b3a | ||
|  | e8700ac44b | ||
|  | d80f6ab695 | ||
|  | 381be5a1a1 | ||
|  | 214cbac9a6 | ||
|  | 906a031172 | ||
|  | 236dd6e054 | ||
|  | eb17eb6559 | ||
|  | 2746af21f0 | ||
|  | 78abb617ce | ||
|  | 3c57c0e7f9 | ||
|  | 934bbe8bd7 | ||
|  | 718a010c0f | ||
|  | a87071b834 | ||
|  | 2c598f93ab | ||
|  | 0937093851 | ||
|  | b528f0bd14 | ||
|  | 7c2c82fc0a | ||
|  | ffe8b16ff3 | ||
|  | ecf7ebad53 | ||
|  | 3bf26cd509 | ||
|  | a671d4a8a8 | ||
|  | d9713d0f8c | ||
|  | aeaa33ebd3 | ||
|  | c64de03d27 | ||
|  | 2d99304396 | ||
|  | a22dc9537f | ||
|  | 6c28f8a0dd | ||
|  | c100168374 | ||
|  | 8636d8b3e8 | ||
|  | 37b2d648b1 | ||
|  | 27b4992f6e | ||
|  | 001297ca7a | ||
|  | 4f3cbc4bc2 | ||
|  | 008e02a406 | ||
|  | e8acfac091 | ||
|  | e1a26b0388 | ||
|  | a6fc47b4f6 | ||
|  | ce7f5121b0 | ||
|  | b38ca837d6 | ||
|  | a2714fb9f7 | ||
|  | 8c57d694c5 | ||
|  | 0ae521a7dc | ||
|  | 79ec3fd2c9 | ||
|  | 69b95b3e7a | ||
|  | 9d8b9fabbe | ||
|  | 875c9fa77c | ||
|  | 6bc2d9d4a7 | ||
|  | fe5a1f358d | ||
|  | 1972537176 | ||
|  | 8f21e9e2fd | ||
|  | 089a79002f | ||
|  | ece1dee990 | ||
|  | 652f5161a9 | ||
|  | 4ba4ea4fcc | ||
|  | 3444b50da6 | ||
|  | 62b7d96551 | ||
|  | cb71df8a42 | ||
|  | dd54cc972a | ||
|  | 6f14c91d30 | ||
|  | 6f0dd8dc89 | ||
|  | 7d82f954ac | ||
|  | 69130a76e4 | ||
|  | 9086d32bee | ||
|  | a680310f80 | ||
|  | a07880e1d0 | ||
|  | ae584d54a6 | ||
|  | e36e8f7758 | ||
|  | b47798ef19 | ||
|  | 55b1a67637 | ||
|  | d2b9cd2797 | ||
|  | 9a95c46578 | ||
|  | a58f72868a | ||
|  | 820db87604 | ||
|  | 254e61ab01 | ||
|  | ad53965626 | ||
|  | 4de9fa33b7 | ||
|  | 08e40b611b | ||
|  | 8bd2e27653 | ||
|  | d023510f7e | ||
|  | ec5ca0a08f | ||
|  | a46c798e01 | ||
|  | 41a3bdf73d | ||
|  | a7b83672ba | ||
|  | c2746c2392 | ||
|  | 492e7dab26 | ||
|  | 5480e419b6 | ||
|  | 251a617ecc | ||
|  | 36de389fa4 | ||
|  | f4f052deb4 | ||
|  | 3a0fbd45ae | ||
|  | f20c271972 | ||
|  | ad85fa2016 | ||
|  | 1a403361c9 | ||
|  | 9ad64521d3 | ||
|  | ff76df9ae0 | ||
|  | da1cd55c1d | ||
|  | a65baf5d67 | ||
|  | 489cb52976 | ||
|  | 591f86e4e9 | ||
|  | 9768023d38 | ||
|  | 60af92ed2d | ||
|  | 4d566071db | ||
|  | aface5ded1 | ||
|  | 7f6b71d938 | ||
|  | c8ed71d010 | ||
|  | df6649907d | ||
|  | 2fb1c99f56 | ||
|  | fcebda8987 | ||
|  | 0185a468bd | ||
|  | c566f2ae28 | ||
|  | 29c5ff89ba | ||
|  | ab3e4978b1 | ||
|  | 0027f671d2 | ||
|  | 06a8ab0ab2 | ||
|  | 4352b3fe4a | ||
|  | dd17246086 | ||
|  | d7b0dc91d5 | ||
|  | 4598d4d843 | ||
|  | 8a731efe0d | ||
|  | 59fd7eeeb3 | ||
|  | 552e543471 | ||
|  | b1badca062 | ||
|  | 9f34edee4f | ||
|  | d257de7882 | ||
|  | 4821902fdc | ||
|  | a1f82a7d08 | ||
|  | 9009a90ef2 | ||
|  | fc9c90ad99 | ||
|  | 9e613488f1 | ||
|  | 5e6cb0dd3c | ||
|  | 2bb787886d | ||
|  | ed6f8262c6 | ||
|  | 64d574cf06 | ||
|  | e0b0ffcb28 | ||
|  | c17225abb1 | ||
|  | 19aed0a1e4 | ||
|  | 14c1bde958 | ||
|  | eed929b9fe | ||
|  | eda67dd572 | ||
|  | fef2d5207b | ||
|  | 87294b41af | ||
|  | 99d9c516fc | ||
|  | 476c7a77c8 | ||
|  | 8dc4b5cf6b | ||
|  | eba6b48daf | ||
|  | 1aff46bc1c | ||
|  | e78684886d | ||
|  | 7f35925794 | ||
|  | 71a59d3e5f | ||
|  | 4af46a6045 | ||
|  | d194b39e57 | ||
|  | cd08f66c59 | ||
|  | ef919b9f3d | ||
|  | 847b158283 | ||
|  | dd2abd95c9 | ||
|  | b5908d52d7 | ||
|  | bf515042d0 | ||
|  | e94fccc784 | ||
|  | 6d45199592 | ||
|  | 57b3b329a8 | ||
|  | a0fc268bb9 | ||
|  | 631739733f | ||
|  | 2d2bd48963 | ||
|  | f6d9bec16c | ||
|  | 0f1118e03a | ||
|  | 009ac75229 | ||
|  | b64ac8d7f6 | ||
|  | 41240fc415 | ||
|  | a18e430056 | ||
|  | 1a993a7899 | ||
|  | d3b5220dc3 | ||
|  | 4f92c0317e | ||
|  | a098565c37 | ||
|  | 0d5fe5d91e | ||
|  | 5c66f3b90c | ||
|  | 63d22b9b33 | ||
|  | b4678b74ab | ||
|  | a82ed1e9dd | ||
|  | d2ffbfb80b | ||
|  | 5d61782a6c | ||
|  | 1b8c9fdaa9 | ||
|  | 90328ae79b | ||
|  | 9cdcbbccbf | ||
|  | b820a98c6c | ||
|  | 8e749c472a | ||
|  | 70a5077291 | ||
|  | 8a5d8cc9b9 | ||
|  | 0a0a16f969 | ||
|  | 73d5fbd085 | ||
|  | 9da3d25292 | ||
|  | 0385a444c2 | ||
|  | 7d856b030b | ||
|  | 8c0441b91a | ||
|  | baef55ae1b | ||
|  | 80e6943d2e | ||
|  | 2ffdd56301 | ||
|  | 53635da552 | ||
|  | 5e7fb88762 | ||
|  | d89727725b | ||
|  | 8cd7e3c924 | ||
|  | 0baf2c5861 | ||
|  | b0548f9a56 | ||
|  | 2d190cfb19 | ||
|  | 3b5858b114 | ||
|  | 112157ade0 | ||
|  | 8cd30ae86b | ||
|  | 9b6b288e73 | ||
|  | 1757e5519d | ||
|  | a21fa666fd | ||
|  | df9a57c379 | ||
|  | 5f31efd33e | ||
|  | 2a9f245b39 | ||
|  | 761586cc3c | ||
|  | 6731b7947b | ||
|  | ddc8bd1139 | ||
|  | 6ae9bbdb31 | ||
|  | 6c950c9569 | ||
|  | 3ce3ffca05 | ||
|  | d3ccc43d68 | ||
|  | 4c96440686 | ||
|  | 8d8d76364b | ||
|  | 82af98c205 | ||
|  | fdbe8c2395 | ||
|  | 59715b1e02 | ||
|  | f2ec530065 | ||
|  | ac89cb46f5 | ||
|  | abfa995a32 | ||
|  | 51cfbef887 | ||
|  | 7171ed1508 | ||
|  | 6727f3e6a4 | ||
|  | 81006c758a | ||
|  | 01025c4024 | ||
|  | 517277132e | ||
|  | dc5c92ee2d | ||
|  | 57e142e160 | ||
|  | c563afed59 | ||
|  | 556cf87f0e | ||
|  | e0a00cfe98 | ||
|  | d60774a7b8 | ||
|  | e3d40b75cb | ||
|  | eb4479e940 | ||
|  | 7e6d0a5c64 | ||
|  | 88dd4165cb | ||
|  | e96118c574 | ||
|  | 39c4e5fe55 | ||
|  | 46141dc114 | ||
|  | e3a25f2425 | ||
|  | 64289c16f3 | ||
|  | 6b05ddb576 | ||
|  | 88ee252fce | ||
|  | 2add7291ab | ||
|  | 501be029c6 | ||
|  | d86652dee1 | ||
|  | 272ca613ee | ||
|  | 74af811a3b | ||
|  | fc72b67090 | ||
|  | e33f76d710 | ||
|  | 1c3d594947 | ||
|  | 64d9b27310 | ||
|  | f3f3593cfe | ||
|  | e5e8e3ce7c | ||
|  | a7fd7ba72c | ||
|  | 020f090f4a | ||
|  | 5e3231d59b | ||
|  | b522bc015d | ||
|  | 6e64fd7fd7 | ||
|  | 8b44f5cdbc | ||
|  | f9b7d955aa | ||
|  | 6ea2a2fc51 | ||
|  | 760c8d7200 | ||
|  | 32ad28c3dc | ||
|  | 6886e9fd5b | ||
|  | f20130d3db | ||
|  | df9cc881f1 | ||
|  | 4044988afa | ||
|  | d3360e81b9 | ||
|  | df070b7d78 | ||
|  | 83dd98faf3 | ||
|  | 37f89f560f | ||
|  | 918ed0d6d0 | ||
|  | a3c9edde78 | ||
|  | cac0a4cd16 | ||
|  | 581b6e03d5 | ||
|  | 801cc584e5 | ||
|  | b82ff8617e | ||
|  | c87016c1af | ||
|  | 463048e017 | ||
|  | 79aee1d312 | ||
|  | eb038e91dd | ||
|  | 308c22f922 | ||
|  | 457e59e61c | ||
|  | a964ccbd10 | ||
|  | 0af532f4f1 | ||
|  | 4743eb1d3b | ||
|  | 23aafe1cfe | ||
|  | 3f2499feac | ||
|  | fb97649151 | ||
|  | b33b645ef0 | ||
|  | 9318f182b0 | ||
|  | facbb7f28f | ||
|  | 4de45ce170 | ||
|  | 96d57bd263 | ||
|  | bb4587fe05 | ||
|  | 19c83f02aa | ||
|  | 0e1fcbfe9c | ||
|  | eda882433a | ||
|  | e6847605cc | ||
|  | 5bdffdb368 | ||
|  | 0ad52b18b8 | ||
|  | 77f44574c0 | ||
|  | ca06a2311d | ||
|  | b8d9af65e2 | ||
|  | bc2b4876b6 | ||
|  | 23b70ca0be | ||
|  | 44d776a76f | ||
|  | f03c00b2c1 | ||
|  | 7f60ba9888 | ||
|  | 31569646b0 | ||
|  | 3fc37d6362 | ||
|  | 6d28072167 | ||
|  | f124fbd6aa | ||
|  | 88a4a51956 | ||
|  | 4306ea4181 | ||
|  | e19140462d | ||
|  | 20cc8a6d6c | ||
|  | a9d7a42c65 | ||
|  | f51e6d81b1 | ||
|  | f119d082cf | ||
|  | ecfaa9ad5c | ||
|  | f32d0266ee | ||
|  | 7393a61305 | ||
|  | 2b0efd1f93 | ||
|  | b615a3b088 | ||
|  | 85403e975f | ||
|  | 615ad918ca | ||
|  | b886f3a04b | ||
|  | 588a47897a | ||
|  | 2869d590e6 | ||
|  | 6b14bce25e | ||
|  | 5aa346327f | ||
|  | fcf8516f0d | ||
|  | 2a340d4d83 | ||
|  | 508d7a37e3 | ||
|  | 08fece39d8 | ||
|  | 857a0b1006 | ||
|  | 239d59c864 | ||
|  | 7297053dd6 | ||
|  | bd872f624a | ||
|  | 86acb14f05 | ||
|  | 9825f349ac | ||
|  | 19fd562c24 | ||
|  | b6d939a9ff | ||
|  | 1619edb8a1 | ||
|  | 782821aeb2 | ||
|  | 51498958fa | ||
|  | 51edb74474 | ||
|  | d5ab2a7557 | ||
|  | ee3525cfb2 | ||
|  | e9bd0858e2 | ||
|  | f46d881866 | ||
|  | ee5e718f83 | ||
|  | e25083aea4 | ||
|  | e74f0ca6f8 | ||
|  | 52b0fa9a54 | ||
|  | 105c007f03 | ||
|  | 0a3d5fd5d4 | ||
|  | ae3c02d4b2 | ||
|  | 9e17d07a17 | ||
|  | dcfab4e011 | ||
|  | 0b78f9361d | ||
|  | 0c4e9dc813 | ||
|  | d894cae073 | ||
|  | 84f553a911 | ||
|  | 05580deaa9 | ||
|  | aac83bbb91 | ||
|  | 249f1f48a6 | ||
|  | bfb92fe667 | ||
|  | 640dc43bbe | ||
|  | 8859d915b0 | ||
|  | 82fdb37c6b | ||
|  | 49c18dab63 | ||
|  | f5b8a22bde | ||
|  | b6b0f9c47d | ||
|  | a2a2fa2311 | ||
|  | 34690e3e65 | ||
|  | 54f58257f9 | ||
|  | 58b6c4668f | ||
|  | d0e7eb8409 | ||
|  | 77a7a8f30e | ||
|  | f76738e02b | ||
|  | ab147df2f1 | ||
|  | 5444ccc857 | ||
|  | fc89d62f1a | ||
|  | 94467273c5 | ||
|  | 835de64bea | ||
|  | 113da3437b | ||
|  | b0b6d01357 | ||
|  | 6cc24dc763 | ||
|  | 0cb3105cea | ||
|  | 00502a4689 | ||
|  | ebb7242b71 | ||
|  | 0fbb96c4ac | ||
|  | e942ffed71 | ||
|  | 319270bf2b | ||
|  | 8b69de0d54 | ||
|  | f929513310 | ||
|  | 0d25b82087 | ||
|  | c75857b1ea | ||
|  | 6d353869ef | ||
|  | 6ba7249a75 | ||
|  | 2ee543e2a4 | ||
|  | 871dfa9a67 | ||
|  | 17fe2d5863 | ||
|  | d5b62a2126 | ||
|  | a4a833f15f | ||
|  | a4fe077a23 | ||
|  | bfa77361b7 | ||
|  | 3dff529920 | ||
|  | 3681150010 | ||
|  | f0b4fcbdf0 | ||
|  | 5c7e8c5381 | ||
|  | a144fa449b | ||
|  | 4f9ceb0a80 | ||
|  | 12338fc0b4 | ||
|  | 6d2cc6e87d | ||
|  | 52598e5c5c | ||
|  | 903d810edc | ||
|  | 475b169952 | ||
|  | ba1f66367b | ||
|  | b27f560b33 | ||
|  | 59edca8fca | ||
|  | 147a90302d | ||
|  | b4b5aedc82 | ||
|  | 81293c9368 | ||
|  | 7c82b4c370 | ||
|  | 045e09f029 | ||
|  | cbd59f84fd | ||
|  | 086b206139 | ||
|  | d56e8d79ec | ||
|  | d61459e912 | ||
|  | 33880f3e86 | ||
|  | 6186881615 | ||
|  | 20a3396128 | ||
|  | e5ee98a6aa | ||
|  | 8985f1dba6 | ||
|  | 5e09884e99 | ||
|  | 0cb0a355bb | ||
|  | 26445851cc | ||
|  | 810691b5df | ||
|  | 5d18d02a9c | ||
|  | 65421639f1 | ||
|  | a474e9e5d1 | ||
|  | 7b9358a4f0 | ||
|  | ff684cad44 | ||
|  | 0b4f6dd29b | ||
|  | b4f512f667 | ||
|  | 7dda9974f1 | ||
|  | 95791254a9 | ||
|  | e0253a4ea8 | ||
|  | cfc2dba275 | ||
|  | 867e7bf665 | ||
|  | 7c448aed9f | ||
|  | 8a388a0d8b | ||
|  | 62a2e9de37 | ||
|  | 1184274246 | ||
|  | 51d66199b1 | ||
|  | e7e988f97a | ||
|  | a17211dc96 | ||
|  | 2c1769575c | ||
|  | 5d3af1a932 | ||
|  | f2e0ffb2b2 | ||
|  | 2e32b748b6 | ||
|  | 512b5204bc | ||
|  | 44bef2d6d9 | ||
|  | 7e2257b224 | ||
|  | 0b04ac79d0 | ||
|  | 7b02ad3c00 | ||
|  | 9b507f06c4 | ||
|  | 6ce92e1669 | ||
|  | d443304829 | ||
|  | c84f24fe20 | ||
|  | 9175b7a4c1 | ||
|  | 1c011fbd7b | ||
|  | 56531afd1a | ||
|  | b6e294c137 | ||
|  | 0f9936a542 | ||
|  | 9855f60f1f | ||
|  | 07adf67dfc | ||
|  | 125b03adfc | ||
|  | 528b65ae04 | ||
|  | 55fda94b6a | ||
|  | 67ab7a04ad | ||
|  | 94797a2d2b | ||
|  | 1bd40a0cff | ||
|  | 102003a52b | ||
|  | 6777ae046e | ||
|  | a32f55a920 | ||
|  | f3cc05e651 | ||
|  | 52a53791c8 | ||
|  | e181e340e4 | ||
|  | 2cf2cc46f2 | ||
|  | 11bfde3dc1 | ||
|  | dd6d4c67ed | ||
|  | f13b9d2764 | ||
|  | 50ed9b327f | ||
|  | 49f101308f | ||
|  | 2154033879 | ||
|  | ba1a540add | ||
|  | ea23e604f9 | ||
|  | 7cf9c15984 | ||
|  | a3f43f8ea3 | ||
|  | 3a933e6f2b | ||
|  | 9a15298e63 | ||
|  | 7367457500 | ||
|  | 831aec3af9 | ||
|  | 5b67b182c3 | ||
|  | 5fc0a298a5 | ||
|  | 69e3afc770 | ||
|  | 45d431f24e | ||
|  | 6a3a27026d | ||
|  | 0310637b07 | ||
|  | 9662d8a2ab | ||
|  | e81d8527c4 | ||
|  | 02a8bfb5ae | ||
|  | 845e95bd07 | ||
|  | 5eea8fda26 | ||
|  | b9133484f0 | ||
|  | ef4beaceb0 | ||
|  | 68dff22b77 | ||
|  | 0d0ae31d52 | ||
|  | bdcd889df4 | ||
|  | ef57259386 | ||
|  | 416ca05be4 | ||
|  | 479b17a8c2 | ||
|  | 624fd87751 | ||
|  | 727df8dd94 | ||
|  | 8ae9fc10eb | ||
|  | 1ff6502ea9 | ||
|  | 594165da6a | ||
|  | c03c72c7d0 | ||
|  | 78115e0504 | ||
|  | cb9ed5add0 | ||
|  | 4bb416945b | ||
|  | 1375a19a46 | ||
|  | 125b50b33e | ||
|  | 65d25c6f64 | ||
|  | 3879fa5df2 | ||
|  | df1cd7e07f | ||
|  | 2a9897057e | ||
|  | ea5d657e31 | ||
|  | a36a07ae6f | ||
|  | acaa220a70 | ||
|  | 3ffd1e3b41 | ||
|  | 14cedccaf3 | ||
|  | 041d8399ba | ||
|  | 32171508e1 | ||
|  | 11c15c47d1 | ||
|  | 853fc6678b | ||
|  | d6db49e621 | ||
|  | 405a98c8f3 | ||
|  | cb296ef2cd | ||
|  | bebd9e7a54 | ||
|  | ae0bd608a9 | ||
|  | 31d445c6a1 | ||
|  | f7f2c1730d | ||
|  | 2782c369c9 | ||
|  | 659db611ea | ||
|  | 9e5f7be1c5 | ||
|  | bd4f7ff3aa | ||
|  | 155aa3ba5c | ||
|  | 31cd1258f8 | ||
|  | 18e3b424d6 | ||
|  | d403688a0c | ||
|  | 17bf0c0623 | ||
|  | b296486892 | ||
|  | 64dccb192c | ||
|  | c15a27709d | ||
|  | 33de9f9337 | ||
|  | aa0ebd45b9 | ||
|  | 2583632883 | ||
|  | 2472d531f5 | ||
|  | fb43fb9af7 | ||
|  | 56a640a5c6 | ||
|  | ffa702935c | ||
|  | 8482203c3b | ||
|  | eb06eb7266 | ||
|  | ea64f505af | ||
|  | 748411c8db | ||
|  | 90aad8ed9a | ||
|  | 6cc2da03e0 | ||
|  | e1b94d6a28 | ||
|  | 1abd2e7d7e | ||
|  | 8352f18b3a | ||
|  | 9ff0b09d4d | ||
|  | 2e08825da8 | ||
|  | cf81f641bd | ||
|  | 07891edd16 | ||
|  | 6ea777d584 | ||
|  | 040ecb2532 | ||
|  | f5f8fa2471 | ||
|  | c728116788 | ||
|  | 6438f80526 | ||
|  | 0b43cf4b1c | ||
|  | 8677f78a56 | ||
|  | 54606b05c0 | ||
|  | 6ad126cf64 | ||
|  | 654b84f4f2 | ||
|  | 9ddf0c6e76 | ||
|  | 7e3984e341 | ||
|  | af77657a86 | ||
|  | eb03afef41 | ||
|  | 1da98c8a82 | ||
|  | a73c65eae9 | ||
|  | 5dc14666cc | ||
|  | dd219ad295 | ||
|  | 4e871e02e6 | ||
|  | cbc1030043 | ||
|  | 061c6e822d | ||
|  | 17d259dc52 | ||
|  | 0a319b31c8 | ||
|  | 8b1e34d800 | ||
|  | e548a05cf0 | ||
|  | 089b089fce | ||
|  | aa3e8c9986 | ||
|  | 497176d9d1 | ||
|  | 4e52369542 | ||
|  | ba37178ebb | ||
|  | 343de424ab | ||
|  | 2d790f3c4d | ||
|  | 651b2e140b | ||
|  | c859fa4c38 | ||
|  | 26e149a357 | ||
|  | 2ed765d204 | ||
|  | 8e091d712f | ||
|  | 812d9eb0e8 | ||
|  | ed43774129 | ||
|  | 945202652a | ||
|  | 6954fdec0a | ||
|  | 148ad7a3d1 | ||
|  | b209030f45 | ||
|  | 425dbd5604 | ||
|  | 4cf14ef5ac | ||
|  | f429065ab4 | ||
|  | 9d35575051 | ||
|  | b5ad057f06 | ||
|  | ab2af1669c | ||
|  | 11615685b7 | ||
|  | b017cb7b54 | ||
|  | 960bea96b4 | ||
|  | 979cfc9af0 | ||
|  | ed8202891f | ||
|  | 6f5a368c86 | ||
|  | c6c615308c | ||
|  | 105dfd96c1 | ||
|  | 65c51124f8 | ||
|  | 6309af9db8 | ||
|  | 5360ec6ec3 | ||
|  | 7c7cfc8c39 | ||
|  | f3207649ff | ||
|  | 6086db3b0b | ||
|  | fd4c91301e | ||
|  | 581d7144d6 | ||
|  | a458c7056d | ||
|  | 7b8822f664 | ||
|  | c8cd4e2d01 | ||
|  | abe6b05c5c | ||
|  | 1b6b74c67b | ||
|  | df5cbaaea8 | ||
|  | 9a14e90642 | ||
|  | fb337f57b8 | ||
|  | 9f09083247 | ||
|  | 74e55720d7 | ||
|  | e30e4fe447 | ||
|  | 5d38f4bb77 | ||
|  | dbef39a7a6 | ||
|  | f66b196046 | ||
|  | bb59cb204d | ||
|  | 731bcc7e93 | ||
|  | b3dbb19afc | ||
|  | b4e1e32d20 | ||
|  | c9cceb9e2d | ||
|  | fe13fd899c | ||
|  | 81b2999dc4 | ||
|  | 598ece677d | ||
|  | 2142fc8876 | ||
|  | 67d96a63f1 | ||
|  | efc46c17b2 | ||
|  | acae5616f8 | ||
|  | 672320f38b | ||
|  | f3cd3bb63f | ||
|  | ea98435acd | ||
|  | d545f8ddda | ||
|  | d4685e5f95 | ||
|  | e7907a4664 | ||
|  | 60862ffc3e | ||
|  | 154ee06d70 | ||
|  | 22d87c7c9d | ||
|  | e8f8b41f8b | ||
|  | 079f90766f | ||
|  | acc7f3dfe5 | ||
|  | 234d8989d7 | ||
|  | acb6aeffd1 | ||
|  | b8135557e5 | ||
|  | d54772815b | ||
|  | 5f7f8a31e9 | ||
|  | 56798131b3 | ||
|  | 3b932cfa7b | ||
|  | 2d27100b5d | ||
|  | 5e1bd0d679 | ||
|  | d954cf01f3 | ||
|  | e655da45e2 | ||
|  | c7246b3a84 | ||
|  | bef6bb7004 | ||
|  | ef8c567ab6 | ||
|  | 0fd001f229 | ||
|  | 55ce0e34c9 | ||
|  | 70bf1a48d0 | ||
|  | 7b4e8324a9 | ||
|  | 3913bf68c6 | ||
|  | ea48115190 | ||
|  | 9fdd4d0fba | ||
|  | bec97982a6 | ||
|  | 3a4990e3d4 | ||
|  | 995ddf6d98 | ||
|  | 1997a607ba | ||
|  | 3d406c2d07 | ||
|  | 591331b70c | ||
|  | 4273f2db34 | ||
|  | cb913a9adc | ||
|  | 7c5898ddf6 | ||
|  | a07e5d7833 | ||
|  | 9766f61cf8 | ||
|  | 58657e53bf | ||
|  | 391c92a6c6 | ||
|  | 65480ebe96 | ||
|  | 5e5fe434e2 | ||
|  | b628c9b027 | ||
|  | 928e418f3f | ||
|  | e5089dc126 | ||
|  | 6cff0375fb | ||
|  | afa8a1f298 | ||
|  | 8c3462079b | ||
|  | f1eeb08d90 | ||
|  | cad250f02a | ||
|  | 13e60a6048 | ||
|  | e115f5f2f4 | ||
|  | 348bd00fa3 | ||
|  | 2417517aee | ||
|  | 05880981f8 | ||
|  | d4f8b93fe3 | ||
|  | 7f64fa7037 | ||
|  | eca2be1a2e | ||
|  | 3d03a5b319 | ||
|  | 59385fc08d | ||
|  | fcabba1087 | ||
|  | 2ac24d62a0 | ||
|  | f0b9c21169 | ||
|  | 46e46e60a6 | ||
|  | 606290e185 | ||
|  | 845b57e931 | ||
|  | e7ca94bab1 | ||
|  | a7bb4ee50c | ||
|  | 339f85741f | ||
|  | 63374ee876 | ||
|  | e77ede91b9 | ||
|  | 30d7651322 | ||
|  | f101d70523 | ||
|  | 5cf84980e8 | ||
|  | 3035eb4a54 | ||
|  | b4710edc18 | ||
|  | 3e2a6492f4 | ||
|  | e11b1bb2ec | ||
|  | 57318cc55d | ||
|  | 8d3d93e537 | ||
|  | df5edb67f0 | ||
|  | 12b40f2bbe | ||
|  | 8660db3bb3 | ||
|  | 649099a841 | ||
|  | b4f91a9bbd | ||
|  | f72ce39c13 | ||
|  | f5420f1f07 | ||
|  | 2cf7c45ac5 | ||
|  | 4ceb79afa3 | ||
|  | 84671e5972 | ||
|  | 9c84530593 | ||
|  | 363af040d6 | ||
|  | 2ea30af4c4 | ||
|  | 6ccef6c1d0 | ||
|  | 2a9624d404 | ||
|  | a1f404d548 | ||
|  | c95a197028 | ||
|  | 82c62091aa | ||
|  | 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 | ||
|  | b082da73a1 | ||
|  | 6976c7f386 | ||
|  | 7702175130 | ||
|  | c2e43cc781 | ||
|  | 6f6a3566ac | ||
|  | 06442d5aa2 | ||
|  | 0d24be4c05 | ||
|  | 553c29ab8a | 
| @@ -10,7 +10,7 @@ end_of_line = lf | |||||||
| trim_trailing_whitespace = true | trim_trailing_whitespace = true | ||||||
| insert_final_newline = true | insert_final_newline = true | ||||||
|  |  | ||||||
| [*.{json,yml}] | [*.{json,yml,yaml}] | ||||||
| indent_size = 2 | indent_size = 2 | ||||||
|  |  | ||||||
| [*.md] | [*.md] | ||||||
|   | |||||||
							
								
								
									
										51
									
								
								.gitee/ISSUE_TEMPLATE/bug.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								.gitee/ISSUE_TEMPLATE/bug.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | |||||||
|  | name: Bug 反馈 | ||||||
|  | description: 当你使用过程中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲,请在这里反馈。 | ||||||
|  | title: "[Bug]: " | ||||||
|  | labels: ["bug"] | ||||||
|  | body: | ||||||
|  |   - type: textarea | ||||||
|  |     id: version | ||||||
|  |     attributes: | ||||||
|  |       label: 版本 | ||||||
|  |       description: 你当前正在使用我们软件的哪个版本(pom文件内的版本号)? | ||||||
|  |       value: | | ||||||
|  |         注意: 未填写版本号不予处理直接关闭或删除 | ||||||
|  |         jdk版本(带上尾号): | ||||||
|  |         框架版本(项目启动时输出的版本号): | ||||||
|  |         其他依赖版本(你觉得有必要的): | ||||||
|  |     validations: | ||||||
|  |       required: true | ||||||
|  |   - type: checkboxes | ||||||
|  |     attributes: | ||||||
|  |       label: 功能不好用不会用是否已经看过项目文档? | ||||||
|  |       options: | ||||||
|  |         - label: https://plus-doc.dromara.org | ||||||
|  |           required: true | ||||||
|  |   - type: checkboxes | ||||||
|  |     attributes: | ||||||
|  |       label: 这个问题是否已经存在? | ||||||
|  |       options: | ||||||
|  |         - label: 我已经搜索过现有的问题 (https://gitee.com/dromara/RuoYi-Vue-Plus/issues) | ||||||
|  |           required: true | ||||||
|  |   - type: textarea | ||||||
|  |     attributes: | ||||||
|  |       label: 希望结果 | ||||||
|  |       description: 想知道你觉得怎么样是正常或者合理的。 | ||||||
|  |     validations: | ||||||
|  |       required: true | ||||||
|  |   - type: markdown | ||||||
|  |     attributes: | ||||||
|  |       label: 如何复现 | ||||||
|  |       description: 请详细告诉我们如何复现你遇到的问题。 | ||||||
|  |       value: | | ||||||
|  |         如涉及代码,可提供一个最小代码示例,并使用```附上它,或者截图均可,越详细越好。<br> | ||||||
|  |         大多数问题都是:代码编写错误问题,逻辑问题,或者用法错误等问题。 | ||||||
|  |     validations: | ||||||
|  |       required: true | ||||||
|  |   - type: textarea | ||||||
|  |     attributes: | ||||||
|  |       label: 相关代码与报错信息(请勿发混乱格式) | ||||||
|  |       description: 如果可以的话,上传任何关于 bug 的截图。 | ||||||
|  |       value: | | ||||||
|  |         [在这里上传图片] | ||||||
|  |  | ||||||
							
								
								
									
										5
									
								
								.gitee/ISSUE_TEMPLATE/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.gitee/ISSUE_TEMPLATE/config.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | |||||||
|  | blank_issues_enabled: false | ||||||
|  | contact_links: | ||||||
|  |   - name: RuoYi-Vue-Plus 文档中心 | ||||||
|  |     url: https://plus-doc.dromara.org | ||||||
|  |     about: 提供 RuoYi-Vue-Plus 搭建使用指南、平台基本开发使用方式、介绍、基础知识和常见问题解答 | ||||||
							
								
								
									
										43
									
								
								.gitee/ISSUE_TEMPLATE/feature.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								.gitee/ISSUE_TEMPLATE/feature.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | |||||||
|  | name: 功能建议 | ||||||
|  | description: 对本项目提出一个功能建议。 | ||||||
|  | title: "[功能建议]: " | ||||||
|  | labels: ["enhancement"] | ||||||
|  | body: | ||||||
|  |   - type: markdown | ||||||
|  |     attributes: | ||||||
|  |       value: | | ||||||
|  |         感谢提出功能建议,我们将仔细考虑!请持续关注该issues,在加入计划后我们会有贡献者设置为负责人,同时状态成为进行中。 | ||||||
|  |   - type: textarea | ||||||
|  |     id: related-problem | ||||||
|  |     attributes: | ||||||
|  |       label: 你的功能建议是否和某个问题相关? | ||||||
|  |       description: 清晰并简洁地描述问题是什么,例如,当我...时,我总是感到困扰。 | ||||||
|  |     validations: | ||||||
|  |       required: false | ||||||
|  |   - type: textarea | ||||||
|  |     id: desired-solution | ||||||
|  |     attributes: | ||||||
|  |       label: 你希望看到什么解决方案? | ||||||
|  |       description: 清晰并简洁地描述你希望发生的事情。 | ||||||
|  |     validations: | ||||||
|  |       required: true | ||||||
|  |   - type: textarea | ||||||
|  |     id: alternatives | ||||||
|  |     attributes: | ||||||
|  |       label: 你考虑过哪些替代方案? | ||||||
|  |       description: 清晰并简洁地描述你考虑过的任何替代解决方案或功能。 | ||||||
|  |     validations: | ||||||
|  |       required: false | ||||||
|  |   - type: textarea | ||||||
|  |     id: additional-context | ||||||
|  |     attributes: | ||||||
|  |       label: 你有其他上下文或截图吗? | ||||||
|  |       description: 在此处添加有关功能请求的任何其他上下文或截图。 | ||||||
|  |     validations: | ||||||
|  |       required: false | ||||||
|  |   - type: checkboxes | ||||||
|  |     attributes: | ||||||
|  |       label: 意向参与贡献 | ||||||
|  |       options: | ||||||
|  |         - label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区。 | ||||||
|  |           required: false | ||||||
							
								
								
									
										7
									
								
								.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | ### 更改目的 解决了什么问题(请提交到dev分支) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ### 改动逻辑 这么写的思路(让作者更好的理解你的意图) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ### 测试 都做了哪些测试(未经过测试不采纳) | ||||||
							
								
								
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -25,11 +25,13 @@ target/ | |||||||
| *.iml | *.iml | ||||||
| *.ipr | *.ipr | ||||||
|  |  | ||||||
|  | ### JRebel ### | ||||||
|  | rebel.xml | ||||||
|  |  | ||||||
| ### NetBeans ### | ### NetBeans ### | ||||||
| nbproject/private/ | nbproject/private/ | ||||||
| build/* | build/* | ||||||
| nbbuild/ | nbbuild/ | ||||||
| dist/ |  | ||||||
| nbdist/ | nbdist/ | ||||||
| .nb-gradle/ | .nb-gradle/ | ||||||
|  |  | ||||||
| @@ -42,3 +44,5 @@ nbdist/ | |||||||
| !*/build/*.java | !*/build/*.java | ||||||
| !*/build/*.html | !*/build/*.html | ||||||
| !*/build/*.xml | !*/build/*.xml | ||||||
|  |  | ||||||
|  | .flattened-pom.xml | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								.run/ruoyi-monitor-admin.run.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.run/ruoyi-monitor-admin.run.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | <component name="ProjectRunConfigurationManager"> | ||||||
|  |   <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:5.3.1" /> | ||||||
|  |         <option name="buildOnly" value="true" /> | ||||||
|  |         <option name="sourceFilePath" value="ruoyi-extend/ruoyi-monitor-admin/Dockerfile" /> | ||||||
|  |       </settings> | ||||||
|  |     </deployment> | ||||||
|  |     <method v="2" /> | ||||||
|  |   </configuration> | ||||||
|  | </component> | ||||||
							
								
								
									
										12
									
								
								.run/ruoyi-server.run.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.run/ruoyi-server.run.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | <component name="ProjectRunConfigurationManager"> | ||||||
|  |   <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:5.3.1" /> | ||||||
|  |         <option name="buildOnly" value="true" /> | ||||||
|  |         <option name="sourceFilePath" value="ruoyi-admin/Dockerfile" /> | ||||||
|  |       </settings> | ||||||
|  |     </deployment> | ||||||
|  |     <method v="2" /> | ||||||
|  |   </configuration> | ||||||
|  | </component> | ||||||
							
								
								
									
										12
									
								
								.run/ruoyi-snailjob-server.run.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.run/ruoyi-snailjob-server.run.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | <component name="ProjectRunConfigurationManager"> | ||||||
|  |   <configuration default="false" name="ruoyi-snailjob-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||||||
|  |     <deployment type="dockerfile"> | ||||||
|  |       <settings> | ||||||
|  |         <option name="imageTag" value="ruoyi/ruoyi-snailjob-server:5.3.1" /> | ||||||
|  |         <option name="buildOnly" value="true" /> | ||||||
|  |         <option name="sourceFilePath" value="ruoyi-extend/ruoyi-snailjob-server/Dockerfile" /> | ||||||
|  |       </settings> | ||||||
|  |     </deployment> | ||||||
|  |     <method v="2" /> | ||||||
|  |   </configuration> | ||||||
|  | </component> | ||||||
							
								
								
									
										287
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										287
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,150 +1,185 @@ | |||||||
|  | <img src="https://foruda.gitee.com/images/1679673773341074847/178e8451_1766278.png" width="50%" height="50%"> | ||||||
|  | <div style="height: 10px; clear: both;"></div> | ||||||
|  |  | ||||||
|  | - - - | ||||||
| ## 平台简介 | ## 平台简介 | ||||||
| [](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus) |  | ||||||
| [](https://github.com/JavaLionLi/RuoYi-Vue-Plus) | [](https://gitee.com/dromara/RuoYi-Vue-Plus) | ||||||
| [](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/blob/master/LICENSE) | [](https://github.com/dromara/RuoYi-Vue-Plus) | ||||||
|  | [](https://gitcode.com/dromara/RuoYi-Vue-Plus) | ||||||
|  | [](https://gitee.com/dromara/RuoYi-Vue-Plus/blob/5.X/LICENSE) | ||||||
| [](https://www.jetbrains.com/?from=RuoYi-Vue-Plus) | [](https://www.jetbrains.com/?from=RuoYi-Vue-Plus) | ||||||
| <br> | <br> | ||||||
| [](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus) | [](https://gitee.com/dromara/RuoYi-Vue-Plus) | ||||||
| []() | []() | ||||||
| []() |  | ||||||
| []() |  | ||||||
| []() | []() | ||||||
|  | []() | ||||||
|  |  | ||||||
| RuoYi-Vue-Plus 是基于 RuoYi-Vue 针对 `分布式集群` 场景升级(不兼容原框架) | > Dromara RuoYi-Vue-Plus 是重写 RuoYi-Vue 针对 `分布式集群与多租户` 场景全方位升级(不兼容原框架) | ||||||
|  |  | ||||||
| | 功能介绍 | 使用技术 | 文档地址 | 特性注意事项 | | > 项目代码、文档 均开源免费可商用 遵循开源协议在项目中保留开源协议文件即可<br> | ||||||
| |---|---|---|---| | 活到老写到老 为兴趣而开源 为学习而开源 为让大家真正可以学到技术而开源 | ||||||
| | 当前框架 | RuoYi-Vue-Plus | [RuoYi-Vue-Plus文档](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages) | 重写RuoYi-Vue全方位升级(不兼容原框架) | |  | ||||||
| | satoken分支 | RuoYi-Vue-Plus-satoken | [satoken分支地址](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/tree/satoken/) | 使用satoken重构权限鉴权(仅供学习不推荐上生产) | | > 系统演示: [传送门](https://plus-doc.dromara.org/#/common/demo_system) | ||||||
| | 单体分支 | RuoYi-Vue-Plus-fast | [fast分支地址](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/tree/fast/) | 单体应用结构 | |  | ||||||
| | 原框架 | RuoYi-Vue | [RuoYi-Vue官网](http://ruoyi.vip/) | 定期同步需要的功能 | | > 官方前端项目地址: [plus-ui](https://gitee.com/JavaLionLi/plus-ui)<br> | ||||||
| | 前端开发框架 | Vue、Element UI | [Element UI官网](https://element.eleme.cn/#/zh-CN) | | | > 成员前端项目地址: 基于vben5 [ruoyi-plus-vben5](https://gitee.com/dapppp/ruoyi-plus-vben5) | ||||||
| | 后端开发框架 | SpringBoot | [SpringBoot官网](https://spring.io/projects/spring-boot/#learn) | | |  | ||||||
| | 容器框架 | Undertow | [Undertow官网](https://undertow.io/) | 基于 Netty 的高性能容器 | | > 文档地址: [plus-doc](https://plus-doc.dromara.org) | ||||||
| | 权限认证框架 | Spring Security、Jwt | [SpringSecurity官网](https://spring.io/projects/spring-security#learn) | 支持多终端认证系统 | |  | ||||||
| | 关系数据库 | MySQL | [MySQL官网](https://dev.mysql.com/) | 适配 8.X 最低 5.7 | | ## 赞助商 | ||||||
| | 缓存数据库 | Redis | [Redis官网](https://redis.io/) | 适配 6.X 最低 4.X | |  | ||||||
| | 数据库框架 | Mybatis-Plus | [Mybatis-Plus文档](https://baomidou.com/guide/) | 快速 CRUD 增加开发效率 | | MaxKey 业界领先单点登录产品 - https://gitee.com/dromara/MaxKey <br> | ||||||
| | 数据库框架 | p6spy | [p6spy官网](https://p6spy.readthedocs.io/) | 更强劲的 SQL 分析 | | CCFlow 驰聘低代码-流程-表单 - https://gitee.com/opencc/RuoYi-JFlow <br> | ||||||
| | 多数据源框架 | dynamic-datasource | [dynamic-ds文档](https://www.kancloud.cn/tracy5546/dynamic-datasource/content) | 支持主从与多种类数据库异构 | | 数舵科技 软件定制开发APP小程序等 - http://www.shuduokeji.com/ <br> | ||||||
| | 序列化框架 | Jackson | [Jackson官网](https://github.com/FasterXML/jackson) | 统一使用 jackson 高效可靠 | | 引迈信息 软件开发平台 - https://www.jnpfsoft.com/index.html?from=plus-doc <br> | ||||||
| | 网络框架 | Feign、OkHttp3 | [Feign官网](https://github.com/OpenFeign/feign) | 接口化管理 HTTP 请求 | | <font color="red">**启山商城系统 多租户商城源码可免费商用可二次开发 - https://www.73app.cn/** </font><br> | ||||||
| | Redis客户端 | Redisson | [Redisson文档](https://github.com/redisson/redisson/wiki/%E7%9B%AE%E5%BD%95) | 支持单机、集群配置 | | Mall4J 高质量Java商城系统 - https://www.mall4j.com/cn/?statId=11 <br> | ||||||
| | 分布式限流 | Redisson | [Redisson文档](https://github.com/redisson/redisson/wiki/%E7%9B%AE%E5%BD%95) | 全局、请求IP、集群ID 多种限流 | | [如何成为赞助商 加群联系作者详谈](https://plus-doc.dromara.org/#/common/add_group) | ||||||
| | 分布式锁 | Lock4j | [Lock4j官网](https://gitee.com/baomidou/lock4j) | 注解锁、工具锁 多种多样 | |  | ||||||
| | 分布式幂等 | Lock4j | [Lock4j文档](https://gitee.com/baomidou/lock4j) | 基于分布式锁实现 | | # 本框架与RuoYi的功能差异 | ||||||
| | 文件存储 | Minio | [Minio文档](https://docs.min.io/) | 本地存储 | |  | ||||||
| | 文件存储 | 七牛、阿里、腾讯 | [OSS使用文档](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages?sort_id=4359146&doc_id=1469725) | 云存储 | | | 功能          | 本框架                                                                                                               | RuoYi                                                                              | | ||||||
| | 监控框架 | SpringBoot-Admin | [SpringBoot-Admin文档](https://codecentric.github.io/spring-boot-admin/current/) | 全方位服务监控 | | |-------------|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | ||||||
| | 校验框架 | Validation | [Validation文档](https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/) | 增强接口安全性、严谨性 | | | 前端项目        | 采用 Vue3 + TS + ElementPlus 重写                                                                                     | 基于Vue2/Vue3 + JS                                                                   |  | ||||||
| | Excel框架 | Alibaba EasyExcel | [EasyExcel文档](https://www.yuque.com/easyexcel/doc/easyexcel) | 性能优异 扩展性强 | | | 后端项目结构      | 采用插件化 + 扩展包形式 结构解耦 易于扩展                                                                                           | 模块相互注入耦合严重难以扩展                                                                     |  | ||||||
| | 文档框架 | Knife4j | [Knife4j文档](https://doc.xiaominfo.com/knife4j/documentation/) | 美化接口文档 | | | 后端代码风格      | 严格遵守Alibaba规范与项目统一配置的代码格式化                                                                                        | 代码书写与常规结构不同阅读障碍大                                                                   | | ||||||
| | 工具类框架 | Hutool、Lombok | [Hutool文档](https://www.hutool.cn/docs/) | 减少代码冗余 增加安全性 | | | Web容器       | 采用 Undertow 基于 XNIO 的高性能容器                                                                                        | 采用 Tomcat                                                                          | | ||||||
| | 代码生成器 | 适配MP、Knife4j规范化代码 | [Hutool文档](https://www.hutool.cn/docs/) | 一键生成前后端代码 | | | 权限认证        | 采用 Sa-Token、Jwt 静态使用功能齐全 低耦合 高扩展                                                                                  | Spring Security 配置繁琐扩展性极差                                                          | | ||||||
| | 部署方式 | Docker | [Docker文档](https://docs.docker.com/) | 容器编排 一键部署业务集群 | | | 权限注解        | 采用 Sa-Token 支持注解 登录校验、角色校验、权限校验、二级认证校验、HttpBasic校验、忽略校验<br/>角色与权限校验支持多种条件 如 `AND` `OR` 或 `权限 OR 角色` 等复杂表达式        | 只支持是否存在匹配                                                                          | | ||||||
| | 国际化 | SpringMessage | [SpringMVC文档](https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc) | Spring标准国际化方案 | | | 三方鉴权        | 采用 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代码逻辑                                                                     | | ||||||
|  | | ORM框架       | 采用 Mybatis-Plus 基于对象几乎不用写SQL全java操作 功能强大插件众多<br/>例如多租户插件 分页插件 乐观锁插件等等                                             | 采用 Mybatis 基于XML需要手写SQL                                                            | | ||||||
|  | | SQL监控       | 采用 p6spy 可输出完整SQL与执行时间监控                                                                                          | log输出 需手动拼接sql与参数无法快速查看调试问题                                                        | | ||||||
|  | | 数据分页        | 采用 Mybatis-Plus 分页插件<br/>框架对其进行了扩展 对象化分页对象 支持多种方式传参 支持前端多排序 复杂排序                                                  | 采用 PageHelper 仅支持单查询分页 参数只能从param传 只能单排序 功能扩展性差 体验不好                               | | ||||||
|  | | 数据权限        | 采用 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 支持多数据源不同种类的数据库事务回滚                                                                          | 不支持                                                                                | | ||||||
|  | | 数据库连接池      | 采用 HikariCP Spring官方内置连接池 配置简单 以性能与稳定性闻名天下                                                                        | 采用 druid bug众多 社区维护差 活跃度低 配置众多繁琐性能一般                                               | | ||||||
|  | | 数据库主键       | 采用 雪花ID 基于时间戳的 有序增长 唯一ID 再也不用为分库分表 数据合并主键冲突重复而发愁                                                                  | 采用 数据库自增ID 支持数据量有限 不支持多数据源主键唯一                                                     | | ||||||
|  | | WebSocket协议 | 基于 Spring 封装的 WebSocket 协议 扩展了Token鉴权与分布式会话同步 不再只是基于单机的废物                                                         | 无                                                                                  | | ||||||
|  | | SSE推送       | 采用 Spring SSE 实现 扩展了Token鉴权与分布式会话同步                                                                               | 无                                                                                  | | ||||||
|  | | 序列化         | 采用 Jackson Spring官方内置序列化 靠谱!!!                                                                                    | 采用 fastjson bugjson 远近闻名                                                           |  | ||||||
|  | | 分布式幂等       | 参考美团GTIS防重系统简化实现(细节可看文档)                                                                                          | 手动编写注解基于aop实现                                                                      | | ||||||
|  | | 分布式锁        | 采用 Lock4j 底层基于 Redisson                                                                                           | 无                                                                                  | | ||||||
|  | | 分布式任务调度     | 采用 SnailJob 天生支持分布式 统一的管理中心 支持多种数据库 支持分片重试DAG任务流等                                                                 | 采用 Quartz 基于数据库锁性能差 集群需要做很多配置与改造                                                   |  | ||||||
|  | | 文件存储        | 采用 Minio 分布式文件存储 天生支持多机、多硬盘、多分片、多副本存储<br/>支持权限管理 安全可靠 文件可加密存储                                                     | 采用 本机文件存储 文件裸漏 易丢失泄漏 不支持集群有单点效应                                                    | | ||||||
|  | | 云存储         | 采用 AWS S3 协议客户端 支持 七牛、阿里、腾讯 等一切支持S3协议的厂家                                                                          | 不支持                                                                                | | ||||||
|  | | 短信          | 采用 sms4j 短信融合包 支持数十种短信厂家 只需在yml配置好厂家密钥即可使用 可多厂家共用                                                                 | 不支持                                                                                | | ||||||
|  | | 邮件          | 采用 mail-api 通用协议支持大部分邮件厂商                                                                                         | 不支持                                                                                | | ||||||
|  | | 接口文档        | 采用 SpringDoc、javadoc 无注解零入侵基于java注释<br/>只需把注释写好 无需再写一大堆的文档注解了                                                     | 采用 Springfox 已停止维护 需要编写大量的注解来支持文档生成                                                |  | ||||||
|  | | 校验框架        | 采用 Validation 支持注解与工具类校验 注解支持国际化                                                                                  | 仅支持注解 且注解不支持国际化                                                                    | | ||||||
|  | | Excel框架     | 采用 FastExcel(原Alibaba EasyExcel) 基于插件化<br/>框架对其增加了很多功能 例如 自动合并相同内容 自动排列布局 字典翻译等                                   | 基于 POI 手写实现 功能有限 复杂 扩展性差                                                           | | ||||||
|  | | 工作流支持       | 支持各种复杂审批 转办 委派 加减签 会签 或签 票签 等功能                                                                                   | 无                                                                                  | | ||||||
|  | | 工具类框架       | 采用 Hutool、Lombok 上百种工具覆盖90%的使用需求 基于注解自动生成 get set 等简化框架大量代码                                                       | 手写工具稳定性差易出问题 工具数量有限 代码臃肿需自己手写 get set 等                                            |  | ||||||
|  | | 监控框架        | 采用 SpringBoot-Admin 基于SpringBoot官方 actuator 探针机制<br/>实时监控服务状态 框架还为其扩展了在线日志查看监控                                    | 无                                                                                  |  | ||||||
|  | | 链路追踪        | 采用 Apache SkyWalking 还在为请求不知道去哪了 到哪出了问题而烦恼吗<br/>用了它即可实时查看请求经过的每一处每一个节点                                            | 无                                                                                  | | ||||||
|  | | 代码生成器       | 只需设计好表结构 一键生成所有crud代码与页面<br/>降低80%的开发量 把精力都投入到业务设计上<br/>框架为其适配MP、SpringDoc规范化代码 同时支持动态多数据源代码生成                    | 代码生成原生结构 只支持单数据源生成                                                                 | | ||||||
|  | | 部署方式        | 支持 Docker 编排 一键搭建所有环境 让开发人员从此不再为搭建环境而烦恼                                                                           | 原生jar部署 其他环境需手动下载安装 自行搭建                                                           |  | ||||||
|  | | 项目路径修改      | 提供详细的修改方案文档 并为其做了一些改动 非常简单即可修改成自己想要的                                                                              | 需要做很多改造 文档说明有限                                                                     | | ||||||
|  | | 国际化         | 基于请求头动态返回不同语种的文本内容 开发难度低 有对应的工具类 支持大部分注解内容国际化                                                                     | 只提供基础功能 其他需自行编写扩展                                                                  | | ||||||
|  | | 代码单例测试      | 提供单例测试 使用方式编写方法与maven多环境单测插件                                                                                      | 只提供基础功能 其他需自行编写扩展                                                                  | | ||||||
|  | | Demo案例      | 提供框架功能的实际使用案例 单独一个模块提供了很多很全                                                                                       | 无                                                                                  | | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ## 本框架与RuoYi的业务差异 | ||||||
|  |  | ||||||
|  | | 业务     | 功能说明                                                                 | 本框架 | RuoYi            | | ||||||
|  | |--------|----------------------------------------------------------------------|-----|------------------| | ||||||
|  | | 租户管理   | 系统内租户的管理 如:租户套餐、过期时间、用户数量、企业信息等                                      | 支持  | 无                | | ||||||
|  | | 租户套餐管理 | 系统内租户所能使用的套餐管理 如:套餐内所包含的菜单等                                          | 支持  | 无                | | ||||||
|  | | 客户端管理  | 系统内对接的所有客户端管理 如: pc端、小程序端等<br>支持动态授权登录方式 如: 短信登录、密码登录等 支持动态控制token时效 | 支持  | 无                | | ||||||
|  | | 用户管理   | 用户的管理配置 如:新增用户、分配用户所属部门、角色、岗位等                                       | 支持  | 支持               | | ||||||
|  | | 部门管理   | 配置系统组织机构(公司、部门、小组) 树结构展现支持数据权限                                       | 支持  | 支持               | | ||||||
|  | | 岗位管理   | 配置系统用户所属担任职务                                                         | 支持  | 支持               | | ||||||
|  | | 菜单管理   | 配置系统菜单、操作权限、按钮权限标识等                                                  | 支持  | 支持               | | ||||||
|  | | 角色管理   | 角色菜单权限分配、设置角色按机构进行数据范围权限划分                                           | 支持  | 支持               | | ||||||
|  | | 字典管理   | 对系统中经常使用的一些较为固定的数据进行维护                                               | 支持  | 支持               | | ||||||
|  | | 参数管理   | 对系统动态配置常用参数                                                          | 支持  | 支持               | | ||||||
|  | | 通知公告   | 系统通知公告信息发布维护                                                         | 支持  | 支持               | | ||||||
|  | | 操作日志   | 系统正常操作日志记录和查询 系统异常信息日志记录和查询                                          | 支持  | 支持               | | ||||||
|  | | 登录日志   | 系统登录日志记录查询包含登录异常                                                     | 支持  | 支持               | | ||||||
|  | | 文件管理   | 系统文件展示、上传、下载、删除等管理                                                   | 支持  | 无                | | ||||||
|  | | 文件配置管理 | 系统文件上传、下载所需要的配置信息动态添加、修改、删除等管理                                       | 支持  | 无                | | ||||||
|  | | 在线用户管理 | 已登录系统的在线用户信息监控与强制踢出操作                                                | 支持  | 支持               | | ||||||
|  | | 定时任务   | 运行报表、任务管理(添加、修改、删除)、日志管理、执行器管理等                                      | 支持  | 仅支持任务与日志管理       | | ||||||
|  | | 代码生成   | 多数据源前后端代码的生成(java、html、xml、sql)支持CRUD下载                              | 支持  | 仅支持单数据源          | | ||||||
|  | | 系统接口   | 根据业务代码自动生成相关的api接口文档                                                 | 支持  | 支持               | | ||||||
|  | | 服务监控   | 监视集群系统CPU、内存、磁盘、堆栈、在线日志、Spring相关配置等                                  | 支持  | 仅支持单机CPU、内存、磁盘监控 | | ||||||
|  | | 缓存监控   | 对系统的缓存信息查询,命令统计等。                                                    | 支持  | 支持               | | ||||||
|  | | 使用案例   | 系统的一些功能案例                                                            | 支持  | 不支持              | | ||||||
|  |  | ||||||
| ## 参考文档 | ## 参考文档 | ||||||
|  |  | ||||||
| 使用框架前请仔细阅读文档重点注意事项 | 使用框架前请仔细阅读文档重点注意事项 | ||||||
| <br> | <br> | ||||||
| >[初始化项目 必看](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于初始化项目?sort_id=4164117) | >[初始化项目 必看](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/init) | ||||||
| >>[https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于初始化项目?sort_id=4164117](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于初始化项目?sort_id=4164117) | >>[https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/init](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/init) | ||||||
| > | > | ||||||
| >[部署项目 必看](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于应用部署?sort_id=4219382) | >[专栏与视频 入门必看](https://plus-doc.dromara.org/#/common/column) | ||||||
| >>[https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于应用部署?sort_id=4219382](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/关于应用部署?sort_id=4219382) | >>[https://plus-doc.dromara.org/#/common/column](https://plus-doc.dromara.org/#/common/column) | ||||||
| > | > | ||||||
| >[参考文档 Wiki](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages) | >[部署项目 必看](https://plus-doc.dromara.org/#/ruoyi-vue-plus/quickstart/deploy) | ||||||
| >>[https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages) | >>[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/#/common/add_group) | ||||||
|  | >>[https://plus-doc.dromara.org/#/common/add_group](https://plus-doc.dromara.org/#/common/add_group) | ||||||
|  | > | ||||||
|  | >[参考文档 Wiki](https://plus-doc.dromara.org) | ||||||
|  | >>[https://plus-doc.dromara.org](https://plus-doc.dromara.org) | ||||||
|  |  | ||||||
| ## 软件架构图 | ## 软件架构图 | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ## 贡献代码 | ## 如何参与贡献 | ||||||
|  |  | ||||||
| 欢迎各路英雄豪杰 `PR` 代码 请提交到 `dev` 开发分支 统一测试发版 | [参与贡献的方式 https://plus-doc.dromara.org/#/common/contribution](https://plus-doc.dromara.org/#/common/contribution) | ||||||
|  |  | ||||||
| 框架定位为 `通用后台管理系统(分布式集群强化)` 原则上不接受业务 `PR` |  | ||||||
|  |  | ||||||
| ### 其他 |  | ||||||
|  |  | ||||||
| * 同步升级 RuoYi-Vue |  | ||||||
| * GitHub 地址 [RuoYi-Vue-Plus-github](https://github.com/JavaLionLi/RuoYi-Vue-Plus) |  | ||||||
| * 单模块 fast 分支 [RuoYi-Vue-Plus-fast](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/tree/fast/) |  | ||||||
| * satoken 分支 [RuoYi-Vue-Plus-satoken](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/tree/satoken/) |  | ||||||
| * 用户扩展项目 [扩展项目列表](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/pages?sort_id=4478302&doc_id=1469725) |  | ||||||
|  |  | ||||||
| ## 加群与捐献 |  | ||||||
| >[加群与捐献](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/加群与捐献?sort_id=4104598) |  | ||||||
| >>[https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/加群与捐献?sort_id=4104598](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/wikis/加群与捐献?sort_id=4104598) |  | ||||||
|  |  | ||||||
| ## 捐献作者 | ## 捐献作者 | ||||||
| 作者为兼职做开源,平时还需要工作,如果帮到了您可以请作者吃个盒饭   | 作者为兼职做开源,平时还需要工作,如果帮到了您可以请作者吃个盒饭   | ||||||
| <img src="https://images.gitee.com/uploads/images/2021/0525/101654_451e4523_1766278.jpeg" width="300px" height="450px" /> | <img src="https://foruda.gitee.com/images/1678975784848381069/d8661ed9_1766278.png" 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/1678975801230205215/6f96229d_1766278.png" width="300px" height="450px" /> | ||||||
|  |  | ||||||
| ## 业务功能 |  | ||||||
|  |  | ||||||
| | 功能 | 介绍 | |  | ||||||
| |---|---| |  | ||||||
| | 用户管理 | 用户是系统操作者,该功能主要完成系统用户配置。 | |  | ||||||
| | 部门管理 | 配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 | |  | ||||||
| | 岗位管理 | 配置系统用户所属担任职务。 | |  | ||||||
| | 菜单管理 | 配置系统菜单,操作权限,按钮权限标识等。 | |  | ||||||
| | 角色管理 | 角色菜单权限分配、设置角色按机构进行数据范围权限划分。 | |  | ||||||
| | 字典管理 | 对系统中经常使用的一些较为固定的数据进行维护。 | |  | ||||||
| | 参数管理 | 对系统动态配置常用参数。 | |  | ||||||
| | 通知公告 | 系统通知公告信息发布维护。 | |  | ||||||
| | 操作日志 | 系统正常操作日志记录和查询;系统异常信息日志记录和查询。 | |  | ||||||
| | 登录日志 | 系统登录日志记录查询包含登录异常。 | |  | ||||||
| | 文件管理 | 系统文件上传、下载等管理。 | |  | ||||||
| | 定时任务 | 在线(添加、修改、删除)任务调度包含执行结果日志。 | |  | ||||||
| | 代码生成 | 前后端代码的生成(java、html、xml、sql)支持CRUD下载 。 | |  | ||||||
| | 系统接口 | 根据业务代码自动生成相关的api接口文档。 | |  | ||||||
| | 服务监控 | 监视集群系统CPU、内存、磁盘、堆栈、在线日志、Spring相关配置等。 | |  | ||||||
| | 缓存监控 | 对系统的缓存信息查询,命令统计等。 | |  | ||||||
| | 在线构建器 | 拖动表单元素生成相应的HTML代码。 | |  | ||||||
| | 连接池监视 | 监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 | |  | ||||||
| | 使用案例 | 系统的一些功能案例 | |  | ||||||
|  |  | ||||||
| ## 演示图例 | ## 演示图例 | ||||||
|  |  | ||||||
| <table border="1" cellpadding="1" cellspacing="1" style="width:500px"> | |                                                                                            |                                                                                            | | ||||||
| 	<tbody> | |--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ||||||
| 		<tr> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-972235bcbe3518dedd351ff0e2ee7d1031c.png" width="1920" /></td> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-5e0097702fa91e2e36391de8127676a7fa1.png" width="1920" /></td> | |  |  | | ||||||
| 		</tr> | |  |  | | ||||||
| 		<tr> | |  |  | | ||||||
| 			<td> | |  |  | | ||||||
| 			<p><img src="https://oscimg.oschina.net/oscnet/up-e56e3828f48cd9886d88731766f06d5f3c1.png" width="1920" /></p> | |  |  | | ||||||
| 			</td> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-0715990ea1a9f254ec2138fcd063c1f556a.png" width="1920" /></td> | |  |  | | ||||||
| 		</tr> | |  |  | | ||||||
| 		<tr> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-eaf5417ccf921bb64abb959e3d8e290467f.png" width="1920" /></td> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-fc285cf33095ebf8318de6999af0f473861.png" width="1920" /></td> | |  |  | | ||||||
| 		</tr> | |  |  | | ||||||
| 		<tr> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-60c83fd8bd61c29df6dbf47c88355e9c272.png" width="1920" /></td> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-7f731948c8b73c7d90f67f9e1c7a534d5c3.png" width="1920" /></td> | |  |  | | ||||||
| 		</tr> | |  |  | | ||||||
| 		<tr> | |  |  | | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-e4de89b5e2d20c52d3c3a47f9eb88eb8526.png" width="1920" /></td> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-8791d823a508eb90e67c604f36f57491a67.png" width="1920" /></td> |  | ||||||
| 		</tr> |  | ||||||
| 		<tr> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-4589afd99982ead331785299b894174feb6.png" width="1920" /></td> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-8ea177cdacaea20995daf2f596b15232561.png" width="1920" /></td> |  | ||||||
| 		</tr> |  | ||||||
| 		<tr> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-32d1d04c55c11f74c9129fbbc58399728c4.png" width="1920" /></td> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-04fa118f7631b7ae6fd72299ca0a1430a63.png" width="1920" /></td> |  | ||||||
| 		</tr> |  | ||||||
| 		<tr> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-fe7e85b65827802bfaadf3acd42568b58c7.png" width="1920" /></td> |  | ||||||
| 			<td><img src="https://oscimg.oschina.net/oscnet/up-eff2b02a54f8188022d8498cfe6af6fcc06.png" width="1920" /></td> |  | ||||||
| 		</tr> |  | ||||||
| 	</tbody> |  | ||||||
| </table> |  | ||||||
|   | |||||||
							
								
								
									
										104
									
								
								docker/deploy.sh
									
									
									
									
									
								
							
							
						
						
									
										104
									
								
								docker/deploy.sh
									
									
									
									
									
								
							| @@ -1,104 +0,0 @@ | |||||||
| #!/bin/bash |  | ||||||
|  |  | ||||||
| #使用说明,用来提示输入参数 |  | ||||||
| usage() { |  | ||||||
| 	echo "Usage: sh 执行脚本.sh [port|mount|monitor|base|start|stop|stopall|rm|rmiNoneTag]" |  | ||||||
| 	exit 1 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #开启所需端口(生产环境不推荐开启) |  | ||||||
| port(){ |  | ||||||
|     # mysql 端口 |  | ||||||
| 	firewall-cmd --add-port=3306/tcp --permanent |  | ||||||
| 	# redis 端口 |  | ||||||
| 	firewall-cmd --add-port=6379/tcp --permanent |  | ||||||
| 	# minio api 端口 |  | ||||||
| 	firewall-cmd --add-port=9000/tcp --permanent |  | ||||||
| 	# minio 控制台端口 |  | ||||||
| 	firewall-cmd --add-port=9001/tcp --permanent |  | ||||||
| 	# 重启防火墙 |  | ||||||
| 	service firewalld restart |  | ||||||
| } |  | ||||||
|  |  | ||||||
| ##放置挂载文件 |  | ||||||
| mount(){ |  | ||||||
| 	#挂载 nginx 配置文件 |  | ||||||
| 	if test ! -f "/docker/nginx/conf/nginx.conf" ;then |  | ||||||
| 		mkdir -p /docker/nginx/conf |  | ||||||
| 		cp nginx/nginx.conf /docker/nginx/conf/nginx.conf |  | ||||||
| 	fi |  | ||||||
| 	#挂载 redis 配置文件 |  | ||||||
| 	if test ! -f "/docker/redis/conf/redis.conf" ;then |  | ||||||
| 		mkdir -p /docker/redis/conf |  | ||||||
| 		cp redis/redis.conf /docker/redis/conf/redis.conf |  | ||||||
| 	fi |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #启动基础模块 |  | ||||||
| base(){ |  | ||||||
| 	docker-compose up -d mysql nginx-web redis minio |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #启动基础模块 |  | ||||||
| monitor(){ |  | ||||||
| 	docker-compose up -d ruoyi-monitor-admin |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #启动程序模块 |  | ||||||
| start(){ |  | ||||||
| 	docker-compose up -d ruoyi-server1 ruoyi-server2 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #停止程序模块 |  | ||||||
| stop(){ |  | ||||||
| 	docker-compose stop ruoyi-server1 ruoyi-server2 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #关闭所有模块 |  | ||||||
| stopall(){ |  | ||||||
| 	docker-compose stop |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #删除所有模块 |  | ||||||
| rm(){ |  | ||||||
| 	docker-compose rm |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #删除Tag为空的镜像 |  | ||||||
| rmiNoneTag(){ |  | ||||||
| 	docker images|grep none|awk '{print $3}'|xargs docker rmi -f |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #根据输入参数,选择执行对应方法,不输入则执行使用说明 |  | ||||||
| case "$1" in |  | ||||||
| "port") |  | ||||||
| 	port |  | ||||||
| ;; |  | ||||||
| "mount") |  | ||||||
| 	mount |  | ||||||
| ;; |  | ||||||
| "base") |  | ||||||
| 	base |  | ||||||
| ;; |  | ||||||
| "monitor") |  | ||||||
| 	monitor |  | ||||||
| ;; |  | ||||||
| "start") |  | ||||||
| 	start |  | ||||||
| ;; |  | ||||||
| "stop") |  | ||||||
| 	stop |  | ||||||
| ;; |  | ||||||
| "stopall") |  | ||||||
| 	stopall |  | ||||||
| ;; |  | ||||||
| "rm") |  | ||||||
| 	rm |  | ||||||
| ;; |  | ||||||
| "rmiNoneTag") |  | ||||||
| 	rmiNoneTag |  | ||||||
| ;; |  | ||||||
| *) |  | ||||||
| 	usage |  | ||||||
| ;; |  | ||||||
| esac |  | ||||||
| @@ -1,78 +0,0 @@ | |||||||
| worker_processes  1; |  | ||||||
|  |  | ||||||
| error_log  /var/log/nginx/error.log warn; |  | ||||||
| pid        /var/run/nginx.pid; |  | ||||||
|  |  | ||||||
| events { |  | ||||||
|     worker_connections  1024; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| http { |  | ||||||
|     include       mime.types; |  | ||||||
|     default_type  application/octet-stream; |  | ||||||
|     sendfile        on; |  | ||||||
|     keepalive_timeout  65; |  | ||||||
|     # 限制body大小 |  | ||||||
|     client_max_body_size 100m; |  | ||||||
|  |  | ||||||
|     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ' |  | ||||||
|                           '$status $body_bytes_sent "$http_referer" ' |  | ||||||
|                           '"$http_user_agent" "$http_x_forwarded_for"'; |  | ||||||
|  |  | ||||||
|     access_log  /var/log/nginx/access.log  main; |  | ||||||
|  |  | ||||||
| 	upstream server { |  | ||||||
| 	    ip_hash; |  | ||||||
| 		server 172.30.0.60:8080; |  | ||||||
| 		server 172.30.0.61:8080; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
|     upstream monitor-admin { |  | ||||||
|         server 172.30.0.90:9090; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     server { |  | ||||||
|         listen       80; |  | ||||||
|         server_name  localhost; |  | ||||||
|  |  | ||||||
|         # https配置参考 start |  | ||||||
|         #listen       443 ssl; |  | ||||||
|  |  | ||||||
|         # 证书直接存放 /docker/nginx/cert/ 目录下即可 更改证书名称即可 无需更改证书路径 |  | ||||||
|         #ssl on; |  | ||||||
|         #ssl_certificate      /etc/nginx/cert/xxx.local.crt; # /etc/nginx/cert/ 为docker映射路径 不允许更改 |  | ||||||
|         #ssl_certificate_key  /etc/nginx/cert/xxx.local.key; # /etc/nginx/cert/ 为docker映射路径 不允许更改 |  | ||||||
|         #ssl_session_timeout 5m; |  | ||||||
|         #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; |  | ||||||
|         #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |  | ||||||
|         #ssl_prefer_server_ciphers on; |  | ||||||
|         # https配置参考 end |  | ||||||
|  |  | ||||||
| 		location / { |  | ||||||
|             root   /usr/share/nginx/html; |  | ||||||
| 			try_files $uri $uri/ /index.html; |  | ||||||
|             index  index.html index.htm; |  | ||||||
|         } |  | ||||||
|  |  | ||||||
| 		location /prod-api/ { |  | ||||||
| 			proxy_set_header Host $http_host; |  | ||||||
| 			proxy_set_header X-Real-IP $remote_addr; |  | ||||||
| 			proxy_set_header REMOTE-HOST $remote_addr; |  | ||||||
| 			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |  | ||||||
| 			proxy_pass http://server/; |  | ||||||
| 		} |  | ||||||
|  |  | ||||||
| 		location /admin/ { |  | ||||||
| 			proxy_set_header Host $http_host; |  | ||||||
| 			proxy_set_header X-Real-IP $remote_addr; |  | ||||||
| 			proxy_set_header REMOTE-HOST $remote_addr; |  | ||||||
| 			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |  | ||||||
| 			proxy_pass http://monitor-admin/admin/; |  | ||||||
| 		} |  | ||||||
|  |  | ||||||
|         error_page   500 502 503 504  /50x.html; |  | ||||||
|         location = /50x.html { |  | ||||||
|             root   html; |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,2 +0,0 @@ | |||||||
| # redis 密码 |  | ||||||
| # requirepass 123456 |  | ||||||
							
								
								
									
										506
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										506
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -4,55 +4,99 @@ | |||||||
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |          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> |     <modelVersion>4.0.0</modelVersion> | ||||||
|  |  | ||||||
|     <groupId>com.ruoyi</groupId> |     <groupId>org.dromara</groupId> | ||||||
|     <artifactId>ruoyi-vue-plus</artifactId> |     <artifactId>ruoyi-vue-plus</artifactId> | ||||||
|     <version>3.2.0</version> |     <version>${revision}</version> | ||||||
|  |  | ||||||
|     <name>RuoYi-Vue-Plus</name> |     <name>RuoYi-Vue-Plus</name> | ||||||
|     <url>https://gitee.com/JavaLionLi/RuoYi-Vue-Plus</url> |     <url>https://gitee.com/dromara/RuoYi-Vue-Plus</url> | ||||||
|     <description>RuoYi-Vue-Plus后台管理系统</description> |     <description>Dromara RuoYi-Vue-Plus多租户管理系统</description> | ||||||
|  |  | ||||||
|     <properties> |     <properties> | ||||||
|         <ruoyi-vue-plus.version>3.2.0</ruoyi-vue-plus.version> |         <revision>5.3.1</revision> | ||||||
|         <spring-boot.version>2.5.5</spring-boot.version> |         <spring-boot.version>3.4.5</spring-boot.version> | ||||||
|         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||||
|         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||||||
|         <java.version>1.8</java.version> |         <java.version>17</java.version> | ||||||
|         <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version> |         <mybatis.version>3.5.16</mybatis.version> | ||||||
|         <druid.version>1.2.6</druid.version> |         <springdoc.version>2.8.5</springdoc.version> | ||||||
|         <knife4j.version>3.0.3</knife4j.version> |         <therapi-javadoc.version>0.15.0</therapi-javadoc.version> | ||||||
|         <swagger-annotations.version>1.5.22</swagger-annotations.version> |         <fastexcel.version>1.2.0</fastexcel.version> | ||||||
|         <poi.version>4.1.2</poi.version> |         <velocity.version>2.3</velocity.version> | ||||||
|         <easyexcel.version>2.2.11</easyexcel.version> |         <satoken.version>1.42.0</satoken.version> | ||||||
|         <velocity.version>1.7</velocity.version> |         <mybatis-plus.version>3.5.11</mybatis-plus.version> | ||||||
|         <jwt.version>0.9.1</jwt.version> |  | ||||||
|         <mybatis-plus.version>3.4.3.4</mybatis-plus.version> |  | ||||||
|         <p6spy.version>3.9.1</p6spy.version> |         <p6spy.version>3.9.1</p6spy.version> | ||||||
|         <hutool.version>5.7.13</hutool.version> |         <hutool.version>5.8.35</hutool.version> | ||||||
|         <feign.version>3.0.3</feign.version> |         <spring-boot-admin.version>3.4.5</spring-boot-admin.version> | ||||||
|         <feign-okhttp.version>11.6</feign-okhttp.version> |         <redisson.version>3.45.1</redisson.version> | ||||||
|         <okhttp.version>4.9.1</okhttp.version> |         <lock4j.version>2.2.7</lock4j.version> | ||||||
|         <spring-boot-admin.version>2.5.1</spring-boot-admin.version> |         <dynamic-ds.version>4.3.1</dynamic-ds.version> | ||||||
|         <redisson.version>3.16.3</redisson.version> |         <snailjob.version>1.4.0</snailjob.version> | ||||||
|         <lock4j.version>2.2.1</lock4j.version> |         <mapstruct-plus.version>1.4.6</mapstruct-plus.version> | ||||||
|         <dynamic-ds.version>3.4.1</dynamic-ds.version> |         <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version> | ||||||
|  |         <lombok.version>1.18.36</lombok.version> | ||||||
|         <!-- jdk11 缺失依赖 jaxb--> |         <bouncycastle.version>1.80</bouncycastle.version> | ||||||
|         <jaxb.version>3.0.1</jaxb.version> |         <justauth.version>1.16.7</justauth.version> | ||||||
|  |         <!-- 离线IP地址定位库 --> | ||||||
|  |         <ip2region.version>2.7.0</ip2region.version> | ||||||
|  |  | ||||||
|         <!-- OSS 配置 --> |         <!-- OSS 配置 --> | ||||||
|         <qiniu.version>7.8.0</qiniu.version> |         <aws.sdk.version>2.28.22</aws.sdk.version> | ||||||
|         <aliyun.oss.version>3.13.1</aliyun.oss.version> |         <!-- SMS 配置 --> | ||||||
|         <qcloud.cos.version>5.6.55</qcloud.cos.version> |         <sms4j.version>3.3.4</sms4j.version> | ||||||
|         <minio.version>8.3.0</minio.version> |         <!-- 限制框架中的fastjson版本 --> | ||||||
|  |         <fastjson.version>1.2.83</fastjson.version> | ||||||
|  |         <!-- 面向运行时的D-ORM依赖 --> | ||||||
|  |         <anyline.version>8.7.2-20250101</anyline.version> | ||||||
|  |         <!--工作流配置--> | ||||||
|  |         <warm-flow.version>1.6.10</warm-flow.version> | ||||||
|  |  | ||||||
|         <!-- docker 配置 --> |         <!-- 插件版本 --> | ||||||
|         <docker.registry.url>localhost</docker.registry.url> |         <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version> | ||||||
|         <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host> |         <maven-war-plugin.version>3.2.2</maven-war-plugin.version> | ||||||
|         <docker.namespace>ruoyi</docker.namespace> |         <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version> | ||||||
|         <docker.plugin.version>1.2.2</docker.plugin.version> |         <maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version> | ||||||
|  |         <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version> | ||||||
|  |         <!-- 打包默认跳过测试 --> | ||||||
|  |         <skipTests>true</skipTests> | ||||||
|     </properties> |     </properties> | ||||||
|  |  | ||||||
|  |     <profiles> | ||||||
|  |         <profile> | ||||||
|  |             <id>local</id> | ||||||
|  |             <properties> | ||||||
|  |                 <!-- 环境标识,需要与配置文件的名称相对应 --> | ||||||
|  |                 <profiles.active>local</profiles.active> | ||||||
|  |                 <logging.level>info</logging.level> | ||||||
|  |                 <monitor.username>ruoyi</monitor.username> | ||||||
|  |                 <monitor.password>123456</monitor.password> | ||||||
|  |             </properties> | ||||||
|  |         </profile> | ||||||
|  |         <profile> | ||||||
|  |             <id>dev</id> | ||||||
|  |             <properties> | ||||||
|  |                 <!-- 环境标识,需要与配置文件的名称相对应 --> | ||||||
|  |                 <profiles.active>dev</profiles.active> | ||||||
|  |                 <logging.level>info</logging.level> | ||||||
|  |                 <monitor.username>ruoyi</monitor.username> | ||||||
|  |                 <monitor.password>123456</monitor.password> | ||||||
|  |             </properties> | ||||||
|  |             <activation> | ||||||
|  |                 <!-- 默认环境 --> | ||||||
|  |                 <activeByDefault>true</activeByDefault> | ||||||
|  |             </activation> | ||||||
|  |         </profile> | ||||||
|  |         <profile> | ||||||
|  |             <id>prod</id> | ||||||
|  |             <properties> | ||||||
|  |                 <profiles.active>prod</profiles.active> | ||||||
|  |                 <logging.level>warn</logging.level> | ||||||
|  |                 <monitor.username>ruoyi</monitor.username> | ||||||
|  |                 <monitor.password>123456</monitor.password> | ||||||
|  |             </properties> | ||||||
|  |         </profile> | ||||||
|  |     </profiles> | ||||||
|  |  | ||||||
|     <!-- 依赖声明 --> |     <!-- 依赖声明 --> | ||||||
|     <dependencyManagement> |     <dependencyManagement> | ||||||
|         <dependencies> |         <dependencies> | ||||||
| @@ -66,85 +110,129 @@ | |||||||
|                 <scope>import</scope> |                 <scope>import</scope> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- 阿里数据库连接池 --> |             <!-- hutool 的依赖配置--> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.alibaba</groupId> |                 <groupId>cn.hutool</groupId> | ||||||
|                 <artifactId>druid-spring-boot-starter</artifactId> |                 <artifactId>hutool-bom</artifactId> | ||||||
|                 <version>${druid.version}</version> |                 <version>${hutool.version}</version> | ||||||
|  |                 <type>pom</type> | ||||||
|  |                 <scope>import</scope> | ||||||
|  |             </dependency> | ||||||
|  |  | ||||||
|  |             <!-- Warm-Flow国产工作流引擎, 在线文档:http://warm-flow.cn/ --> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>org.dromara.warm</groupId> | ||||||
|  |                 <artifactId>warm-flow-mybatis-plus-sb3-starter</artifactId> | ||||||
|  |                 <version>${warm-flow.version}</version> | ||||||
|  |             </dependency> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>org.dromara.warm</groupId> | ||||||
|  |                 <artifactId>warm-flow-plugin-ui-sb-web</artifactId> | ||||||
|  |                 <version>${warm-flow.version}</version> | ||||||
|  |             </dependency> | ||||||
|  |  | ||||||
|  |             <!-- JustAuth 的依赖配置--> | ||||||
|  |             <dependency> | ||||||
|  |                 <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> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.github.xiaoymin</groupId> |                 <groupId>org.springdoc</groupId> | ||||||
|                 <artifactId>knife4j-spring-boot-starter</artifactId> |                 <artifactId>springdoc-openapi-starter-webmvc-api</artifactId> | ||||||
|                 <version>${knife4j.version}</version> |                 <version>${springdoc.version}</version> | ||||||
|                 <exclusions> |  | ||||||
|                     <exclusion> |  | ||||||
|                         <artifactId>swagger-annotations</artifactId> |  | ||||||
|                         <groupId>io.swagger</groupId> |  | ||||||
|                     </exclusion> |  | ||||||
|                 </exclusions> |  | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>io.swagger</groupId> |                 <groupId>com.github.therapi</groupId> | ||||||
|                 <artifactId>swagger-annotations</artifactId> |                 <artifactId>therapi-runtime-javadoc</artifactId> | ||||||
|                 <version>${swagger-annotations.version}</version> |                 <version>${therapi-javadoc.version}</version> | ||||||
|             </dependency> |  | ||||||
|  |  | ||||||
|             <!-- excel工具 --> |  | ||||||
|             <dependency> |  | ||||||
|                 <groupId>org.apache.poi</groupId> |  | ||||||
|                 <artifactId>poi-ooxml</artifactId> |  | ||||||
|                 <version>${poi.version}</version> |  | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.alibaba</groupId> |                 <groupId>org.projectlombok</groupId> | ||||||
|                 <artifactId>easyexcel</artifactId> |                 <artifactId>lombok</artifactId> | ||||||
|                 <version>${easyexcel.version}</version> |                 <version>${lombok.version}</version> | ||||||
|                 <exclusions> |             </dependency> | ||||||
|                     <exclusion> |  | ||||||
|                         <groupId>org.apache.poi</groupId> |             <dependency> | ||||||
|                         <artifactId>poi</artifactId> |                 <groupId>cn.idev.excel</groupId> | ||||||
|                     </exclusion> |                 <artifactId>fastexcel</artifactId> | ||||||
|                     <exclusion> |                 <version>${fastexcel.version}</version> | ||||||
|                         <groupId>org.apache.poi</groupId> |  | ||||||
|                         <artifactId>poi-ooxml-schemas</artifactId> |  | ||||||
|                     </exclusion> |  | ||||||
|                 </exclusions> |  | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- velocity代码生成使用模板 --> |             <!-- velocity代码生成使用模板 --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>org.apache.velocity</groupId> |                 <groupId>org.apache.velocity</groupId> | ||||||
|                 <artifactId>velocity</artifactId> |                 <artifactId>velocity-engine-core</artifactId> | ||||||
|                 <version>${velocity.version}</version> |                 <version>${velocity.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- Token生成与解析--> |             <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>io.jsonwebtoken</groupId> |                 <groupId>cn.dev33</groupId> | ||||||
|                 <artifactId>jjwt</artifactId> |                 <artifactId>sa-token-spring-boot3-starter</artifactId> | ||||||
|                 <version>${jwt.version}</version> |                 <version>${satoken.version}</version> | ||||||
|  |             </dependency> | ||||||
|  |             <!-- Sa-Token 整合 jwt --> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>cn.dev33</groupId> | ||||||
|  |                 <artifactId>sa-token-jwt</artifactId> | ||||||
|  |                 <version>${satoken.version}</version> | ||||||
|  |                 <exclusions> | ||||||
|  |                     <exclusion> | ||||||
|  |                         <groupId>cn.hutool</groupId> | ||||||
|  |                         <artifactId>hutool-all</artifactId> | ||||||
|  |                     </exclusion> | ||||||
|  |                 </exclusions> | ||||||
|  |             </dependency> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>cn.dev33</groupId> | ||||||
|  |                 <artifactId>sa-token-core</artifactId> | ||||||
|  |                 <version>${satoken.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- dynamic-datasource 多数据源--> |             <!-- dynamic-datasource 多数据源--> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.baomidou</groupId> |                 <groupId>com.baomidou</groupId> | ||||||
|                 <artifactId>dynamic-datasource-spring-boot-starter</artifactId> |                 <artifactId>dynamic-datasource-spring-boot3-starter</artifactId> | ||||||
|                 <version>${dynamic-ds.version}</version> |                 <version>${dynamic-ds.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.baomidou</groupId> |                 <groupId>org.mybatis</groupId> | ||||||
|                 <artifactId>mybatis-plus-boot-starter</artifactId> |                 <artifactId>mybatis</artifactId> | ||||||
|                 <version>${mybatis-plus.version}</version> |                 <version>${mybatis.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.baomidou</groupId> |                 <groupId>com.baomidou</groupId> | ||||||
|                 <artifactId>mybatis-plus-extension</artifactId> |                 <artifactId>mybatis-plus-spring-boot3-starter</artifactId> | ||||||
|                 <version>${mybatis-plus.version}</version> |                 <version>${mybatis-plus.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>com.baomidou</groupId> | ||||||
|  |                 <artifactId>mybatis-plus-jsqlparser</artifactId> | ||||||
|  |                 <version>${mybatis-plus.version}</version> | ||||||
|  |             </dependency> | ||||||
|  |  | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>com.baomidou</groupId> | ||||||
|  |                 <artifactId>mybatis-plus-annotation</artifactId> | ||||||
|  |                 <version>${mybatis-plus.version}</version> | ||||||
|  |             </dependency> | ||||||
|  |  | ||||||
|             <!-- sql性能分析插件 --> |             <!-- sql性能分析插件 --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>p6spy</groupId> |                 <groupId>p6spy</groupId> | ||||||
| @@ -152,34 +240,29 @@ | |||||||
|                 <version>${p6spy.version}</version> |                 <version>${p6spy.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|  |             <!--  AWS SDK for Java 2.x  --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>cn.hutool</groupId> |                 <groupId>software.amazon.awssdk</groupId> | ||||||
|                 <artifactId>hutool-all</artifactId> |                 <artifactId>s3</artifactId> | ||||||
|                 <version>${hutool.version}</version> |                 <version>${aws.sdk.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |             <!-- 基于 AWS CRT 的 S3 客户端的性能增强的 S3 传输管理器 --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>org.springframework.cloud</groupId> |                 <groupId>software.amazon.awssdk</groupId> | ||||||
|                 <artifactId>spring-cloud-starter-openfeign</artifactId> |                 <artifactId>s3-transfer-manager</artifactId> | ||||||
|                 <version>${feign.version}</version> |                 <version>${aws.sdk.version}</version> | ||||||
|                 <exclusions> |  | ||||||
|                     <exclusion> |  | ||||||
|                         <artifactId>feign-core</artifactId> |  | ||||||
|                         <groupId>io.github.openfeign</groupId> |  | ||||||
|                     </exclusion> |  | ||||||
|                 </exclusions> |  | ||||||
|             </dependency> |             </dependency> | ||||||
|  |             <!-- 将基于 Netty 的 HTTP 客户端从类路径中移除 --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>io.github.openfeign</groupId> |                 <groupId>software.amazon.awssdk</groupId> | ||||||
|                 <artifactId>feign-okhttp</artifactId> |                 <artifactId>netty-nio-client</artifactId> | ||||||
|                 <version>${feign-okhttp.version}</version> |                 <version>${aws.sdk.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |             <!--短信sms4j--> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.squareup.okhttp3</groupId> |                 <groupId>org.dromara.sms4j</groupId> | ||||||
|                 <artifactId>okhttp</artifactId> |                 <artifactId>sms4j-spring-boot-starter</artifactId> | ||||||
|                 <version>${okhttp.version}</version> |                 <version>${sms4j.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
| @@ -199,58 +282,80 @@ | |||||||
|                 <artifactId>redisson-spring-boot-starter</artifactId> |                 <artifactId>redisson-spring-boot-starter</artifactId> | ||||||
|                 <version>${redisson.version}</version> |                 <version>${redisson.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.baomidou</groupId> |                 <groupId>com.baomidou</groupId> | ||||||
|                 <artifactId>lock4j-redisson-spring-boot-starter</artifactId> |                 <artifactId>lock4j-redisson-spring-boot-starter</artifactId> | ||||||
|                 <version>${lock4j.version}</version> |                 <version>${lock4j.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|             <!-- 定时任务--> |  | ||||||
|  |             <!-- SnailJob Client --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <groupId>com.aizuda</groupId> | ||||||
|                 <artifactId>ruoyi-quartz</artifactId> |                 <artifactId>snail-job-client-starter</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${snailjob.version}</version> | ||||||
|  |             </dependency> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>com.aizuda</groupId> | ||||||
|  |                 <artifactId>snail-job-client-job-core</artifactId> | ||||||
|  |                 <version>${snailjob.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- 代码生成--> |             <!-- 加密包引入 --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <groupId>org.bouncycastle</groupId> | ||||||
|                 <artifactId>ruoyi-generator</artifactId> |                 <artifactId>bcprov-jdk15to18</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${bouncycastle.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- 核心模块--> |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <groupId>io.github.linpeilie</groupId> | ||||||
|                 <artifactId>ruoyi-framework</artifactId> |                 <artifactId>mapstruct-plus-spring-boot-starter</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${mapstruct-plus.version}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- 系统模块--> |             <!-- 离线IP地址定位库 ip2region --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <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> |                 <artifactId>ruoyi-system</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${revision}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- 通用工具--> |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <groupId>org.dromara</groupId> | ||||||
|                 <artifactId>ruoyi-common</artifactId> |                 <artifactId>ruoyi-job</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${revision}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- demo模块 --> |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <groupId>org.dromara</groupId> | ||||||
|                 <artifactId>ruoyi-oss</artifactId> |                 <artifactId>ruoyi-generator</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${revision}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- demo模块 --> |  | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>com.ruoyi</groupId> |                 <groupId>org.dromara</groupId> | ||||||
|                 <artifactId>ruoyi-demo</artifactId> |                 <artifactId>ruoyi-demo</artifactId> | ||||||
|                 <version>${ruoyi-vue-plus.version}</version> |                 <version>${revision}</version> | ||||||
|  |             </dependency> | ||||||
|  |  | ||||||
|  |             <!--  工作流模块  --> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>org.dromara</groupId> | ||||||
|  |                 <artifactId>ruoyi-workflow</artifactId> | ||||||
|  |                 <version>${revision}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|         </dependencies> |         </dependencies> | ||||||
| @@ -258,44 +363,108 @@ | |||||||
|  |  | ||||||
|     <modules> |     <modules> | ||||||
|         <module>ruoyi-admin</module> |         <module>ruoyi-admin</module> | ||||||
|         <module>ruoyi-framework</module> |  | ||||||
|         <module>ruoyi-system</module> |  | ||||||
|         <module>ruoyi-quartz</module> |  | ||||||
|         <module>ruoyi-generator</module> |  | ||||||
|         <module>ruoyi-common</module> |         <module>ruoyi-common</module> | ||||||
|         <module>ruoyi-demo</module> |  | ||||||
|         <module>ruoyi-extend</module> |         <module>ruoyi-extend</module> | ||||||
|         <module>ruoyi-oss</module> |         <module>ruoyi-modules</module> | ||||||
|     </modules> |     </modules> | ||||||
|     <packaging>pom</packaging> |     <packaging>pom</packaging> | ||||||
|  |  | ||||||
|  |  | ||||||
|     <dependencies> |  | ||||||
|         <!-- jdk11 缺失依赖 jaxb--> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.sun.xml.bind</groupId> |  | ||||||
|             <artifactId>jaxb-impl</artifactId> |  | ||||||
|             <version>${jaxb.version}</version> |  | ||||||
|         </dependency> |  | ||||||
|     </dependencies> |  | ||||||
|  |  | ||||||
|     <build> |     <build> | ||||||
|         <plugins> |         <plugins> | ||||||
|             <plugin> |             <plugin> | ||||||
|                 <groupId>org.apache.maven.plugins</groupId> |                 <groupId>org.apache.maven.plugins</groupId> | ||||||
|                 <artifactId>maven-compiler-plugin</artifactId> |                 <artifactId>maven-compiler-plugin</artifactId> | ||||||
|                 <version>3.1</version> |                 <version>${maven-compiler-plugin.version}</version> | ||||||
|                 <configuration> |                 <configuration> | ||||||
|                     <source>${java.version}</source> |                     <source>${java.version}</source> | ||||||
|                     <target>${java.version}</target> |                     <target>${java.version}</target> | ||||||
|                     <encoding>${project.build.sourceEncoding}</encoding> |                     <encoding>${project.build.sourceEncoding}</encoding> | ||||||
|  |                     <annotationProcessorPaths> | ||||||
|  |                         <path> | ||||||
|  |                             <groupId>com.github.therapi</groupId> | ||||||
|  |                             <artifactId>therapi-runtime-javadoc-scribe</artifactId> | ||||||
|  |                             <version>${therapi-javadoc.version}</version> | ||||||
|  |                         </path> | ||||||
|  |                         <path> | ||||||
|  |                             <groupId>org.projectlombok</groupId> | ||||||
|  |                             <artifactId>lombok</artifactId> | ||||||
|  |                             <version>${lombok.version}</version> | ||||||
|  |                         </path> | ||||||
|  |                         <path> | ||||||
|  |                             <groupId>org.springframework.boot</groupId> | ||||||
|  |                             <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> |                 </configuration> | ||||||
|             </plugin> |             </plugin> | ||||||
|  |             <!-- 单元测试使用 --> | ||||||
|  |             <plugin> | ||||||
|  |                 <groupId>org.apache.maven.plugins</groupId> | ||||||
|  |                 <artifactId>maven-surefire-plugin</artifactId> | ||||||
|  |                 <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> |         </plugins> | ||||||
|         <resources> |         <resources> | ||||||
|             <resource> |             <resource> | ||||||
|                 <!--打包该目录下的 application.yml --> |  | ||||||
|                 <directory>src/main/resources</directory> |                 <directory>src/main/resources</directory> | ||||||
|  |                 <!-- 关闭过滤 --> | ||||||
|  |                 <filtering>false</filtering> | ||||||
|  |             </resource> | ||||||
|  |             <resource> | ||||||
|  |                 <directory>src/main/resources</directory> | ||||||
|  |                 <!-- 引入所有 匹配文件进行过滤 --> | ||||||
|  |                 <includes> | ||||||
|  |                     <include>application*</include> | ||||||
|  |                     <include>bootstrap*</include> | ||||||
|  |                     <include>banner*</include> | ||||||
|  |                 </includes> | ||||||
|                 <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 --> |                 <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 --> | ||||||
|                 <filtering>true</filtering> |                 <filtering>true</filtering> | ||||||
|             </resource> |             </resource> | ||||||
| @@ -305,8 +474,8 @@ | |||||||
|     <repositories> |     <repositories> | ||||||
|         <repository> |         <repository> | ||||||
|             <id>public</id> |             <id>public</id> | ||||||
|             <name>aliyun nexus</name> |             <name>huawei nexus</name> | ||||||
|             <url>https://maven.aliyun.com/repository/public/</url> |             <url>https://mirrors.huaweicloud.com/repository/maven/</url> | ||||||
|             <releases> |             <releases> | ||||||
|                 <enabled>true</enabled> |                 <enabled>true</enabled> | ||||||
|             </releases> |             </releases> | ||||||
| @@ -316,8 +485,8 @@ | |||||||
|     <pluginRepositories> |     <pluginRepositories> | ||||||
|         <pluginRepository> |         <pluginRepository> | ||||||
|             <id>public</id> |             <id>public</id> | ||||||
|             <name>aliyun nexus</name> |             <name>huawei nexus</name> | ||||||
|             <url>https://maven.aliyun.com/repository/public/</url> |             <url>https://mirrors.huaweicloud.com/repository/maven/</url> | ||||||
|             <releases> |             <releases> | ||||||
|                 <enabled>true</enabled> |                 <enabled>true</enabled> | ||||||
|             </releases> |             </releases> | ||||||
| @@ -327,37 +496,6 @@ | |||||||
|         </pluginRepository> |         </pluginRepository> | ||||||
|     </pluginRepositories> |     </pluginRepositories> | ||||||
|  |  | ||||||
|     <profiles> |  | ||||||
|         <profile> |  | ||||||
|             <id>local</id> |  | ||||||
|             <properties> |  | ||||||
|                 <!-- 环境标识,需要与配置文件的名称相对应 --> |  | ||||||
|                 <profiles.active>local</profiles.active> |  | ||||||
|                 <logging.level>debug</logging.level> |  | ||||||
|                 <endpoints.include>'*'</endpoints.include> |  | ||||||
|             </properties> |  | ||||||
|         </profile> |  | ||||||
|         <profile> |  | ||||||
|             <id>dev</id> |  | ||||||
|             <properties> |  | ||||||
|                 <!-- 环境标识,需要与配置文件的名称相对应 --> |  | ||||||
|                 <profiles.active>dev</profiles.active> |  | ||||||
|                 <logging.level>debug</logging.level> |  | ||||||
|                 <endpoints.include>'*'</endpoints.include> |  | ||||||
|             </properties> |  | ||||||
|             <activation> |  | ||||||
|                 <!-- 默认环境 --> |  | ||||||
|                 <activeByDefault>true</activeByDefault> |  | ||||||
|             </activation> |  | ||||||
|         </profile> |  | ||||||
|         <profile> |  | ||||||
|             <id>prod</id> |  | ||||||
|             <properties> |  | ||||||
|                 <profiles.active>prod</profiles.active> |  | ||||||
|                 <logging.level>warn</logging.level> |  | ||||||
|                 <endpoints.include>health, info, logfile</endpoints.include> |  | ||||||
|             </properties> |  | ||||||
|         </profile> |  | ||||||
|     </profiles> |  | ||||||
|  |  | ||||||
| </project> | </project> | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,14 +1,33 @@ | |||||||
| FROM anapsix/alpine-java:8_server-jre_unlimited | # 贝尔实验室 Spring 官方推荐镜像 JDK下载地址 https://bell-sw.com/pages/downloads/ | ||||||
|  | FROM bellsoft/liberica-openjdk-debian:17.0.11-cds | ||||||
|  | #FROM bellsoft/liberica-openjdk-debian:21.0.5-cds | ||||||
|  | #FROM findepi/graalvm:java17-native | ||||||
|  |  | ||||||
| MAINTAINER Lion Li | LABEL maintainer="Lion Li" | ||||||
|  |  | ||||||
| RUN mkdir -p /ruoyi/server | RUN mkdir -p /ruoyi/server/logs \ | ||||||
| RUN mkdir -p /ruoyi/server/logs |     /ruoyi/server/temp \ | ||||||
|  |     /ruoyi/skywalking/agent | ||||||
|  |  | ||||||
| WORKDIR /ruoyi/server | WORKDIR /ruoyi/server | ||||||
|  |  | ||||||
| EXPOSE 8080 | ENV SERVER_PORT=8080 SNAIL_PORT=28080 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS="" | ||||||
|  |  | ||||||
|  | EXPOSE ${SERVER_PORT} | ||||||
|  | # 暴露 snail job 客户端端口 用于定时任务调度中心通信 | ||||||
|  | EXPOSE ${SNAIL_PORT} | ||||||
|  |  | ||||||
| ADD ./target/ruoyi-admin.jar ./app.jar | ADD ./target/ruoyi-admin.jar ./app.jar | ||||||
|  | # 工作流字体文件 | ||||||
|  | ADD ./zhFonts/ /usr/share/fonts/zhFonts/ | ||||||
|  |  | ||||||
|  | SHELL ["/bin/bash", "-c"] | ||||||
|  |  | ||||||
|  | ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \ | ||||||
|  |            -Dsnail-job.port=${SNAIL_PORT} \ | ||||||
|  |            # 应用名称 如果想区分集群节点监控 改成不同的名称即可 | ||||||
|  |            #-Dskywalking.agent.service_name=ruoyi-server \ | ||||||
|  |            #-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \ | ||||||
|  |            -XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \ | ||||||
|  |            -jar app.jar | ||||||
|  |  | ||||||
| ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] |  | ||||||
|   | |||||||
| @@ -4,8 +4,8 @@ | |||||||
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||||
|     <parent> |     <parent> | ||||||
|         <artifactId>ruoyi-vue-plus</artifactId> |         <artifactId>ruoyi-vue-plus</artifactId> | ||||||
|         <groupId>com.ruoyi</groupId> |         <groupId>org.dromara</groupId> | ||||||
|         <version>3.2.0</version> |         <version>${revision}</version> | ||||||
|     </parent> |     </parent> | ||||||
|     <modelVersion>4.0.0</modelVersion> |     <modelVersion>4.0.0</modelVersion> | ||||||
|     <packaging>jar</packaging> |     <packaging>jar</packaging> | ||||||
| @@ -17,53 +17,105 @@ | |||||||
|  |  | ||||||
|     <dependencies> |     <dependencies> | ||||||
|  |  | ||||||
|         <!-- spring-boot-devtools --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.springframework.boot</groupId> |  | ||||||
|             <artifactId>spring-boot-devtools</artifactId> |  | ||||||
|             <optional>true</optional> <!-- 表示依赖不会传递 --> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- Mysql驱动包 --> |         <!-- Mysql驱动包 --> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>mysql</groupId> |             <groupId>com.mysql</groupId> | ||||||
|             <artifactId>mysql-connector-java</artifactId> |             <artifactId>mysql-connector-j</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|         <!-- 核心模块--> | <!--        <!– mp支持的数据库均支持 只需要增加对应的jdbc依赖即可 –>--> | ||||||
|  | <!--        <!– Oracle –>--> | ||||||
|  | <!--        <dependency>--> | ||||||
|  | <!--            <groupId>com.oracle.database.jdbc</groupId>--> | ||||||
|  | <!--            <artifactId>ojdbc8</artifactId>--> | ||||||
|  | <!--        </dependency>--> | ||||||
|  | <!--        <!– 兼容oracle低版本 –>--> | ||||||
|  | <!--        <dependency>--> | ||||||
|  | <!--            <groupId>com.oracle.database.nls</groupId>--> | ||||||
|  | <!--            <artifactId>orai18n</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> |         <dependency> | ||||||
|             <groupId>com.ruoyi</groupId> |             <groupId>org.dromara</groupId> | ||||||
|             <artifactId>ruoyi-framework</artifactId> |             <artifactId>ruoyi-common-doc</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>com.ruoyi</groupId> |             <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-common-mail</artifactId> | ||||||
|  |         </dependency> | ||||||
|  |  | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.dromara</groupId> | ||||||
|             <artifactId>ruoyi-system</artifactId> |             <artifactId>ruoyi-system</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|         <!-- 定时任务--> |  | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>com.ruoyi</groupId> |             <groupId>org.dromara</groupId> | ||||||
|             <artifactId>ruoyi-quartz</artifactId> |             <artifactId>ruoyi-job</artifactId> | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.ruoyi</groupId> |  | ||||||
|             <artifactId>ruoyi-oss</artifactId> |  | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|         <!-- 代码生成--> |         <!-- 代码生成--> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>com.ruoyi</groupId> |             <groupId>org.dromara</groupId> | ||||||
|             <artifactId>ruoyi-generator</artifactId> |             <artifactId>ruoyi-generator</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|         <!--  demo模块  --> |         <!--  demo模块  --> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>com.ruoyi</groupId> |             <groupId>org.dromara</groupId> | ||||||
|             <artifactId>ruoyi-demo</artifactId> |             <artifactId>ruoyi-demo</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|  |         <!--  工作流模块  --> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.dromara</groupId> | ||||||
|  |             <artifactId>ruoyi-workflow</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> | ||||||
|  |  | ||||||
|  |         <!-- 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> |     </dependencies> | ||||||
|  |  | ||||||
|     <build> |     <build> | ||||||
| @@ -73,9 +125,6 @@ | |||||||
|                 <groupId>org.springframework.boot</groupId> |                 <groupId>org.springframework.boot</groupId> | ||||||
|                 <artifactId>spring-boot-maven-plugin</artifactId> |                 <artifactId>spring-boot-maven-plugin</artifactId> | ||||||
|                 <version>${spring-boot.version}</version> |                 <version>${spring-boot.version}</version> | ||||||
|                 <configuration> |  | ||||||
|                     <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --> |  | ||||||
|                 </configuration> |  | ||||||
|                 <executions> |                 <executions> | ||||||
|                     <execution> |                     <execution> | ||||||
|                         <goals> |                         <goals> | ||||||
| @@ -84,34 +133,20 @@ | |||||||
|                     </execution> |                     </execution> | ||||||
|                 </executions> |                 </executions> | ||||||
|             </plugin> |             </plugin> | ||||||
|  |             <plugin> | ||||||
|  |                 <groupId>org.apache.maven.plugins</groupId> | ||||||
|  |                 <artifactId>maven-jar-plugin</artifactId> | ||||||
|  |                 <version>${maven-jar-plugin.version}</version> | ||||||
|  |             </plugin> | ||||||
|             <plugin> |             <plugin> | ||||||
|                 <groupId>org.apache.maven.plugins</groupId> |                 <groupId>org.apache.maven.plugins</groupId> | ||||||
|                 <artifactId>maven-war-plugin</artifactId> |                 <artifactId>maven-war-plugin</artifactId> | ||||||
|                 <version>3.2.0</version> |                 <version>${maven-war-plugin.version}</version> | ||||||
|                 <configuration> |                 <configuration> | ||||||
|                     <failOnMissingWebXml>false</failOnMissingWebXml> |                     <failOnMissingWebXml>false</failOnMissingWebXml> | ||||||
|                     <warName>${project.artifactId}</warName> |                     <warName>${project.artifactId}</warName> | ||||||
|                 </configuration> |                 </configuration> | ||||||
|             </plugin> |             </plugin> | ||||||
|             <plugin> |  | ||||||
|                 <groupId>com.spotify</groupId> |  | ||||||
|                 <artifactId>docker-maven-plugin</artifactId> |  | ||||||
|                 <version>${docker.plugin.version}</version> |  | ||||||
|                 <configuration> |  | ||||||
|                     <imageName>${docker.namespace}/ruoyi-server:${project.version}</imageName> |  | ||||||
|                     <dockerDirectory>${project.basedir}</dockerDirectory> |  | ||||||
|                     <dockerHost>${docker.registry.host}</dockerHost> |  | ||||||
|                     <registryUrl>${docker.registry.url}</registryUrl> |  | ||||||
|                     <serverId>${docker.registry.url}</serverId> |  | ||||||
|                     <resources> |  | ||||||
|                         <resource> |  | ||||||
|                             <targetPath>/</targetPath> |  | ||||||
|                             <directory>${project.build.directory}</directory> |  | ||||||
|                             <include>${project.build.finalName}.jar</include> |  | ||||||
|                         </resource> |  | ||||||
|                     </resources> |  | ||||||
|                 </configuration> |  | ||||||
|             </plugin> |  | ||||||
|         </plugins> |         </plugins> | ||||||
|     </build> |     </build> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,21 +0,0 @@ | |||||||
| package com.ruoyi; |  | ||||||
|  |  | ||||||
| import org.springframework.boot.SpringApplication; |  | ||||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 启动程序 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
|  |  | ||||||
| @SpringBootApplication |  | ||||||
| public class RuoYiApplication |  | ||||||
| { |  | ||||||
|     public static void main(String[] args) |  | ||||||
|     { |  | ||||||
|         System.setProperty("spring.devtools.restart.enabled", "false"); |  | ||||||
|         SpringApplication.run(RuoYiApplication.class, args); |  | ||||||
|         System.out.println("(♥◠‿◠)ノ゙  RuoYi-Vue-Plus启动成功   ლ(´ڡ`ლ)゙"); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,84 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.common; |  | ||||||
|  |  | ||||||
| import cn.hutool.captcha.AbstractCaptcha; |  | ||||||
| import cn.hutool.captcha.generator.CodeGenerator; |  | ||||||
| import cn.hutool.core.convert.Convert; |  | ||||||
| import cn.hutool.core.util.IdUtil; |  | ||||||
| import com.ruoyi.common.constant.Constants; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.enums.CaptchaType; |  | ||||||
| import com.ruoyi.common.utils.RedisUtils; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.common.utils.reflect.ReflectUtils; |  | ||||||
| import com.ruoyi.common.utils.spring.SpringUtils; |  | ||||||
| import com.ruoyi.framework.config.properties.CaptchaProperties; |  | ||||||
| import com.ruoyi.system.service.ISysConfigService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.web.bind.annotation.GetMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RestController; |  | ||||||
|  |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.Map; |  | ||||||
| import java.util.concurrent.TimeUnit; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 验证码操作处理 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| public class CaptchaController { |  | ||||||
|  |  | ||||||
| 	@Autowired |  | ||||||
| 	private CaptchaProperties captchaProperties; |  | ||||||
|  |  | ||||||
| 	@Autowired |  | ||||||
| 	private ISysConfigService configService; |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 生成验证码 |  | ||||||
| 	 */ |  | ||||||
| 	@GetMapping("/captchaImage") |  | ||||||
| 	public AjaxResult getCode() { |  | ||||||
| 		Map<String, Object> ajax = new HashMap<>(); |  | ||||||
| 		boolean captchaOnOff = configService.selectCaptchaOnOff(); |  | ||||||
| 		ajax.put("captchaOnOff", captchaOnOff); |  | ||||||
| 		if (!captchaOnOff) { |  | ||||||
| 			return AjaxResult.success(ajax); |  | ||||||
| 		} |  | ||||||
| 		// 保存验证码信息 |  | ||||||
| 		String uuid = IdUtil.simpleUUID(); |  | ||||||
| 		String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid; |  | ||||||
| 		// 生成验证码 |  | ||||||
| 		CaptchaType captchaType = captchaProperties.getType(); |  | ||||||
| 		boolean isMath = CaptchaType.MATH == captchaType; |  | ||||||
| 		Integer length = isMath ? captchaProperties.getNumberLength() : captchaProperties.getCharLength(); |  | ||||||
| 		CodeGenerator codeGenerator = ReflectUtils.newInstance(captchaType.getClazz(), length); |  | ||||||
| 		AbstractCaptcha captcha = SpringUtils.getBean(captchaProperties.getCategory().getClazz()); |  | ||||||
| 		captcha.setGenerator(codeGenerator); |  | ||||||
| 		captcha.createCode(); |  | ||||||
| 		String code = isMath ? getCodeResult(captcha.getCode()) : captcha.getCode(); |  | ||||||
| 		RedisUtils.setCacheObject(verifyKey, code, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES); |  | ||||||
| 		ajax.put("uuid", uuid); |  | ||||||
| 		ajax.put("img", captcha.getImageBase64()); |  | ||||||
| 		return AjaxResult.success(ajax); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	private String getCodeResult(String capStr) { |  | ||||||
| 		int numberLength = captchaProperties.getNumberLength(); |  | ||||||
| 		int a = Convert.toInt(StringUtils.substring(capStr, 0, numberLength).trim()); |  | ||||||
| 		char operator = capStr.charAt(numberLength); |  | ||||||
| 		int b = Convert.toInt(StringUtils.substring(capStr, numberLength + 1, numberLength + 1 + numberLength).trim()); |  | ||||||
| 		switch (operator) { |  | ||||||
| 			case '*': |  | ||||||
| 				return Convert.toStr(a * b); |  | ||||||
| 			case '+': |  | ||||||
| 				return Convert.toStr(a + b); |  | ||||||
| 			case '-': |  | ||||||
| 				return Convert.toStr(a - b); |  | ||||||
| 			default: |  | ||||||
| 				return StringUtils.EMPTY; |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| } |  | ||||||
| @@ -1,50 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.monitor; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.data.redis.core.RedisCallback; |  | ||||||
| import org.springframework.data.redis.core.RedisTemplate; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.web.bind.annotation.GetMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RestController; |  | ||||||
|  |  | ||||||
| import java.util.*; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 缓存监控 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/monitor/cache") |  | ||||||
| public class CacheController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private RedisTemplate<String, String> redisTemplate; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |  | ||||||
|     @GetMapping() |  | ||||||
|     public AjaxResult getInfo() throws Exception |  | ||||||
|     { |  | ||||||
|         Properties info = (Properties) redisTemplate.execute((RedisCallback<Object>) connection -> connection.info()); |  | ||||||
|         Properties commandStats = (Properties) redisTemplate.execute((RedisCallback<Object>) connection -> connection.info("commandstats")); |  | ||||||
|         Object dbSize = redisTemplate.execute((RedisCallback<Object>) connection -> connection.dbSize()); |  | ||||||
|  |  | ||||||
|         Map<String, Object> result = new HashMap<>(3); |  | ||||||
|         result.put("info", info); |  | ||||||
|         result.put("dbSize", dbSize); |  | ||||||
|  |  | ||||||
|         List<Map<String, String>> pieList = new ArrayList<>(); |  | ||||||
|         commandStats.stringPropertyNames().forEach(key -> { |  | ||||||
|             Map<String, String> data = new HashMap<>(2); |  | ||||||
|             String property = commandStats.getProperty(key); |  | ||||||
|             data.put("name", StringUtils.removeStart(key, "cmdstat_")); |  | ||||||
|             data.put("value", StringUtils.substringBetween(property, "calls=", ",usec")); |  | ||||||
|             pieList.add(data); |  | ||||||
|         }); |  | ||||||
|         result.put("commandStats", pieList); |  | ||||||
|         return AjaxResult.success(result); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,62 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.monitor; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.domain.SysLogininfor; |  | ||||||
| import com.ruoyi.system.service.ISysLogininforService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 系统访问记录 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/monitor/logininfor") |  | ||||||
| public class SysLogininforController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysLogininforService logininforService; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysLogininfor logininfor) |  | ||||||
|     { |  | ||||||
|         return logininforService.selectPageLogininforList(logininfor); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "登录日志", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysLogininfor logininfor, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysLogininfor> list = logininforService.selectLogininforList(logininfor); |  | ||||||
| 		ExcelUtil.exportExcel(list, "登录日志", SysLogininfor.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |  | ||||||
|     @Log(title = "登录日志", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{infoIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] infoIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(logininforService.deleteLogininforByIds(infoIds)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |  | ||||||
|     @Log(title = "登录日志", businessType = BusinessType.CLEAN) |  | ||||||
|     @DeleteMapping("/clean") |  | ||||||
|     public AjaxResult clean() |  | ||||||
|     { |  | ||||||
|         logininforService.cleanLogininfor(); |  | ||||||
|         return AjaxResult.success(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,62 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.monitor; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.domain.SysOperLog; |  | ||||||
| import com.ruoyi.system.service.ISysOperLogService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 操作日志记录 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/monitor/operlog") |  | ||||||
| public class SysOperlogController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysOperLogService operLogService; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:operlog:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysOperLog operLog) |  | ||||||
|     { |  | ||||||
|         return operLogService.selectPageOperLogList(operLog); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "操作日志", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:operlog:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysOperLog operLog, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysOperLog> list = operLogService.selectOperLogList(operLog); |  | ||||||
| 		ExcelUtil.exportExcel(list, "操作日志", SysOperLog.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "操作日志", businessType = BusinessType.DELETE) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |  | ||||||
|     @DeleteMapping("/{operIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] operIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(operLogService.deleteOperLogByIds(operIds)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "操作日志", businessType = BusinessType.CLEAN) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |  | ||||||
|     @DeleteMapping("/clean") |  | ||||||
|     public AjaxResult clean() |  | ||||||
|     { |  | ||||||
|         operLogService.cleanOperLog(); |  | ||||||
|         return AjaxResult.success(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,87 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.monitor; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.Constants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.model.LoginUser; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.PageUtils; |  | ||||||
| import com.ruoyi.common.utils.RedisUtils; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.system.domain.SysUserOnline; |  | ||||||
| import com.ruoyi.system.service.ISysUserOnlineService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import java.util.ArrayList; |  | ||||||
| import java.util.Collection; |  | ||||||
| import java.util.Collections; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 在线用户监控 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/monitor/online") |  | ||||||
| public class SysUserOnlineController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysUserOnlineService userOnlineService; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:online:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(String ipaddr, String userName) |  | ||||||
|     { |  | ||||||
|         Collection<String> keys = RedisUtils.keys(Constants.LOGIN_TOKEN_KEY + "*"); |  | ||||||
|         List<SysUserOnline> userOnlineList = new ArrayList<SysUserOnline>(); |  | ||||||
|         for (String key : keys) |  | ||||||
|         { |  | ||||||
|             LoginUser user = RedisUtils.getCacheObject(key); |  | ||||||
|             if (StringUtils.isNotEmpty(ipaddr) && StringUtils.isNotEmpty(userName)) |  | ||||||
|             { |  | ||||||
|                 if (StringUtils.equals(ipaddr, user.getIpaddr()) && StringUtils.equals(userName, user.getUsername())) |  | ||||||
|                 { |  | ||||||
|                     userOnlineList.add(userOnlineService.selectOnlineByInfo(ipaddr, userName, user)); |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|             else if (StringUtils.isNotEmpty(ipaddr)) |  | ||||||
|             { |  | ||||||
|                 if (StringUtils.equals(ipaddr, user.getIpaddr())) |  | ||||||
|                 { |  | ||||||
|                     userOnlineList.add(userOnlineService.selectOnlineByIpaddr(ipaddr, user)); |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|             else if (StringUtils.isNotEmpty(userName) && StringUtils.isNotNull(user.getUser())) |  | ||||||
|             { |  | ||||||
|                 if (StringUtils.equals(userName, user.getUsername())) |  | ||||||
|                 { |  | ||||||
|                     userOnlineList.add(userOnlineService.selectOnlineByUserName(userName, user)); |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|             else |  | ||||||
|             { |  | ||||||
|                 userOnlineList.add(userOnlineService.loginUserToUserOnline(user)); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|         Collections.reverse(userOnlineList); |  | ||||||
|         userOnlineList.removeAll(Collections.singleton(null)); |  | ||||||
|         return PageUtils.buildDataInfo(userOnlineList); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 强退用户 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") |  | ||||||
|     @Log(title = "在线用户", businessType = BusinessType.FORCE) |  | ||||||
|     @DeleteMapping("/{tokenId}") |  | ||||||
|     public AjaxResult forceLogout(@PathVariable String tokenId) |  | ||||||
|     { |  | ||||||
|         RedisUtils.deleteObject(Constants.LOGIN_TOKEN_KEY + tokenId); |  | ||||||
|         return AjaxResult.success(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,127 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.annotation.RepeatSubmit; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.domain.SysConfig; |  | ||||||
| import com.ruoyi.system.service.ISysConfigService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 参数配置 信息操作处理 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/config") |  | ||||||
| public class SysConfigController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysConfigService configService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取参数配置列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysConfig config) |  | ||||||
|     { |  | ||||||
|         return configService.selectPageConfigList(config); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "参数管理", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysConfig config, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysConfig> list = configService.selectConfigList(config); |  | ||||||
| 		ExcelUtil.exportExcel(list, "参数数据", SysConfig.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据参数编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:query')") |  | ||||||
|     @GetMapping(value = "/{configId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long configId) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(configService.selectConfigById(configId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据参数键名查询参数值 |  | ||||||
|      */ |  | ||||||
|     @GetMapping(value = "/configKey/{configKey}") |  | ||||||
|     public AjaxResult getConfigKey(@PathVariable String configKey) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(configService.selectConfigByKey(configKey)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增参数配置 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:add')") |  | ||||||
|     @Log(title = "参数管理", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     @RepeatSubmit |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysConfig config) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在"); |  | ||||||
|         } |  | ||||||
|         config.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(configService.insertConfig(config)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改参数配置 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:edit')") |  | ||||||
|     @Log(title = "参数管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysConfig config) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在"); |  | ||||||
|         } |  | ||||||
|         config.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(configService.updateConfig(config)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除参数配置 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:remove')") |  | ||||||
|     @Log(title = "参数管理", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{configIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] configIds) |  | ||||||
|     { |  | ||||||
|         configService.deleteConfigByIds(configIds); |  | ||||||
|         return success(); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 刷新参数缓存 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:config:remove')") |  | ||||||
|     @Log(title = "参数管理", businessType = BusinessType.CLEAN) |  | ||||||
|     @DeleteMapping("/refreshCache") |  | ||||||
|     public AjaxResult refreshCache() |  | ||||||
|     { |  | ||||||
|         configService.resetConfigCache(); |  | ||||||
|         return AjaxResult.success(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,159 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import cn.hutool.core.util.ArrayUtil; |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysDept; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.system.service.ISysDeptService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.Iterator; |  | ||||||
| import java.util.List; |  | ||||||
| import java.util.Map; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 部门信息 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/dept") |  | ||||||
| public class SysDeptController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysDeptService deptService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取部门列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dept:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public AjaxResult list(SysDept dept) |  | ||||||
|     { |  | ||||||
|         List<SysDept> depts = deptService.selectDeptList(dept); |  | ||||||
|         return AjaxResult.success(depts); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 查询部门列表(排除节点) |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dept:list')") |  | ||||||
|     @GetMapping("/list/exclude/{deptId}") |  | ||||||
|     public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) |  | ||||||
|     { |  | ||||||
|         List<SysDept> depts = deptService.selectDeptList(new SysDept()); |  | ||||||
|         Iterator<SysDept> it = depts.iterator(); |  | ||||||
|         while (it.hasNext()) |  | ||||||
|         { |  | ||||||
|             SysDept d = (SysDept) it.next(); |  | ||||||
|             if (d.getDeptId().intValue() == deptId |  | ||||||
|                     || ArrayUtil.contains(StringUtils.split(d.getAncestors(), ","), deptId + "")) |  | ||||||
|             { |  | ||||||
|                 it.remove(); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|         return AjaxResult.success(depts); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据部门编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dept:query')") |  | ||||||
|     @GetMapping(value = "/{deptId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long deptId) |  | ||||||
|     { |  | ||||||
|         deptService.checkDeptDataScope(deptId); |  | ||||||
|         return AjaxResult.success(deptService.selectDeptById(deptId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取部门下拉树列表 |  | ||||||
|      */ |  | ||||||
|     @GetMapping("/treeselect") |  | ||||||
|     public AjaxResult treeselect(SysDept dept) |  | ||||||
|     { |  | ||||||
|         List<SysDept> depts = deptService.selectDeptList(dept); |  | ||||||
|         return AjaxResult.success(deptService.buildDeptTreeSelect(depts)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 加载对应角色部门列表树 |  | ||||||
|      */ |  | ||||||
|     @GetMapping(value = "/roleDeptTreeselect/{roleId}") |  | ||||||
|     public AjaxResult roleDeptTreeselect(@PathVariable("roleId") Long roleId) |  | ||||||
|     { |  | ||||||
|         List<SysDept> depts = deptService.selectDeptList(new SysDept()); |  | ||||||
| 		Map<String,Object> ajax = new HashMap<>(); |  | ||||||
|         ajax.put("checkedKeys", deptService.selectDeptListByRoleId(roleId)); |  | ||||||
|         ajax.put("depts", deptService.buildDeptTreeSelect(depts)); |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增部门 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dept:add')") |  | ||||||
|     @Log(title = "部门管理", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysDept dept) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在"); |  | ||||||
|         } |  | ||||||
|         dept.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(deptService.insertDept(dept)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改部门 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dept:edit')") |  | ||||||
|     @Log(title = "部门管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysDept dept) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (dept.getParentId().equals(dept.getDeptId())) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己"); |  | ||||||
|         } |  | ||||||
|         else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) |  | ||||||
|                 && deptService.selectNormalChildrenDeptById(dept.getDeptId()) > 0) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("该部门包含未停用的子部门!"); |  | ||||||
|         } |  | ||||||
|         dept.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(deptService.updateDept(dept)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除部门 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dept:remove')") |  | ||||||
|     @Log(title = "部门管理", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{deptId}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long deptId) |  | ||||||
|     { |  | ||||||
|         if (deptService.hasChildByDeptId(deptId)) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("存在下级部门,不允许删除"); |  | ||||||
|         } |  | ||||||
|         if (deptService.checkDeptExistUser(deptId)) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("部门存在用户,不允许删除"); |  | ||||||
|         } |  | ||||||
|         return toAjax(deptService.deleteDeptById(deptId)); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,112 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysDictData; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.service.ISysDictDataService; |  | ||||||
| import com.ruoyi.system.service.ISysDictTypeService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.ArrayList; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 数据字典信息 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/dict/data") |  | ||||||
| public class SysDictDataController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysDictDataService dictDataService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private ISysDictTypeService dictTypeService; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysDictData dictData) |  | ||||||
|     { |  | ||||||
|         return dictDataService.selectPageDictDataList(dictData); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "字典数据", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysDictData dictData, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysDictData> list = dictDataService.selectDictDataList(dictData); |  | ||||||
| 		ExcelUtil.exportExcel(list, "字典数据", SysDictData.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 查询字典数据详细 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:query')") |  | ||||||
|     @GetMapping(value = "/{dictCode}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long dictCode) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(dictDataService.selectDictDataById(dictCode)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据字典类型查询字典数据信息 |  | ||||||
|      */ |  | ||||||
|     @GetMapping(value = "/type/{dictType}") |  | ||||||
|     public AjaxResult dictType(@PathVariable String dictType) |  | ||||||
|     { |  | ||||||
|         List<SysDictData> data = dictTypeService.selectDictDataByType(dictType); |  | ||||||
|         if (StringUtils.isNull(data)) |  | ||||||
|         { |  | ||||||
|             data = new ArrayList<SysDictData>(); |  | ||||||
|         } |  | ||||||
|         return AjaxResult.success(data); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增字典类型 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:add')") |  | ||||||
|     @Log(title = "字典数据", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysDictData dict) |  | ||||||
|     { |  | ||||||
|         dict.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(dictDataService.insertDictData(dict)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改保存字典类型 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:edit')") |  | ||||||
|     @Log(title = "字典数据", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysDictData dict) |  | ||||||
|     { |  | ||||||
|         dict.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(dictDataService.updateDictData(dict)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除字典类型 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:remove')") |  | ||||||
|     @Log(title = "字典类型", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{dictCodes}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] dictCodes) |  | ||||||
|     { |  | ||||||
|         dictDataService.deleteDictDataByIds(dictCodes); |  | ||||||
|         return success(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,123 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysDictType; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.service.ISysDictTypeService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 数据字典信息 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/dict/type") |  | ||||||
| public class SysDictTypeController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysDictTypeService dictTypeService; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysDictType dictType) |  | ||||||
|     { |  | ||||||
|         return dictTypeService.selectPageDictTypeList(dictType); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "字典类型", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysDictType dictType, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysDictType> list = dictTypeService.selectDictTypeList(dictType); |  | ||||||
| 		ExcelUtil.exportExcel(list, "字典类型", SysDictType.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 查询字典类型详细 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:query')") |  | ||||||
|     @GetMapping(value = "/{dictId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long dictId) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(dictTypeService.selectDictTypeById(dictId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增字典类型 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:add')") |  | ||||||
|     @Log(title = "字典类型", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysDictType dict) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在"); |  | ||||||
|         } |  | ||||||
|         dict.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(dictTypeService.insertDictType(dict)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改字典类型 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:edit')") |  | ||||||
|     @Log(title = "字典类型", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysDictType dict) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在"); |  | ||||||
|         } |  | ||||||
|         dict.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(dictTypeService.updateDictType(dict)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除字典类型 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:remove')") |  | ||||||
|     @Log(title = "字典类型", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{dictIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] dictIds) |  | ||||||
|     { |  | ||||||
|         dictTypeService.deleteDictTypeByIds(dictIds); |  | ||||||
|         return success(); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 刷新字典缓存 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:dict:remove')") |  | ||||||
|     @Log(title = "字典类型", businessType = BusinessType.CLEAN) |  | ||||||
|     @DeleteMapping("/refreshCache") |  | ||||||
|     public AjaxResult refreshCache() |  | ||||||
|     { |  | ||||||
|         dictTypeService.resetDictCache(); |  | ||||||
|         return AjaxResult.success(); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取字典选择框列表 |  | ||||||
|      */ |  | ||||||
|     @GetMapping("/optionselect") |  | ||||||
|     public AjaxResult optionselect() |  | ||||||
|     { |  | ||||||
|         List<SysDictType> dictTypes = dictTypeService.selectDictTypeAll(); |  | ||||||
|         return AjaxResult.success(dictTypes); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,29 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.common.config.RuoYiConfig; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RestController; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 首页 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| public class SysIndexController |  | ||||||
| { |  | ||||||
|     /** 系统基础配置 */ |  | ||||||
|     @Autowired |  | ||||||
|     private RuoYiConfig ruoyiConfig; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 访问首页,提示语 |  | ||||||
|      */ |  | ||||||
|     @RequestMapping("/") |  | ||||||
|     public String index() |  | ||||||
|     { |  | ||||||
|         return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion()); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,89 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.constant.Constants; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysMenu; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysUser; |  | ||||||
| import com.ruoyi.common.core.domain.model.LoginBody; |  | ||||||
| import com.ruoyi.common.utils.SecurityUtils; |  | ||||||
| import com.ruoyi.system.service.SysLoginService; |  | ||||||
| import com.ruoyi.system.service.SysPermissionService; |  | ||||||
| import com.ruoyi.system.service.ISysMenuService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.web.bind.annotation.GetMapping; |  | ||||||
| import org.springframework.web.bind.annotation.PostMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RequestBody; |  | ||||||
| import org.springframework.web.bind.annotation.RestController; |  | ||||||
|  |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.List; |  | ||||||
| import java.util.Map; |  | ||||||
| import java.util.Set; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 登录验证 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| public class SysLoginController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private SysLoginService loginService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private ISysMenuService menuService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private SysPermissionService permissionService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 登录方法 |  | ||||||
|      * |  | ||||||
|      * @param loginBody 登录信息 |  | ||||||
|      * @return 结果 |  | ||||||
|      */ |  | ||||||
|     @PostMapping("/login") |  | ||||||
|     public AjaxResult login(@RequestBody LoginBody loginBody) |  | ||||||
|     { |  | ||||||
| 		Map<String,Object> ajax = new HashMap<>(); |  | ||||||
|         // 生成令牌 |  | ||||||
|         String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), |  | ||||||
|                 loginBody.getUuid()); |  | ||||||
|         ajax.put(Constants.TOKEN, token); |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取用户信息 |  | ||||||
|      * |  | ||||||
|      * @return 用户信息 |  | ||||||
|      */ |  | ||||||
|     @GetMapping("getInfo") |  | ||||||
|     public AjaxResult getInfo() |  | ||||||
|     { |  | ||||||
|         SysUser user = SecurityUtils.getLoginUser().getUser(); |  | ||||||
|         // 角色集合 |  | ||||||
|         Set<String> roles = permissionService.getRolePermission(user); |  | ||||||
|         // 权限集合 |  | ||||||
|         Set<String> permissions = permissionService.getMenuPermission(user); |  | ||||||
| 		Map<String,Object> ajax = new HashMap<>(); |  | ||||||
|         ajax.put("user", user); |  | ||||||
|         ajax.put("roles", roles); |  | ||||||
|         ajax.put("permissions", permissions); |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取路由信息 |  | ||||||
|      * |  | ||||||
|      * @return 路由信息 |  | ||||||
|      */ |  | ||||||
|     @GetMapping("getRouters") |  | ||||||
|     public AjaxResult getRouters() |  | ||||||
|     { |  | ||||||
|         Long userId = SecurityUtils.getUserId(); |  | ||||||
|         List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); |  | ||||||
|         return AjaxResult.success(menuService.buildMenus(menus)); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,138 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysMenu; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.system.service.ISysMenuService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.List; |  | ||||||
| import java.util.Map; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 菜单信息 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/menu") |  | ||||||
| public class SysMenuController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysMenuService menuService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取菜单列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:menu:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public AjaxResult list(SysMenu menu) |  | ||||||
|     { |  | ||||||
|         List<SysMenu> menus = menuService.selectMenuList(menu, getUserId()); |  | ||||||
|         return AjaxResult.success(menus); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据菜单编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:menu:query')") |  | ||||||
|     @GetMapping(value = "/{menuId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long menuId) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(menuService.selectMenuById(menuId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取菜单下拉树列表 |  | ||||||
|      */ |  | ||||||
|     @GetMapping("/treeselect") |  | ||||||
|     public AjaxResult treeselect(SysMenu menu) |  | ||||||
|     { |  | ||||||
|         List<SysMenu> menus = menuService.selectMenuList(menu, getUserId()); |  | ||||||
|         return AjaxResult.success(menuService.buildMenuTreeSelect(menus)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 加载对应角色菜单列表树 |  | ||||||
|      */ |  | ||||||
|     @GetMapping(value = "/roleMenuTreeselect/{roleId}") |  | ||||||
|     public AjaxResult roleMenuTreeselect(@PathVariable("roleId") Long roleId) |  | ||||||
|     { |  | ||||||
| 		List<SysMenu> menus = menuService.selectMenuList(getUserId()); |  | ||||||
| 		Map<String,Object> ajax = new HashMap<>(); |  | ||||||
|         ajax.put("checkedKeys", menuService.selectMenuListByRoleId(roleId)); |  | ||||||
|         ajax.put("menus", menuService.buildMenuTreeSelect(menus)); |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增菜单 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:menu:add')") |  | ||||||
|     @Log(title = "菜单管理", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysMenu menu) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头"); |  | ||||||
|         } |  | ||||||
|         menu.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(menuService.insertMenu(menu)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改菜单 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:menu:edit')") |  | ||||||
|     @Log(title = "菜单管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysMenu menu) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头"); |  | ||||||
|         } |  | ||||||
|         else if (menu.getMenuId().equals(menu.getParentId())) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改菜单'" + menu.getMenuName() + "'失败,上级菜单不能选择自己"); |  | ||||||
|         } |  | ||||||
|         menu.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(menuService.updateMenu(menu)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除菜单 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:menu:remove')") |  | ||||||
|     @Log(title = "菜单管理", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{menuId}") |  | ||||||
|     public AjaxResult remove(@PathVariable("menuId") Long menuId) |  | ||||||
|     { |  | ||||||
|         if (menuService.hasChildByMenuId(menuId)) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("存在子菜单,不允许删除"); |  | ||||||
|         } |  | ||||||
|         if (menuService.checkMenuExistRole(menuId)) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("菜单已分配,不允许删除"); |  | ||||||
|         } |  | ||||||
|         return toAjax(menuService.deleteMenuById(menuId)); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,89 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import java.util.List; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.DeleteMapping; |  | ||||||
| import org.springframework.web.bind.annotation.GetMapping; |  | ||||||
| import org.springframework.web.bind.annotation.PathVariable; |  | ||||||
| import org.springframework.web.bind.annotation.PostMapping; |  | ||||||
| import org.springframework.web.bind.annotation.PutMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RequestBody; |  | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RestController; |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.system.domain.SysNotice; |  | ||||||
| import com.ruoyi.system.service.ISysNoticeService; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 公告 信息操作处理 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/notice") |  | ||||||
| public class SysNoticeController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysNoticeService noticeService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取通知公告列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:notice:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysNotice notice) |  | ||||||
|     { |  | ||||||
|         return noticeService.selectPageNoticeList(notice); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据通知公告编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:notice:query')") |  | ||||||
|     @GetMapping(value = "/{noticeId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long noticeId) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(noticeService.selectNoticeById(noticeId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增通知公告 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:notice:add')") |  | ||||||
|     @Log(title = "通知公告", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysNotice notice) |  | ||||||
|     { |  | ||||||
|         notice.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(noticeService.insertNotice(notice)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改通知公告 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:notice:edit')") |  | ||||||
|     @Log(title = "通知公告", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysNotice notice) |  | ||||||
|     { |  | ||||||
|         notice.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(noticeService.updateNotice(notice)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除通知公告 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:notice:remove')") |  | ||||||
|     @Log(title = "通知公告", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{noticeIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] noticeIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(noticeService.deleteNoticeByIds(noticeIds)); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,109 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.annotation.RepeatSubmit; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.core.validate.AddGroup; |  | ||||||
| import com.ruoyi.common.core.validate.EditGroup; |  | ||||||
| import com.ruoyi.common.core.validate.QueryGroup; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.system.domain.bo.SysOssConfigBo; |  | ||||||
| import com.ruoyi.system.domain.vo.SysOssConfigVo; |  | ||||||
| import com.ruoyi.system.service.ISysOssConfigService; |  | ||||||
| import io.swagger.annotations.Api; |  | ||||||
| import io.swagger.annotations.ApiOperation; |  | ||||||
| import lombok.RequiredArgsConstructor; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.validation.constraints.NotEmpty; |  | ||||||
| import javax.validation.constraints.NotNull; |  | ||||||
| import java.util.Arrays; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 对象存储配置Controller |  | ||||||
|  * |  | ||||||
|  * @author Lion Li |  | ||||||
|  * @author 孤舟烟雨 |  | ||||||
|  * @date 2021-08-13 |  | ||||||
|  */ |  | ||||||
| @Validated |  | ||||||
| @Api(value = "对象存储配置控制器", tags = {"对象存储配置管理"}) |  | ||||||
| @RequiredArgsConstructor(onConstructor_ = @Autowired) |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/oss/config") |  | ||||||
| public class SysOssConfigController extends BaseController { |  | ||||||
|  |  | ||||||
| 	private final ISysOssConfigService iSysOssConfigService; |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 查询对象存储配置列表 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("查询对象存储配置列表") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:list')") |  | ||||||
| 	@GetMapping("/list") |  | ||||||
| 	public TableDataInfo<SysOssConfigVo> list(@Validated(QueryGroup.class) SysOssConfigBo bo) { |  | ||||||
| 		return iSysOssConfigService.queryPageList(bo); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 获取对象存储配置详细信息 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("获取对象存储配置详细信息") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:query')") |  | ||||||
| 	@GetMapping("/{ossConfigId}") |  | ||||||
| 	public AjaxResult<SysOssConfigVo> getInfo(@NotNull(message = "主键不能为空") |  | ||||||
| 											  @PathVariable("ossConfigId") Integer ossConfigId) { |  | ||||||
| 		return AjaxResult.success(iSysOssConfigService.queryById(ossConfigId)); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 新增对象存储配置 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("新增对象存储配置") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:add')") |  | ||||||
| 	@Log(title = "对象存储配置", businessType = BusinessType.INSERT) |  | ||||||
| 	@RepeatSubmit() |  | ||||||
| 	@PostMapping() |  | ||||||
| 	public AjaxResult<Void> add(@Validated(AddGroup.class) @RequestBody SysOssConfigBo bo) { |  | ||||||
| 		return toAjax(iSysOssConfigService.insertByBo(bo) ? 1 : 0); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 修改对象存储配置 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("修改对象存储配置") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:edit')") |  | ||||||
| 	@Log(title = "对象存储配置", businessType = BusinessType.UPDATE) |  | ||||||
| 	@RepeatSubmit() |  | ||||||
| 	@PutMapping() |  | ||||||
| 	public AjaxResult<Void> edit(@Validated(EditGroup.class) @RequestBody SysOssConfigBo bo) { |  | ||||||
| 		return toAjax(iSysOssConfigService.updateByBo(bo) ? 1 : 0); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 删除对象存储配置 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("删除对象存储配置") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:remove')") |  | ||||||
| 	@Log(title = "对象存储配置", businessType = BusinessType.DELETE) |  | ||||||
| 	@DeleteMapping("/{ossConfigIds}") |  | ||||||
| 	public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空") |  | ||||||
| 								   @PathVariable Long[] ossConfigIds) { |  | ||||||
| 		return toAjax(iSysOssConfigService.deleteWithValidByIds(Arrays.asList(ossConfigIds), true) ? 1 : 0); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 状态修改 |  | ||||||
| 	 */ |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:edit')") |  | ||||||
| 	@Log(title = "对象存储状态修改", businessType = BusinessType.UPDATE) |  | ||||||
| 	@PutMapping("/changeStatus") |  | ||||||
| 	public AjaxResult changeStatus(@RequestBody SysOssConfigBo bo) { |  | ||||||
| 		return toAjax(iSysOssConfigService.updateOssConfigStatus(bo)); |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| @@ -1,147 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| import cn.hutool.core.convert.Convert; |  | ||||||
| import cn.hutool.core.util.ObjectUtil; |  | ||||||
| import cn.hutool.http.HttpException; |  | ||||||
| import cn.hutool.http.HttpUtil; |  | ||||||
| import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.annotation.RepeatSubmit; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.core.validate.QueryGroup; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.exception.ServiceException; |  | ||||||
| import com.ruoyi.common.utils.JsonUtils; |  | ||||||
| import com.ruoyi.common.utils.file.FileUtils; |  | ||||||
| import com.ruoyi.oss.constant.CloudConstant; |  | ||||||
| import com.ruoyi.system.domain.SysConfig; |  | ||||||
| import com.ruoyi.system.domain.SysOss; |  | ||||||
| import com.ruoyi.system.domain.bo.SysOssBo; |  | ||||||
| import com.ruoyi.system.domain.vo.SysOssVo; |  | ||||||
| import com.ruoyi.system.service.ISysConfigService; |  | ||||||
| import com.ruoyi.system.service.ISysOssService; |  | ||||||
| import io.swagger.annotations.Api; |  | ||||||
| import io.swagger.annotations.ApiImplicitParam; |  | ||||||
| import io.swagger.annotations.ApiImplicitParams; |  | ||||||
| import io.swagger.annotations.ApiOperation; |  | ||||||
| import lombok.RequiredArgsConstructor; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.http.MediaType; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
| import org.springframework.web.multipart.MultipartFile; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import javax.validation.constraints.NotEmpty; |  | ||||||
| import java.io.IOException; |  | ||||||
| import java.net.URLEncoder; |  | ||||||
| import java.nio.charset.StandardCharsets; |  | ||||||
| import java.util.Arrays; |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.Map; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 文件上传 控制层 |  | ||||||
|  * |  | ||||||
|  * @author Lion Li |  | ||||||
|  */ |  | ||||||
| @Validated |  | ||||||
| @Api(value = "OSS对象存储控制器", tags = {"OSS对象存储管理"}) |  | ||||||
| @RequiredArgsConstructor(onConstructor_ = @Autowired) |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/oss") |  | ||||||
| public class SysOssController extends BaseController { |  | ||||||
|  |  | ||||||
| 	private final ISysOssService iSysOssService; |  | ||||||
| 	private final ISysConfigService iSysConfigService; |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 查询OSS对象存储列表 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("查询OSS对象存储列表") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:list')") |  | ||||||
| 	@GetMapping("/list") |  | ||||||
| 	public TableDataInfo<SysOssVo> list(@Validated(QueryGroup.class) SysOssBo bo) { |  | ||||||
| 		return iSysOssService.queryPageList(bo); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 上传OSS对象存储 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("上传OSS对象存储") |  | ||||||
| 	@ApiImplicitParams({ |  | ||||||
| 		@ApiImplicitParam(name = "file", value = "文件", dataType = "java.io.File", required = true), |  | ||||||
| 	}) |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:upload')") |  | ||||||
| 	@Log(title = "OSS对象存储", businessType = BusinessType.INSERT) |  | ||||||
| 	@RepeatSubmit |  | ||||||
| 	@PostMapping("/upload") |  | ||||||
| 	public AjaxResult<Map<String, String>> upload(@RequestPart("file") MultipartFile file) { |  | ||||||
| 		if (ObjectUtil.isNull(file)) { |  | ||||||
| 			throw new ServiceException("上传文件不能为空"); |  | ||||||
| 		} |  | ||||||
| 		SysOss oss = iSysOssService.upload(file); |  | ||||||
| 		Map<String, String> map = new HashMap<>(2); |  | ||||||
| 		map.put("url", oss.getUrl()); |  | ||||||
| 		map.put("fileName", oss.getFileName()); |  | ||||||
| 		return AjaxResult.success(map); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	@ApiOperation("下载OSS对象存储") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:download')") |  | ||||||
| 	@GetMapping("/download/{ossId}") |  | ||||||
| 	public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException { |  | ||||||
| 		SysOss sysOss = iSysOssService.getById(ossId); |  | ||||||
| 		if (ObjectUtil.isNull(sysOss)) { |  | ||||||
| 			throw new ServiceException("文件数据不存在!"); |  | ||||||
| 		} |  | ||||||
| 		response.reset(); |  | ||||||
| 		response.addHeader("Access-Control-Allow-Origin", "*"); |  | ||||||
| 		response.addHeader("Access-Control-Expose-Headers", "Content-Disposition"); |  | ||||||
| 		FileUtils.setAttachmentResponseHeader(response, sysOss.getOriginalName()); |  | ||||||
| 		response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE + "; charset=UTF-8"); |  | ||||||
| 		long data; |  | ||||||
| 		try { |  | ||||||
| 			data = HttpUtil.download(sysOss.getUrl(), response.getOutputStream(), false); |  | ||||||
| 		} catch (HttpException e) { |  | ||||||
| 			if (e.getMessage().contains("403")) { |  | ||||||
| 				throw new ServiceException("无读取权限, 请在对应的OSS开启'公有读'权限!"); |  | ||||||
| 			} else { |  | ||||||
| 				throw new ServiceException(e.getMessage()); |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		response.setContentLength(Convert.toInt(data)); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 删除OSS对象存储 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("删除OSS对象存储") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:remove')") |  | ||||||
| 	@Log(title = "OSS对象存储" , businessType = BusinessType.DELETE) |  | ||||||
| 	@DeleteMapping("/{ossIds}") |  | ||||||
| 	public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空") |  | ||||||
| 								   @PathVariable Long[] ossIds) { |  | ||||||
| 		return toAjax(iSysOssService.deleteWithValidByIds(Arrays.asList(ossIds), true) ? 1 : 0); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * 变更图片列表预览状态 |  | ||||||
| 	 */ |  | ||||||
| 	@ApiOperation("变更图片列表预览状态") |  | ||||||
| 	@PreAuthorize("@ss.hasPermi('system:oss:edit')") |  | ||||||
| 	@Log(title = "OSS对象存储" , businessType = BusinessType.UPDATE) |  | ||||||
| 	@PutMapping("/changePreviewListResource") |  | ||||||
| 	public AjaxResult<Void> changePreviewListResource(@RequestBody String body) { |  | ||||||
| 		Map<String, Boolean> map = JsonUtils.parseMap(body); |  | ||||||
| 		SysConfig config = iSysConfigService.getOne(new LambdaQueryWrapper<SysConfig>() |  | ||||||
| 			.eq(SysConfig::getConfigKey, CloudConstant.PEREVIEW_LIST_RESOURCE_KEY)); |  | ||||||
| 		config.setConfigValue(map.get("previewListResource").toString()); |  | ||||||
| 		return toAjax(iSysConfigService.updateConfig(config)); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| } |  | ||||||
| @@ -1,121 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.domain.SysPost; |  | ||||||
| import com.ruoyi.system.service.ISysPostService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 岗位信息操作处理 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/post") |  | ||||||
| public class SysPostController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysPostService postService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取岗位列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:post:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysPost post) |  | ||||||
|     { |  | ||||||
|         return postService.selectPagePostList(post); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "岗位管理", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:post:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysPost post, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysPost> list = postService.selectPostList(post); |  | ||||||
| 		ExcelUtil.exportExcel(list, "岗位数据", SysPost.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据岗位编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:post:query')") |  | ||||||
|     @GetMapping(value = "/{postId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long postId) |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(postService.selectPostById(postId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增岗位 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:post:add')") |  | ||||||
|     @Log(title = "岗位管理", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysPost post) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在"); |  | ||||||
|         } |  | ||||||
|         post.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(postService.insertPost(post)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改岗位 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:post:edit')") |  | ||||||
|     @Log(title = "岗位管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysPost post) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在"); |  | ||||||
|         } |  | ||||||
|         post.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(postService.updatePost(post)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除岗位 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:post:remove')") |  | ||||||
|     @Log(title = "岗位管理", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{postIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] postIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(postService.deletePostByIds(postIds)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取岗位选择框列表 |  | ||||||
|      */ |  | ||||||
|     @GetMapping("/optionselect") |  | ||||||
|     public AjaxResult optionselect() |  | ||||||
|     { |  | ||||||
|         List<SysPost> posts = postService.selectPostAll(); |  | ||||||
|         return AjaxResult.success(posts); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,143 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysUser; |  | ||||||
| import com.ruoyi.common.core.domain.model.LoginUser; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.core.service.TokenService; |  | ||||||
| import com.ruoyi.common.utils.SecurityUtils; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.system.domain.SysOss; |  | ||||||
| import com.ruoyi.system.service.ISysOssService; |  | ||||||
| import com.ruoyi.system.service.ISysUserService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
| import org.springframework.web.multipart.MultipartFile; |  | ||||||
|  |  | ||||||
| import java.io.IOException; |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.Map; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 个人信息 业务处理 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/user/profile") |  | ||||||
| public class SysProfileController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysUserService userService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private TokenService tokenService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
| 	private ISysOssService iSysOssService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 个人信息 |  | ||||||
|      */ |  | ||||||
|     @GetMapping |  | ||||||
|     public AjaxResult profile() |  | ||||||
|     { |  | ||||||
|         LoginUser loginUser = getLoginUser(); |  | ||||||
|         SysUser user = loginUser.getUser(); |  | ||||||
| 		Map<String,Object> ajax = new HashMap<>(); |  | ||||||
| 		ajax.put("user", user); |  | ||||||
|         ajax.put("roleGroup", userService.selectUserRoleGroup(loginUser.getUsername())); |  | ||||||
|         ajax.put("postGroup", userService.selectUserPostGroup(loginUser.getUsername())); |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改用户 |  | ||||||
|      */ |  | ||||||
|     @Log(title = "个人信息", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult updateProfile(@RequestBody SysUser user) |  | ||||||
|     { |  | ||||||
|         if (StringUtils.isNotEmpty(user.getPhonenumber()) |  | ||||||
|                 && UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,手机号码已存在"); |  | ||||||
|         } |  | ||||||
|         if (StringUtils.isNotEmpty(user.getEmail()) |  | ||||||
|                 && UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在"); |  | ||||||
|         } |  | ||||||
|         LoginUser loginUser = getLoginUser(); |  | ||||||
|         SysUser sysUser = loginUser.getUser(); |  | ||||||
|         user.setUserId(sysUser.getUserId()); |  | ||||||
|         user.setPassword(null); |  | ||||||
|         if (userService.updateUserProfile(user) > 0) |  | ||||||
|         { |  | ||||||
|             // 更新缓存用户信息 |  | ||||||
|             sysUser.setNickName(user.getNickName()); |  | ||||||
|             sysUser.setPhonenumber(user.getPhonenumber()); |  | ||||||
|             sysUser.setEmail(user.getEmail()); |  | ||||||
|             sysUser.setSex(user.getSex()); |  | ||||||
|             tokenService.setLoginUser(loginUser); |  | ||||||
|             return AjaxResult.success(); |  | ||||||
|         } |  | ||||||
|         return AjaxResult.error("修改个人信息异常,请联系管理员"); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 重置密码 |  | ||||||
|      */ |  | ||||||
|     @Log(title = "个人信息", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping("/updatePwd") |  | ||||||
|     public AjaxResult updatePwd(String oldPassword, String newPassword) |  | ||||||
|     { |  | ||||||
|         LoginUser loginUser = getLoginUser(); |  | ||||||
|         String userName = loginUser.getUsername(); |  | ||||||
|         String password = loginUser.getPassword(); |  | ||||||
|         if (!SecurityUtils.matchesPassword(oldPassword, password)) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改密码失败,旧密码错误"); |  | ||||||
|         } |  | ||||||
|         if (SecurityUtils.matchesPassword(newPassword, password)) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新密码不能与旧密码相同"); |  | ||||||
|         } |  | ||||||
|         if (userService.resetUserPwd(userName, SecurityUtils.encryptPassword(newPassword)) > 0) |  | ||||||
|         { |  | ||||||
|             // 更新缓存用户密码 |  | ||||||
|             loginUser.getUser().setPassword(SecurityUtils.encryptPassword(newPassword)); |  | ||||||
|             tokenService.setLoginUser(loginUser); |  | ||||||
|             return AjaxResult.success(); |  | ||||||
|         } |  | ||||||
|         return AjaxResult.error("修改密码异常,请联系管理员"); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 头像上传 |  | ||||||
|      */ |  | ||||||
|     @Log(title = "用户头像", businessType = BusinessType.UPDATE) |  | ||||||
|     @PostMapping("/avatar") |  | ||||||
|     public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) throws IOException |  | ||||||
|     { |  | ||||||
|         if (!file.isEmpty()) |  | ||||||
|         { |  | ||||||
|             LoginUser loginUser = getLoginUser(); |  | ||||||
| 			SysOss oss = iSysOssService.upload(file); |  | ||||||
| 			String avatar = oss.getUrl(); |  | ||||||
|             if (userService.updateUserAvatar(loginUser.getUsername(), avatar)) |  | ||||||
|             { |  | ||||||
| 				Map<String,Object> ajax = new HashMap<>(); |  | ||||||
|                 ajax.put("imgUrl", avatar); |  | ||||||
|                 // 更新缓存用户头像 |  | ||||||
|                 loginUser.getUser().setAvatar(avatar); |  | ||||||
|                 tokenService.setLoginUser(loginUser); |  | ||||||
|                 return AjaxResult.success(ajax); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|         return AjaxResult.error("上传图片异常,请联系管理员"); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,38 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.model.RegisterBody; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.system.service.SysRegisterService; |  | ||||||
| import com.ruoyi.system.service.ISysConfigService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.web.bind.annotation.PostMapping; |  | ||||||
| import org.springframework.web.bind.annotation.RequestBody; |  | ||||||
| import org.springframework.web.bind.annotation.RestController; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 注册验证 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| public class SysRegisterController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private SysRegisterService registerService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private ISysConfigService configService; |  | ||||||
|  |  | ||||||
|     @PostMapping("/register") |  | ||||||
|     public AjaxResult register(@RequestBody RegisterBody user) |  | ||||||
|     { |  | ||||||
|         if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) |  | ||||||
|         { |  | ||||||
|             return error("当前系统没有开启注册功能!"); |  | ||||||
|         } |  | ||||||
|         String msg = registerService.register(user); |  | ||||||
|         return StringUtils.isEmpty(msg) ? success() : error(msg); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,228 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysRole; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysUser; |  | ||||||
| import com.ruoyi.common.core.domain.model.LoginUser; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.core.service.TokenService; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.domain.SysUserRole; |  | ||||||
| import com.ruoyi.system.service.ISysRoleService; |  | ||||||
| import com.ruoyi.system.service.ISysUserService; |  | ||||||
| import com.ruoyi.system.service.SysPermissionService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.List; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 角色信息 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/role") |  | ||||||
| public class SysRoleController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysRoleService roleService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private TokenService tokenService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private SysPermissionService permissionService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private ISysUserService userService; |  | ||||||
|  |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysRole role) |  | ||||||
|     { |  | ||||||
|         return roleService.selectPageRoleList(role); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysRole role, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysRole> list = roleService.selectRoleList(role); |  | ||||||
| 		ExcelUtil.exportExcel(list, "角色数据", SysRole.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据角色编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:query')") |  | ||||||
|     @GetMapping(value = "/{roleId}") |  | ||||||
|     public AjaxResult getInfo(@PathVariable Long roleId) |  | ||||||
|     { |  | ||||||
|         roleService.checkRoleDataScope(roleId); |  | ||||||
|         return AjaxResult.success(roleService.selectRoleById(roleId)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增角色 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:add')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysRole role) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); |  | ||||||
|         } |  | ||||||
|         role.setCreateBy(getUsername()); |  | ||||||
|         return toAjax(roleService.insertRole(role)); |  | ||||||
|  |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改保存角色 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:edit')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysRole role) |  | ||||||
|     { |  | ||||||
|         roleService.checkRoleAllowed(role); |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在"); |  | ||||||
|         } |  | ||||||
|         else if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在"); |  | ||||||
|         } |  | ||||||
|         role.setUpdateBy(getUsername()); |  | ||||||
|  |  | ||||||
|         if (roleService.updateRole(role) > 0) |  | ||||||
|         { |  | ||||||
|             // 更新缓存用户权限 |  | ||||||
|             LoginUser loginUser = getLoginUser(); |  | ||||||
|             if (StringUtils.isNotNull(loginUser.getUser()) && !loginUser.getUser().isAdmin()) |  | ||||||
|             { |  | ||||||
|                 loginUser.setPermissions(permissionService.getMenuPermission(loginUser.getUser())); |  | ||||||
|                 loginUser.setUser(userService.selectUserByUserName(loginUser.getUser().getUserName())); |  | ||||||
|                 tokenService.setLoginUser(loginUser); |  | ||||||
|             } |  | ||||||
|             return AjaxResult.success(); |  | ||||||
|         } |  | ||||||
|         return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,请联系管理员"); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改保存数据权限 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:edit')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping("/dataScope") |  | ||||||
|     public AjaxResult dataScope(@RequestBody SysRole role) |  | ||||||
|     { |  | ||||||
|         roleService.checkRoleAllowed(role); |  | ||||||
|         return toAjax(roleService.authDataScope(role)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 状态修改 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:edit')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping("/changeStatus") |  | ||||||
|     public AjaxResult changeStatus(@RequestBody SysRole role) |  | ||||||
|     { |  | ||||||
|         roleService.checkRoleAllowed(role); |  | ||||||
|         role.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(roleService.updateRoleStatus(role)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除角色 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:remove')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{roleIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] roleIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(roleService.deleteRoleByIds(roleIds)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取角色选择框列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:query')") |  | ||||||
|     @GetMapping("/optionselect") |  | ||||||
|     public AjaxResult optionselect() |  | ||||||
|     { |  | ||||||
|         return AjaxResult.success(roleService.selectRoleAll()); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 查询已分配用户角色列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:list')") |  | ||||||
|     @GetMapping("/authUser/allocatedList") |  | ||||||
|     public TableDataInfo allocatedList(SysUser user) |  | ||||||
|     { |  | ||||||
| 		return userService.selectAllocatedList(user); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 查询未分配用户角色列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:list')") |  | ||||||
|     @GetMapping("/authUser/unallocatedList") |  | ||||||
|     public TableDataInfo unallocatedList(SysUser user) |  | ||||||
|     { |  | ||||||
|         return userService.selectUnallocatedList(user); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 取消授权用户 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:edit')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.GRANT) |  | ||||||
|     @PutMapping("/authUser/cancel") |  | ||||||
|     public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) |  | ||||||
|     { |  | ||||||
|         return toAjax(roleService.deleteAuthUser(userRole)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 批量取消授权用户 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:edit')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.GRANT) |  | ||||||
|     @PutMapping("/authUser/cancelAll") |  | ||||||
|     public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(roleService.deleteAuthUsers(roleId, userIds)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 批量选择用户授权 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:role:edit')") |  | ||||||
|     @Log(title = "角色管理", businessType = BusinessType.GRANT) |  | ||||||
|     @PutMapping("/authUser/selectAll") |  | ||||||
|     public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) |  | ||||||
|     { |  | ||||||
|         return toAjax(roleService.insertAuthUsers(roleId, userIds)); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,239 +0,0 @@ | |||||||
| package com.ruoyi.web.controller.system; |  | ||||||
|  |  | ||||||
| import cn.hutool.core.bean.BeanUtil; |  | ||||||
| import cn.hutool.core.util.ArrayUtil; |  | ||||||
| import cn.hutool.core.util.ObjectUtil; |  | ||||||
| import com.ruoyi.common.annotation.Log; |  | ||||||
| import com.ruoyi.common.constant.UserConstants; |  | ||||||
| import com.ruoyi.common.core.controller.BaseController; |  | ||||||
| import com.ruoyi.common.core.domain.AjaxResult; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysDept; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysRole; |  | ||||||
| import com.ruoyi.common.core.domain.entity.SysUser; |  | ||||||
| import com.ruoyi.common.core.page.TableDataInfo; |  | ||||||
| import com.ruoyi.common.enums.BusinessType; |  | ||||||
| import com.ruoyi.common.utils.SecurityUtils; |  | ||||||
| import com.ruoyi.common.utils.StringUtils; |  | ||||||
| import com.ruoyi.common.utils.poi.ExcelUtil; |  | ||||||
| import com.ruoyi.system.domain.vo.SysUserExportVo; |  | ||||||
| import com.ruoyi.system.domain.vo.SysUserImportVo; |  | ||||||
| import com.ruoyi.system.service.ISysPostService; |  | ||||||
| import com.ruoyi.system.service.ISysRoleService; |  | ||||||
| import com.ruoyi.system.service.ISysUserService; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize; |  | ||||||
| import org.springframework.validation.annotation.Validated; |  | ||||||
| import org.springframework.web.bind.annotation.*; |  | ||||||
| import org.springframework.web.multipart.MultipartFile; |  | ||||||
|  |  | ||||||
| import javax.servlet.http.HttpServletResponse; |  | ||||||
| import java.util.ArrayList; |  | ||||||
| import java.util.HashMap; |  | ||||||
| import java.util.List; |  | ||||||
| import java.util.Map; |  | ||||||
| import java.util.stream.Collectors; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * 用户信息 |  | ||||||
|  * |  | ||||||
|  * @author ruoyi |  | ||||||
|  */ |  | ||||||
| @RestController |  | ||||||
| @RequestMapping("/system/user") |  | ||||||
| public class SysUserController extends BaseController |  | ||||||
| { |  | ||||||
|     @Autowired |  | ||||||
|     private ISysUserService userService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private ISysRoleService roleService; |  | ||||||
|  |  | ||||||
|     @Autowired |  | ||||||
|     private ISysPostService postService; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 获取用户列表 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:list')") |  | ||||||
|     @GetMapping("/list") |  | ||||||
|     public TableDataInfo list(SysUser user) |  | ||||||
|     { |  | ||||||
|         return userService.selectPageUserList(user); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.EXPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:export')") |  | ||||||
|     @GetMapping("/export") |  | ||||||
|     public void export(SysUser user, HttpServletResponse response) |  | ||||||
|     { |  | ||||||
|         List<SysUser> list = userService.selectUserList(user); |  | ||||||
| 		List<SysUserExportVo> listVo = BeanUtil.copyToList(list, SysUserExportVo.class); |  | ||||||
| 		for (int i = 0; i < list.size(); i++) { |  | ||||||
| 			SysDept dept = list.get(i).getDept(); |  | ||||||
| 			SysUserExportVo vo = listVo.get(i); |  | ||||||
| 			if (ObjectUtil.isNotEmpty(dept)) { |  | ||||||
| 				vo.setDeptName(dept.getDeptName()); |  | ||||||
| 				vo.setLeader(dept.getLeader()); |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		ExcelUtil.exportExcel(listVo, "用户数据", SysUserExportVo.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.IMPORT) |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:import')") |  | ||||||
|     @PostMapping("/importData") |  | ||||||
|     public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception |  | ||||||
|     { |  | ||||||
| 		List<SysUserImportVo> userListVo = ExcelUtil.importExcel(file.getInputStream(), SysUserImportVo.class); |  | ||||||
| 		List<SysUser> userList = BeanUtil.copyToList(userListVo, SysUser.class); |  | ||||||
|         String operName = getUsername(); |  | ||||||
|         String message = userService.importUser(userList, updateSupport, operName); |  | ||||||
|         return AjaxResult.success(message); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     @GetMapping("/importTemplate") |  | ||||||
|     public void importTemplate(HttpServletResponse response) |  | ||||||
|     { |  | ||||||
| 		ExcelUtil.exportExcel(new ArrayList<>(), "用户数据", SysUserImportVo.class, response); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据用户编号获取详细信息 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:query')") |  | ||||||
|     @GetMapping(value = { "/", "/{userId}" }) |  | ||||||
|     public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) |  | ||||||
|     { |  | ||||||
| 		userService.checkUserDataScope(userId); |  | ||||||
|         Map<String, Object> ajax = new HashMap<>(); |  | ||||||
|         List<SysRole> roles = roleService.selectRoleAll(); |  | ||||||
|         ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); |  | ||||||
|         ajax.put("posts", postService.selectPostAll()); |  | ||||||
|         if (StringUtils.isNotNull(userId)) |  | ||||||
|         { |  | ||||||
|             ajax.put("user", userService.selectUserById(userId)); |  | ||||||
|             ajax.put("postIds", postService.selectPostListByUserId(userId)); |  | ||||||
|             ajax.put("roleIds", roleService.selectRoleListByUserId(userId)); |  | ||||||
|         } |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 新增用户 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:add')") |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.INSERT) |  | ||||||
|     @PostMapping |  | ||||||
|     public AjaxResult add(@Validated @RequestBody SysUser user) |  | ||||||
|     { |  | ||||||
|         if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(user.getUserName()))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,登录账号已存在"); |  | ||||||
|         } |  | ||||||
|         else if (StringUtils.isNotEmpty(user.getPhonenumber()) |  | ||||||
|                 && UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,手机号码已存在"); |  | ||||||
|         } |  | ||||||
|         else if (StringUtils.isNotEmpty(user.getEmail()) |  | ||||||
|                 && UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在"); |  | ||||||
|         } |  | ||||||
|         user.setCreateBy(getUsername()); |  | ||||||
|         user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); |  | ||||||
|         return toAjax(userService.insertUser(user)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 修改用户 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:edit')") |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping |  | ||||||
|     public AjaxResult edit(@Validated @RequestBody SysUser user) |  | ||||||
|     { |  | ||||||
|         userService.checkUserAllowed(user); |  | ||||||
|         if (StringUtils.isNotEmpty(user.getPhonenumber()) |  | ||||||
|                 && UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,手机号码已存在"); |  | ||||||
|         } |  | ||||||
|         else if (StringUtils.isNotEmpty(user.getEmail()) |  | ||||||
|                 && UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user))) |  | ||||||
|         { |  | ||||||
|             return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在"); |  | ||||||
|         } |  | ||||||
|         user.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(userService.updateUser(user)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 删除用户 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:remove')") |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.DELETE) |  | ||||||
|     @DeleteMapping("/{userIds}") |  | ||||||
|     public AjaxResult remove(@PathVariable Long[] userIds) |  | ||||||
|     { |  | ||||||
|         if (ArrayUtil.contains(userIds, getUserId())) |  | ||||||
|         { |  | ||||||
|             return error("当前用户不能删除"); |  | ||||||
|         } |  | ||||||
|         return toAjax(userService.deleteUserByIds(userIds)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 重置密码 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:resetPwd')") |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping("/resetPwd") |  | ||||||
|     public AjaxResult resetPwd(@RequestBody SysUser user) |  | ||||||
|     { |  | ||||||
|         userService.checkUserAllowed(user); |  | ||||||
|         user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); |  | ||||||
|         user.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(userService.resetPwd(user)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 状态修改 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:edit')") |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.UPDATE) |  | ||||||
|     @PutMapping("/changeStatus") |  | ||||||
|     public AjaxResult changeStatus(@RequestBody SysUser user) |  | ||||||
|     { |  | ||||||
|         userService.checkUserAllowed(user); |  | ||||||
|         user.setUpdateBy(getUsername()); |  | ||||||
|         return toAjax(userService.updateUserStatus(user)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 根据用户编号获取授权角色 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:query')") |  | ||||||
|     @GetMapping("/authRole/{userId}") |  | ||||||
|     public AjaxResult authRole(@PathVariable("userId") Long userId) |  | ||||||
|     { |  | ||||||
|         SysUser user = userService.selectUserById(userId); |  | ||||||
|         List<SysRole> roles = roleService.selectRolesByUserId(userId); |  | ||||||
| 		Map<String, Object> ajax = new HashMap<>(); |  | ||||||
|         ajax.put("user", user); |  | ||||||
|         ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); |  | ||||||
|         return AjaxResult.success(ajax); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * 用户授权角色 |  | ||||||
|      */ |  | ||||||
|     @PreAuthorize("@ss.hasPermi('system:user:edit')") |  | ||||||
|     @Log(title = "用户管理", businessType = BusinessType.GRANT) |  | ||||||
|     @PutMapping("/authRole") |  | ||||||
|     public AjaxResult insertAuthRole(Long userId, Long[] roleIds) |  | ||||||
|     { |  | ||||||
|         userService.insertUserAuth(userId, roleIds); |  | ||||||
|         return success(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -0,0 +1,23 @@ | |||||||
|  | package org.dromara; | ||||||
|  |  | ||||||
|  | import org.springframework.boot.SpringApplication; | ||||||
|  | import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||||
|  | import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 启动程序 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | @SpringBootApplication | ||||||
|  | public class DromaraApplication { | ||||||
|  |  | ||||||
|  |     public static void main(String[] args) { | ||||||
|  |         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.builder.SpringApplicationBuilder; | ||||||
| import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | ||||||
| @@ -6,13 +6,13 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer | |||||||
| /** | /** | ||||||
|  * web容器中进行部署 |  * web容器中进行部署 | ||||||
|  * |  * | ||||||
|  * @author ruoyi |  * @author Lion Li | ||||||
|  */ |  */ | ||||||
| public class RuoYiServletInitializer extends SpringBootServletInitializer | public class DromaraServletInitializer extends SpringBootServletInitializer { | ||||||
| { | 
 | ||||||
|     @Override |     @Override | ||||||
|     protected SpringApplicationBuilder configure(SpringApplicationBuilder application) |     protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | ||||||
|     { |         return application.sources(DromaraApplication.class); | ||||||
|         return application.sources(RuoYiApplication.class); |  | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
| } | } | ||||||
| @@ -0,0 +1,239 @@ | |||||||
|  | package org.dromara.web.controller; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.annotation.SaIgnore; | ||||||
|  | import cn.dev33.satoken.exception.NotLoginException; | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.hutool.core.codec.Base64; | ||||||
|  | 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.SystemConstants; | ||||||
|  | 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.sse.dto.SseMessageDto; | ||||||
|  | import org.dromara.common.sse.utils.SseMessageUtils; | ||||||
|  | import org.dromara.common.tenant.helper.TenantHelper; | ||||||
|  | import org.dromara.system.domain.bo.SysTenantBo; | ||||||
|  | import org.dromara.system.domain.vo.SysClientVo; | ||||||
|  | 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.nio.charset.StandardCharsets; | ||||||
|  | import java.util.HashMap; | ||||||
|  | import java.util.List; | ||||||
|  | import java.util.Map; | ||||||
|  | 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(); | ||||||
|  |         SysClientVo 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 (!SystemConstants.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(() -> { | ||||||
|  |             SseMessageDto dto = new SseMessageDto(); | ||||||
|  |             dto.setMessage("欢迎登录RuoYi-Vue-Plus后台管理系统"); | ||||||
|  |             dto.setUserIds(List.of(userId)); | ||||||
|  |             SseMessageUtils.publishMessage(dto); | ||||||
|  |         }, 5, TimeUnit.SECONDS); | ||||||
|  |         return R.ok(loginVo); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 获取跳转URL | ||||||
|  |      * | ||||||
|  |      * @param source 登录来源 | ||||||
|  |      * @return 结果 | ||||||
|  |      */ | ||||||
|  |     @GetMapping("/binding/{source}") | ||||||
|  |     public R<String> authBinding(@PathVariable("source") String source, | ||||||
|  |                                  @RequestParam String tenantId, @RequestParam String domain) { | ||||||
|  |         SocialLoginConfigProperties obj = socialProperties.getType().get(source); | ||||||
|  |         if (ObjectUtil.isNull(obj)) { | ||||||
|  |             return R.fail(source + "平台账号暂不支持"); | ||||||
|  |         } | ||||||
|  |         AuthRequest authRequest = SocialUtils.getAuthRequest(source, socialProperties); | ||||||
|  |         Map<String, String> map = new HashMap<>(); | ||||||
|  |         map.put("tenantId", tenantId); | ||||||
|  |         map.put("domain", domain); | ||||||
|  |         map.put("state", AuthStateUtils.createState()); | ||||||
|  |         String authorizeUrl = authRequest.authorize(Base64.encode(JsonUtils.toJsonString(map), StandardCharsets.UTF_8)); | ||||||
|  |         return R.ok("操作成功", authorizeUrl); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 前端回调绑定授权(需要token) | ||||||
|  |      * | ||||||
|  |      * @param loginBody 请求体 | ||||||
|  |      * @return 结果 | ||||||
|  |      */ | ||||||
|  |     @PostMapping("/social/callback") | ||||||
|  |     public R<Void> socialCallback(@RequestBody SocialLoginBody loginBody) { | ||||||
|  |         // 校验token | ||||||
|  |         StpUtil.checkLogin(); | ||||||
|  |         // 获取第三方登录信息 | ||||||
|  |         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(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 取消授权(需要token) | ||||||
|  |      * | ||||||
|  |      * @param socialId socialId | ||||||
|  |      */ | ||||||
|  |     @DeleteMapping(value = "/unlock/{socialId}") | ||||||
|  |     public R<Void> unlockSocial(@PathVariable Long socialId) { | ||||||
|  |         // 校验token | ||||||
|  |         StpUtil.checkLogin(); | ||||||
|  |         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 { | ||||||
|  |         // 返回对象 | ||||||
|  |         LoginTenantVo result = new LoginTenantVo(); | ||||||
|  |         boolean enable = TenantHelper.isEnable(); | ||||||
|  |         result.setTenantEnabled(enable); | ||||||
|  |         // 如果未开启租户这直接返回 | ||||||
|  |         if (!enable) { | ||||||
|  |             return R.ok(result); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         List<SysTenantVo> tenantList = tenantService.queryList(new SysTenantBo()); | ||||||
|  |         List<TenantListVo> voList = MapstructUtils.convert(tenantList, TenantListVo.class); | ||||||
|  |         try { | ||||||
|  |             // 如果只超管返回所有租户 | ||||||
|  |             if (LoginHelper.isSuperAdmin()) { | ||||||
|  |                 result.setVoList(voList); | ||||||
|  |                 return R.ok(result); | ||||||
|  |             } | ||||||
|  |         } catch (NotLoginException ignored) { | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         // 获取域名 | ||||||
|  |         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.equalsIgnoreCase(vo.getDomain(), host)); | ||||||
|  |         result.setVoList(CollUtil.isNotEmpty(list) ? list : voList); | ||||||
|  |         return R.ok(result); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,154 @@ | |||||||
|  | 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 jakarta.validation.constraints.NotBlank; | ||||||
|  | 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.exception.ServiceException; | ||||||
|  | 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.web.domain.vo.CaptchaVo; | ||||||
|  | import org.springframework.expression.Expression; | ||||||
|  | import org.springframework.expression.ExpressionParser; | ||||||
|  | import org.springframework.expression.spel.standard.SpelExpressionParser; | ||||||
|  | import org.springframework.validation.annotation.Validated; | ||||||
|  | import org.springframework.web.bind.annotation.GetMapping; | ||||||
|  | import org.springframework.web.bind.annotation.RestController; | ||||||
|  |  | ||||||
|  | import java.time.Duration; | ||||||
|  | import java.util.LinkedHashMap; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 验证码操作处理 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @SaIgnore | ||||||
|  | @Slf4j | ||||||
|  | @Validated | ||||||
|  | @RequiredArgsConstructor | ||||||
|  | @RestController | ||||||
|  | public class CaptchaController { | ||||||
|  |  | ||||||
|  |     private final CaptchaProperties captchaProperties; | ||||||
|  |     private final MailProperties mailProperties; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 短信验证码 | ||||||
|  |      * | ||||||
|  |      * @param 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 自行处理 (查数据库或写死均可) | ||||||
|  |         String templateId = ""; | ||||||
|  |         LinkedHashMap<String, String> map = new LinkedHashMap<>(1); | ||||||
|  |         map.put("code", code); | ||||||
|  |         SmsBlend smsBlend = SmsFactory.getSmsBlend("config1"); | ||||||
|  |         SmsResponse smsResponse = smsBlend.sendMessage(phonenumber, templateId, map); | ||||||
|  |         if (!smsResponse.isSuccess()) { | ||||||
|  |             log.error("验证码短信发送异常 => {}", smsResponse); | ||||||
|  |             return R.fail(smsResponse.getData().toString()); | ||||||
|  |         } | ||||||
|  |         return R.ok(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 邮箱验证码 | ||||||
|  |      * | ||||||
|  |      * @param email 邮箱 | ||||||
|  |      */ | ||||||
|  |     @GetMapping("/resource/email/code") | ||||||
|  |     public R<Void> emailCode(@NotBlank(message = "{user.email.not.blank}") String email) { | ||||||
|  |         if (!mailProperties.getEnabled()) { | ||||||
|  |             return R.fail("当前系统没有开启邮箱功能!"); | ||||||
|  |         } | ||||||
|  |         SpringUtils.getAopProxy(this).emailCodeImpl(email); | ||||||
|  |         return R.ok(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 邮箱验证码 | ||||||
|  |      * 独立方法避免验证码关闭之后仍然走限流 | ||||||
|  |      */ | ||||||
|  |     @RateLimiter(key = "#email", time = 60, count = 1) | ||||||
|  |     public void emailCodeImpl(String email) { | ||||||
|  |         String key = GlobalConstants.CAPTCHA_CODE_KEY + email; | ||||||
|  |         String code = RandomUtil.randomNumbers(4); | ||||||
|  |         RedisUtils.setCacheObject(key, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION)); | ||||||
|  |         try { | ||||||
|  |             MailUtils.sendText(email, "登录验证码", "您本次验证码为:" + code + ",有效性为" + Constants.CAPTCHA_EXPIRATION + "分钟,请尽快填写。"); | ||||||
|  |         } catch (Exception e) { | ||||||
|  |             log.error("验证码短信发送异常 => {}", e.getMessage()); | ||||||
|  |             throw new ServiceException(e.getMessage()); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 生成验证码 | ||||||
|  |      */ | ||||||
|  |     @GetMapping("/auth/code") | ||||||
|  |     public R<CaptchaVo> getCode() { | ||||||
|  |         boolean captchaEnabled = captchaProperties.getEnable(); | ||||||
|  |         if (!captchaEnabled) { | ||||||
|  |             CaptchaVo captchaVo = new CaptchaVo(); | ||||||
|  |             captchaVo.setCaptchaEnabled(false); | ||||||
|  |             return R.ok(captchaVo); | ||||||
|  |         } | ||||||
|  |         return R.ok(SpringUtils.getAopProxy(this).getCodeImpl()); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 生成验证码 | ||||||
|  |      * 独立方法避免验证码关闭之后仍然走限流 | ||||||
|  |      */ | ||||||
|  |     @RateLimiter(time = 60, count = 10, limitType = LimitType.IP) | ||||||
|  |     public CaptchaVo getCodeImpl() { | ||||||
|  |         // 保存验证码信息 | ||||||
|  |         String uuid = IdUtil.simpleUUID(); | ||||||
|  |         String verifyKey = GlobalConstants.CAPTCHA_CODE_KEY + uuid; | ||||||
|  |         // 生成验证码 | ||||||
|  |         CaptchaType captchaType = captchaProperties.getType(); | ||||||
|  |         boolean isMath = CaptchaType.MATH == captchaType; | ||||||
|  |         Integer length = isMath ? captchaProperties.getNumberLength() : captchaProperties.getCharLength(); | ||||||
|  |         CodeGenerator codeGenerator = ReflectUtils.newInstance(captchaType.getClazz(), length); | ||||||
|  |         AbstractCaptcha captcha = SpringUtils.getBean(captchaProperties.getCategory().getClazz()); | ||||||
|  |         captcha.setGenerator(codeGenerator); | ||||||
|  |         captcha.createCode(); | ||||||
|  |         // 如果是数学验证码,使用SpEL表达式处理验证码结果 | ||||||
|  |         String code = captcha.getCode(); | ||||||
|  |         if (isMath) { | ||||||
|  |             ExpressionParser parser = new SpelExpressionParser(); | ||||||
|  |             Expression exp = parser.parseExpression(StringUtils.remove(code, "=")); | ||||||
|  |             code = exp.getValue(String.class); | ||||||
|  |         } | ||||||
|  |         RedisUtils.setCacheObject(verifyKey, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION)); | ||||||
|  |         CaptchaVo captchaVo = new CaptchaVo(); | ||||||
|  |         captchaVo.setUuid(uuid); | ||||||
|  |         captchaVo.setImg(captcha.getImageBase64()); | ||||||
|  |         return captchaVo; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,28 @@ | |||||||
|  | package org.dromara.web.controller; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.annotation.SaIgnore; | ||||||
|  | import lombok.RequiredArgsConstructor; | ||||||
|  | import org.dromara.common.core.utils.SpringUtils; | ||||||
|  | import org.dromara.common.core.utils.StringUtils; | ||||||
|  | import org.springframework.web.bind.annotation.GetMapping; | ||||||
|  | import org.springframework.web.bind.annotation.RestController; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 首页 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @SaIgnore | ||||||
|  | @RequiredArgsConstructor | ||||||
|  | @RestController | ||||||
|  | public class IndexController { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 访问首页,提示语 | ||||||
|  |      */ | ||||||
|  |     @GetMapping("/") | ||||||
|  |     public String index() { | ||||||
|  |         return StringUtils.format("欢迎使用{}后台管理框架,请通过前端地址访问。", SpringUtils.getApplicationName()); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -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,31 @@ | |||||||
|  | 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; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,163 @@ | |||||||
|  | package org.dromara.web.listener; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.listener.SaTokenListener; | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.dev33.satoken.stp.parameter.SaLoginParameter; | ||||||
|  | import cn.hutool.core.convert.Convert; | ||||||
|  | import cn.hutool.http.useragent.UserAgent; | ||||||
|  | import cn.hutool.http.useragent.UserAgentUtil; | ||||||
|  | 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.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.common.tenant.helper.TenantHelper; | ||||||
|  | import org.dromara.web.service.SysLoginService; | ||||||
|  | import org.springframework.stereotype.Component; | ||||||
|  |  | ||||||
|  | import java.time.Duration; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 用户行为 侦听器的实现 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @RequiredArgsConstructor | ||||||
|  | @Component | ||||||
|  | @Slf4j | ||||||
|  | public class UserActionListener implements SaTokenListener { | ||||||
|  |  | ||||||
|  |     private final SysLoginService loginService; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次登录时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doLogin(String loginType, Object loginId, String tokenValue, SaLoginParameter loginParameter) { | ||||||
|  |         UserAgent userAgent = UserAgentUtil.parse(ServletUtils.getRequest().getHeader("User-Agent")); | ||||||
|  |         String ip = ServletUtils.getClientIP(); | ||||||
|  |         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); | ||||||
|  |         String username = (String) loginParameter.getExtra(LoginHelper.USER_NAME_KEY); | ||||||
|  |         String tenantId = (String) loginParameter.getExtra(LoginHelper.TENANT_KEY); | ||||||
|  |         dto.setUserName(username); | ||||||
|  |         dto.setClientKey((String) loginParameter.getExtra(LoginHelper.CLIENT_KEY)); | ||||||
|  |         dto.setDeviceType(loginParameter.getDeviceType()); | ||||||
|  |         dto.setDeptName((String) loginParameter.getExtra(LoginHelper.DEPT_NAME_KEY)); | ||||||
|  |         TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             if(loginParameter.getTimeout() == -1) { | ||||||
|  |                 RedisUtils.setCacheObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue, dto); | ||||||
|  |             } else { | ||||||
|  |                 RedisUtils.setCacheObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue, dto, Duration.ofSeconds(loginParameter.getTimeout())); | ||||||
|  |             } | ||||||
|  |         }); | ||||||
|  |         // 记录登录日志 | ||||||
|  |         LogininforEvent logininforEvent = new LogininforEvent(); | ||||||
|  |         logininforEvent.setTenantId(tenantId); | ||||||
|  |         logininforEvent.setUsername(username); | ||||||
|  |         logininforEvent.setStatus(Constants.LOGIN_SUCCESS); | ||||||
|  |         logininforEvent.setMessage(MessageUtils.message("user.login.success")); | ||||||
|  |         logininforEvent.setRequest(ServletUtils.getRequest()); | ||||||
|  |         SpringUtils.context().publishEvent(logininforEvent); | ||||||
|  |         // 更新登录信息 | ||||||
|  |         loginService.recordLoginInfo((Long) loginParameter.getExtra(LoginHelper.USER_KEY), ip); | ||||||
|  |         log.info("user doLogin, userId:{}, token:{}", loginId, tokenValue); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次注销时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doLogout(String loginType, Object loginId, String tokenValue) { | ||||||
|  |         String tenantId = Convert.toStr(StpUtil.getExtra(tokenValue, LoginHelper.TENANT_KEY)); | ||||||
|  |         TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             RedisUtils.deleteObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue); | ||||||
|  |         }); | ||||||
|  |         log.info("user doLogout, userId:{}, token:{}", loginId, tokenValue); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次被踢下线时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doKickout(String loginType, Object loginId, String tokenValue) { | ||||||
|  |         String tenantId = Convert.toStr(StpUtil.getExtra(tokenValue, LoginHelper.TENANT_KEY)); | ||||||
|  |         TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             RedisUtils.deleteObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue); | ||||||
|  |         }); | ||||||
|  |         log.info("user doKickout, userId:{}, token:{}", loginId, tokenValue); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次被顶下线时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doReplaced(String loginType, Object loginId, String tokenValue) { | ||||||
|  |         String tenantId = Convert.toStr(StpUtil.getExtra(tokenValue, LoginHelper.TENANT_KEY)); | ||||||
|  |         TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             RedisUtils.deleteObject(CacheConstants.ONLINE_TOKEN_KEY + tokenValue); | ||||||
|  |         }); | ||||||
|  |         log.info("user doReplaced, userId:{}, token:{}", loginId, tokenValue); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次被封禁时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doDisable(String loginType, Object loginId, String service, int level, long disableTime) { | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次被解封时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doUntieDisable(String loginType, Object loginId, String service) { | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次打开二级认证时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doOpenSafe(String loginType, String tokenValue, String service, long safeTime) { | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次创建Session时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doCloseSafe(String loginType, String tokenValue, String service) { | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次创建Session时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doCreateSession(String id) { | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次注销Session时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doLogoutSession(String id) { | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 每次Token续期时触发 | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public void doRenewTimeout(String tokenValue, Object loginId, long timeout) { | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,46 @@ | |||||||
|  | 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.system.domain.vo.SysClientVo; | ||||||
|  | import org.dromara.web.domain.vo.LoginVo; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 授权策略 | ||||||
|  |  * | ||||||
|  |  * @author Michelle.Chung | ||||||
|  |  */ | ||||||
|  | public interface IAuthStrategy { | ||||||
|  |  | ||||||
|  |     String BASE_NAME = "AuthStrategy"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 登录 | ||||||
|  |      * | ||||||
|  |      * @param body      登录对象 | ||||||
|  |      * @param client    授权管理视图对象 | ||||||
|  |      * @param grantType 授权类型 | ||||||
|  |      * @return 登录验证信息 | ||||||
|  |      */ | ||||||
|  |     static LoginVo login(String body, SysClientVo 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); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 登录 | ||||||
|  |      * | ||||||
|  |      * @param body   登录对象 | ||||||
|  |      * @param client 授权管理视图对象 | ||||||
|  |      * @return 登录验证信息 | ||||||
|  |      */ | ||||||
|  |     LoginVo login(String body, SysClientVo client); | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,251 @@ | |||||||
|  | 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.lang.Opt; | ||||||
|  | import cn.hutool.core.util.ObjectUtil; | ||||||
|  | import com.baomidou.lock.annotation.Lock4j; | ||||||
|  | import lombok.RequiredArgsConstructor; | ||||||
|  | import lombok.extern.slf4j.Slf4j; | ||||||
|  | import me.zhyd.oauth.model.AuthUser; | ||||||
|  | import org.dromara.common.core.constant.CacheConstants; | ||||||
|  | import org.dromara.common.core.constant.Constants; | ||||||
|  | import org.dromara.common.core.constant.SystemConstants; | ||||||
|  | import org.dromara.common.core.constant.TenantConstants; | ||||||
|  | import org.dromara.common.core.domain.dto.PostDTO; | ||||||
|  | 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.exception.ServiceException; | ||||||
|  | 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.*; | ||||||
|  | import org.dromara.system.mapper.SysUserMapper; | ||||||
|  | import org.dromara.system.service.*; | ||||||
|  | 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 ISysRoleService roleService; | ||||||
|  |     private final ISysDeptService deptService; | ||||||
|  |     private final ISysPostService postService; | ||||||
|  |     private final SysUserMapper userMapper; | ||||||
|  |  | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 绑定第三方用户 | ||||||
|  |      * | ||||||
|  |      * @param authUserData 授权响应实体 | ||||||
|  |      */ | ||||||
|  |     @Lock4j | ||||||
|  |     public void socialRegister(AuthUser authUserData) { | ||||||
|  |         String authId = authUserData.getSource() + authUserData.getUuid(); | ||||||
|  |         // 第三方用户信息 | ||||||
|  |         SysSocialBo bo = BeanUtil.toBean(authUserData, SysSocialBo.class); | ||||||
|  |         BeanUtil.copyProperties(authUserData.getToken(), bo); | ||||||
|  |         Long userId = LoginHelper.getUserId(); | ||||||
|  |         bo.setUserId(userId); | ||||||
|  |         bo.setAuthId(authId); | ||||||
|  |         bo.setOpenId(authUserData.getUuid()); | ||||||
|  |         bo.setUserName(authUserData.getUsername()); | ||||||
|  |         bo.setNickName(authUserData.getNickname()); | ||||||
|  |         List<SysSocialVo> checkList = sysSocialService.selectByAuthId(authId); | ||||||
|  |         if (CollUtil.isNotEmpty(checkList)) { | ||||||
|  |             throw new ServiceException("此三方账号已经被绑定!"); | ||||||
|  |         } | ||||||
|  |         // 查询是否已经绑定用户 | ||||||
|  |         SysSocialBo params = new SysSocialBo(); | ||||||
|  |         params.setUserId(userId); | ||||||
|  |         params.setSource(bo.getSource()); | ||||||
|  |         List<SysSocialVo> list = sysSocialService.queryList(params); | ||||||
|  |         if (CollUtil.isEmpty(list)) { | ||||||
|  |             // 没有绑定用户, 新增用户信息 | ||||||
|  |             sysSocialService.insertByBo(bo); | ||||||
|  |         } else { | ||||||
|  |             // 更新用户信息 | ||||||
|  |             bo.setId(list.get(0).getId()); | ||||||
|  |             sysSocialService.updateByBo(bo); | ||||||
|  |             // 如果要绑定的平台账号已经被绑定过了 是否抛异常自行决断 | ||||||
|  |             // throw new ServiceException("此平台账号已经被绑定!"); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 退出登录 | ||||||
|  |      */ | ||||||
|  |     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(); | ||||||
|  |         Long userId = user.getUserId(); | ||||||
|  |         loginUser.setTenantId(user.getTenantId()); | ||||||
|  |         loginUser.setUserId(userId); | ||||||
|  |         loginUser.setDeptId(user.getDeptId()); | ||||||
|  |         loginUser.setUsername(user.getUserName()); | ||||||
|  |         loginUser.setNickname(user.getNickName()); | ||||||
|  |         loginUser.setUserType(user.getUserType()); | ||||||
|  |         loginUser.setMenuPermission(permissionService.getMenuPermission(userId)); | ||||||
|  |         loginUser.setRolePermission(permissionService.getRolePermission(userId)); | ||||||
|  |         if (ObjectUtil.isNotNull(user.getDeptId())) { | ||||||
|  |             Opt<SysDeptVo> deptOpt = Opt.of(user.getDeptId()).map(deptService::selectDeptById); | ||||||
|  |             loginUser.setDeptName(deptOpt.map(SysDeptVo::getDeptName).orElse(StringUtils.EMPTY)); | ||||||
|  |             loginUser.setDeptCategory(deptOpt.map(SysDeptVo::getDeptCategory).orElse(StringUtils.EMPTY)); | ||||||
|  |         } | ||||||
|  |         List<SysRoleVo> roles = roleService.selectRolesByUserId(userId); | ||||||
|  |         List<SysPostVo> posts = postService.selectPostsByUserId(userId); | ||||||
|  |         loginUser.setRoles(BeanUtil.copyToList(roles, RoleDTO.class)); | ||||||
|  |         loginUser.setPosts(BeanUtil.copyToList(posts, PostDTO.class)); | ||||||
|  |         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 = CacheConstants.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 (StringUtils.isBlank(tenantId)) { | ||||||
|  |             throw new TenantException("tenant.number.not.blank"); | ||||||
|  |         } | ||||||
|  |         if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) { | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  |         SysTenantVo tenant = tenantService.queryByTenantId(tenantId); | ||||||
|  |         if (ObjectUtil.isNull(tenant)) { | ||||||
|  |             log.info("登录租户:{} 不存在.", tenantId); | ||||||
|  |             throw new TenantException("tenant.not.exists"); | ||||||
|  |         } else if (SystemConstants.DISABLE.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,115 @@ | |||||||
|  | package org.dromara.web.service; | ||||||
|  |  | ||||||
|  | import cn.hutool.crypto.digest.BCrypt; | ||||||
|  | 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())); | ||||||
|  |         }); | ||||||
|  |         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.blankToDefault(uuid, ""); | ||||||
|  |         String captcha = RedisUtils.getCacheObject(verifyKey); | ||||||
|  |         RedisUtils.deleteObject(verifyKey); | ||||||
|  |         if (captcha == null) { | ||||||
|  |             recordLogininfor(tenantId, username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire")); | ||||||
|  |             throw new CaptchaExpireException(); | ||||||
|  |         } | ||||||
|  |         if (!code.equalsIgnoreCase(captcha)) { | ||||||
|  |             recordLogininfor(tenantId, username, Constants.LOGIN_FAIL, 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,102 @@ | |||||||
|  | package org.dromara.web.service.impl; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.dev33.satoken.stp.parameter.SaLoginParameter; | ||||||
|  | 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.constant.SystemConstants; | ||||||
|  | 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.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.SysUser; | ||||||
|  | import org.dromara.system.domain.vo.SysClientVo; | ||||||
|  | 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, SysClientVo client) { | ||||||
|  |         EmailLoginBody loginBody = JsonUtils.parseObject(body, EmailLoginBody.class); | ||||||
|  |         ValidatorUtils.validate(loginBody); | ||||||
|  |         String tenantId = loginBody.getTenantId(); | ||||||
|  |         String email = loginBody.getEmail(); | ||||||
|  |         String emailCode = loginBody.getEmailCode(); | ||||||
|  |         LoginUser loginUser = TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             SysUserVo user = loadUserByEmail(email); | ||||||
|  |             loginService.checkLogin(LoginType.EMAIL, tenantId, user.getUserName(), () -> !validateEmailCode(tenantId, email, emailCode)); | ||||||
|  |             // 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了 | ||||||
|  |             return loginService.buildLoginUser(user); | ||||||
|  |         }); | ||||||
|  |         loginUser.setClientKey(client.getClientKey()); | ||||||
|  |         loginUser.setDeviceType(client.getDeviceType()); | ||||||
|  |         SaLoginParameter model = new SaLoginParameter(); | ||||||
|  |         model.setDeviceType(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 email) { | ||||||
|  |         SysUserVo user = userMapper.selectVoOne(new LambdaQueryWrapper<SysUser>().eq(SysUser::getEmail, email)); | ||||||
|  |         if (ObjectUtil.isNull(user)) { | ||||||
|  |             log.info("登录用户:{} 不存在.", email); | ||||||
|  |             throw new UserException("user.not.exists", email); | ||||||
|  |         } else if (SystemConstants.DISABLE.equals(user.getStatus())) { | ||||||
|  |             log.info("登录用户:{} 已被停用.", email); | ||||||
|  |             throw new UserException("user.blocked", email); | ||||||
|  |         } | ||||||
|  |         return user; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,123 @@ | |||||||
|  | package org.dromara.web.service.impl; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.dev33.satoken.stp.parameter.SaLoginParameter; | ||||||
|  | import cn.hutool.core.util.ObjectUtil; | ||||||
|  | import cn.hutool.crypto.digest.BCrypt; | ||||||
|  | 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.constant.SystemConstants; | ||||||
|  | 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.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.SysUser; | ||||||
|  | import org.dromara.system.domain.vo.SysClientVo; | ||||||
|  | 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, SysClientVo 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); | ||||||
|  |         } | ||||||
|  |         LoginUser loginUser = TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             SysUserVo user = loadUserByUsername(username); | ||||||
|  |             loginService.checkLogin(LoginType.PASSWORD, tenantId, username, () -> !BCrypt.checkpw(password, user.getPassword())); | ||||||
|  |             // 此处可根据登录用户的数据不同 自行创建 loginUser | ||||||
|  |             return loginService.buildLoginUser(user); | ||||||
|  |         }); | ||||||
|  |         loginUser.setClientKey(client.getClientKey()); | ||||||
|  |         loginUser.setDeviceType(client.getDeviceType()); | ||||||
|  |         SaLoginParameter model = new SaLoginParameter(); | ||||||
|  |         model.setDeviceType(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.blankToDefault(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 username) { | ||||||
|  |         SysUserVo user = userMapper.selectVoOne(new LambdaQueryWrapper<SysUser>().eq(SysUser::getUserName, username)); | ||||||
|  |         if (ObjectUtil.isNull(user)) { | ||||||
|  |             log.info("登录用户:{} 不存在.", username); | ||||||
|  |             throw new UserException("user.not.exists", username); | ||||||
|  |         } else if (SystemConstants.DISABLE.equals(user.getStatus())) { | ||||||
|  |             log.info("登录用户:{} 已被停用.", username); | ||||||
|  |             throw new UserException("user.blocked", username); | ||||||
|  |         } | ||||||
|  |         return user; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,102 @@ | |||||||
|  | package org.dromara.web.service.impl; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.dev33.satoken.stp.parameter.SaLoginParameter; | ||||||
|  | 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.constant.SystemConstants; | ||||||
|  | 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.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.SysUser; | ||||||
|  | import org.dromara.system.domain.vo.SysClientVo; | ||||||
|  | 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, SysClientVo client) { | ||||||
|  |         SmsLoginBody loginBody = JsonUtils.parseObject(body, SmsLoginBody.class); | ||||||
|  |         ValidatorUtils.validate(loginBody); | ||||||
|  |         String tenantId = loginBody.getTenantId(); | ||||||
|  |         String phonenumber = loginBody.getPhonenumber(); | ||||||
|  |         String smsCode = loginBody.getSmsCode(); | ||||||
|  |         LoginUser loginUser = TenantHelper.dynamic(tenantId, () -> { | ||||||
|  |             SysUserVo user = loadUserByPhonenumber(phonenumber); | ||||||
|  |             loginService.checkLogin(LoginType.SMS, tenantId, user.getUserName(), () -> !validateSmsCode(tenantId, phonenumber, smsCode)); | ||||||
|  |             // 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了 | ||||||
|  |             return loginService.buildLoginUser(user); | ||||||
|  |         }); | ||||||
|  |         loginUser.setClientKey(client.getClientKey()); | ||||||
|  |         loginUser.setDeviceType(client.getDeviceType()); | ||||||
|  |         SaLoginParameter model = new SaLoginParameter(); | ||||||
|  |         model.setDeviceType(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 phonenumber) { | ||||||
|  |         SysUserVo user = userMapper.selectVoOne(new LambdaQueryWrapper<SysUser>().eq(SysUser::getPhonenumber, phonenumber)); | ||||||
|  |         if (ObjectUtil.isNull(user)) { | ||||||
|  |             log.info("登录用户:{} 不存在.", phonenumber); | ||||||
|  |             throw new UserException("user.not.exists", phonenumber); | ||||||
|  |         } else if (SystemConstants.DISABLE.equals(user.getStatus())) { | ||||||
|  |             log.info("登录用户:{} 已被停用.", phonenumber); | ||||||
|  |             throw new UserException("user.blocked", phonenumber); | ||||||
|  |         } | ||||||
|  |         return user; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,131 @@ | |||||||
|  | package org.dromara.web.service.impl; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.dev33.satoken.stp.parameter.SaLoginParameter; | ||||||
|  | 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 lombok.RequiredArgsConstructor; | ||||||
|  | import lombok.extern.slf4j.Slf4j; | ||||||
|  | import me.zhyd.oauth.model.AuthResponse; | ||||||
|  | import me.zhyd.oauth.model.AuthUser; | ||||||
|  | import org.dromara.common.core.constant.SystemConstants; | ||||||
|  | import org.dromara.common.core.domain.model.LoginUser; | ||||||
|  | import org.dromara.common.core.domain.model.SocialLoginBody; | ||||||
|  | import org.dromara.common.core.exception.ServiceException; | ||||||
|  | import org.dromara.common.core.exception.user.UserException; | ||||||
|  | import org.dromara.common.core.utils.StreamUtils; | ||||||
|  | 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.vo.SysClientVo; | ||||||
|  | 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, SysClientVo 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("你还没有绑定第三方账号,绑定后才可以登录!"); | ||||||
|  |         } | ||||||
|  |         SysSocialVo social; | ||||||
|  |         if (TenantHelper.isEnable()) { | ||||||
|  |             Optional<SysSocialVo> opt = StreamUtils.findAny(list, x -> x.getTenantId().equals(loginBody.getTenantId())); | ||||||
|  |             if (opt.isEmpty()) { | ||||||
|  |                 throw new ServiceException("对不起,你没有权限登录当前租户!"); | ||||||
|  |             } | ||||||
|  |             social = opt.get(); | ||||||
|  |         } else { | ||||||
|  |             social = list.get(0); | ||||||
|  |         } | ||||||
|  |         LoginUser loginUser = TenantHelper.dynamic(social.getTenantId(), () -> { | ||||||
|  |             SysUserVo user = loadUser(social.getUserId()); | ||||||
|  |             // 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了 | ||||||
|  |             return loginService.buildLoginUser(user); | ||||||
|  |         }); | ||||||
|  |         loginUser.setClientKey(client.getClientKey()); | ||||||
|  |         loginUser.setDeviceType(client.getDeviceType()); | ||||||
|  |         SaLoginParameter model = new SaLoginParameter(); | ||||||
|  |         model.setDeviceType(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(Long userId) { | ||||||
|  |         SysUserVo user = userMapper.selectVoById(userId); | ||||||
|  |         if (ObjectUtil.isNull(user)) { | ||||||
|  |             log.info("登录用户:{} 不存在.", ""); | ||||||
|  |             throw new UserException("user.not.exists", ""); | ||||||
|  |         } else if (SystemConstants.DISABLE.equals(user.getStatus())) { | ||||||
|  |             log.info("登录用户:{} 已被停用.", ""); | ||||||
|  |             throw new UserException("user.blocked", ""); | ||||||
|  |         } | ||||||
|  |         return user; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,111 @@ | |||||||
|  | package org.dromara.web.service.impl; | ||||||
|  |  | ||||||
|  | import cn.dev33.satoken.stp.StpUtil; | ||||||
|  | import cn.dev33.satoken.stp.parameter.SaLoginParameter; | ||||||
|  | import cn.hutool.core.util.ObjectUtil; | ||||||
|  | import lombok.RequiredArgsConstructor; | ||||||
|  | import lombok.extern.slf4j.Slf4j; | ||||||
|  | import me.zhyd.oauth.config.AuthConfig; | ||||||
|  | import me.zhyd.oauth.model.AuthCallback; | ||||||
|  | import me.zhyd.oauth.model.AuthResponse; | ||||||
|  | import me.zhyd.oauth.model.AuthToken; | ||||||
|  | import me.zhyd.oauth.model.AuthUser; | ||||||
|  | import me.zhyd.oauth.request.AuthRequest; | ||||||
|  | import me.zhyd.oauth.request.AuthWechatMiniProgramRequest; | ||||||
|  | import org.dromara.common.core.constant.SystemConstants; | ||||||
|  | import org.dromara.common.core.domain.model.XcxLoginBody; | ||||||
|  | import org.dromara.common.core.domain.model.XcxLoginUser; | ||||||
|  | import org.dromara.common.core.exception.ServiceException; | ||||||
|  | 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.vo.SysClientVo; | ||||||
|  | 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, SysClientVo client) { | ||||||
|  |         XcxLoginBody loginBody = JsonUtils.parseObject(body, XcxLoginBody.class); | ||||||
|  |         ValidatorUtils.validate(loginBody); | ||||||
|  |         // xcxCode 为 小程序调用 wx.login 授权后获取 | ||||||
|  |         String xcxCode = loginBody.getXcxCode(); | ||||||
|  |         // 多个小程序识别使用 | ||||||
|  |         String appid = loginBody.getAppid(); | ||||||
|  |  | ||||||
|  |         // 校验 appid + appsrcret + xcxCode 调用登录凭证校验接口 获取 session_key 与 openid | ||||||
|  |         AuthRequest authRequest = new AuthWechatMiniProgramRequest(AuthConfig.builder() | ||||||
|  |             .clientId(appid).clientSecret("自行填写密钥 可根据不同appid填入不同密钥") | ||||||
|  |             .ignoreCheckRedirectUri(true).ignoreCheckState(true).build()); | ||||||
|  |         AuthCallback authCallback = new AuthCallback(); | ||||||
|  |         authCallback.setCode(xcxCode); | ||||||
|  |         AuthResponse<AuthUser> resp = authRequest.login(authCallback); | ||||||
|  |         String openid, unionId; | ||||||
|  |         if (resp.ok()) { | ||||||
|  |             AuthToken token = resp.getData().getToken(); | ||||||
|  |             openid = token.getOpenId(); | ||||||
|  |             // 微信小程序只有关联到微信开放平台下之后才能获取到 unionId,因此unionId不一定能返回。 | ||||||
|  |             unionId = token.getUnionId(); | ||||||
|  |         } else { | ||||||
|  |             throw new ServiceException(resp.getMsg()); | ||||||
|  |         } | ||||||
|  |         // 框架登录不限制从什么表查询 只要最终构建出 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); | ||||||
|  |  | ||||||
|  |         SaLoginParameter model = new SaLoginParameter(); | ||||||
|  |         model.setDeviceType(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 (SystemConstants.DISABLE.equals(user.getStatus())) { | ||||||
|  |             log.info("登录用户:{} 已被停用.", openid); | ||||||
|  |             // todo 用户已被停用 业务逻辑自行实现 | ||||||
|  |         } | ||||||
|  |         return user; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -1,77 +1,101 @@ | |||||||
| # 数据源配置 | --- # 监控中心配置 | ||||||
|  | spring.boot.admin.client: | ||||||
|  |   # 增加客户端开关 | ||||||
|  |   enabled: true | ||||||
|  |   url: http://localhost:9090/admin | ||||||
|  |   instance: | ||||||
|  |     service-host-type: IP | ||||||
|  |     metadata: | ||||||
|  |       username: ${spring.boot.admin.client.username} | ||||||
|  |       userpassword: ${spring.boot.admin.client.password} | ||||||
|  |   username: @monitor.username@ | ||||||
|  |   password: @monitor.password@ | ||||||
|  |  | ||||||
|  | --- # snail-job 配置 | ||||||
|  | snail-job: | ||||||
|  |   enabled: true | ||||||
|  |   # 需要在 SnailJob 后台组管理创建对应名称的组,然后创建任务的时候选择对应的组,才能正确分派任务 | ||||||
|  |   group: "ruoyi_group" | ||||||
|  |   # SnailJob 接入验证令牌 详见 script/sql/ry_job.sql `sj_group_config` 表 | ||||||
|  |   token: "SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT" | ||||||
|  |   server: | ||||||
|  |     host: 127.0.0.1 | ||||||
|  |     port: 17888 | ||||||
|  |   # 命名空间UUID 详见 script/sql/ry_job.sql `sj_namespace`表`unique_id`字段 | ||||||
|  |   namespace: ${spring.profiles.active} | ||||||
|  |   # 随主应用端口漂移 | ||||||
|  |   port: 2${server.port} | ||||||
|  |   # 客户端ip指定 | ||||||
|  |   host: | ||||||
|  |   # RPC类型: netty, grpc | ||||||
|  |   rpc-type: grpc | ||||||
|  |  | ||||||
|  | --- # 数据源配置 | ||||||
| spring: | spring: | ||||||
|   datasource: |   datasource: | ||||||
|     type: com.alibaba.druid.pool.DruidDataSource |     type: com.zaxxer.hikari.HikariDataSource | ||||||
|     # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content |     # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content | ||||||
|     dynamic: |     dynamic: | ||||||
|       # 性能分析插件(有性能损耗 不建议生产环境使用) |       # 性能分析插件(有性能损耗 不建议生产环境使用) | ||||||
|       p6spy: true |       p6spy: true | ||||||
|       # 设置默认的数据源或者数据源组,默认值即为 master |       # 设置默认的数据源或者数据源组,默认值即为 master | ||||||
|       primary: master |       primary: master | ||||||
|  |       # 严格模式 匹配不到数据源则报错 | ||||||
|  |       strict: true | ||||||
|       datasource: |       datasource: | ||||||
|         # 主库数据源 |         # 主库数据源 | ||||||
|         master: |         master: | ||||||
|  |           type: ${spring.datasource.type} | ||||||
|           driverClassName: com.mysql.cj.jdbc.Driver |           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 |           # 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&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true | ||||||
|           username: root |           username: root | ||||||
|           password: root |           password: root | ||||||
|         # 从库数据源 | #        # 从库数据源 | ||||||
|         slave: | #        slave: | ||||||
|           lazy: true | #          lazy: true | ||||||
|           driverClassName: com.mysql.cj.jdbc.Driver | #          type: ${spring.datasource.type} | ||||||
|           url: | #          driverClassName: com.mysql.cj.jdbc.Driver | ||||||
|           username: | #          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true | ||||||
|           password: | #          username: | ||||||
|       druid: | #          password: | ||||||
|         # 初始连接数 | #        oracle: | ||||||
|         initialSize: 5 | #          type: ${spring.datasource.type} | ||||||
|         # 最小连接池数量 | #          driverClassName: oracle.jdbc.OracleDriver | ||||||
|         minIdle: 10 | #          url: jdbc:oracle:thin:@//localhost:1521/XE | ||||||
|  | #          username: ROOT | ||||||
|  | #          password: root | ||||||
|  | #        postgres: | ||||||
|  | #          type: ${spring.datasource.type} | ||||||
|  | #          driverClassName: org.postgresql.Driver | ||||||
|  | #          url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true | ||||||
|  | #          username: root | ||||||
|  | #          password: root | ||||||
|  | #        sqlserver: | ||||||
|  | #          type: ${spring.datasource.type} | ||||||
|  | #          driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver | ||||||
|  | #          url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true | ||||||
|  | #          username: SA | ||||||
|  | #          password: root | ||||||
|  |       hikari: | ||||||
|         # 最大连接池数量 |         # 最大连接池数量 | ||||||
|         maxActive: 20 |         maxPoolSize: 20 | ||||||
|  |         # 最小空闲线程数量 | ||||||
|  |         minIdle: 10 | ||||||
|         # 配置获取连接等待超时的时间 |         # 配置获取连接等待超时的时间 | ||||||
|         maxWait: 60000 |         connectionTimeout: 30000 | ||||||
|         # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |         # 校验超时时间 | ||||||
|         timeBetweenEvictionRunsMillis: 60000 |         validationTimeout: 5000 | ||||||
|         # 配置一个连接在池中最小生存的时间,单位是毫秒 |         # 空闲连接存活最大时间,默认10分钟 | ||||||
|         minEvictableIdleTimeMillis: 300000 |         idleTimeout: 600000 | ||||||
|         # 配置一个连接在池中最大生存的时间,单位是毫秒 |         # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟 | ||||||
|         maxEvictableIdleTimeMillis: 900000 |         maxLifetime: 1800000 | ||||||
|         # 配置检测连接是否有效 |         # 多久检查一次连接的活性 | ||||||
|         validationQuery: SELECT 1 FROM DUAL |         keepaliveTime: 30000 | ||||||
|         testWhileIdle: true |  | ||||||
|         testOnBorrow: false |  | ||||||
|         testOnReturn: false |  | ||||||
|         # 注意这个值和druid原生不一致,默认启动了stat |  | ||||||
|         filters: stat |  | ||||||
|  |  | ||||||
| --- # druid 配置 |  | ||||||
| spring: |  | ||||||
|   datasource: |  | ||||||
|     druid: |  | ||||||
|       webStatFilter: |  | ||||||
|         enabled: true |  | ||||||
|       statViewServlet: |  | ||||||
|         enabled: true |  | ||||||
|         # 设置白名单,不填则允许所有访问 |  | ||||||
|         allow: |  | ||||||
|         url-pattern: /druid/* |  | ||||||
|         # 控制台管理用户名和密码 |  | ||||||
|         login-username: ruoyi |  | ||||||
|         login-password: 123456 |  | ||||||
|       filter: |  | ||||||
|         stat: |  | ||||||
|           enabled: true |  | ||||||
|           # 慢SQL记录 |  | ||||||
|           log-slow-sql: true |  | ||||||
|           slow-sql-millis: 1000 |  | ||||||
|           merge-sql: true |  | ||||||
|         wall: |  | ||||||
|           config: |  | ||||||
|             multi-statement-allow: true |  | ||||||
|  |  | ||||||
| --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉) | --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉) | ||||||
| spring: | spring.data: | ||||||
|   redis: |   redis: | ||||||
|     # 地址 |     # 地址 | ||||||
|     host: localhost |     host: localhost | ||||||
| @@ -79,117 +103,163 @@ spring: | |||||||
|     port: 6379 |     port: 6379 | ||||||
|     # 数据库索引 |     # 数据库索引 | ||||||
|     database: 0 |     database: 0 | ||||||
|     # 密码 |     # redis 密码必须配置 | ||||||
|     password: |     password: ruoyi123 | ||||||
|     # 连接超时时间 |     # 连接超时时间 | ||||||
|     timeout: 10s |     timeout: 10s | ||||||
|     # 是否开启ssl |     # 是否开启ssl | ||||||
|     ssl: false |     ssl.enabled: false | ||||||
|  |  | ||||||
|  | # redisson 配置 | ||||||
| redisson: | redisson: | ||||||
|  |   # redis key前缀 | ||||||
|  |   keyPrefix: | ||||||
|   # 线程池数量 |   # 线程池数量 | ||||||
|   threads: 16 |   threads: 4 | ||||||
|   # Netty线程池数量 |   # Netty线程池数量 | ||||||
|   nettyThreads: 32 |   nettyThreads: 8 | ||||||
|   # 传输模式 |  | ||||||
|   transportMode: "NIO" |  | ||||||
|   # 单节点配置 |   # 单节点配置 | ||||||
|   singleServerConfig: |   singleServerConfig: | ||||||
|     # 客户端名称 |     # 客户端名称 不能用中文 | ||||||
|     clientName: ${ruoyi.name} |     clientName: RuoYi-Vue-Plus | ||||||
|     # 最小空闲连接数 |     # 最小空闲连接数 | ||||||
|     connectionMinimumIdleSize: 32 |     connectionMinimumIdleSize: 8 | ||||||
|     # 连接池大小 |     # 连接池大小 | ||||||
|     connectionPoolSize: 64 |     connectionPoolSize: 32 | ||||||
|     # 连接空闲超时,单位:毫秒 |     # 连接空闲超时,单位:毫秒 | ||||||
|     idleConnectionTimeout: 10000 |     idleConnectionTimeout: 10000 | ||||||
|     # 命令等待超时,单位:毫秒 |     # 命令等待超时,单位:毫秒 | ||||||
|     timeout: 3000 |     timeout: 3000 | ||||||
|     # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |  | ||||||
|     retryAttempts: 3 |  | ||||||
|     # 命令重试发送时间间隔,单位:毫秒 |  | ||||||
|     retryInterval: 1500 |  | ||||||
|     # 发布和订阅连接的最小空闲连接数 |  | ||||||
|     subscriptionConnectionMinimumIdleSize: 1 |  | ||||||
|     # 发布和订阅连接池大小 |     # 发布和订阅连接池大小 | ||||||
|     subscriptionConnectionPoolSize: 50 |     subscriptionConnectionPoolSize: 50 | ||||||
|     # 单个连接最大订阅数量 |  | ||||||
|     subscriptionsPerConnection: 5 |  | ||||||
|     # DNS监测时间间隔,单位:毫秒 |  | ||||||
|     dnsMonitoringInterval: 5000 |  | ||||||
|  |  | ||||||
| #--- # redis 集群配置(单机与集群只能开启一个另一个需要注释掉) | --- # mail 邮件发送 | ||||||
| #spring: | mail: | ||||||
| #  redis: |   enabled: false | ||||||
| #    cluster: |   host: smtp.163.com | ||||||
| #      nodes: |   port: 465 | ||||||
| #        - 192.168.0.100:6379 |   # 是否需要用户名密码验证 | ||||||
| #        - 192.168.0.101:6379 |   auth: true | ||||||
| #        - 192.168.0.102:6379 |   # 发送方,遵循RFC-822标准 | ||||||
| #    # 密码 |   from: xxx@163.com | ||||||
| #    password: |   # 用户名(注意:如果使用foxmail邮箱,此处user为qq号) | ||||||
| #    # 连接超时时间 |   user: xxx@163.com | ||||||
| #    timeout: 10s |   # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助) | ||||||
| #    # 是否开启ssl |   pass: xxxxxxxxxx | ||||||
| #    ssl: false |   # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。 | ||||||
| # |   starttlsEnable: true | ||||||
| #redisson: |   # 使用SSL安全连接 | ||||||
| #  # 线程池数量 |   sslEnable: true | ||||||
| #  threads: 16 |   # SMTP超时时长,单位毫秒,缺省值不超时 | ||||||
| #  # Netty线程池数量 |   timeout: 0 | ||||||
| #  nettyThreads: 32 |   # Socket连接超时值,单位毫秒,缺省值不超时 | ||||||
| #  # 传输模式 |   connectionTimeout: 0 | ||||||
| #  transportMode: "NIO" |  | ||||||
| #  # 集群配置 |  | ||||||
| #  clusterServersConfig: |  | ||||||
| #    # 客户端名称 |  | ||||||
| #    clientName: ${ruoyi.name} |  | ||||||
| #    # master最小空闲连接数 |  | ||||||
| #    masterConnectionMinimumIdleSize: 32 |  | ||||||
| #    # master连接池大小 |  | ||||||
| #    masterConnectionPoolSize: 64 |  | ||||||
| #    # slave最小空闲连接数 |  | ||||||
| #    slaveConnectionMinimumIdleSize: 32 |  | ||||||
| #    # slave连接池大小 |  | ||||||
| #    slaveConnectionPoolSize: 64 |  | ||||||
| #    # 连接空闲超时,单位:毫秒 |  | ||||||
| #    idleConnectionTimeout: 10000 |  | ||||||
| #    # ping连接间隔 |  | ||||||
| #    pingConnectionInterval: 1000 |  | ||||||
| #    # 命令等待超时,单位:毫秒 |  | ||||||
| #    timeout: 3000 |  | ||||||
| #    # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |  | ||||||
| #    retryAttempts: 3 |  | ||||||
| #    # 命令重试发送时间间隔,单位:毫秒 |  | ||||||
| #    retryInterval: 1500 |  | ||||||
| #    # 从可用服务器的内部列表中排除 Redis Slave 重新连接尝试的间隔。 |  | ||||||
| #    failedSlaveReconnectionInterval: 3000 |  | ||||||
| #    # 发布和订阅连接池最小空闲连接数 |  | ||||||
| #    subscriptionConnectionMinimumIdleSize: 1 |  | ||||||
| #    # 发布和订阅连接池大小 |  | ||||||
| #    subscriptionConnectionPoolSize: 50 |  | ||||||
| #    # 单个连接最大订阅数量 |  | ||||||
| #    subscriptionsPerConnection: 5 |  | ||||||
| #    # 扫描间隔 |  | ||||||
| #    scanInterval: 1000 |  | ||||||
| #    # DNS监测时间间隔,单位:毫秒 |  | ||||||
| #    dnsMonitoringInterval: 5000 |  | ||||||
| #    # 读取模式 |  | ||||||
| #    readMode: "SLAVE" |  | ||||||
| #    # 订阅模式 |  | ||||||
| #    subscriptionMode: "MASTER" |  | ||||||
|  |  | ||||||
| --- # 监控配置 | --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商 | ||||||
| spring: | # https://sms4j.com/doc3/ 差异配置文档地址 支持单厂商多配置,可以配置多个同时使用 | ||||||
|   boot: | sms: | ||||||
|     admin: |   # 配置源类型用于标定配置来源(interface,yaml) | ||||||
|       # Spring Boot Admin Client 客户端的相关配置 |   config-type: yaml | ||||||
|       client: |   # 用于标定yml中的配置是否开启短信拦截,接口配置不受此限制 | ||||||
|         # 增加客户端开关 |   restricted: true | ||||||
|         enabled: true |   # 短信拦截限制单手机号每分钟最大发送,只对开启了拦截的配置有效 | ||||||
|         # 设置 Spring Boot Admin Server 地址 |   minute-max: 1 | ||||||
|         url: http://localhost:9090/admin |   # 短信拦截限制单手机号每日最大发送量,只对开启了拦截的配置有效 | ||||||
|         instance: |   account-max: 30 | ||||||
|           prefer-ip: true # 注册实例时,优先使用 IP |   # 以下配置来自于 org.dromara.sms4j.provider.config.BaseConfig类中 | ||||||
|         username: ruoyi |   blends: | ||||||
|         password: 123456 |     # 唯一ID 用于发送短信寻找具体配置 随便定义别用中文即可 | ||||||
|  |     # 可以同时存在两个相同厂商 例如: ali1 ali2 两个不同的阿里短信账号 也可用于区分租户 | ||||||
|  |     config1: | ||||||
|  |       # 框架定义的厂商名称标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分 | ||||||
|  |       supplier: alibaba | ||||||
|  |       # 有些称为accessKey有些称之为apiKey,也有称为sdkKey或者appId。 | ||||||
|  |       access-key-id: 您的accessKey | ||||||
|  |       # 称为accessSecret有些称之为apiSecret | ||||||
|  |       access-key-secret: 您的accessKeySecret | ||||||
|  |       signature: 您的短信签名 | ||||||
|  |       sdk-app-id: 您的sdkAppId | ||||||
|  |     config2: | ||||||
|  |       # 厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分 | ||||||
|  |       supplier: tencent | ||||||
|  |       access-key-id: 您的accessKey | ||||||
|  |       access-key-secret: 您的accessKeySecret | ||||||
|  |       signature: 您的短信签名 | ||||||
|  |       sdk-app-id: 您的sdkAppId | ||||||
|  |  | ||||||
|  |  | ||||||
|  | --- # 三方授权 | ||||||
|  | justauth: | ||||||
|  |   # 前端外网访问地址 | ||||||
|  |   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 | ||||||
|  |     topiam: | ||||||
|  |       # topiam 服务器地址 | ||||||
|  |       server-url: http://127.0.0.1:1898/api/v1/authorize/y0q************spq***********8ol | ||||||
|  |       client-id: 449c4*********937************759 | ||||||
|  |       client-secret: ac7***********1e0************28d | ||||||
|  |       redirect-uri: ${justauth.address}/social-callback?source=topiam | ||||||
|  |       scopes: [openid, email, phone, profile] | ||||||
|  |     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 | ||||||
|   | |||||||
| @@ -1,102 +1,130 @@ | |||||||
| # 数据源配置 | --- # 临时文件存储位置 避免临时文件被系统清理报错 | ||||||
|  | spring.servlet.multipart.location: /ruoyi/server/temp | ||||||
|  |  | ||||||
|  | --- # 监控中心配置 | ||||||
|  | spring.boot.admin.client: | ||||||
|  |   # 增加客户端开关 | ||||||
|  |   enabled: true | ||||||
|  |   url: http://localhost:9090/admin | ||||||
|  |   instance: | ||||||
|  |     service-host-type: IP | ||||||
|  |     metadata: | ||||||
|  |       username: ${spring.boot.admin.client.username} | ||||||
|  |       userpassword: ${spring.boot.admin.client.password} | ||||||
|  |   username: @monitor.username@ | ||||||
|  |   password: @monitor.password@ | ||||||
|  |  | ||||||
|  | --- # snail-job 配置 | ||||||
|  | snail-job: | ||||||
|  |   enabled: true | ||||||
|  |   # 需要在 SnailJob 后台组管理创建对应名称的组,然后创建任务的时候选择对应的组,才能正确分派任务 | ||||||
|  |   group: "ruoyi_group" | ||||||
|  |   # SnailJob 接入验证令牌 详见 script/sql/ry_job.sql `sj_group_config`表 | ||||||
|  |   token: "SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT" | ||||||
|  |   server: | ||||||
|  |     host: 127.0.0.1 | ||||||
|  |     port: 17888 | ||||||
|  |   # 命名空间UUID 详见 script/sql/ry_job.sql `sj_namespace`表`unique_id`字段 | ||||||
|  |   namespace: ${spring.profiles.active} | ||||||
|  |   # 随主应用端口漂移 | ||||||
|  |   port: 2${server.port} | ||||||
|  |   # 客户端ip指定 | ||||||
|  |   host: | ||||||
|  |   # RPC类型: netty, grpc | ||||||
|  |   rpc-type: grpc | ||||||
|  |  | ||||||
|  | --- # 数据源配置 | ||||||
| spring: | spring: | ||||||
|   datasource: |   datasource: | ||||||
|     type: com.alibaba.druid.pool.DruidDataSource |     type: com.zaxxer.hikari.HikariDataSource | ||||||
|     # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content |     # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content | ||||||
|     dynamic: |     dynamic: | ||||||
|       # 性能分析插件(有性能损耗 不建议生产环境使用) |       # 性能分析插件(有性能损耗 不建议生产环境使用) | ||||||
|       p6spy: false |       p6spy: false | ||||||
|       # 设置默认的数据源或者数据源组,默认值即为 master |       # 设置默认的数据源或者数据源组,默认值即为 master | ||||||
|       primary: master |       primary: master | ||||||
|  |       # 严格模式 匹配不到数据源则报错 | ||||||
|  |       strict: true | ||||||
|       datasource: |       datasource: | ||||||
|         # 主库数据源 |         # 主库数据源 | ||||||
|         master: |         master: | ||||||
|  |           type: ${spring.datasource.type} | ||||||
|           driverClassName: com.mysql.cj.jdbc.Driver |           driverClassName: com.mysql.cj.jdbc.Driver | ||||||
|           url: jdbc:mysql://172.30.0.36:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true |           # 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&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true | ||||||
|           username: root |           username: root | ||||||
|           password: root |           password: root | ||||||
|         # 从库数据源 | #        # 从库数据源 | ||||||
|         slave: | #        slave: | ||||||
|           lazy: true | #          lazy: true | ||||||
|           driverClassName: com.mysql.cj.jdbc.Driver | #          type: ${spring.datasource.type} | ||||||
|           url: | #          driverClassName: com.mysql.cj.jdbc.Driver | ||||||
|           username: | #          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true | ||||||
|           password: | #          username: | ||||||
|       druid: | #          password: | ||||||
|         # 初始连接数 | #        oracle: | ||||||
|         initialSize: 5 | #          type: ${spring.datasource.type} | ||||||
|         # 最小连接池数量 | #          driverClassName: oracle.jdbc.OracleDriver | ||||||
|         minIdle: 10 | #          url: jdbc:oracle:thin:@//localhost:1521/XE | ||||||
|  | #          username: ROOT | ||||||
|  | #          password: root | ||||||
|  | #        postgres: | ||||||
|  | #          type: ${spring.datasource.type} | ||||||
|  | #          driverClassName: org.postgresql.Driver | ||||||
|  | #          url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true | ||||||
|  | #          username: root | ||||||
|  | #          password: root | ||||||
|  | #        sqlserver: | ||||||
|  | #          type: ${spring.datasource.type} | ||||||
|  | #          driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver | ||||||
|  | #          url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true | ||||||
|  | #          username: SA | ||||||
|  | #          password: root | ||||||
|  |       hikari: | ||||||
|         # 最大连接池数量 |         # 最大连接池数量 | ||||||
|         maxActive: 20 |         maxPoolSize: 20 | ||||||
|  |         # 最小空闲线程数量 | ||||||
|  |         minIdle: 10 | ||||||
|         # 配置获取连接等待超时的时间 |         # 配置获取连接等待超时的时间 | ||||||
|         maxWait: 60000 |         connectionTimeout: 30000 | ||||||
|         # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |         # 校验超时时间 | ||||||
|         timeBetweenEvictionRunsMillis: 60000 |         validationTimeout: 5000 | ||||||
|         # 配置一个连接在池中最小生存的时间,单位是毫秒 |         # 空闲连接存活最大时间,默认10分钟 | ||||||
|         minEvictableIdleTimeMillis: 300000 |         idleTimeout: 600000 | ||||||
|         # 配置一个连接在池中最大生存的时间,单位是毫秒 |         # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟 | ||||||
|         maxEvictableIdleTimeMillis: 900000 |         maxLifetime: 1800000 | ||||||
|         # 配置检测连接是否有效 |         # 多久检查一次连接的活性 | ||||||
|         validationQuery: SELECT 1 FROM DUAL |         keepaliveTime: 30000 | ||||||
|         testWhileIdle: true |  | ||||||
|         testOnBorrow: false |  | ||||||
|         testOnReturn: false |  | ||||||
|         # 注意这个值和druid原生不一致,默认启动了stat |  | ||||||
|         filters: stat |  | ||||||
|  |  | ||||||
| --- # druid 配置 |  | ||||||
| spring: |  | ||||||
|   datasource: |  | ||||||
|     druid: |  | ||||||
|       webStatFilter: |  | ||||||
|         enabled: true |  | ||||||
|       statViewServlet: |  | ||||||
|         enabled: true |  | ||||||
|         # 设置白名单,不填则允许所有访问 |  | ||||||
|         allow: |  | ||||||
|         url-pattern: /druid/* |  | ||||||
|         # 控制台管理用户名和密码 |  | ||||||
|         login-username: ruoyi |  | ||||||
|         login-password: 123456 |  | ||||||
|       filter: |  | ||||||
|         stat: |  | ||||||
|           enabled: true |  | ||||||
|           # 慢SQL记录 |  | ||||||
|           log-slow-sql: true |  | ||||||
|           slow-sql-millis: 1000 |  | ||||||
|           merge-sql: true |  | ||||||
|         wall: |  | ||||||
|           config: |  | ||||||
|             multi-statement-allow: true |  | ||||||
|  |  | ||||||
| --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉) | --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉) | ||||||
| spring: | spring.data: | ||||||
|   redis: |   redis: | ||||||
|     # 地址 |     # 地址 | ||||||
|     host: 172.30.0.48 |     host: localhost | ||||||
|     # 端口,默认为6379 |     # 端口,默认为6379 | ||||||
|     port: 6379 |     port: 6379 | ||||||
|     # 数据库索引 |     # 数据库索引 | ||||||
|     database: 0 |     database: 0 | ||||||
|     # 密码 |     # redis 密码必须配置 | ||||||
|     password: |     password: ruoyi123 | ||||||
|     # 连接超时时间 |     # 连接超时时间 | ||||||
|     timeout: 10s |     timeout: 10s | ||||||
|     # 是否开启ssl |     # 是否开启ssl | ||||||
|     ssl: false |     ssl.enabled: false | ||||||
|  |  | ||||||
|  | # redisson 配置 | ||||||
| redisson: | redisson: | ||||||
|  |   # redis key前缀 | ||||||
|  |   keyPrefix: | ||||||
|   # 线程池数量 |   # 线程池数量 | ||||||
|   threads: 16 |   threads: 16 | ||||||
|   # Netty线程池数量 |   # Netty线程池数量 | ||||||
|   nettyThreads: 32 |   nettyThreads: 32 | ||||||
|   # 传输模式 |  | ||||||
|   transportMode: "NIO" |  | ||||||
|   # 单节点配置 |   # 单节点配置 | ||||||
|   singleServerConfig: |   singleServerConfig: | ||||||
|     # 客户端名称 |     # 客户端名称 不能用中文 | ||||||
|     clientName: ${ruoyi.name} |     clientName: RuoYi-Vue-Plus | ||||||
|     # 最小空闲连接数 |     # 最小空闲连接数 | ||||||
|     connectionMinimumIdleSize: 32 |     connectionMinimumIdleSize: 32 | ||||||
|     # 连接池大小 |     # 连接池大小 | ||||||
| @@ -105,91 +133,135 @@ redisson: | |||||||
|     idleConnectionTimeout: 10000 |     idleConnectionTimeout: 10000 | ||||||
|     # 命令等待超时,单位:毫秒 |     # 命令等待超时,单位:毫秒 | ||||||
|     timeout: 3000 |     timeout: 3000 | ||||||
|     # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |  | ||||||
|     retryAttempts: 3 |  | ||||||
|     # 命令重试发送时间间隔,单位:毫秒 |  | ||||||
|     retryInterval: 1500 |  | ||||||
|     # 发布和订阅连接的最小空闲连接数 |  | ||||||
|     subscriptionConnectionMinimumIdleSize: 1 |  | ||||||
|     # 发布和订阅连接池大小 |     # 发布和订阅连接池大小 | ||||||
|     subscriptionConnectionPoolSize: 50 |     subscriptionConnectionPoolSize: 50 | ||||||
|     # 单个连接最大订阅数量 |  | ||||||
|     subscriptionsPerConnection: 5 |  | ||||||
|     # DNS监测时间间隔,单位:毫秒 |  | ||||||
|     dnsMonitoringInterval: 5000 |  | ||||||
|  |  | ||||||
| #--- # redis 集群配置(单机与集群只能开启一个另一个需要注释掉) | --- # mail 邮件发送 | ||||||
| #spring: | mail: | ||||||
| #  redis: |   enabled: false | ||||||
| #    cluster: |   host: smtp.163.com | ||||||
| #      nodes: |   port: 465 | ||||||
| #        - 192.168.0.100:6379 |   # 是否需要用户名密码验证 | ||||||
| #        - 192.168.0.101:6379 |   auth: true | ||||||
| #        - 192.168.0.102:6379 |   # 发送方,遵循RFC-822标准 | ||||||
| #    # 密码 |   from: xxx@163.com | ||||||
| #    password: |   # 用户名(注意:如果使用foxmail邮箱,此处user为qq号) | ||||||
| #    # 连接超时时间 |   user: xxx@163.com | ||||||
| #    timeout: 10s |   # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助) | ||||||
| #    # 是否开启ssl |   pass: xxxxxxxxxx | ||||||
| #    ssl: false |   # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。 | ||||||
| # |   starttlsEnable: true | ||||||
| #redisson: |   # 使用SSL安全连接 | ||||||
| #  # 线程池数量 |   sslEnable: true | ||||||
| #  threads: 16 |   # SMTP超时时长,单位毫秒,缺省值不超时 | ||||||
| #  # Netty线程池数量 |   timeout: 0 | ||||||
| #  nettyThreads: 32 |   # Socket连接超时值,单位毫秒,缺省值不超时 | ||||||
| #  # 传输模式 |   connectionTimeout: 0 | ||||||
| #  transportMode: "NIO" |  | ||||||
| #  # 集群配置 |  | ||||||
| #  clusterServersConfig: |  | ||||||
| #    # 客户端名称 |  | ||||||
| #    clientName: ${ruoyi.name} |  | ||||||
| #    # master最小空闲连接数 |  | ||||||
| #    masterConnectionMinimumIdleSize: 32 |  | ||||||
| #    # master连接池大小 |  | ||||||
| #    masterConnectionPoolSize: 64 |  | ||||||
| #    # slave最小空闲连接数 |  | ||||||
| #    slaveConnectionMinimumIdleSize: 32 |  | ||||||
| #    # slave连接池大小 |  | ||||||
| #    slaveConnectionPoolSize: 64 |  | ||||||
| #    # 连接空闲超时,单位:毫秒 |  | ||||||
| #    idleConnectionTimeout: 10000 |  | ||||||
| #    # ping连接间隔 |  | ||||||
| #    pingConnectionInterval: 1000 |  | ||||||
| #    # 命令等待超时,单位:毫秒 |  | ||||||
| #    timeout: 3000 |  | ||||||
| #    # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |  | ||||||
| #    retryAttempts: 3 |  | ||||||
| #    # 命令重试发送时间间隔,单位:毫秒 |  | ||||||
| #    retryInterval: 1500 |  | ||||||
| #    # 从可用服务器的内部列表中排除 Redis Slave 重新连接尝试的间隔。 |  | ||||||
| #    failedSlaveReconnectionInterval: 3000 |  | ||||||
| #    # 发布和订阅连接池最小空闲连接数 |  | ||||||
| #    subscriptionConnectionMinimumIdleSize: 1 |  | ||||||
| #    # 发布和订阅连接池大小 |  | ||||||
| #    subscriptionConnectionPoolSize: 50 |  | ||||||
| #    # 单个连接最大订阅数量 |  | ||||||
| #    subscriptionsPerConnection: 5 |  | ||||||
| #    # 扫描间隔 |  | ||||||
| #    scanInterval: 1000 |  | ||||||
| #    # DNS监测时间间隔,单位:毫秒 |  | ||||||
| #    dnsMonitoringInterval: 5000 |  | ||||||
| #    # 读取模式 |  | ||||||
| #    readMode: "SLAVE" |  | ||||||
| #    # 订阅模式 |  | ||||||
| #    subscriptionMode: "MASTER" |  | ||||||
|  |  | ||||||
| --- # 监控配置 | --- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商 | ||||||
| spring: | # https://sms4j.com/doc3/ 差异配置文档地址 支持单厂商多配置,可以配置多个同时使用 | ||||||
|   boot: | sms: | ||||||
|     admin: |   # 配置源类型用于标定配置来源(interface,yaml) | ||||||
|       # Spring Boot Admin Client 客户端的相关配置 |   config-type: yaml | ||||||
|       client: |   # 用于标定yml中的配置是否开启短信拦截,接口配置不受此限制 | ||||||
|         # 增加客户端开关 |   restricted: true | ||||||
|         enabled: true |   # 短信拦截限制单手机号每分钟最大发送,只对开启了拦截的配置有效 | ||||||
|         # 设置 Spring Boot Admin Server 地址 |   minute-max: 1 | ||||||
|         url: http://172.30.0.90:9090/admin |   # 短信拦截限制单手机号每日最大发送量,只对开启了拦截的配置有效 | ||||||
|         instance: |   account-max: 30 | ||||||
|           prefer-ip: true # 注册实例时,优先使用 IP |   # 以下配置来自于 org.dromara.sms4j.provider.config.BaseConfig类中 | ||||||
|         username: ruoyi |   blends: | ||||||
|         password: 123456 |     # 唯一ID 用于发送短信寻找具体配置 随便定义别用中文即可 | ||||||
|  |     # 可以同时存在两个相同厂商 例如: ali1 ali2 两个不同的阿里短信账号 也可用于区分租户 | ||||||
|  |     config1: | ||||||
|  |       # 框架定义的厂商名称标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分 | ||||||
|  |       supplier: alibaba | ||||||
|  |       # 有些称为accessKey有些称之为apiKey,也有称为sdkKey或者appId。 | ||||||
|  |       access-key-id: 您的accessKey | ||||||
|  |       # 称为accessSecret有些称之为apiSecret | ||||||
|  |       access-key-secret: 您的accessKeySecret | ||||||
|  |       signature: 您的短信签名 | ||||||
|  |       sdk-app-id: 您的sdkAppId | ||||||
|  |     config2: | ||||||
|  |       # 厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分 | ||||||
|  |       supplier: tencent | ||||||
|  |       access-key-id: 您的accessKey | ||||||
|  |       access-key-secret: 您的accessKeySecret | ||||||
|  |       signature: 您的短信签名 | ||||||
|  |       sdk-app-id: 您的sdkAppId | ||||||
|  |  | ||||||
|  | --- # 三方授权 | ||||||
|  | justauth: | ||||||
|  |   # 前端外网访问地址 | ||||||
|  |   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 | ||||||
|  |     topiam: | ||||||
|  |       # topiam 服务器地址 | ||||||
|  |       server-url: http://127.0.0.1:1989/api/v1/authorize/y0q************spq***********8ol | ||||||
|  |       client-id: 449c4*********937************759 | ||||||
|  |       client-secret: ac7***********1e0************28d | ||||||
|  |       redirect-uri: ${justauth.address}/social-callback?source=topiam | ||||||
|  |       scopes: [ openid, email, phone, profile ] | ||||||
|  |     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 | ||||||
|   | |||||||
| @@ -1,27 +1,3 @@ | |||||||
| # 项目相关配置 |  | ||||||
| ruoyi: |  | ||||||
|   # 名称 |  | ||||||
|   name: RuoYi-Vue-Plus |  | ||||||
|   # 版本 |  | ||||||
|   version: ${ruoyi-vue-plus.version} |  | ||||||
|   # 版权年份 |  | ||||||
|   copyrightYear: 2021 |  | ||||||
|   # 实例演示开关 |  | ||||||
|   demoEnabled: true |  | ||||||
|   # 获取ip地址开关 |  | ||||||
|   addressEnabled: true |  | ||||||
|  |  | ||||||
| captcha: |  | ||||||
|   # 页面 <参数设置> 可开启关闭 验证码校验 |  | ||||||
|   # 验证码类型 math 数组计算 char 字符验证 |  | ||||||
|   type: MATH |  | ||||||
|   # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰 |  | ||||||
|   category: CIRCLE |  | ||||||
|   # 数字验证码位数 |  | ||||||
|   numberLength: 1 |  | ||||||
|   # 字符验证码长度 |  | ||||||
|   charLength: 4 |  | ||||||
|  |  | ||||||
| # 开发环境配置 | # 开发环境配置 | ||||||
| server: | server: | ||||||
|   # 服务器的HTTP端口,默认为8080 |   # 服务器的HTTP端口,默认为8080 | ||||||
| @@ -43,26 +19,44 @@ server: | |||||||
|       io: 8 |       io: 8 | ||||||
|       # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 |       # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 | ||||||
|       worker: 256 |       worker: 256 | ||||||
| #  # tomcat 配置 |  | ||||||
| #  tomcat: | captcha: | ||||||
| #    # tomcat的URI编码 |   enable: true | ||||||
| #    uri-encoding: UTF-8 |   # 页面 <参数设置> 可开启关闭 验证码校验 | ||||||
| #    # tomcat最大线程数,默认为200 |   # 验证码类型 math 数组计算 char 字符验证 | ||||||
| #    max-threads: 500 |   type: MATH | ||||||
| #    # Tomcat启动初始化的线程数,默认值25 |   # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰 | ||||||
| #    min-spare-threads: 30 |   category: CIRCLE | ||||||
|  |   # 数字验证码位数 | ||||||
|  |   numberLength: 1 | ||||||
|  |   # 字符验证码长度 | ||||||
|  |   charLength: 4 | ||||||
|  |  | ||||||
| # 日志配置 | # 日志配置 | ||||||
| logging: | logging: | ||||||
|   level: |   level: | ||||||
|     com.ruoyi: @logging.level@ |     org.dromara: @logging.level@ | ||||||
|     org.springframework: warn |     org.springframework: warn | ||||||
|   config: classpath:logback.xml |     org.mybatis.spring.mapper: error | ||||||
|  |     org.apache.fury: warn | ||||||
|  |   config: classpath:logback-plus.xml | ||||||
|  |  | ||||||
|  | # 用户配置 | ||||||
|  | user: | ||||||
|  |   password: | ||||||
|  |     # 密码最大错误次数 | ||||||
|  |     maxRetryCount: 5 | ||||||
|  |     # 密码锁定时间(默认10分钟) | ||||||
|  |     lockTime: 10 | ||||||
|  |  | ||||||
| # Spring配置 | # Spring配置 | ||||||
| spring: | spring: | ||||||
|   application: |   application: | ||||||
|     name: ${ruoyi.name} |     name: RuoYi-Vue-Plus | ||||||
|  |   threads: | ||||||
|  |     # 开启虚拟线程 仅jdk21可用 | ||||||
|  |     virtual: | ||||||
|  |       enabled: false | ||||||
|   # 资源信息 |   # 资源信息 | ||||||
|   messages: |   messages: | ||||||
|     # 国际化资源文件路径 |     # 国际化资源文件路径 | ||||||
| @@ -76,15 +70,11 @@ spring: | |||||||
|       max-file-size: 10MB |       max-file-size: 10MB | ||||||
|       # 设置总上传的文件大小 |       # 设置总上传的文件大小 | ||||||
|       max-request-size: 20MB |       max-request-size: 20MB | ||||||
|   # 服务模块 |   mvc: | ||||||
|   devtools: |     # 设置静态资源路径 防止所有请求都去查静态资源 | ||||||
|     restart: |     static-path-pattern: /static/** | ||||||
|       # 热部署开关 |     format: | ||||||
|       enabled: true |       date-time: yyyy-MM-dd HH:mm:ss | ||||||
|   # 与vue整合部署使用 |  | ||||||
|   thymeleaf: |  | ||||||
|     # 将系统模板放置到最前面 否则会与 springboot-admin 页面冲突 |  | ||||||
|     template-resolver-order: 1 |  | ||||||
|   jackson: |   jackson: | ||||||
|     # 日期格式化 |     # 日期格式化 | ||||||
|     date-format: yyyy-MM-dd HH:mm:ss |     date-format: yyyy-MM-dd HH:mm:ss | ||||||
| @@ -97,265 +87,192 @@ spring: | |||||||
|       # 允许对象忽略json中不存在的属性 |       # 允许对象忽略json中不存在的属性 | ||||||
|       fail_on_unknown_properties: false |       fail_on_unknown_properties: false | ||||||
|  |  | ||||||
| # token配置 | # Sa-Token配置 | ||||||
| token: | sa-token: | ||||||
|   # 令牌自定义标识 |   # token名称 (同时也是cookie名称) | ||||||
|   header: Authorization |   token-name: Authorization | ||||||
|   # 令牌密钥 |   # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) | ||||||
|   secret: abcdefghijklmnopqrstuvwxyz |   is-concurrent: true | ||||||
|   # 令牌有效期(默认30分钟) |   # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) | ||||||
|   expireTime: 30 |   is-share: false | ||||||
|  |   # jwt秘钥 | ||||||
|  |   jwt-secret-key: abcdefghijklmnopqrstuvwxyz | ||||||
|  |  | ||||||
| # security配置 | # security配置 | ||||||
| security: | security: | ||||||
|   # 登出路径 |   # 排除路径 | ||||||
|   logout-url: /logout |   excludes: | ||||||
|   # 匿名路径 |     - /*.html | ||||||
|   anonymous: |     - /**/*.html | ||||||
|     - /login |     - /**/*.css | ||||||
|     - /register |     - /**/*.js | ||||||
|     - /captchaImage |     - /favicon.ico | ||||||
|     # swagger 文档配置 |     - /error | ||||||
|     - /doc.html |  | ||||||
|     - /swagger-resources/** |  | ||||||
|     - /webjars/** |  | ||||||
|     - /*/api-docs |     - /*/api-docs | ||||||
|     # druid 监控配置 |     - /*/api-docs/** | ||||||
|     - /druid/** |     - /warm-flow-ui/token-name | ||||||
|     # actuator 监控配置 |  | ||||||
|     - /actuator |  | ||||||
|     - /actuator/** |  | ||||||
|   # 用户放行 |  | ||||||
|   permit-all: |  | ||||||
|  |  | ||||||
| # 重复提交 | # 多租户配置 | ||||||
| repeat-submit: | tenant: | ||||||
|   # 全局间隔时间(毫秒) |   # 是否开启 | ||||||
|   interval: 5000 |   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配置 | # MyBatisPlus配置 | ||||||
| # https://baomidou.com/config/ | # https://baomidou.com/config/ | ||||||
| mybatis-plus: | mybatis-plus: | ||||||
|   # 不支持多包, 如有需要可在注解配置 或 提升扫包等级 |   # 自定义配置 是否全局开启逻辑删除 关闭后 所有逻辑删除功能将失效 | ||||||
|   # 例如 com.**.**.mapper |   enableLogicDelete: true | ||||||
|   mapperPackage: com.ruoyi.**.mapper |   # 多包名使用 例如 org.dromara.**.mapper,org.xxx.**.mapper | ||||||
|  |   mapperPackage: org.dromara.**.mapper | ||||||
|   # 对应的 XML 文件位置 |   # 对应的 XML 文件位置 | ||||||
|   mapperLocations: classpath*:mapper/**/*Mapper.xml |   mapperLocations: classpath*:mapper/**/*Mapper.xml | ||||||
|   # 实体扫描,多个package用逗号或者分号分隔 |   # 实体扫描,多个package用逗号或者分号分隔 | ||||||
|   typeAliasesPackage: com.ruoyi.**.domain |   typeAliasesPackage: org.dromara.**.domain | ||||||
|   # 针对 typeAliasesPackage,如果配置了该属性,则仅仅会扫描路径下以该类作为父类的域对象 |  | ||||||
|   #typeAliasesSuperType: Class<?> |  | ||||||
|   # 如果配置了该属性,SqlSessionFactoryBean 会把该包下面的类注册为对应的 TypeHandler |  | ||||||
|   #typeHandlersPackage: null |  | ||||||
|   # 如果配置了该属性,会将路径下的枚举类进行注入,让实体类字段能够简单快捷的使用枚举属性 |  | ||||||
|   #typeEnumsPackage: null |  | ||||||
|   # 启动时是否检查 MyBatis XML 文件的存在,默认不检查 |  | ||||||
|   checkConfigLocation: false |  | ||||||
|   # 通过该属性可指定 MyBatis 的执行器,MyBatis 的执行器总共有三种: |  | ||||||
|   # SIMPLE:该执行器类型不做特殊的事情,为每个语句的执行创建一个新的预处理语句(PreparedStatement) |  | ||||||
|   # REUSE:该执行器类型会复用预处理语句(PreparedStatement) |  | ||||||
|   # BATCH:该执行器类型会批量执行所有的更新语句 |  | ||||||
|   executorType: SIMPLE |  | ||||||
|   configuration: |  | ||||||
|     # 自动驼峰命名规则(camel case)映射 |  | ||||||
|     # 如果您的数据库命名符合规则无需使用 @TableField 注解指定数据库字段名 |  | ||||||
|     mapUnderscoreToCamelCase: true |  | ||||||
|     # 默认枚举处理类,如果配置了该属性,枚举将统一使用指定处理器进行处理 |  | ||||||
|     # org.apache.ibatis.type.EnumTypeHandler : 存储枚举的名称 |  | ||||||
|     # org.apache.ibatis.type.EnumOrdinalTypeHandler : 存储枚举的索引 |  | ||||||
|     # com.baomidou.mybatisplus.extension.handlers.MybatisEnumTypeHandler : 枚举类需要实现IEnum接口或字段标记@EnumValue注解. |  | ||||||
|     defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler |  | ||||||
|     # 当设置为 true 的时候,懒加载的对象可能被任何懒属性全部加载,否则,每个属性都按需加载。需要和 lazyLoadingEnabled 一起使用。 |  | ||||||
|     aggressiveLazyLoading: true |  | ||||||
|     # MyBatis 自动映射策略 |  | ||||||
|     # NONE:不启用自动映射 |  | ||||||
|     # PARTIAL:只对非嵌套的 resultMap 进行自动映射 |  | ||||||
|     # FULL:对所有的 resultMap 都进行自动映射 |  | ||||||
|     autoMappingBehavior: PARTIAL |  | ||||||
|     # MyBatis 自动映射时未知列或未知属性处理策 |  | ||||||
|     # NONE:不做任何处理 (默认值) |  | ||||||
|     # WARNING:以日志的形式打印相关警告信息 |  | ||||||
|     # FAILING:当作映射失败处理,并抛出异常和详细信息 |  | ||||||
|     autoMappingUnknownColumnBehavior: NONE |  | ||||||
|     # Mybatis一级缓存,默认为 SESSION |  | ||||||
|     # SESSION session级别缓存,同一个session相同查询语句不会再次查询数据库 |  | ||||||
|     # STATEMENT 关闭一级缓存 |  | ||||||
|     localCacheScope: SESSION |  | ||||||
|     # 开启Mybatis二级缓存,默认为 true |  | ||||||
|     cacheEnabled: false |  | ||||||
|     # 更详细的日志输出 会有性能损耗 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 |  | ||||||
|   global-config: |   global-config: | ||||||
|     # 是否打印 Logo banner |  | ||||||
|     banner: true |  | ||||||
|     # 是否初始化 SqlRunner |  | ||||||
|     enableSqlRunner: false |  | ||||||
|     dbConfig: |     dbConfig: | ||||||
|       # 主键类型 |       # 主键类型 | ||||||
|       # AUTO 数据库ID自增 |       # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID | ||||||
|       # NONE 空 |       # 如需改为自增 需要将数据库表全部设置为自增 | ||||||
|       # INPUT 用户输入ID |       idType: ASSIGN_ID | ||||||
|       # ASSIGN_ID 全局唯一ID |  | ||||||
|       # ASSIGN_UUID 全局唯一ID UUID |  | ||||||
|       idType: AUTO |  | ||||||
|       # 表名前缀 |  | ||||||
|       tablePrefix: null |  | ||||||
|       # 字段 format,例: %s,(对主键无效) |  | ||||||
|       columnFormat: null |  | ||||||
|       # 表名是否使用驼峰转下划线命名,只对表名生效 |  | ||||||
|       tableUnderline: true |  | ||||||
|       # 大写命名,对表名和字段名均生效 |  | ||||||
|       capitalMode: false |  | ||||||
|       # 全局的entity的逻辑删除字段属性名 |  | ||||||
|       logicDeleteField: null |  | ||||||
|       # 逻辑已删除值 |  | ||||||
|       logicDeleteValue: 2 |  | ||||||
|       # 逻辑未删除值 |  | ||||||
|       logicNotDeleteValue: 0 |  | ||||||
|       # 字段验证策略之 insert,在 insert 的时候的字段验证策略 |  | ||||||
|       # IGNORED 忽略判断 |  | ||||||
|       # NOT_NULL 非NULL判断 |  | ||||||
|       # NOT_EMPTY 非空判断(只对字符串类型字段,其他类型字段依然为非NULL判断) |  | ||||||
|       # DEFAULT 默认的,一般只用于注解里 |  | ||||||
|       # NEVER 不加入 SQL |  | ||||||
|       insertStrategy: NOT_NULL |  | ||||||
|       # 字段验证策略之 update,在 update 的时候的字段验证策略 |  | ||||||
|       updateStrategy: NOT_NULL |  | ||||||
|       # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件 |  | ||||||
|       where-strategy: NOT_NULL |  | ||||||
|  |  | ||||||
| # Swagger配置 | # 数据加密 | ||||||
| swagger: | mybatis-encryptor: | ||||||
|   # 是否开启swagger |   # 是否开启加密 | ||||||
|  |   enable: false | ||||||
|  |   # 默认加密算法 | ||||||
|  |   algorithm: BASE64 | ||||||
|  |   # 编码方式 BASE64/HEX。默认BASE64 | ||||||
|  |   encode: BASE64 | ||||||
|  |   # 安全秘钥 对称算法的秘钥 如:AES,SM4 | ||||||
|  |   password: | ||||||
|  |   # 公私钥 非对称算法的公私钥 如:SM2,RSA | ||||||
|  |   publicKey: | ||||||
|  |   privateKey: | ||||||
|  |  | ||||||
|  | # api接口加密 | ||||||
|  | api-decrypt: | ||||||
|  |   # 是否开启全局接口加密 | ||||||
|   enabled: true |   enabled: true | ||||||
|   # 请求前缀 |   # AES 加密头标识 | ||||||
|   pathMapping: /dev-api |   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: | ||||||
|  |     # 是否开启接口文档 | ||||||
|  |     enabled: true | ||||||
|  |   info: | ||||||
|     # 标题 |     # 标题 | ||||||
|   title: '标题:${ruoyi.name}后台管理系统_接口文档' |     title: '标题:RuoYi-Vue-Plus多租户管理系统_接口文档' | ||||||
|     # 描述 |     # 描述 | ||||||
|     description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...' |     description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...' | ||||||
|     # 版本 |     # 版本 | ||||||
|   version: '版本号: ${ruoyi-vue-plus.version}' |     version: '版本号: ${ruoyi.version}' | ||||||
|     # 作者信息 |     # 作者信息 | ||||||
|     contact: |     contact: | ||||||
|       name: Lion Li |       name: Lion Li | ||||||
|       email: crazylionli@163.com |       email: crazylionli@163.com | ||||||
|     url: https://gitee.com/JavaLionLi/RuoYi-Vue-Plus |       url: https://gitee.com/dromara/RuoYi-Vue-Plus | ||||||
|   groups: |   components: | ||||||
|     - name: 演示案例 |     # 鉴权方式配置 | ||||||
|       basePackage: com.ruoyi.demo |     security-schemes: | ||||||
|     - name: 系统模块 |       apiKey: | ||||||
|       basePackage: com.ruoyi.admin |         type: APIKEY | ||||||
|  |         in: HEADER | ||||||
|  |         name: ${sa-token.token-name} | ||||||
|  |   #这里定义了两个分组,可定义多个,也可以不定义 | ||||||
|  |   group-configs: | ||||||
|  |     - group: 1.演示模块 | ||||||
|  |       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 | ||||||
|  |     - group: 5.工作流模块 | ||||||
|  |       packages-to-scan: org.dromara.workflow | ||||||
|  |  | ||||||
| # 防止XSS攻击 | # 防止XSS攻击 | ||||||
| xss: | xss: | ||||||
|   # 过滤开关 |   # 过滤开关 | ||||||
|   enabled: true |   enabled: true | ||||||
|   # 排除链接(多个用逗号分隔) |   # 排除链接(多个用逗号分隔) | ||||||
|   excludes: /system/notice |   excludeUrls: | ||||||
|   # 匹配链接 |     - /system/notice | ||||||
|   urlPatterns: /system/*,/monitor/*,/tool/* |  | ||||||
|  |  | ||||||
| # 全局线程池相关配置 | # 全局线程池相关配置 | ||||||
|  | # 如使用JDK21请直接使用虚拟线程 不要开启此配置 | ||||||
| thread-pool: | thread-pool: | ||||||
|   # 是否开启线程池 |   # 是否开启线程池 | ||||||
|   enabled: false |   enabled: false | ||||||
|   # 核心线程池大小 |  | ||||||
|   corePoolSize: 8 |  | ||||||
|   # 最大可创建的线程数 |  | ||||||
|   maxPoolSize: 16 |  | ||||||
|   # 队列最大长度 |   # 队列最大长度 | ||||||
|   queueCapacity: 128 |   queueCapacity: 128 | ||||||
|   # 线程池维护线程所允许的空闲时间 |   # 线程池维护线程所允许的空闲时间 | ||||||
|   keepAliveSeconds: 300 |   keepAliveSeconds: 300 | ||||||
|   # 线程池对拒绝任务(无线程可用)的处理策略 |  | ||||||
|   # CALLER_RUNS_POLICY 调用方执行 |  | ||||||
|   # DISCARD_OLDEST_POLICY 放弃最旧的 |  | ||||||
|   # DISCARD_POLICY 丢弃 |  | ||||||
|   # ABORT_POLICY 中止 |  | ||||||
|   rejectedExecutionHandler: CALLER_RUNS_POLICY |  | ||||||
|  |  | ||||||
| # feign 相关配置 |  | ||||||
| feign: |  | ||||||
|   # 不支持多包, 如有需要可在注解配置 或 提升扫包等级 |  | ||||||
|   # 例如 com.**.**.feign |  | ||||||
|   package: com.ruoyi.**.feign |  | ||||||
|   # 开启压缩 |  | ||||||
|   compression: |  | ||||||
|     request: |  | ||||||
|       enabled: true |  | ||||||
|     response: |  | ||||||
|       enabled: true |  | ||||||
|   okhttp: |  | ||||||
|     enabled: true |  | ||||||
|   circuitbreaker: |  | ||||||
|     enabled: true |  | ||||||
|  |  | ||||||
| --- # redisson 缓存配置 |  | ||||||
| redisson: |  | ||||||
|   cacheGroup: |  | ||||||
|     # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置 |  | ||||||
|     - groupId: redissonCacheMap |  | ||||||
|       # 组过期时间(脚本监控) |  | ||||||
|       ttl: 60000 |  | ||||||
|       # 组最大空闲时间(脚本监控) |  | ||||||
|       maxIdleTime: 60000 |  | ||||||
|       # 组最大长度 |  | ||||||
|       maxSize: 0 |  | ||||||
|     - groupId: testCache |  | ||||||
|       ttl: 1000 |  | ||||||
|       maxIdleTime: 500 |  | ||||||
|  |  | ||||||
| --- # 分布式锁 lock4j 全局配置 | --- # 分布式锁 lock4j 全局配置 | ||||||
| lock4j: | lock4j: | ||||||
|   # 获取分布式锁超时时间,默认为 3000 毫秒 |   # 获取分布式锁超时时间,默认为 3000 毫秒 | ||||||
|   acquire-timeout: 3000 |   acquire-timeout: 3000 | ||||||
|   # 分布式锁的超时时间,默认为 30 毫秒 |   # 分布式锁的超时时间,默认为 30 秒 | ||||||
|   expire: 30000 |   expire: 30000 | ||||||
|  |  | ||||||
| --- # Actuator 监控端点的配置项 | --- # Actuator 监控端点的配置项 | ||||||
| management: | management: | ||||||
|   endpoints: |   endpoints: | ||||||
|     web: |     web: | ||||||
|       # Actuator 提供的 API 接口的根目录。默认为 /actuator |  | ||||||
|       base-path: /actuator |  | ||||||
|       exposure: |       exposure: | ||||||
|         # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 |         include: '*' | ||||||
|         # 生产环境不建议放开所有 根据项目需求放开即可 |  | ||||||
|         include: @endpoints.include@ |  | ||||||
|   endpoint: |   endpoint: | ||||||
|  |     health: | ||||||
|  |       show-details: ALWAYS | ||||||
|     logfile: |     logfile: | ||||||
|       external-file: ./logs/sys-console.log |       external-file: ./logs/sys-console.log | ||||||
|  |  | ||||||
| --- # 定时任务配置 | --- # 默认/推荐使用sse推送 | ||||||
| spring: | sse: | ||||||
|   quartz: |   enabled: true | ||||||
|     scheduler-name: RuoyiScheduler |   path: /resource/sse | ||||||
|     startup-delay: 1s |  | ||||||
|     overwrite-existing-jobs: true | --- # websocket | ||||||
|     auto-startup: true | websocket: | ||||||
|     job-store-type: jdbc |   # 如果关闭 需要和前端开关一起关闭 | ||||||
|     properties: |   enabled: false | ||||||
|       org: |   # 路径 | ||||||
|         quartz: |   path: /resource/websocket | ||||||
|           # Scheduler 相关配置 |   # 设置访问源地址 | ||||||
|           scheduler: |   allowedOrigins: '*' | ||||||
|             instanceName: RuoyiScheduler |  | ||||||
|             instanceId: AUTO | --- # warm-flow工作流配置 | ||||||
|           # 线程池相关配置 | warm-flow: | ||||||
|           threadPool: |   # 是否开启工作流,默认true | ||||||
|             class: org.quartz.simpl.SimpleThreadPool |   enabled: true | ||||||
|             threadCount: 20 |   # 是否开启设计器ui | ||||||
|             threadPriority: 5 |   ui: true | ||||||
|           # JobStore 集群配置 |   # 默认Authorization,如果有多个token,用逗号分隔 | ||||||
|           jobStore: |   token-name: ${sa-token.token-name},clientid | ||||||
|             class: org.quartz.impl.jdbcjobstore.JobStoreTX |   # 流程状态对应的三元色 | ||||||
|             isClustered: true |   chart-status-color: | ||||||
|             clusterCheckinInterval: 15000 |     ## 未办理 | ||||||
|             txIsolationLevelSerializable: true |     - 62,62,62 | ||||||
|             misfireThreshold: 60000 |     ## 待办理 | ||||||
|             tablePrefix: QRTZ_ |     - 255,205,23 | ||||||
|             # sqlserver 启用 |     ## 已办理 | ||||||
|             # selectWithLockSQL: SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ? |     - 157,255,0 | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| Application Version: ${ruoyi-vue-plus.version} | Application Version: ${revision} | ||||||
| Spring Boot Version: ${spring-boot.version} | Spring Boot Version: ${spring-boot.version} | ||||||
| __________            _____.___.__         ____   ____                     __________.__ | __________            _____.___.__         ____   ____                     __________.__ | ||||||
| \______   \__ __  ____\__  |   |__|        \   \ /   /_ __   ____          \______   \  |  __ __  ______ | \______   \__ __  ____\__  |   |__|        \   \ /   /_ __   ____          \______   \  |  __ __  ______ | ||||||
|   | |||||||
| @@ -2,32 +2,39 @@ | |||||||
| not.null=* 必须填写 | not.null=* 必须填写 | ||||||
| user.jcaptcha.error=验证码错误 | user.jcaptcha.error=验证码错误 | ||||||
| user.jcaptcha.expire=验证码已失效 | user.jcaptcha.expire=验证码已失效 | ||||||
| user.not.exists=用户不存在/密码错误 | user.not.exists=对不起, 您的账号:{0} 不存在. | ||||||
| user.password.not.match=用户不存在/密码错误 | user.password.not.match=用户不存在/密码错误 | ||||||
| user.password.retry.limit.count=密码输入错误{0}次 | user.password.retry.limit.count=密码输入错误{0}次 | ||||||
| user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定10分钟 | user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟 | ||||||
| user.password.delete=对不起,您的账号已被删除 | user.password.delete=对不起,您的账号:{0} 已被删除 | ||||||
| user.blocked=用户已封禁,请联系管理员 | user.blocked=对不起,您的账号:{0} 已禁用,请联系管理员 | ||||||
| role.blocked=角色已封禁,请联系管理员 | role.blocked=角色已封禁,请联系管理员 | ||||||
| user.logout.success=退出成功 | user.logout.success=退出成功 | ||||||
|  |  | ||||||
| length.not.valid=长度必须在{min}到{max}个字符之间 | length.not.valid=长度必须在{min}到{max}个字符之间 | ||||||
|  | user.username.not.blank=用户名不能为空 | ||||||
| user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头 | user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头 | ||||||
|  | user.username.length.valid=账户长度必须在{min}到{max}个字符之间 | ||||||
|  | user.password.not.blank=用户密码不能为空 | ||||||
|  | user.password.length.valid=用户密码长度必须在{min}到{max}个字符之间 | ||||||
| user.password.not.valid=* 5-50个字符 | user.password.not.valid=* 5-50个字符 | ||||||
|  |  | ||||||
| user.email.not.valid=邮箱格式错误 | user.email.not.valid=邮箱格式错误 | ||||||
|  | user.email.not.blank=邮箱不能为空 | ||||||
|  | user.phonenumber.not.blank=用户手机号不能为空 | ||||||
| user.mobile.phone.number.not.valid=手机号格式错误 | user.mobile.phone.number.not.valid=手机号格式错误 | ||||||
| user.login.success=登录成功 | user.login.success=登录成功 | ||||||
| user.register.success=注册成功 | user.register.success=注册成功 | ||||||
|  | user.register.save.error=保存用户 {0} 失败,注册账号已存在 | ||||||
|  | user.register.error=注册失败,请联系系统管理人员 | ||||||
| user.notfound=请重新登录 | user.notfound=请重新登录 | ||||||
| user.forcelogout=管理员强制退出,请重新登录 | user.forcelogout=管理员强制退出,请重新登录 | ||||||
| user.unknown.error=未知错误,请重新登录 | 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.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB! | ||||||
| upload.filename.exceed.length=上传的文件名最长{0}个字符 | upload.filename.exceed.length=上传的文件名最长{0}个字符 | ||||||
|  |  | ||||||
| ##权限 | ##权限 | ||||||
| no.permission=您没有数据的权限,请联系管理员添加权限 [{0}] | no.permission=您没有数据的权限,请联系管理员添加权限 [{0}] | ||||||
| no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}] | no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}] | ||||||
| @@ -35,3 +42,20 @@ no.update.permission=您没有修改数据的权限,请联系管理员添加 | |||||||
| no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}] | no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}] | ||||||
| no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}] | no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}] | ||||||
| no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}] | no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}] | ||||||
|  | repeat.submit.message=不允许重复提交,请稍候再试 | ||||||
|  | rate.limiter.message=访问过于频繁,请稍候再试 | ||||||
|  | sms.code.not.blank=短信验证码不能为空 | ||||||
|  | sms.code.retry.limit.count=短信验证码输入错误{0}次 | ||||||
|  | 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]不能为空 | ||||||
|  | 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,33 +1,61 @@ | |||||||
| #错误消息 | #错误消息 | ||||||
| not.null= | not.null=* Required fill in | ||||||
| user.jcaptcha.error= | user.jcaptcha.error=Captcha error | ||||||
| user.jcaptcha.expire= | user.jcaptcha.expire=Captcha invalid | ||||||
| user.not.exists= | user.not.exists=Sorry, your account: {0} does not exist | ||||||
| user.password.not.match= | user.password.not.match=User does not exist/Password error | ||||||
| user.password.retry.limit.count= | user.password.retry.limit.count=Password input error {0} times | ||||||
| user.password.retry.limit.exceed= | user.password.retry.limit.exceed=Password input error {0} times, account locked for {1} minutes | ||||||
| user.password.delete= | user.password.delete=Sorry, your account:{0} has been deleted | ||||||
| user.blocked= | user.blocked=Sorry, your account: {0} has been disabled. Please contact the administrator | ||||||
| role.blocked= | role.blocked=Role disabled,please contact administrators | ||||||
| user.logout.success= | user.logout.success=Exit successful | ||||||
| length.not.valid= | length.not.valid=The length must be between {min} and {max} characters | ||||||
| user.username.not.valid= | user.username.not.blank=Username cannot be blank | ||||||
| user.password.not.valid= | user.username.not.valid=* 2 to 20 chinese characters, letters, numbers or underscores, and must start with a non number | ||||||
| user.email.not.valid= | user.username.length.valid=Account length must be between {min} and {max} characters | ||||||
| user.mobile.phone.number.not.valid= | user.password.not.blank=Password cannot be empty | ||||||
| user.login.success= | user.password.length.valid=Password length must be between {min} and {max} characters | ||||||
| user.register.success=register success | user.password.not.valid=* 5-50 characters | ||||||
| user.notfound= | user.email.not.valid=Mailbox format error | ||||||
| user.unknown.error= | user.email.not.blank=Mailbox cannot be blank | ||||||
|  | user.phonenumber.not.blank=Phone number cannot be blank | ||||||
|  | user.mobile.phone.number.not.valid=Phone number format error | ||||||
|  | user.login.success=Login successful | ||||||
|  | user.register.success=Register successful | ||||||
|  | user.register.save.error=Failed to save user {0}, The registered account already exists | ||||||
|  | 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= | 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= | upload.filename.exceed.length=The maximum length of uploaded file name is {0} characters | ||||||
|  |  | ||||||
| ##权限 | ##权限 | ||||||
| no.permission= | no.permission=You do not have permission to the data,please contact your administrator to add permissions [{0}] | ||||||
| no.create.permission= | no.create.permission=You do not have permission to create data,please contact your administrator to add permissions [{0}] | ||||||
| no.update.permission= | no.update.permission=You do not have permission to modify data,please contact your administrator to add permissions [{0}] | ||||||
| no.delete.permission= | no.delete.permission=You do not have permission to delete data,please contact your administrator to add permissions [{0}] | ||||||
| no.export.permission= | no.export.permission=You do not have permission to export data,please contact your administrator to add permissions [{0}] | ||||||
| no.view.permission= | no.view.permission=You do not have permission to view data,please contact your administrator to add permissions [{0}] | ||||||
|  | repeat.submit.message=Repeat submit is not allowed, please try again later | ||||||
|  | rate.limiter.message=Visit too frequently, please try again later | ||||||
|  | sms.code.not.blank=Sms code cannot be blank | ||||||
|  | sms.code.retry.limit.count=Sms code input error {0} times | ||||||
|  | sms.code.retry.limit.exceed=Sms code input error {0} times, account locked for {1} minutes | ||||||
|  | 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 | ||||||
|  | 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. | ||||||
|   | |||||||
| @@ -2,32 +2,39 @@ | |||||||
| not.null=* 必须填写 | not.null=* 必须填写 | ||||||
| user.jcaptcha.error=验证码错误 | user.jcaptcha.error=验证码错误 | ||||||
| user.jcaptcha.expire=验证码已失效 | user.jcaptcha.expire=验证码已失效 | ||||||
| user.not.exists=用户不存在/密码错误 | user.not.exists=对不起, 您的账号:{0} 不存在. | ||||||
| user.password.not.match=用户不存在/密码错误 | user.password.not.match=用户不存在/密码错误 | ||||||
| user.password.retry.limit.count=密码输入错误{0}次 | user.password.retry.limit.count=密码输入错误{0}次 | ||||||
| user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定10分钟 | user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟 | ||||||
| user.password.delete=对不起,您的账号已被删除 | user.password.delete=对不起,您的账号:{0} 已被删除 | ||||||
| user.blocked=用户已封禁,请联系管理员 | user.blocked=对不起,您的账号:{0} 已禁用,请联系管理员 | ||||||
| role.blocked=角色已封禁,请联系管理员 | role.blocked=角色已封禁,请联系管理员 | ||||||
| user.logout.success=退出成功 | user.logout.success=退出成功 | ||||||
|  |  | ||||||
| length.not.valid=长度必须在{min}到{max}个字符之间 | length.not.valid=长度必须在{min}到{max}个字符之间 | ||||||
|  | user.username.not.blank=用户名不能为空 | ||||||
| user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头 | user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头 | ||||||
|  | user.username.length.valid=账户长度必须在{min}到{max}个字符之间 | ||||||
|  | user.password.not.blank=用户密码不能为空 | ||||||
|  | user.password.length.valid=用户密码长度必须在{min}到{max}个字符之间 | ||||||
| user.password.not.valid=* 5-50个字符 | user.password.not.valid=* 5-50个字符 | ||||||
|  |  | ||||||
| user.email.not.valid=邮箱格式错误 | user.email.not.valid=邮箱格式错误 | ||||||
|  | user.email.not.blank=邮箱不能为空 | ||||||
|  | user.phonenumber.not.blank=用户手机号不能为空 | ||||||
| user.mobile.phone.number.not.valid=手机号格式错误 | user.mobile.phone.number.not.valid=手机号格式错误 | ||||||
| user.login.success=登录成功 | user.login.success=登录成功 | ||||||
| user.register.success=注册成功 | user.register.success=注册成功 | ||||||
|  | user.register.save.error=保存用户 {0} 失败,注册账号已存在 | ||||||
|  | user.register.error=注册失败,请联系系统管理人员 | ||||||
| user.notfound=请重新登录 | user.notfound=请重新登录 | ||||||
| user.forcelogout=管理员强制退出,请重新登录 | user.forcelogout=管理员强制退出,请重新登录 | ||||||
| user.unknown.error=未知错误,请重新登录 | 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.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB! | ||||||
| upload.filename.exceed.length=上传的文件名最长{0}个字符 | upload.filename.exceed.length=上传的文件名最长{0}个字符 | ||||||
|  |  | ||||||
| ##权限 | ##权限 | ||||||
| no.permission=您没有数据的权限,请联系管理员添加权限 [{0}] | no.permission=您没有数据的权限,请联系管理员添加权限 [{0}] | ||||||
| no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}] | no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}] | ||||||
| @@ -35,3 +42,20 @@ no.update.permission=您没有修改数据的权限,请联系管理员添加 | |||||||
| no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}] | no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}] | ||||||
| no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}] | no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}] | ||||||
| no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}] | no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}] | ||||||
|  | repeat.submit.message=不允许重复提交,请稍候再试 | ||||||
|  | rate.limiter.message=访问过于频繁,请稍候再试 | ||||||
|  | sms.code.not.blank=短信验证码不能为空 | ||||||
|  | sms.code.retry.limit.count=短信验证码输入错误{0}次 | ||||||
|  | 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]不能为空 | ||||||
|  | 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=对不起,您的租户已过期,请联系管理员 | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								ruoyi-admin/src/main/resources/ip2region.xdb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ruoyi-admin/src/main/resources/ip2region.xdb
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										129
									
								
								ruoyi-admin/src/main/resources/logback-plus.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										129
									
								
								ruoyi-admin/src/main/resources/logback-plus.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,129 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <configuration> | ||||||
|  |     <property name="log.path" value="./logs"/> | ||||||
|  |     <property name="console.log.pattern" | ||||||
|  |               value="%cyan(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/> | ||||||
|  |     <property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"/> | ||||||
|  |  | ||||||
|  |     <!-- 控制台输出 --> | ||||||
|  |     <appender name="console" class="ch.qos.logback.core.ConsoleAppender"> | ||||||
|  |         <encoder> | ||||||
|  |             <pattern>${console.log.pattern}</pattern> | ||||||
|  |             <charset>utf-8</charset> | ||||||
|  |         </encoder> | ||||||
|  |     </appender> | ||||||
|  |  | ||||||
|  |     <!-- 控制台输出 --> | ||||||
|  |     <appender name="file_console" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||||||
|  |         <file>${log.path}/sys-console.log</file> | ||||||
|  |         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||||||
|  |             <!-- 日志文件名格式 --> | ||||||
|  |             <fileNamePattern>${log.path}/sys-console.%d{yyyy-MM-dd}.log</fileNamePattern> | ||||||
|  |             <!-- 日志最大 1天 --> | ||||||
|  |             <maxHistory>1</maxHistory> | ||||||
|  |         </rollingPolicy> | ||||||
|  |         <encoder> | ||||||
|  |             <pattern>${log.pattern}</pattern> | ||||||
|  |             <charset>utf-8</charset> | ||||||
|  |         </encoder> | ||||||
|  |         <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||||||
|  |             <!-- 过滤的级别 --> | ||||||
|  |             <level>INFO</level> | ||||||
|  |         </filter> | ||||||
|  |     </appender> | ||||||
|  |  | ||||||
|  |     <!-- 系统日志输出 --> | ||||||
|  |     <appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||||||
|  |         <file>${log.path}/sys-info.log</file> | ||||||
|  |         <!-- 循环政策:基于时间创建日志文件 --> | ||||||
|  |         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||||||
|  |             <!-- 日志文件名格式 --> | ||||||
|  |             <fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern> | ||||||
|  |             <!-- 日志最大的历史 60天 --> | ||||||
|  |             <maxHistory>60</maxHistory> | ||||||
|  |         </rollingPolicy> | ||||||
|  |         <encoder> | ||||||
|  |             <pattern>${log.pattern}</pattern> | ||||||
|  |         </encoder> | ||||||
|  |         <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||||||
|  |             <!-- 过滤的级别 --> | ||||||
|  |             <level>INFO</level> | ||||||
|  |             <!-- 匹配时的操作:接收(记录) --> | ||||||
|  |             <onMatch>ACCEPT</onMatch> | ||||||
|  |             <!-- 不匹配时的操作:拒绝(不记录) --> | ||||||
|  |             <onMismatch>DENY</onMismatch> | ||||||
|  |         </filter> | ||||||
|  |     </appender> | ||||||
|  |  | ||||||
|  |     <appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||||||
|  |         <file>${log.path}/sys-error.log</file> | ||||||
|  |         <!-- 循环政策:基于时间创建日志文件 --> | ||||||
|  |         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||||||
|  |             <!-- 日志文件名格式 --> | ||||||
|  |             <fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern> | ||||||
|  |             <!-- 日志最大的历史 60天 --> | ||||||
|  |             <maxHistory>60</maxHistory> | ||||||
|  |         </rollingPolicy> | ||||||
|  |         <encoder> | ||||||
|  |             <pattern>${log.pattern}</pattern> | ||||||
|  |         </encoder> | ||||||
|  |         <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||||||
|  |             <!-- 过滤的级别 --> | ||||||
|  |             <level>ERROR</level> | ||||||
|  |             <!-- 匹配时的操作:接收(记录) --> | ||||||
|  |             <onMatch>ACCEPT</onMatch> | ||||||
|  |             <!-- 不匹配时的操作:拒绝(不记录) --> | ||||||
|  |             <onMismatch>DENY</onMismatch> | ||||||
|  |         </filter> | ||||||
|  |     </appender> | ||||||
|  |  | ||||||
|  |     <!-- info异步输出 --> | ||||||
|  |     <appender name="async_info" class="ch.qos.logback.classic.AsyncAppender"> | ||||||
|  |         <!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 --> | ||||||
|  |         <discardingThreshold>0</discardingThreshold> | ||||||
|  |         <!-- 更改默认的队列的深度,该值会影响性能.默认值为256 --> | ||||||
|  |         <queueSize>512</queueSize> | ||||||
|  |         <!-- 添加附加的appender,最多只能添加一个 --> | ||||||
|  |         <appender-ref ref="file_info"/> | ||||||
|  |     </appender> | ||||||
|  |  | ||||||
|  |     <!-- error异步输出 --> | ||||||
|  |     <appender name="async_error" class="ch.qos.logback.classic.AsyncAppender"> | ||||||
|  |         <!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 --> | ||||||
|  |         <discardingThreshold>0</discardingThreshold> | ||||||
|  |         <!-- 更改默认的队列的深度,该值会影响性能.默认值为256 --> | ||||||
|  |         <queueSize>512</queueSize> | ||||||
|  |         <!-- 添加附加的appender,最多只能添加一个 --> | ||||||
|  |         <appender-ref ref="file_error"/> | ||||||
|  |     </appender> | ||||||
|  |  | ||||||
|  |     <!-- 整合 skywalking 控制台输出 tid --> | ||||||
|  | <!--    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">--> | ||||||
|  | <!--        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">--> | ||||||
|  | <!--            <layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">--> | ||||||
|  | <!--                <pattern>[%tid] ${console.log.pattern}</pattern>--> | ||||||
|  | <!--            </layout>--> | ||||||
|  | <!--            <charset>utf-8</charset>--> | ||||||
|  | <!--        </encoder>--> | ||||||
|  | <!--    </appender>--> | ||||||
|  |  | ||||||
|  |     <!-- 整合 skywalking 推送采集日志 --> | ||||||
|  | <!--    <appender name="sky_log" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">--> | ||||||
|  | <!--        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">--> | ||||||
|  | <!--            <layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">--> | ||||||
|  | <!--                <pattern>[%tid] ${console.log.pattern}</pattern>--> | ||||||
|  | <!--            </layout>--> | ||||||
|  | <!--            <charset>utf-8</charset>--> | ||||||
|  | <!--        </encoder>--> | ||||||
|  | <!--    </appender>--> | ||||||
|  |  | ||||||
|  |     <!--系统操作日志--> | ||||||
|  |     <root level="info"> | ||||||
|  |         <appender-ref ref="console" /> | ||||||
|  |         <appender-ref ref="async_info" /> | ||||||
|  |         <appender-ref ref="async_error" /> | ||||||
|  |         <appender-ref ref="file_console" /> | ||||||
|  | <!--        <appender-ref ref="sky_log"/>--> | ||||||
|  |     </root> | ||||||
|  |  | ||||||
|  | </configuration> | ||||||
| @@ -1,114 +0,0 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <configuration> |  | ||||||
|     <property name="log.path" value="./logs"/> |  | ||||||
|     <property name="console.log.pattern" |  | ||||||
|               value="%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/> |  | ||||||
|     <property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"/> |  | ||||||
|  |  | ||||||
| 	<!-- 控制台输出 --> |  | ||||||
| 	<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> |  | ||||||
| 		<encoder> |  | ||||||
| 			<pattern>${console.log.pattern}</pattern> |  | ||||||
|             <charset>utf-8</charset> |  | ||||||
| 		</encoder> |  | ||||||
| 	</appender> |  | ||||||
|  |  | ||||||
|     <!-- 控制台输出 --> |  | ||||||
|     <appender name="file_console" class="ch.qos.logback.core.rolling.RollingFileAppender"> |  | ||||||
|         <file>${log.path}/sys-console.log</file> |  | ||||||
|         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |  | ||||||
|             <!-- 日志文件名格式 --> |  | ||||||
|             <fileNamePattern>${log.path}/sys-console.%d{yyyy-MM-dd}.log</fileNamePattern> |  | ||||||
|             <!-- 日志最大 1天 --> |  | ||||||
|             <maxHistory>1</maxHistory> |  | ||||||
|         </rollingPolicy> |  | ||||||
|         <encoder> |  | ||||||
|             <pattern>${log.pattern}</pattern> |  | ||||||
|             <charset>utf-8</charset> |  | ||||||
|         </encoder> |  | ||||||
|         <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |  | ||||||
|             <!-- 过滤的级别 --> |  | ||||||
|             <level>INFO</level> |  | ||||||
|         </filter> |  | ||||||
|     </appender> |  | ||||||
| 	 |  | ||||||
| 	<!-- 系统日志输出 --> |  | ||||||
| 	<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender"> |  | ||||||
| 	    <file>${log.path}/sys-info.log</file> |  | ||||||
|         <!-- 循环政策:基于时间创建日志文件 --> |  | ||||||
| 		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |  | ||||||
|             <!-- 日志文件名格式 --> |  | ||||||
| 			<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern> |  | ||||||
| 			<!-- 日志最大的历史 60天 --> |  | ||||||
| 			<maxHistory>60</maxHistory> |  | ||||||
| 		</rollingPolicy> |  | ||||||
| 		<encoder> |  | ||||||
| 			<pattern>${log.pattern}</pattern> |  | ||||||
| 		</encoder> |  | ||||||
| 		<filter class="ch.qos.logback.classic.filter.LevelFilter"> |  | ||||||
|             <!-- 过滤的级别 --> |  | ||||||
|             <level>INFO</level> |  | ||||||
|             <!-- 匹配时的操作:接收(记录) --> |  | ||||||
|             <onMatch>ACCEPT</onMatch> |  | ||||||
|             <!-- 不匹配时的操作:拒绝(不记录) --> |  | ||||||
|             <onMismatch>DENY</onMismatch> |  | ||||||
|         </filter> |  | ||||||
| 	</appender> |  | ||||||
| 	 |  | ||||||
| 	<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender"> |  | ||||||
| 	    <file>${log.path}/sys-error.log</file> |  | ||||||
|         <!-- 循环政策:基于时间创建日志文件 --> |  | ||||||
|         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |  | ||||||
|             <!-- 日志文件名格式 --> |  | ||||||
|             <fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern> |  | ||||||
| 			<!-- 日志最大的历史 60天 --> |  | ||||||
| 			<maxHistory>60</maxHistory> |  | ||||||
|         </rollingPolicy> |  | ||||||
|         <encoder> |  | ||||||
|             <pattern>${log.pattern}</pattern> |  | ||||||
|         </encoder> |  | ||||||
|         <filter class="ch.qos.logback.classic.filter.LevelFilter"> |  | ||||||
|             <!-- 过滤的级别 --> |  | ||||||
|             <level>ERROR</level> |  | ||||||
| 			<!-- 匹配时的操作:接收(记录) --> |  | ||||||
|             <onMatch>ACCEPT</onMatch> |  | ||||||
| 			<!-- 不匹配时的操作:拒绝(不记录) --> |  | ||||||
|             <onMismatch>DENY</onMismatch> |  | ||||||
|         </filter> |  | ||||||
|     </appender> |  | ||||||
| 	 |  | ||||||
| 	<!-- 用户访问日志输出  --> |  | ||||||
|     <appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender"> |  | ||||||
| 		<file>${log.path}/sys-user.log</file> |  | ||||||
|         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |  | ||||||
|             <!-- 按天回滚 daily --> |  | ||||||
|             <fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern> |  | ||||||
|             <!-- 日志最大的历史 60天 --> |  | ||||||
|             <maxHistory>60</maxHistory> |  | ||||||
|         </rollingPolicy> |  | ||||||
|         <encoder> |  | ||||||
|             <pattern>${log.pattern}</pattern> |  | ||||||
|         </encoder> |  | ||||||
|     </appender> |  | ||||||
| 	 |  | ||||||
| 	<!-- 系统模块日志级别控制  --> |  | ||||||
| 	<logger name="com.ruoyi" level="info" /> |  | ||||||
| 	<!-- Spring日志级别控制  --> |  | ||||||
| 	<logger name="org.springframework" level="warn" /> |  | ||||||
|  |  | ||||||
| 	<root level="info"> |  | ||||||
| 		<appender-ref ref="console" /> |  | ||||||
| 	</root> |  | ||||||
| 	 |  | ||||||
| 	<!--系统操作日志--> |  | ||||||
|     <root level="info"> |  | ||||||
|         <appender-ref ref="file_info" /> |  | ||||||
|         <appender-ref ref="file_error" /> |  | ||||||
|         <appender-ref ref="file_console" /> |  | ||||||
|     </root> |  | ||||||
| 	 |  | ||||||
| 	<!--系统用户操作日志--> |  | ||||||
|     <logger name="sys-user" level="info"> |  | ||||||
|         <appender-ref ref="sys-user"/> |  | ||||||
|     </logger> |  | ||||||
| </configuration>  |  | ||||||
| @@ -0,0 +1,45 @@ | |||||||
|  | package org.dromara.test; | ||||||
|  |  | ||||||
|  | import org.junit.jupiter.api.Assertions; | ||||||
|  | import org.junit.jupiter.api.DisplayName; | ||||||
|  | import org.junit.jupiter.api.Test; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 断言单元测试案例 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @DisplayName("断言单元测试案例") | ||||||
|  | public class AssertUnitTest { | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 assertEquals 方法") | ||||||
|  |     @Test | ||||||
|  |     public void testAssertEquals() { | ||||||
|  |         Assertions.assertEquals("666", new String("666")); | ||||||
|  |         Assertions.assertNotEquals("666", new String("666")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 assertSame 方法") | ||||||
|  |     @Test | ||||||
|  |     public void testAssertSame() { | ||||||
|  |         Object obj = new Object(); | ||||||
|  |         Object obj1 = obj; | ||||||
|  |         Assertions.assertSame(obj, obj1); | ||||||
|  |         Assertions.assertNotSame(obj, obj1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 assertTrue 方法") | ||||||
|  |     @Test | ||||||
|  |     public void testAssertTrue() { | ||||||
|  |         Assertions.assertTrue(true); | ||||||
|  |         Assertions.assertFalse(true); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 assertNull 方法") | ||||||
|  |     @Test | ||||||
|  |     public void testAssertNull() { | ||||||
|  |         Assertions.assertNull(null); | ||||||
|  |         Assertions.assertNotNull(null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
							
								
								
									
										70
									
								
								ruoyi-admin/src/test/java/org/dromara/test/DemoUnitTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								ruoyi-admin/src/test/java/org/dromara/test/DemoUnitTest.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,70 @@ | |||||||
|  | package org.dromara.test; | ||||||
|  |  | ||||||
|  | import org.dromara.common.web.config.properties.CaptchaProperties; | ||||||
|  | import org.junit.jupiter.api.*; | ||||||
|  | import org.springframework.beans.factory.annotation.Autowired; | ||||||
|  | import org.springframework.boot.test.context.SpringBootTest; | ||||||
|  |  | ||||||
|  | import java.util.concurrent.TimeUnit; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 单元测试案例 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @SpringBootTest // 此注解只能在 springboot 主包下使用 需包含 main 方法与 yml 配置文件 | ||||||
|  | @DisplayName("单元测试案例") | ||||||
|  | public class DemoUnitTest { | ||||||
|  |  | ||||||
|  |     @Autowired | ||||||
|  |     private CaptchaProperties captchaProperties; | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 @SpringBootTest @Test @DisplayName 注解") | ||||||
|  |     @Test | ||||||
|  |     public void testTest() { | ||||||
|  |         System.out.println(captchaProperties); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Disabled | ||||||
|  |     @DisplayName("测试 @Disabled 注解") | ||||||
|  |     @Test | ||||||
|  |     public void testDisabled() { | ||||||
|  |         System.out.println(captchaProperties); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Timeout(value = 2L, unit = TimeUnit.SECONDS) | ||||||
|  |     @DisplayName("测试 @Timeout 注解") | ||||||
|  |     @Test | ||||||
|  |     public void testTimeout() throws InterruptedException { | ||||||
|  |         Thread.sleep(3000); | ||||||
|  |         System.out.println(captchaProperties); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 @RepeatedTest 注解") | ||||||
|  |     @RepeatedTest(3) | ||||||
|  |     public void testRepeatedTest() { | ||||||
|  |         System.out.println(666); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @BeforeAll | ||||||
|  |     public static void testBeforeAll() { | ||||||
|  |         System.out.println("@BeforeAll =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @BeforeEach | ||||||
|  |     public void testBeforeEach() { | ||||||
|  |         System.out.println("@BeforeEach =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @AfterEach | ||||||
|  |     public void testAfterEach() { | ||||||
|  |         System.out.println("@AfterEach =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @AfterAll | ||||||
|  |     public static void testAfterAll() { | ||||||
|  |         System.out.println("@AfterAll =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,72 @@ | |||||||
|  | package org.dromara.test; | ||||||
|  |  | ||||||
|  | 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; | ||||||
|  | import org.junit.jupiter.params.ParameterizedTest; | ||||||
|  | import org.junit.jupiter.params.provider.EnumSource; | ||||||
|  | import org.junit.jupiter.params.provider.MethodSource; | ||||||
|  | import org.junit.jupiter.params.provider.NullSource; | ||||||
|  | import org.junit.jupiter.params.provider.ValueSource; | ||||||
|  |  | ||||||
|  | import java.util.ArrayList; | ||||||
|  | import java.util.List; | ||||||
|  | import java.util.stream.Stream; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 带参数单元测试案例 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @DisplayName("带参数单元测试案例") | ||||||
|  | public class ParamUnitTest { | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 @ValueSource 注解") | ||||||
|  |     @ParameterizedTest | ||||||
|  |     @ValueSource(strings = {"t1", "t2", "t3"}) | ||||||
|  |     public void testValueSource(String str) { | ||||||
|  |         System.out.println(str); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 @NullSource 注解") | ||||||
|  |     @ParameterizedTest | ||||||
|  |     @NullSource | ||||||
|  |     public void testNullSource(String str) { | ||||||
|  |         System.out.println(str); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 @EnumSource 注解") | ||||||
|  |     @ParameterizedTest | ||||||
|  |     @EnumSource(UserType.class) | ||||||
|  |     public void testEnumSource(UserType type) { | ||||||
|  |         System.out.println(type.getUserType()); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @DisplayName("测试 @MethodSource 注解") | ||||||
|  |     @ParameterizedTest | ||||||
|  |     @MethodSource("getParam") | ||||||
|  |     public void testMethodSource(String str) { | ||||||
|  |         System.out.println(str); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static Stream<String> getParam() { | ||||||
|  |         List<String> list = new ArrayList<>(); | ||||||
|  |         list.add("t1"); | ||||||
|  |         list.add("t2"); | ||||||
|  |         list.add("t3"); | ||||||
|  |         return list.stream(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @BeforeEach | ||||||
|  |     public void testBeforeEach() { | ||||||
|  |         System.out.println("@BeforeEach =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @AfterEach | ||||||
|  |     public void testAfterEach() { | ||||||
|  |         System.out.println("@AfterEach =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | } | ||||||
							
								
								
									
										54
									
								
								ruoyi-admin/src/test/java/org/dromara/test/TagUnitTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								ruoyi-admin/src/test/java/org/dromara/test/TagUnitTest.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,54 @@ | |||||||
|  | package org.dromara.test; | ||||||
|  |  | ||||||
|  | import org.junit.jupiter.api.*; | ||||||
|  | import org.springframework.boot.test.context.SpringBootTest; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 标签单元测试案例 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @SpringBootTest | ||||||
|  | @DisplayName("标签单元测试案例") | ||||||
|  | public class TagUnitTest { | ||||||
|  |  | ||||||
|  |     @Tag("dev") | ||||||
|  |     @DisplayName("测试 @Tag dev") | ||||||
|  |     @Test | ||||||
|  |     public void testTagDev() { | ||||||
|  |         System.out.println("dev"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Tag("prod") | ||||||
|  |     @DisplayName("测试 @Tag prod") | ||||||
|  |     @Test | ||||||
|  |     public void testTagProd() { | ||||||
|  |         System.out.println("prod"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Tag("local") | ||||||
|  |     @DisplayName("测试 @Tag local") | ||||||
|  |     @Test | ||||||
|  |     public void testTagLocal() { | ||||||
|  |         System.out.println("local"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Tag("exclude") | ||||||
|  |     @DisplayName("测试 @Tag exclude") | ||||||
|  |     @Test | ||||||
|  |     public void testTagExclude() { | ||||||
|  |         System.out.println("exclude"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @BeforeEach | ||||||
|  |     public void testBeforeEach() { | ||||||
|  |         System.out.println("@BeforeEach =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @AfterEach | ||||||
|  |     public void testAfterEach() { | ||||||
|  |         System.out.println("@AfterEach =================="); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | } | ||||||
							
								
								
									
										1
									
								
								ruoyi-admin/zhFonts/.uuid
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ruoyi-admin/zhFonts/.uuid
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | 3f2ee348-0303-40ca-bf03-03f48d2d2141 | ||||||
							
								
								
									
										
											BIN
										
									
								
								ruoyi-admin/zhFonts/SIMSUN.TTC
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ruoyi-admin/zhFonts/SIMSUN.TTC
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										4
									
								
								ruoyi-admin/zhFonts/fonts.dir
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								ruoyi-admin/zhFonts/fonts.dir
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | 3 | ||||||
|  | SIMSUN.TTC -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1 | ||||||
|  | SIMSUN.TTC -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1 | ||||||
|  | SIMSUN.TTC -misc-simsun-medium-r-normal--0-0-0-0-p-0-koi8-r | ||||||
							
								
								
									
										4
									
								
								ruoyi-admin/zhFonts/fonts.scale
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								ruoyi-admin/zhFonts/fonts.scale
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | 3 | ||||||
|  | SIMSUN.TTC -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1 | ||||||
|  | SIMSUN.TTC -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1 | ||||||
|  | SIMSUN.TTC -misc-simsun-medium-r-normal--0-0-0-0-p-0-koi8-r | ||||||
| @@ -4,158 +4,43 @@ | |||||||
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||||
|     <parent> |     <parent> | ||||||
|         <artifactId>ruoyi-vue-plus</artifactId> |         <artifactId>ruoyi-vue-plus</artifactId> | ||||||
|         <groupId>com.ruoyi</groupId> |         <groupId>org.dromara</groupId> | ||||||
|         <version>3.2.0</version> |         <version>${revision}</version> | ||||||
|     </parent> |     </parent> | ||||||
|     <modelVersion>4.0.0</modelVersion> |     <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> | ||||||
|  |         <module>ruoyi-common-sse</module> | ||||||
|  |     </modules> | ||||||
|  |  | ||||||
|     <artifactId>ruoyi-common</artifactId> |     <artifactId>ruoyi-common</artifactId> | ||||||
|  |     <packaging>pom</packaging> | ||||||
|  |  | ||||||
|     <description> |     <description> | ||||||
|         common通用工具 |         common 通用模块 | ||||||
|     </description> |     </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> |  | ||||||
|  |  | ||||||
|         <!-- spring security 安全认证 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.springframework.boot</groupId> |  | ||||||
|             <artifactId>spring-boot-starter-security</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- 自定义验证注解 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>javax.validation</groupId> |  | ||||||
|             <artifactId>validation-api</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!--常用工具类 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.apache.commons</groupId> |  | ||||||
|             <artifactId>commons-lang3</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- JSON工具类 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.fasterxml.jackson.core</groupId> |  | ||||||
|             <artifactId>jackson-databind</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- excel工具 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.apache.poi</groupId> |  | ||||||
|             <artifactId>poi-ooxml</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.alibaba</groupId> |  | ||||||
|             <artifactId>easyexcel</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- yml解析器 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.yaml</groupId> |  | ||||||
|             <artifactId>snakeyaml</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!--Token生成与解析--> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>io.jsonwebtoken</groupId> |  | ||||||
|             <artifactId>jjwt</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- redis 缓存操作 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.springframework.boot</groupId> |  | ||||||
|             <artifactId>spring-boot-starter-data-redis</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- pool 对象池 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.apache.commons</groupId> |  | ||||||
|             <artifactId>commons-pool2</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!-- servlet包 --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>javax.servlet</groupId> |  | ||||||
|             <artifactId>javax.servlet-api</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.baomidou</groupId> |  | ||||||
|             <artifactId>mybatis-plus-boot-starter</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.baomidou</groupId> |  | ||||||
|             <artifactId>mybatis-plus-extension</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>cn.hutool</groupId> |  | ||||||
|             <artifactId>hutool-all</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.projectlombok</groupId> |  | ||||||
|             <artifactId>lombok</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.springframework.cloud</groupId> |  | ||||||
|             <artifactId>spring-cloud-starter-openfeign</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>io.github.openfeign</groupId> |  | ||||||
|             <artifactId>feign-okhttp</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>de.codecentric</groupId> |  | ||||||
|             <artifactId>spring-boot-admin-starter-client</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.github.xiaoymin</groupId> |  | ||||||
|             <artifactId>knife4j-spring-boot-starter</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>io.swagger</groupId> |  | ||||||
|             <artifactId>swagger-annotations</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.springframework.boot</groupId> |  | ||||||
|             <artifactId>spring-boot-starter-actuator</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|         <!--  自动生成YML配置关联JSON文件  --> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.springframework.boot</groupId> |  | ||||||
|             <artifactId>spring-boot-configuration-processor</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <!--redisson--> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.redisson</groupId> |  | ||||||
|             <artifactId>redisson-spring-boot-starter</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|  |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>com.baomidou</groupId> |  | ||||||
|             <artifactId>lock4j-redisson-spring-boot-starter</artifactId> |  | ||||||
|         </dependency> |  | ||||||
|     </dependencies> |  | ||||||
|  |  | ||||||
| </project> | </project> | ||||||
|   | |||||||
							
								
								
									
										185
									
								
								ruoyi-common/ruoyi-common-bom/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										185
									
								
								ruoyi-common/ruoyi-common-bom/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,185 @@ | |||||||
|  | <?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.3.1</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> | ||||||
|  |  | ||||||
|  |             <!-- SSE模块 --> | ||||||
|  |             <dependency> | ||||||
|  |                 <groupId>org.dromara</groupId> | ||||||
|  |                 <artifactId>ruoyi-common-sse</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> | ||||||
| @@ -0,0 +1,17 @@ | |||||||
|  | package org.dromara.common.core.config; | ||||||
|  |  | ||||||
|  | import org.springframework.boot.autoconfigure.AutoConfiguration; | ||||||
|  | import org.springframework.context.annotation.EnableAspectJAutoProxy; | ||||||
|  | import org.springframework.scheduling.annotation.EnableAsync; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 程序注解配置 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @AutoConfiguration | ||||||
|  | @EnableAspectJAutoProxy | ||||||
|  | @EnableAsync(proxyTargetClass = true) | ||||||
|  | public class ApplicationConfig { | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -1,38 +1,35 @@ | |||||||
| package com.ruoyi.framework.config; | package org.dromara.common.core.config; | ||||||
| 
 | 
 | ||||||
| import cn.hutool.core.util.ArrayUtil; | 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.aop.interceptor.AsyncUncaughtExceptionHandler; | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.boot.autoconfigure.AutoConfiguration; | ||||||
| import org.springframework.beans.factory.annotation.Qualifier; | import org.springframework.core.task.VirtualThreadTaskExecutor; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.scheduling.annotation.AsyncConfigurer; | ||||||
| import org.springframework.scheduling.annotation.AsyncConfigurerSupport; |  | ||||||
| import org.springframework.scheduling.annotation.EnableAsync; |  | ||||||
| import org.springframework.security.concurrent.DelegatingSecurityContextExecutorService; |  | ||||||
| 
 | 
 | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.concurrent.Executor; | import java.util.concurrent.Executor; | ||||||
| import java.util.concurrent.ScheduledExecutorService; |  | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * 异步配置 |  * 异步配置 | ||||||
|  |  * <p> | ||||||
|  |  * 如果未使用虚拟线程则生效 | ||||||
|  * |  * | ||||||
|  * @author Lion Li |  * @author Lion Li | ||||||
|  */ |  */ | ||||||
| @EnableAsync | @AutoConfiguration | ||||||
| @Configuration | public class AsyncConfig implements AsyncConfigurer { | ||||||
| public class AsyncConfig extends AsyncConfigurerSupport { |  | ||||||
| 
 |  | ||||||
| 	@Autowired |  | ||||||
| 	@Qualifier("scheduledExecutorService") |  | ||||||
| 	private ScheduledExecutorService scheduledExecutorService; |  | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|      * 异步执行需要使用权限框架自带的包装线程池  保证权限信息的传递 |      * 自定义 @Async 注解使用系统线程池 | ||||||
|      */ |      */ | ||||||
|     @Override |     @Override | ||||||
|     public Executor getAsyncExecutor() { |     public Executor getAsyncExecutor() { | ||||||
|         return new DelegatingSecurityContextExecutorService(scheduledExecutorService); |         if(SpringUtils.isVirtual()) { | ||||||
|  |             return new VirtualThreadTaskExecutor("async-"); | ||||||
|  |         } | ||||||
|  |         return SpringUtils.getBean("scheduledExecutorService"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
| @@ -0,0 +1,87 @@ | |||||||
|  | package org.dromara.common.core.config; | ||||||
|  |  | ||||||
|  | import jakarta.annotation.PreDestroy; | ||||||
|  | import lombok.extern.slf4j.Slf4j; | ||||||
|  | import org.apache.commons.lang3.concurrent.BasicThreadFactory; | ||||||
|  | import org.dromara.common.core.config.properties.ThreadPoolProperties; | ||||||
|  | import org.dromara.common.core.utils.SpringUtils; | ||||||
|  | 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.core.task.VirtualThreadTaskExecutor; | ||||||
|  | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; | ||||||
|  |  | ||||||
|  | import java.util.concurrent.ScheduledExecutorService; | ||||||
|  | import java.util.concurrent.ScheduledThreadPoolExecutor; | ||||||
|  | import java.util.concurrent.ThreadPoolExecutor; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 线程池配置 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  **/ | ||||||
|  | @Slf4j | ||||||
|  | @AutoConfiguration | ||||||
|  | @EnableConfigurationProperties(ThreadPoolProperties.class) | ||||||
|  | public class ThreadPoolConfig { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 核心线程数 = cpu 核心数 + 1 | ||||||
|  |      */ | ||||||
|  |     private final int core = Runtime.getRuntime().availableProcessors() + 1; | ||||||
|  |  | ||||||
|  |     private ScheduledExecutorService scheduledExecutorService; | ||||||
|  |  | ||||||
|  |     @Bean(name = "threadPoolTaskExecutor") | ||||||
|  |     @ConditionalOnProperty(prefix = "thread-pool", name = "enabled", havingValue = "true") | ||||||
|  |     public ThreadPoolTaskExecutor threadPoolTaskExecutor(ThreadPoolProperties threadPoolProperties) { | ||||||
|  |         ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); | ||||||
|  |         executor.setCorePoolSize(core); | ||||||
|  |         executor.setMaxPoolSize(core * 2); | ||||||
|  |         executor.setQueueCapacity(threadPoolProperties.getQueueCapacity()); | ||||||
|  |         executor.setKeepAliveSeconds(threadPoolProperties.getKeepAliveSeconds()); | ||||||
|  |         executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); | ||||||
|  |         return executor; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 执行周期性或定时任务 | ||||||
|  |      */ | ||||||
|  |     @Bean(name = "scheduledExecutorService") | ||||||
|  |     protected ScheduledExecutorService scheduledExecutorService() { | ||||||
|  |         // daemon 必须为 true | ||||||
|  |         BasicThreadFactory.Builder builder = new BasicThreadFactory.Builder().daemon(true); | ||||||
|  |         if (SpringUtils.isVirtual()) { | ||||||
|  |             builder.namingPattern("virtual-schedule-pool-%d").wrappedFactory(new VirtualThreadTaskExecutor().getVirtualThreadFactory()); | ||||||
|  |         } else { | ||||||
|  |             builder.namingPattern("schedule-pool-%d"); | ||||||
|  |         } | ||||||
|  |         ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(core, | ||||||
|  |             builder.build(), | ||||||
|  |             new ThreadPoolExecutor.CallerRunsPolicy()) { | ||||||
|  |             @Override | ||||||
|  |             protected void afterExecute(Runnable r, Throwable t) { | ||||||
|  |                 super.afterExecute(r, t); | ||||||
|  |                 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,41 @@ | |||||||
|  | package org.dromara.common.core.config; | ||||||
|  |  | ||||||
|  | import jakarta.validation.Validator; | ||||||
|  | import org.hibernate.validator.HibernateValidator; | ||||||
|  | import org.springframework.boot.autoconfigure.AutoConfiguration; | ||||||
|  | import org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration; | ||||||
|  | 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(before = ValidationAutoConfiguration.class) | ||||||
|  | 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(); | ||||||
|  |             // 设置快速失败模式(fail-fast),即校验过程中一旦遇到失败,立即停止并返回错误 | ||||||
|  |             properties.setProperty("hibernate.validator.fail_fast", "true"); | ||||||
|  |             factoryBean.setValidationProperties(properties); | ||||||
|  |             // 加载配置 | ||||||
|  |             factoryBean.afterPropertiesSet(); | ||||||
|  |             return factoryBean.getValidator(); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -1,9 +1,7 @@ | |||||||
| package com.ruoyi.framework.config.properties; | package org.dromara.common.core.config.properties; | ||||||
| 
 | 
 | ||||||
| import com.ruoyi.common.enums.ThreadPoolRejectedPolicy; |  | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
| import org.springframework.boot.context.properties.ConfigurationProperties; | import org.springframework.boot.context.properties.ConfigurationProperties; | ||||||
| import org.springframework.stereotype.Component; |  | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * 线程池 配置属性 |  * 线程池 配置属性 | ||||||
| @@ -11,7 +9,6 @@ import org.springframework.stereotype.Component; | |||||||
|  * @author Lion Li |  * @author Lion Li | ||||||
|  */ |  */ | ||||||
| @Data | @Data | ||||||
| @Component |  | ||||||
| @ConfigurationProperties(prefix = "thread-pool") | @ConfigurationProperties(prefix = "thread-pool") | ||||||
| public class ThreadPoolProperties { | public class ThreadPoolProperties { | ||||||
| 
 | 
 | ||||||
| @@ -20,16 +17,6 @@ public class ThreadPoolProperties { | |||||||
|      */ |      */ | ||||||
|     private boolean enabled; |     private boolean enabled; | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * 核心线程池大小 |  | ||||||
|      */ |  | ||||||
|     private int corePoolSize; |  | ||||||
| 
 |  | ||||||
|     /** |  | ||||||
|      * 最大可创建的线程数 |  | ||||||
|      */ |  | ||||||
|     private int maxPoolSize; |  | ||||||
| 
 |  | ||||||
|     /** |     /** | ||||||
|      * 队列最大长度 |      * 队列最大长度 | ||||||
|      */ |      */ | ||||||
| @@ -40,9 +27,4 @@ public class ThreadPoolProperties { | |||||||
|      */ |      */ | ||||||
|     private int keepAliveSeconds; |     private int keepAliveSeconds; | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * 线程池对拒绝任务(无线程可用)的处理策略 |  | ||||||
|      */ |  | ||||||
|     private ThreadPoolRejectedPolicy rejectedExecutionHandler; |  | ||||||
| 
 |  | ||||||
| } | } | ||||||
| @@ -0,0 +1,30 @@ | |||||||
|  | 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:"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 登录账户密码错误次数 redis key | ||||||
|  |      */ | ||||||
|  |     String PWD_ERR_CNT_KEY = "pwd_err_cnt:"; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,89 @@ | |||||||
|  | package org.dromara.common.core.constant; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 缓存组名称常量 | ||||||
|  |  * <p> | ||||||
|  |  * key 格式为 cacheNames#ttl#maxIdleTime#maxSize#local | ||||||
|  |  * <p> | ||||||
|  |  * ttl 过期时间 如果设置为0则不过期 默认为0 | ||||||
|  |  * maxIdleTime 最大空闲时间 根据LRU算法清理空闲数据 如果设置为0则不检测 默认为0 | ||||||
|  |  * maxSize 组最大长度 根据LRU算法清理溢出数据 如果设置为0则无限长 默认为0 | ||||||
|  |  * local 默认开启本地缓存为1 关闭本地缓存为0 | ||||||
|  |  * <p> | ||||||
|  |  * 例子: test#60s、test#0#60s、test#0#1m#1000、test#1h#0#500、test#1h#0#500#0 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | public interface CacheNames { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 演示案例 | ||||||
|  |      */ | ||||||
|  |     String DEMO_CACHE = "demo:cache#60s#10m#20"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 系统配置 | ||||||
|  |      */ | ||||||
|  |     String SYS_CONFIG = "sys_config"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 数据字典 | ||||||
|  |      */ | ||||||
|  |     String SYS_DICT = "sys_dict"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 数据字典类型 | ||||||
|  |      */ | ||||||
|  |     String SYS_DICT_TYPE = "sys_dict_type"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 租户 | ||||||
|  |      */ | ||||||
|  |     String SYS_TENANT = GlobalConstants.GLOBAL_REDIS_KEY + "sys_tenant#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 客户端 | ||||||
|  |      */ | ||||||
|  |     String SYS_CLIENT = GlobalConstants.GLOBAL_REDIS_KEY + "sys_client#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 用户账户 | ||||||
|  |      */ | ||||||
|  |     String SYS_USER_NAME = "sys_user_name#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 用户名称 | ||||||
|  |      */ | ||||||
|  |     String SYS_NICKNAME = "sys_nickname#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 部门 | ||||||
|  |      */ | ||||||
|  |     String SYS_DEPT = "sys_dept#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * OSS内容 | ||||||
|  |      */ | ||||||
|  |     String SYS_OSS = "sys_oss#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 角色自定义权限 | ||||||
|  |      */ | ||||||
|  |     String SYS_ROLE_CUSTOM = "sys_role_custom#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 部门及以下权限 | ||||||
|  |      */ | ||||||
|  |     String SYS_DEPT_AND_CHILD = "sys_dept_and_child#30d"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * OSS配置 | ||||||
|  |      */ | ||||||
|  |     String SYS_OSS_CONFIG = GlobalConstants.GLOBAL_REDIS_KEY + "sys_oss_config"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 在线用户 | ||||||
|  |      */ | ||||||
|  |     String ONLINE_TOKEN = "online_tokens"; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,76 @@ | |||||||
|  | package org.dromara.common.core.constant; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 通用常量信息 | ||||||
|  |  * | ||||||
|  |  * @author ruoyi | ||||||
|  |  */ | ||||||
|  | public interface Constants { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * UTF-8 字符集 | ||||||
|  |      */ | ||||||
|  |     String UTF8 = "UTF-8"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * GBK 字符集 | ||||||
|  |      */ | ||||||
|  |     String GBK = "GBK"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * www主域 | ||||||
|  |      */ | ||||||
|  |     String WWW = "www."; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * http请求 | ||||||
|  |      */ | ||||||
|  |     String HTTP = "http://"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * https请求 | ||||||
|  |      */ | ||||||
|  |     String HTTPS = "https://"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 通用成功标识 | ||||||
|  |      */ | ||||||
|  |     String SUCCESS = "0"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 通用失败标识 | ||||||
|  |      */ | ||||||
|  |     String FAIL = "1"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 登录成功 | ||||||
|  |      */ | ||||||
|  |     String LOGIN_SUCCESS = "Success"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 注销 | ||||||
|  |      */ | ||||||
|  |     String LOGOUT = "Logout"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 注册 | ||||||
|  |      */ | ||||||
|  |     String REGISTER = "Register"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 登录失败 | ||||||
|  |      */ | ||||||
|  |     String LOGIN_FAIL = "Error"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 验证码有效期(分钟) | ||||||
|  |      */ | ||||||
|  |     Integer CAPTCHA_EXPIRATION = 2; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 顶级父级id | ||||||
|  |      */ | ||||||
|  |     Long TOP_PARENT_ID = 0L; | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
| @@ -0,0 +1,34 @@ | |||||||
|  | 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 SOCIAL_AUTH_CODE_KEY = GLOBAL_REDIS_KEY + "social_auth_codes:"; | ||||||
|  | } | ||||||
| @@ -0,0 +1,93 @@ | |||||||
|  | package org.dromara.common.core.constant; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 返回状态码 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | public interface HttpStatus { | ||||||
|  |     /** | ||||||
|  |      * 操作成功 | ||||||
|  |      */ | ||||||
|  |     int SUCCESS = 200; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 对象创建成功 | ||||||
|  |      */ | ||||||
|  |     int CREATED = 201; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 请求已经被接受 | ||||||
|  |      */ | ||||||
|  |     int ACCEPTED = 202; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 操作已经执行成功,但是没有返回数据 | ||||||
|  |      */ | ||||||
|  |     int NO_CONTENT = 204; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 资源已被移除 | ||||||
|  |      */ | ||||||
|  |     int MOVED_PERM = 301; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 重定向 | ||||||
|  |      */ | ||||||
|  |     int SEE_OTHER = 303; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 资源没有被修改 | ||||||
|  |      */ | ||||||
|  |     int NOT_MODIFIED = 304; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 参数列表错误(缺少,格式不匹配) | ||||||
|  |      */ | ||||||
|  |     int BAD_REQUEST = 400; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 未授权 | ||||||
|  |      */ | ||||||
|  |     int UNAUTHORIZED = 401; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 访问受限,授权过期 | ||||||
|  |      */ | ||||||
|  |     int FORBIDDEN = 403; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 资源,服务未找到 | ||||||
|  |      */ | ||||||
|  |     int NOT_FOUND = 404; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 不允许的http方法 | ||||||
|  |      */ | ||||||
|  |     int BAD_METHOD = 405; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 资源冲突,或者资源被锁 | ||||||
|  |      */ | ||||||
|  |     int CONFLICT = 409; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 不支持的数据,媒体类型 | ||||||
|  |      */ | ||||||
|  |     int UNSUPPORTED_TYPE = 415; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 系统内部错误 | ||||||
|  |      */ | ||||||
|  |     int ERROR = 500; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 接口未实现 | ||||||
|  |      */ | ||||||
|  |     int NOT_IMPLEMENTED = 501; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 系统警告消息 | ||||||
|  |      */ | ||||||
|  |     int WARN = 601; | ||||||
|  | } | ||||||
| @@ -0,0 +1,59 @@ | |||||||
|  | package org.dromara.common.core.constant; | ||||||
|  |  | ||||||
|  | import cn.hutool.core.lang.RegexPool; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 常用正则表达式字符串 | ||||||
|  |  * <p> | ||||||
|  |  * 常用正则表达式集合,更多正则见: https://any86.github.io/any-rule/ | ||||||
|  |  * | ||||||
|  |  * @author Feng | ||||||
|  |  */ | ||||||
|  | public interface RegexConstants extends RegexPool { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 字典类型必须以字母开头,且只能为(小写字母,数字,下滑线) | ||||||
|  |      */ | ||||||
|  |     String DICTIONARY_TYPE = "^[a-z][a-z0-9_]*$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 权限标识必须符合以下格式: | ||||||
|  |      * 1. 标准格式:xxx:yyy:zzz | ||||||
|  |      * - 第一部分(xxx):只能包含字母、数字和下划线(_),不能使用 `*` | ||||||
|  |      * - 第二部分(yyy):可以包含字母、数字、下划线(_)和 `*` | ||||||
|  |      * - 第三部分(zzz):可以包含字母、数字、下划线(_)和 `*` | ||||||
|  |      * 2. 允许空字符串(""),表示没有权限标识 | ||||||
|  |      */ | ||||||
|  |     String PERMISSION_STRING = "^$|^[a-zA-Z0-9_]+:[a-zA-Z0-9_*]+:[a-zA-Z0-9_*]+$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 身份证号码(后6位) | ||||||
|  |      */ | ||||||
|  |     String ID_CARD_LAST_6 = "^(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * QQ号码 | ||||||
|  |      */ | ||||||
|  |     String QQ_NUMBER = "^[1-9][0-9]\\d{4,9}$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 邮政编码 | ||||||
|  |      */ | ||||||
|  |     String POSTAL_CODE = "^[1-9]\\d{5}$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 注册账号 | ||||||
|  |      */ | ||||||
|  |     String ACCOUNT = "^[a-zA-Z][a-zA-Z0-9_]{4,15}$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 密码:包含至少8个字符,包括大写字母、小写字母、数字和特殊字符 | ||||||
|  |      */ | ||||||
|  |     String PASSWORD = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 通用状态(0表示正常,1表示停用) | ||||||
|  |      */ | ||||||
|  |     String STATUS = "^[01]$"; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,80 @@ | |||||||
|  | package org.dromara.common.core.constant; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 系统常量信息 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | public interface SystemConstants { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 正常状态 | ||||||
|  |      */ | ||||||
|  |     String NORMAL = "0"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 异常状态 | ||||||
|  |      */ | ||||||
|  |     String DISABLE = "1"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 是否为系统默认(是) | ||||||
|  |      */ | ||||||
|  |     String YES = "Y"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 是否为系统默认(否) | ||||||
|  |      */ | ||||||
|  |     String NO = "N"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 是否菜单外链(是) | ||||||
|  |      */ | ||||||
|  |     String YES_FRAME = "0"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 是否菜单外链(否) | ||||||
|  |      */ | ||||||
|  |     String NO_FRAME = "1"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 菜单类型(目录) | ||||||
|  |      */ | ||||||
|  |     String TYPE_DIR = "M"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 菜单类型(菜单) | ||||||
|  |      */ | ||||||
|  |     String TYPE_MENU = "C"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 菜单类型(按钮) | ||||||
|  |      */ | ||||||
|  |     String TYPE_BUTTON = "F"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Layout组件标识 | ||||||
|  |      */ | ||||||
|  |     String LAYOUT = "Layout"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * ParentView组件标识 | ||||||
|  |      */ | ||||||
|  |     String PARENT_VIEW = "ParentView"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * InnerLink组件标识 | ||||||
|  |      */ | ||||||
|  |     String INNER_LINK = "InnerLink"; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 超级管理员ID | ||||||
|  |      */ | ||||||
|  |     Long SUPER_ADMIN_ID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 根部门祖级列表 | ||||||
|  |      */ | ||||||
|  |     String ROOT_DEPT_ANCESTORS = "0"; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,35 @@ | |||||||
|  | package org.dromara.common.core.constant; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 租户常量信息 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | public interface TenantConstants { | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 超级管理员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"; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,110 @@ | |||||||
|  | package org.dromara.common.core.domain; | ||||||
|  |  | ||||||
|  | import org.dromara.common.core.constant.HttpStatus; | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 响应信息主体 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class R<T> implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 成功 | ||||||
|  |      */ | ||||||
|  |     public static final int SUCCESS = 200; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 失败 | ||||||
|  |      */ | ||||||
|  |     public static final int FAIL = 500; | ||||||
|  |  | ||||||
|  |     private int code; | ||||||
|  |  | ||||||
|  |     private String msg; | ||||||
|  |  | ||||||
|  |     private T data; | ||||||
|  |  | ||||||
|  |     public static <T> R<T> ok() { | ||||||
|  |         return restResult(null, SUCCESS, "操作成功"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> ok(T data) { | ||||||
|  |         return restResult(data, SUCCESS, "操作成功"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> ok(String msg) { | ||||||
|  |         return restResult(null, SUCCESS, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> ok(String msg, T data) { | ||||||
|  |         return restResult(data, SUCCESS, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> fail() { | ||||||
|  |         return restResult(null, FAIL, "操作失败"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> fail(String msg) { | ||||||
|  |         return restResult(null, FAIL, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> fail(T data) { | ||||||
|  |         return restResult(data, FAIL, "操作失败"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> fail(String msg, T data) { | ||||||
|  |         return restResult(data, FAIL, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> R<T> fail(int code, String msg) { | ||||||
|  |         return restResult(null, code, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 返回警告消息 | ||||||
|  |      * | ||||||
|  |      * @param msg 返回内容 | ||||||
|  |      * @return 警告消息 | ||||||
|  |      */ | ||||||
|  |     public static <T> R<T> warn(String msg) { | ||||||
|  |         return restResult(null, HttpStatus.WARN, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 返回警告消息 | ||||||
|  |      * | ||||||
|  |      * @param msg 返回内容 | ||||||
|  |      * @param data 数据对象 | ||||||
|  |      * @return 警告消息 | ||||||
|  |      */ | ||||||
|  |     public static <T> R<T> warn(String msg, T data) { | ||||||
|  |         return restResult(data, HttpStatus.WARN, msg); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private static <T> R<T> restResult(T data, int code, String msg) { | ||||||
|  |         R<T> r = new R<>(); | ||||||
|  |         r.setCode(code); | ||||||
|  |         r.setData(data); | ||||||
|  |         r.setMsg(msg); | ||||||
|  |         return r; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> Boolean isError(R<T> ret) { | ||||||
|  |         return !isSuccess(ret); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public static <T> Boolean isSuccess(R<T> ret) { | ||||||
|  |         return R.SUCCESS == ret.getCode(); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,71 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  | import java.util.HashMap; | ||||||
|  | import java.util.List; | ||||||
|  | import java.util.Map; | ||||||
|  | import java.util.Objects; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 办理任务请求对象 | ||||||
|  |  * | ||||||
|  |  * @author may | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | public class CompleteTaskDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 任务id | ||||||
|  |      */ | ||||||
|  |     private Long taskId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 附件id | ||||||
|  |      */ | ||||||
|  |     private String fileId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 抄送人员 | ||||||
|  |      */ | ||||||
|  |     private List<FlowCopyDTO> flowCopyList; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 消息类型 | ||||||
|  |      */ | ||||||
|  |     private List<String> messageType; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 办理意见 | ||||||
|  |      */ | ||||||
|  |     private String message; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 消息通知 | ||||||
|  |      */ | ||||||
|  |     private String notice; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 流程变量 | ||||||
|  |      */ | ||||||
|  |     private Map<String, Object> variables; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 扩展变量(此处为逗号分隔的ossId) | ||||||
|  |      */ | ||||||
|  |     private String ext; | ||||||
|  |  | ||||||
|  |     public Map<String, Object> getVariables() { | ||||||
|  |         if (variables == null) { | ||||||
|  |             return new HashMap<>(16); | ||||||
|  |         } | ||||||
|  |         variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue())); | ||||||
|  |         return variables; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,36 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 部门 | ||||||
|  |  * | ||||||
|  |  * @author AprilWind | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class DeptDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 部门ID | ||||||
|  |      */ | ||||||
|  |     private Long deptId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 父部门ID | ||||||
|  |      */ | ||||||
|  |     private Long parentId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 部门名称 | ||||||
|  |      */ | ||||||
|  |     private String deptName; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,41 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 字典数据DTO | ||||||
|  |  * | ||||||
|  |  * @author AprilWind | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class DictDataDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 字典标签 | ||||||
|  |      */ | ||||||
|  |     private String dictLabel; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 字典键值 | ||||||
|  |      */ | ||||||
|  |     private String dictValue; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 是否默认(Y是 N否) | ||||||
|  |      */ | ||||||
|  |     private String isDefault; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 备注 | ||||||
|  |      */ | ||||||
|  |     private String remark; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,41 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 字典类型DTO | ||||||
|  |  * | ||||||
|  |  * @author AprilWind | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class DictTypeDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 字典主键 | ||||||
|  |      */ | ||||||
|  |     private Long dictId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 字典名称 | ||||||
|  |      */ | ||||||
|  |     private String dictName; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 字典类型 | ||||||
|  |      */ | ||||||
|  |     private String dictType; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 备注 | ||||||
|  |      */ | ||||||
|  |     private String remark; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,30 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 抄送 | ||||||
|  |  * | ||||||
|  |  * @author may | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | public class FlowCopyDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 用户id | ||||||
|  |      */ | ||||||
|  |     private Long userId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 用户名称 | ||||||
|  |      */ | ||||||
|  |     private String userName; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,46 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * OSS对象 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class OssDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 对象存储主键 | ||||||
|  |      */ | ||||||
|  |     private Long ossId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 文件名 | ||||||
|  |      */ | ||||||
|  |     private String fileName; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 原名 | ||||||
|  |      */ | ||||||
|  |     private String originalName; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 文件后缀名 | ||||||
|  |      */ | ||||||
|  |     private String fileSuffix; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * URL地址 | ||||||
|  |      */ | ||||||
|  |     private String url; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,46 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 岗位 | ||||||
|  |  * | ||||||
|  |  * @author AprilWind | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class PostDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 岗位ID | ||||||
|  |      */ | ||||||
|  |     private Long postId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 部门id | ||||||
|  |      */ | ||||||
|  |     private Long deptId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 岗位编码 | ||||||
|  |      */ | ||||||
|  |     private String postCode; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 岗位名称 | ||||||
|  |      */ | ||||||
|  |     private String postName; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 岗位类别编码 | ||||||
|  |      */ | ||||||
|  |     private String postCategory; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,42 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 角色 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | @Data | ||||||
|  | @NoArgsConstructor | ||||||
|  | public class RoleDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 角色ID | ||||||
|  |      */ | ||||||
|  |     private Long roleId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 角色名称 | ||||||
|  |      */ | ||||||
|  |     private String roleName; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 角色权限 | ||||||
|  |      */ | ||||||
|  |     private String roleKey; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限 5:仅本人数据权限 6:部门及以下或本人数据权限) | ||||||
|  |      */ | ||||||
|  |     private String dataScope; | ||||||
|  |  | ||||||
|  | } | ||||||
| @@ -0,0 +1,45 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  | import java.util.HashMap; | ||||||
|  | import java.util.Map; | ||||||
|  | import java.util.Objects; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 启动流程对象 | ||||||
|  |  * | ||||||
|  |  * @author may | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | public class StartProcessDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 业务唯一值id | ||||||
|  |      */ | ||||||
|  |     private String businessId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 流程定义编码 | ||||||
|  |      */ | ||||||
|  |     private String flowCode; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 流程变量,前端会提交一个元素{'entity': {业务详情数据对象}} | ||||||
|  |      */ | ||||||
|  |     private Map<String, Object> variables; | ||||||
|  |  | ||||||
|  |     public Map<String, Object> getVariables() { | ||||||
|  |         if (variables == null) { | ||||||
|  |             return new HashMap<>(16); | ||||||
|  |         } | ||||||
|  |         variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue())); | ||||||
|  |         return variables; | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,30 @@ | |||||||
|  | package org.dromara.common.core.domain.dto; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import lombok.Data; | ||||||
|  |  | ||||||
|  | import java.io.Serial; | ||||||
|  | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * 启动流程返回对象 | ||||||
|  |  * | ||||||
|  |  * @author Lion Li | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | public class StartProcessReturnDTO implements Serializable { | ||||||
|  |  | ||||||
|  |     @Serial | ||||||
|  |     private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 流程实例id | ||||||
|  |      */ | ||||||
|  |     private Long processInstanceId; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * 任务id | ||||||
|  |      */ | ||||||
|  |     private Long taskId; | ||||||
|  |  | ||||||
|  | } | ||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user