7 Commits

Author SHA1 Message Date
4868cb142b update where query (#74) 2023-05-25 18:43:31 +08:00
e43f128086 add token refreshing mechanism (#62)
* add token refreshing mechanism

* update token_expires to token_expire_time

* Fix implicit type conversion exception catch
2023-05-19 21:28:48 +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
64f2a13e37 update to python3.10 (#29) 2023-05-03 17:10:55 +08:00
wu
5b09237835 add black support 2023-04-24 18:47:40 +08:00
wu
7ce3e607cd simplify user apis #11 2023-04-20 18:46:51 +08:00
wu
135074ec73 commit the base code 2023-04-19 11:05:49 +08:00