16 Commits

Author SHA1 Message Date
a41b1673e5 Update schemas naming style (#272) 2024-01-18 19:27:41 +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
eb662e4525 Add user password encryption salt (#191)
* Add user password encryption salt

* update the salt logic

* Update the SQL files

* Add an update admin login permission interface

* update the is_staff field comment

* update the staff error msg

* Update user backend management operation permissions
2023-07-31 10:53:46 +08:00
811fd278f7 Update SQL files and use them as execution targets (#188) 2023-07-29 00:18:16 +08:00
8677bc3fc8 Fix schema enum condition exception (#185)
* Fix schema enum condition exception

* unified enum type suffix
2023-07-24 17:04:14 +08:00
91803a773e Add interface to get all menus of a role (#183)
* Add interface to get all menus of a role

* deduplicate data classes

* update get role menu routing

* update casbin authentication
2023-07-22 16:57:41 +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
3759e44786 Add the role status conditional query (#181) 2023-07-21 15:50:38 +08:00
3d0d0ccde3 Refactor global datetime to timezone datetime (#152) 2023-06-20 16:50:42 +08:00
59f1daba90 Add the schema base class (#148) 2023-06-18 19:47:39 +08:00
439ab09ebd Update the status field type to int (#143) 2023-06-17 17:22:32 +08:00
f8b48e4eea Add login graphic captcha (#124)
* add the get verification code interface

* add the login interface captcha

* clean up the debugging code
2023-06-13 23:27:12 +08:00
5c64d99451 Add menu-related interfaces (#118)
* Adding menu-related interfaces

* fix schema typo

* add menu query interface validation
2023-06-13 16:37:39 +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
8a18186a7c Add role-related interfaces (#89) 2023-06-03 10:07:55 +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