24 Commits

Author SHA1 Message Date
a41b1673e5 Update schemas naming style (#272) 2024-01-18 19:27:41 +08:00
f39d11eb9d Fix use request.form() in middleware (#260)
* Fix request.form() in middleware

* resume global exception handling

* update the order in which data is processed

* Add demo interface for uploading files

* fix path params
2024-01-03 22:23:56 +08:00
7e17cbb4d8 Optimize operation log code type logic (#249) 2023-12-17 20:44:53 +08:00
88e8e88c5e Fix validation error log code return type (#247) 2023-12-17 20:15:21 +08:00
470cd9a9c2 adopt ruff formatter (#242)
* adopt ruff formatter

* Fix merge format
2023-11-22 19:09:08 +08:00
9bb6c7ce27 Fix the conflict between Access and OperaLog middleware (#236)
* Fix the conflict between Access and OperaLog middleware

* Restore the app invocation logic

* Restore the Gzip middleware execution location
2023-11-01 15:03:51 +08:00
079b994541 Update the pytz library to zoneinfo (#226)
* Update the pytz library to zoneinfo

* delete debug print
2023-10-16 18:45:08 +08:00
d0388b0256 Add ItsDangerous request parameters encryption (#203)
* Add ItsDangerous request parameters encryption

* fix typo

* update AES decryption returned as a string
2023-08-27 23:26:05 +08:00
4ed1899f8f Update role menu interface is standalone (#182)
* Update role directory interface is standalone

* fix data type conversion error

* update the body to the schema type

* fix menu permission verification
2023-07-21 17:11:24 +08:00
ee57c08ea6 Adapt to frontend (#162)
* Adapt to the frontend.
* Fix role update exception.
* add current user info interface.
* add meta schema
* annotate captcha
* update interface to restful specification
* update info to me
2023-07-01 18:51:10 +08:00
3d0d0ccde3 Refactor global datetime to timezone datetime (#152) 2023-06-20 16:50:42 +08:00
da6f6b8c24 Fix permitted exception. (#151)
* Fix permitted exception.

* Fix opera get code and msg exception.
2023-06-19 19:31:54 +08:00
8251c66fc3 Fix the operation log field type error (#145)
* Fix the operation log title error

* Fix the operation log UploadFile type error
2023-06-17 18:56:46 +08:00
439ab09ebd Update the status field type to int (#143) 2023-06-17 17:22:32 +08:00
3aa68cdb6c Fix the operation log message error (#140) 2023-06-17 16:17:30 +08:00
d498969400 The level field is deprecated but remained (#134) 2023-06-15 17:25:54 +08:00
c53fa9fda8 Update and fix permissions logic (#129)
* Update and fix permissions logic

* feat: Update base route

* Exclude non-system routing record operation logs

* Update the parameter variable name

* Fix the jwt authorization verify

* Roles menu authorization is turned off by default

* Fix the operation log code field type

* Update the casbin routing string to config

* Fix JWT middleware

* Add custom msg of token error

* Add the character length of the operation log code field

* Update the logout interface authorization
2023-06-14 22:34:56 +08:00
c9d620691c fix the operation log storage exception (#130) 2023-06-14 15:00:43 +08:00
c4c835cfb8 opera_log_middleware method split (#105)
* opera_log_middleware method split

* extract ip and ua information

* added ua and ip information to login log and operation log

* extract request args func

* desensitization adds async decorations

* fix get summary exception

* fix get summary exception2
2023-06-11 05:05:31 +08:00
6c5e7a6881 Add department-related interfaces and others (#101)
* Add tool to build tree structure data

* Update to keyword parameter style

* Add department-related interfaces

* Update departmental section interface permissions

* Add TODO and minor fixes

* Fix department relationships

* Fix user foreign key relationship deletion setting

* Add path parameters to the operation log

* Complete todo items

* Update department deletion logic

* Update operation log entry records

* Add AES encryption algorithm

* Add operation log request entry to the secret

* Fix naming prefixes

* Add easy encryption tools

* FIX CASBIN_EXCLUDE typing

* Update user password reset interface

* Add confirm_password to the operation log encryption
2023-06-09 11:00:13 +08:00
abcc9d2308 Add sync to async decorator support (#96)
* Add sync to async decorator support

* Update ASyncTranslator to asgiref
2023-06-06 20:13:33 +08:00
bddbf3a1d8 Add os and browser parameters to opera log (#97) 2023-06-06 10:09:43 +08:00
e728a0389b Fix the opera log cost_time parameter (#95) 2023-06-06 10:09:28 +08:00
627208b216 Add operation log related interfaces (#92)
* Add operation log related interfaces

* Update to native ASGI middleware

* add the opera model class to the __init__.py

* Executable code collation

* Reply to the access middleware

* Using the request extension params in the login log

* Fix the whitelist list

* Fix username resolution
2023-06-05 21:23:48 +08:00