9 Commits

Author SHA1 Message Date
470cd9a9c2 adopt ruff formatter (#242)
* adopt ruff formatter

* Fix merge format
2023-11-22 19:09:08 +08:00
81c0d2cc74 Fix pytest interface unit tests (#233) 2023-10-23 19:30:30 +08:00
0ce7225738 Fix int enum class inheritance (#208) 2023-09-02 17:17:23 +08:00
26d7492d6b Add ip location cache (#205)
* Add ip location cache

* Fix ip location cache

* Fix getting subscripts for offline locations
2023-08-28 18:28:22 +08:00
d292768432 Fix offline parse ip info (#112)
* Fix get info subscript

* Fix return typing
2023-06-11 12:49:46 +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
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
16b25c798f add offline ip location resolution (#78) 2023-05-29 10:10:59 +08:00
4e4c6fbe95 add login logs (#76)
* simplify crud method naming

* update get_user_list to get_select

* add sign in logs

* Perform pre-commit fix

* Encapsulated request ip address resolution

* Delete login log records for uncertain exceptions

* Add login log deletion interface

* Add login logging to background tasks

* update the user agent parse
2023-05-27 22:55:25 +08:00