Commit Graph
54 Commits
Author SHA1 Message Date
Wu Clan 2f76988076 Add the deepwiki badge to README (#623) 2025-05-23 12:09:04 +08:00
Wu Clan e492cec7d7 Optimize codes and comments with cursor (#550) 2025-03-28 10:08:32 +08:00
Wu Clan 1d981ec159 Update the built-in features in README (#519) 2025-02-24 12:48:46 +08:00
Wu Clan 3b65679fb0 Add token related interfaces (#495) 2025-01-23 13:12:46 +08:00
Meepoljdx 78dad3021a Add postgresql database support (#475)
* feat: add postgresql db supports

* change: change mysql conn str create way

* fix: Modify the default alembic migration file to meet multi-database support

* Update settings and lint

* update models

* Simplify database config

* Simplify the get db method

* Update create db url

* Updated model type adaptation

* Update sql scripts

* Fix models type

* Adaptation to postgresql code generation

* Update README.md

* Fix alembic file template

* Update docker scripts
2024-12-25 22:04:04 +08:00
Wu Clan 8c04bcb981 Add the project logo to README (#469)
* Add the project logo to README

* update
2024-12-01 23:43:04 +08:00
Wu Clan aabb72138a Update the usage documentation in README (#449) 2024-11-07 11:30:00 +08:00
Wu Clan c22d1394e7 Update interactive link descriptions (#434) 2024-10-08 22:12:46 +08:00
Wu Clan 1d3b0e7d13 Update official documentation link to README (#429) 2024-09-22 15:56:27 +08:00
Wu Clan 7853233ddb Update the interactive link address (#402) 2024-09-04 20:06:25 +08:00
Wu Clan c22202eac4 Update the README announcement to note (#390)
* Update the README announcement to note

* delete English README some content
2024-08-28 10:30:26 +08:00
Wu Clan a698373064 Bump sqlalchemy crud plus version to 1.3.0 (#388) 2024-08-25 23:02:13 +08:00
Wu Clan 22586dd947 Add directory tree and update app notes (#380) 2024-08-13 10:45:54 +08:00
Wu Clan f9ec9d5d56 Add code generator app (#318)
* Add code generator app

* Define the generator interfaces

* Update the name of the template files

* update lock hash

* update route and schemas

* update gen code structure

* add some gen codes

* upgrade SQLAlchemy to release

* update template util

* Fix lint error

* Add template rendering code

* Add gen model code

* Fix gen model table

* Update business model column naming

* Update any route

* Fix api ninja args

* Update gen business model

* Fix interface services logic

* Fix template render

* Add more code template

* Add model auto gen template

* Fix model type map style

* Update schema and model templates

* Update gen_model schema

* Fix model template if

* Update have_datetime_column field from gen_model to gen_business table

* Update the name of the zip

* Update model template vars

* Add download generate code

* Add preview code encoding

* Update service code template

* fix lint

* Update github auth tag

* Update requirements

* Add code generation write

* Update generate interface and zip conf

* Optimize templates details

* Update model relation column conf

* Add import tables module

* Add get all databases interface

* Fix get tables interface

* Bump pydantic to 2.8.1

* Upgrading lint dependencies

* Add import business and model implement

* Split import database execution code

* Update text SQL execution to prevent SQL injection

* Optimize schema name generation

* clean code

* Update create tables sql scripts

* Update import sql query conditions

* Add todo comments

* Mark business creation interface

* Update features in README
2024-07-10 12:12:29 +08:00
Wu Clan 805a5a4e96 Add test account to README (#330) 2024-06-08 23:47:35 +08:00
Wu Clan 2589ddcdf6 Upgrade and update fastapi service startup (#319) 2024-05-04 22:39:09 +08:00
Wu Clan 8a165ec181 Fix English README.md update date (#308) 2024-03-22 18:24:03 +08:00
Wu Clan 5e438c685d Refactor the backend architecture (#299)
* define the basic architecture

* Update script and deployment file locations

* Update the route registration

* Fix CI download dependencies

* Updated ruff to 0.3.3

* Update app subdirectory naming

* Update the model import

* fix pre-commit pdm lock

* Update the service directory naming

* Add CRUD method documents

* Fix the issue of circular import

* Update the README document

* Update the SQL statement for create tables

* Update docker scripts and documentation

* Fix docker scripts

* Update the backend README.md

* Add the security folder and move the redis client

* Update the configuration item

* Fix environment configuration reads

* Update the default configuration

* Updated README description

* Updated the user registration API

* Fix test cases

* Update the celery configuration

* Update and fix celery configuration

* Updated the celery structure

* Update celery tasks and api

* Add celery flower

* Update the import style

* Update contributors
2024-03-22 18:16:15 +08:00
Wu Clan a98621b40d Update the README.md branch prompt (#302) 2024-03-21 12:13:00 +08:00
Wu Clan 01ee7deeff Prepare to lock the legacy branch (#301)
* Prepare to lock the legacy branch

* Update README.md

* Fix typo

* Fix the docker environment file
2024-03-21 10:56:12 +08:00
Wu Clan 3b64aeb97b Add OAuth 2.0 authorization login (#293)
* [WIP] Add OAuth 2.0 authorization login

* Add social user relationship table

* Update social user relationship table back_populates

* Add OAuth 2.0 related interface

* Automatically redirect authorization addresses

* Update OAuth2 authorization to GitHub

* Add implementation code

* fix the callback interface return

* fix typo

* fix the api return

* fix imports

* Fix logic for creating system users and social tables

* Fix user information storage

* Add OAuth2 source link

* remove unnecessary db refresh

* remove the front end docker-compose annotation
2024-03-15 13:46:43 +08:00
Wu Clan 594efb5e96 Add the repository star map (#296) 2024-03-15 10:41:07 +08:00
Wu Clan 2bad404913 Add the front-end docker-compose script (#283)
* Add the front-end docker-compose script

* Update the file content location

* fix typo

* Update the default nginx docker compose

* Add an online demo document
2024-02-03 20:41:41 +08:00
Wu Clan 7e633dbdd5 Add the pdm project manager (#282)
* Add the pdm project manager

* Update the interactive links

* fix typo
2024-02-01 17:37:29 +08:00
Wu Clan 2ae020e70a Restore the Github ci workflows (#281)
* Restore the Github ci workflows

* upgrade actions version
2024-01-31 10:37:41 +08:00
Wu Clan b5c656f308 Update sponsor links and FUNDING (#273) 2024-01-18 23:06:42 +08:00
Wu Clan 5c7d6659cf Reconstruct RBAC authentication logic (#264)
* Reconstruct RBAC authentication logic

* fix typo

* Migrate casbin sqla Adapter to redis

* Delete casbin model conf file

* Add permission dependencies

* Add request permission depends on execution condition

* Update openapi authorization method

* Add request permission identity

* Add request permission dependency description

* Migrate casbin redis adapter to sqla

* Update menu model and add function

* Fix menu permission identification

* Update user partial interface permissions

* Update menu table SQL

* Add role menu permission description to README

* fix README typo

* Simplify permission dependency injection

* Fix menu authorization store

* Fix interface permission dependency order

* Update role menu permission flag

* Update the background permission logic of the interface
2024-01-08 09:35:47 +08:00
Wu Clan 27d229c250 Add the project status page to the README (#259) 2023-12-23 18:24:52 +08:00
Wu Clan 754498be0b Add pydantic-v2 migration reminder (#257)
* Add pydantic-v2 migration reminder

* Fix format rendering

* Beautify the date format

* Add celebratory content
2023-12-21 00:38:59 +08:00
Wu Clan 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
Wu Clan 00ad74b5c2 Prepare to lock the pydantic-v1 branch (#254) 2023-12-19 23:02:14 +08:00
Wu Clan 4282754256 Add a Telegram interactive link (#245) 2023-12-17 14:41:26 +08:00
Wu Clan 275f9e5e93 Replace APScheduler to Celery asynchronous tasks (#229)
* Replace APScheduler to Celery task

* black format

* Add celery to run the script

* Update celery usage to README

* Update test task

* Add celery rabbitmq broker

* Fix dockerfiles

* Add task interface access authorization

* Update celery deploy run

* Fix dockerfiles

* Fix supervisor conf

* Update celery broker default is redis

* Force the pro env to use rabbitmq

* Update the task interface

* Add celery beat README description

* Update warning text style

* Revoke the default config comment content of the supervisor
2023-10-27 11:59:46 +08:00
Wu Clan 81c0d2cc74 Fix pytest interface unit tests (#233) 2023-10-23 19:30:30 +08:00
Wu Clan 3bb28a3379 Add init pytest data sql file (#231)
* Add init pytest data sql file

* Fix SQL style
2023-10-22 20:54:27 +08:00
Wu Clan 10f5fa6198 Update the README document (#214) 2023-09-25 16:51:05 +08:00
Wu Clan 811fd278f7 Update SQL files and use them as execution targets (#188) 2023-07-29 00:18:16 +08:00
Wu Clan 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
Wu Clan f21006000a Update user role interface to standalone (#177)
* Update user role interface to standalone

* Fix the userinfo schema department field type

* fix update userinfo values

* fix update user avatar value

* update readme docs

* update test data sql

* update readme typo

* update readme docs
2023-07-14 17:01:47 +08:00
Wu Clan 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
Wu Clan d710e86e55 Update the instructions in the readme (#159) 2023-06-26 18:28:39 +08:00
Wu Clan df4de20ba4 Update development process suggestions (#114) 2023-06-12 18:50:17 +08:00
Wu Clan 37ecff4fc3 Update the README document (#113)
* Update the README document

* fix typo
2023-06-11 12:50:06 +08:00
Wu Clan d4f4f3f329 Update docker one-click deployment (#88)
* Update the docker-compose deployment directory and internals

* missed updates

* update readme style
2023-06-02 20:39:26 +08:00
dylan 06a0a33a3a Update tests structure. (#68)
* Update tests structure.
* Unit tests use the test database
* Add function for creating database engine and session.
2023-05-23 17:52:34 +08:00
Wu Clan dc1ee04211 add English and Chinese README jump links (#66) 2023-05-21 12:08:22 +08:00
Wu Clan 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
Wu Clan 768a13f014 add test code (#37)
* add test code

* add a pre test prompt

* exec pre-commit
2023-05-11 15:20:57 +08:00
Wu Clan 0bd01f425f update Dockerfile and docker-compose.yml (#31)
* update Dockerfile and docker-compose.yml

* Fix log file type-checking
2023-05-07 15:21:03 +08:00
dylan 64f2a13e37 update to python3.10 (#29) 2023-05-03 17:10:55 +08:00