17 Commits

Author SHA1 Message Date
576160129a Update interface coding style (#275) 2024-01-20 19:58:19 +08:00
a41b1673e5 Update schemas naming style (#272) 2024-01-18 19:27:41 +08:00
a22aaa0a3e Attempt to optimize serialization performance (#266)
* Attempt to serialize performance optimization

* Add casbin service functions return type

* update comments
2024-01-11 20:15:03 +08:00
7bfc7908ab Migrate to pydantic-v2 (#246)
* update the schema to pydantic-v2

* upgrade the ruff version in pre-commit

* update pagination to p-v2

* update encoder to p-v2

* update response_schema to p-v2

* update exception_handler to p-v2

* update config to p-v2

* update crud base to p-v2

* Migrate the JSON Encoder to the official one to reduce maintenance costs

* updated readme description

* restore the bcrypt compatible version

* fix validation error log code return format

* Fix manual processing method for GetCurrentUserInfo

* Integrate pydantic validate exceptions and user exceptions

* Fix validation exception handler

* add custom open response code

* Add a stand-alone assertion error handler

* Restore todo deleted by v1 branch to v2

* Add email and phone number types
2023-12-20 23:56:37 +08:00
1574d549e0 Fix exception handler parameter call (#253)
* Fix exception handler parameter call

* update the validation exception handler

* Update the content returned by the validation exception

* update import of JSONDecodeError

* fix validation exception handler typing

* Update the content returned by the validation exception handler
2023-12-19 21:17:49 +08:00
470cd9a9c2 adopt ruff formatter (#242)
* adopt ruff formatter

* Fix merge format
2023-11-22 19:09:08 +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
46d6fbccf5 Simplified query interface returns data serialization (#219)
* Simplified query interface returns data serialization

* reply to the inquiry pydantic verification

* restore import sorting
2023-09-27 10:46:30 +08:00
465b68d35e Add datetime util (#149)
* Add the datetime utils

* lint
2023-06-19 09:24:23 +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
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
847d7226f6 Update uniform return to custom encoder (#60)
* Add custom jsonable encoder

* Update uniform return to custom encoder

* Add some description of the return structure
2023-05-20 16:51:22 +08:00
wu
65f6916c20 Update the uniform return method to success 2023-05-18 18:35:23 +08:00
64f2a13e37 update to python3.10 (#29) 2023-05-03 17:10:55 +08:00
wu
d6cf5d8aef update the ruff rules and format the code 2023-04-25 14:43:53 +08:00
wu
5b09237835 add black support 2023-04-24 18:47:40 +08:00
wu
135074ec73 commit the base code 2023-04-19 11:05:49 +08:00