228ad0e82b
Simplify the multivariate expression of exceptions handler ( #252 )
...
* Simplify the multivariate expression of cors middleware
* Simplify the multivariate expression of assert exception handler
2023-12-18 21:36:24 +08:00
470cd9a9c2
adopt ruff formatter ( #242 )
...
* adopt ruff formatter
* Fix merge format
2023-11-22 19:09:08 +08:00
4c33e36959
Fix global unknown exception return ( #224 )
2023-10-13 18:26:23 +08:00
5173ff734f
Update the global unified response code ( #223 )
...
* Update the global unified response
* Update the uniform return model default
* Update the environment variable type
2023-09-27 13:45:38 +08:00
84127066b7
Fix CORS 500 status code exception ( #167 )
...
* Fix CORS 500 status code exception
* update menu test sql data
* update docs string
* fix the exception category
2023-07-04 15:07:56 +08:00
6f2c45a78d
Update menu handling logic ( #163 )
...
* Restore superuser menu to get
* Update menu table fields
* Update the sql file
* Update the readme file
* lint
2023-07-02 00:44:27 +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
59f1daba90
Add the schema base class ( #148 )
2023-06-18 19:47:39 +08:00
616243c0dc
Fix the exception handler HTTPException type error ( #146 )
2023-06-17 19:55:04 +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
c9d620691c
fix the operation log storage exception ( #130 )
2023-06-14 15:00:43 +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
9dce49dab8
Add assertion error handler ( #93 )
2023-06-05 15:17:43 +08:00
61147d4636
Fix background task not executed ( #86 )
...
* Fix login auth failure exception
* Add background task to custom exception class
* Fix branch conflicts
* Update login log status to enum.
2023-05-31 16:16:10 +08:00
16b25c798f
add offline ip location resolution ( #78 )
2023-05-29 10:10:59 +08:00
926a3f9b4e
add different log files ( #77 )
2023-05-27 22:57:33 +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
7e16414c5b
update token refresh expire time rule ( #67 )
...
* update token refresh expire time rule
* update token refresh time checks
2023-05-21 23:16:02 +08:00
e1edcade21
Add RBAC authorisation and some tools or optimisations ( #41 )
...
* WIP: add rbac authorization
* Perform pre-commit fixes
* add rbac route whitelist
* add init test data user role associations
* Restore database table id naming to fix generic crud base
* Add database section value uniqueness settings
* Update the test directory to tests
* Update route_name file name to health_check
* Split user auth and user action interfaces
* Fix conflict between merge and current branch
* Add pymysql dependencies
* Fix RBAC authentication method
* Add the select serialisation tool
* Fix missing return messages due to global exception handler slicing
* Update the user interface with associated relationships
* Add items to be completed
* Perform pre-commit fixes
* Add pre-made routers
* Paging data return structure optimisation
* Split user auth and user interface tests
* Fix user register test data structure error
* Fix duplicate named test classes
2023-05-17 22:13:37 +08:00
24024d4bf0
fix that the data validation global exception handler does not work ( #40 )
...
* fix that the data validation global exception handler does not work
* update login api test
* update the JSON login method to create the user ID of the token
2023-05-13 01:29:15 +08:00
d6cf5d8aef
update the ruff rules and format the code
2023-04-25 14:43:53 +08:00
5b09237835
add black support
2023-04-24 18:47:40 +08:00
135074ec73
commit the base code
2023-04-19 11:05:49 +08:00