Commit Graph
100 Commits
Author SHA1 Message Date
Wu Clan fc5a0f9dfa Update the celery configuration and tasks (#458)
* Update the celery configuration and tasks

* fix message notifications
2024-11-15 14:29:02 +08:00
Wu Clan 576ed77d36 Fix code generation file missing (#457) 2024-11-13 19:26:17 +08:00
Wu Clan 06cbe56201 Fix typo in contribution description (#456) 2024-11-13 13:40:37 +08:00
Wu Clan 87eec419e6 Update multiple version dependency specifiers (#454) 2024-11-12 19:52:42 +08:00
Wu Clan 0e7cef5b6c Update system config to dynamic (#447)
* Update system config to be dynamic

* update the configuration interface

* custom parameters are allowed

* update apis

* add more code

* finish

* fix bugs
2024-11-10 07:30:05 +08:00
Wu Clan 5c0b107142 Update singleton pattern class typing (#452) 2024-11-08 12:16:13 +08:00
Wu Clan 0cfeeb4e45 Bump sqlalchemy crud plus version to 1.5.0 (#450) 2024-11-07 13:42:40 +08:00
Wu Clan aabb72138a Update the usage documentation in README (#449) 2024-11-07 11:30:00 +08:00
Wu Clan 0a1f0a90b2 Add dependency-groups by PEP 735 (#444) 2024-11-03 18:56:07 +08:00
Wu Clan 493c2b2545 Add asynchronous socketio application server (#437)
* Add asynchronous socketio application server

* fix uv lock

* Update cors

* fix socket app
2024-11-02 00:12:01 +08:00
Wu Clan 0810647c48 Update project manager pdm to uv (#440)
* Update project manager pdm to uv

* Fix ci venv

* Fix ci venv source
2024-10-12 18:09:41 +08:00
Wu Clan a3d079cfdf Optimize the serialize return of SQLA select (#436) 2024-10-10 12:11:05 +08:00
Wu Clan c22d1394e7 Update interactive link descriptions (#434) 2024-10-08 22:12:46 +08:00
Wu Clan 03add792a1 Bump redis from 5.0.1 to 5.1.0 (#433)
* Bump redis from 5.0.1 to 5.1.0

* fix requirements.txt
2024-09-28 15:05:18 +08:00
Wu Clan ab4495ce65 Optimize and normalize the code generator (#430) 2024-09-24 13:50:02 +08:00
Wu Clan 1d3b0e7d13 Update official documentation link to README (#429) 2024-09-22 15:56:27 +08:00
Wu Clan 36a458b957 Fix the OAuth2 service login log task (#428) 2024-09-22 12:54:31 +08:00
Wu Clan 23d9d17d9f Fix pydantic field and model validator (#427) 2024-09-21 17:59:52 +08:00
Wu Clan 8da993655b Add request state middleware (#426)
* Add request state middleware

* Fix linux do OAuth2 redirect uri
2024-09-21 17:57:27 +08:00
Wu Clan 6792bf9954 Fix the missing OAuth2 interface parameters (#425) 2024-09-20 20:12:13 +08:00
Wu Clan 6cf30b3c5d Update synchronous function calls in JWT (#423) 2024-09-18 22:24:05 +08:00
Wu Clan eb23d1b5f9 Update multi login sync update refresh tokens (#422) 2024-09-18 22:23:40 +08:00
Wu Clan 29ba40ef32 Update JWT errors class import (#421) 2024-09-13 12:02:20 +08:00
Wu Clan 02f65abf74 Fix for create new token cache delete (#420) 2024-09-13 12:01:49 +08:00
Wu Clan f5b7de6910 Optimize the internal implementation of serializers (#419) 2024-09-11 16:40:05 +08:00
Wu Clan ac8e4a0406 Fix the gen model template formatting (#416) 2024-09-10 16:26:23 +08:00
Wu Clan b6821612af Fix exception logging in opera log (#417) 2024-09-10 16:19:19 +08:00
Wu Clan 8783d74cc7 Fix log output and logging levels (#414)
* Fix log output and logging levels

* update record order
2024-09-09 23:14:56 +08:00
Wu Clan 5a52871e7e Optimize exception info opera log record (#413) 2024-09-09 22:52:05 +08:00
Wu Clan 90b2cca984 Bump pydantic from 2.8.1 to 2.9.1 (#412) 2024-09-09 20:46:10 +08:00
Wu Clan 9c37297858 Update the global exception log stack (#406)
* Update the global exception log stack

* del todo
2024-09-09 15:56:38 +08:00
Wu Clan 1f95a776f0 Add trace ID to exception handlers (#411) 2024-09-09 15:46:13 +08:00
Wu Clan b13410c7d1 Optimize the naming of setting params (#410) 2024-09-09 11:50:22 +08:00
Wu Clan 9aa2d7b593 Add request trace ID record (#409)
* Fix cookie expiration time zone

* Fix the loss of cross-domain cookies

* Add request trace ID record

* Fix the dependency lock file
2024-09-09 10:43:34 +08:00
Wu Clan 1d956cace4 Fix cookie expiration time zone (#408)
* Fix cookie expiration time zone

* Fix the loss of cross-domain cookies
2024-09-08 17:33:51 +08:00
Wu Clan 4f5c5c28e6 Fix server monitor io blocking (#404) 2024-09-05 22:46:31 +08:00
Wu Clan 24528e6050 Updated refresh token storage logic (#403) 2024-09-05 21:37:25 +08:00
Wu Clan 7853233ddb Update the interactive link address (#402) 2024-09-04 20:06:25 +08:00
Wu Clan 51f3011947 Update code generate comment column format (#399) 2024-09-03 14:40:22 +08:00
Wu Clan 87432a74c2 Fix the user permissions update services (#397) 2024-09-01 20:23:25 +08:00
Wu Clan e19ae09966 Fix OAuth2 user query conditions (#396) 2024-09-01 20:22:58 +08:00
Wu Clan 8765f833d2 Fix code generation to new features (#393) 2024-08-31 18:08:24 +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 b43c08b5d2 Update redis cache prefix separator to : (#387)
* Update redis cache prefix separator to `:`

* Update refresh token redis prefix
2024-08-22 12:28:05 +08:00
Wu Clan 2002068d81 Fix logging when a login error occurs (#386) 2024-08-22 12:26:13 +08:00
Wu Clan c743182211 Optimize serialization and jwt performance (#382)
* Optimize serialization and algorithm performance

* Fix get tree data to async

* Removed CPU-intensive multi-threaded execution

* Update pdm pre commit to 2.18.0

* Add jwt user info cache

* Update ci

* Fix ci

* Fix redis delete prefix

* Adapt to JWT user instance

* Update jwt middleware token parse
2024-08-17 09:26:16 +08:00
Wu Clan 22586dd947 Add directory tree and update app notes (#380) 2024-08-13 10:45:54 +08:00
Wu Clan f61dc4fc84 Update user and auth error message (#379) 2024-08-11 21:54:46 +08:00
Wu Clan 144d704a5d Fix code generation model create and update (#378) 2024-08-11 21:32:09 +08:00
Wu Clan f30a18844e Remove current menu status auth (#374) 2024-08-11 21:00:27 +08:00
Wu Clan 043a622e67 Update code generate download api auth (#376) 2024-08-04 19:43:03 +08:00
Wu Clan a602dff739 Update some code generation api and params (#373)
* Update some code generation api and params

* Update get business api query

* Add get business models api

* Fix get business models api serialize

* Add get generate code path api

* Update download method post to get

* Add get model detail api

* Fix crud model method

* Fix get model api return

* Fix update model service

* Update create update model service

* Add code generate sql

* Add code generate api permissions

* Update code gen path join
2024-08-04 15:24:09 +08:00
Wu Clan 863dfed4ec Add custom code template pathname config (#372) 2024-07-28 12:38:05 +08:00
Wu Clan ceb8fb1cb2 Update code generate business model datetime column (#371) 2024-07-28 11:58:46 +08:00
Wu Clan 21fed49d7b Update access log cost time style (#370) 2024-07-27 12:04:22 +08:00
Wu Clan c9be643e76 Update create new token function return type (#369)
* Update create new token function return type

* update args input
2024-07-27 12:03:33 +08:00
Wu Clan 7287093772 Update operation log middleware info reading (#368)
* Fix operation log middleware summary reading

* update ua info and ip info

* update opera middle functions

* move dataclasses.py

* fix lint
2024-07-27 11:00:36 +08:00
Wu Clan 2112523b4c Fix celery asynchronous task execution (#367) 2024-07-26 19:00:38 +08:00
Wu Clan 34506c3039 Add page to display dynamic configuration (#365)
* Add page to display dynamic configuration

* update config data and api

* add config route

* update config api route

* update config api route

* fix config schema

* update config services
2024-07-25 19:11:06 +08:00
Wu Clan f94c2d7948 Fix code auto-generated model creation (#364) 2024-07-23 17:58:23 +08:00
Wu Clan 294d7ae9e9 Update crud user staff field logic (#363) 2024-07-23 15:48:40 +08:00
Wu Clan a0d47733a9 Bump fast captcha version to 0.3.2 (#362) 2024-07-22 23:31:00 +08:00
Wu Clan 581bed2a33 Update oauth2 route naming and return (#361)
* Update oauth2 route naming and storage

* Update some arg naming

* Update oauth2 redirect uri

* adapts to the front-end oauth2
2024-07-22 13:47:43 +08:00
Wu Clan f9c4028c60 Update the docker-compose deployment script (#360)
* Update the docker-compose deployment script

* fix typo

* Update docker compose fba_ui conf

* Update the docker compose fba_ui conf

* Add docker compose image repository name

* Update docker compose fba_ui comment
2024-07-21 09:55:39 +08:00
Wu Clan 9752ce8e92 Fix alembic migration failure caused by model (#359) 2024-07-18 20:22:34 +08:00
Wu Clan 3cfc95cb02 Add code generator to create init files (#358) 2024-07-18 18:05:56 +08:00
Wu Clan 3d12c3270e Fix gen model and schema template formatting (#356)
* Fix gen model column default value

* Update gen templates and schema_name storage

* Fix lint
2024-07-17 17:06:55 +08:00
Wu Clan 812b8a0fb7 Update code generation model column type storage (#352) 2024-07-12 21:21:01 +08:00
Wu Clan e5262f0b32 Fix model template conditional syntax (#351)
* Fix model template conditional syntax

* Update README
2024-07-12 16:42:30 +08:00
Wu Clan 42ee5d7355 Add code generator README document (#349)
* Update and enable access log middleware

* Add code generator README document

* additional doc
2024-07-10 17:08:15 +08:00
Wu Clan 5a283b1c3c Update and enable access log middleware (#348) 2024-07-10 16:47:23 +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 85c16de32b Fix user social binding query (#344) 2024-07-08 16:27:26 +08:00
Wu Clan 9aa74afff1 Add Linux Do OAuth2 login (#343)
* Add Linux Do OAuth2 login

* Adapt to linux do oauth2 email field

* Fix get user email logic

* Fix lint
2024-07-07 17:39:54 +08:00
Wu Clan f21af0c3c3 Update app route definition rules (#341) 2024-07-02 09:29:22 +08:00
Wu Clan af101d57fe Update the tree structure traversal algorithm (#338) 2024-07-02 08:49:40 +08:00
Wu Clan 1ad5482a22 Restore the main startup of fastapi service (#336) 2024-06-16 14:09:14 +08:00
Wu Clan 805a5a4e96 Add test account to README (#330) 2024-06-08 23:47:35 +08:00
Wu Clan 08a8acb9ea Update the opera log middleware task (#326)
* Update the opera log middleware task

* Delete task await
2024-06-03 12:58:05 +08:00
Wu Clan dd474cdc08 Add interface fast response method (#327) 2024-06-03 12:46:05 +08:00
Wu Clan 84c16bc983 Delete the gzip middleware to improve performance (#325) 2024-06-03 12:45:42 +08:00
Wu Clan 2589ddcdf6 Upgrade and update fastapi service startup (#319) 2024-05-04 22:39:09 +08:00
Wu Clan eb8dfda8fa Update CRUDBase to sqlalchemy-crud-plus (#317)
* Update CRUDBase to dependent package

* Update sqla crud plus to 0.0.2
2024-04-27 23:07:40 +08:00
Wu Clan 9edb72d065 Fix missing data from alembic migration (#312) 2024-04-12 11:38:18 +08:00
Wu Clan 406116a230 Add backend scripts description (#309) 2024-03-31 19:48:58 +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 8af4336428 Update interface file directory level (#295)
* Update interface file directory level

* fix ruff format
2024-02-25 20:48:25 +08:00
Wu Clan 115b6f0b30 Update the response status code in exception handlers (#292) 2024-02-20 10:40:21 +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 94cbc629cd Fix custom validator exception serialization in dev mode (#278)
* Fix custom validator exception serialization in dev mode

* Fix formatting judgment conditions
2024-01-24 10:17:20 +08:00
Wu Clan 4f1d1c2094 Add custom email string type (#277) 2024-01-24 10:17:04 +08:00
Wu Clan cd96d2f5cd Update dao and service instantiation styles (#276)
* Update dao and service instantiation styles

* Fix auth_service use
2024-01-22 10:22:13 +08:00