51 Commits

Author SHA1 Message Date
4500dd0128 Add a standalone email sending plugin (#769) 2025-08-13 18:09:42 +08:00
2b6d8222ad Update the content layout of the config file (#768) 2025-08-13 18:07:02 +08:00
e09062eb39 Optimize the opera log storage logic through queue (#750)
*  feat: 操作日志中间件添加批量插入功能

* Delete GEMINI.md

* 🌈 style: 修复格式化错误

* 🐞 fix: 通过asyncio.wait_for兼容py3.10中asyncio.timeout不存在

* 🦄 refactor: 重新组织操作日志批量插入代码逻辑

* 优化代码实现

* 恢复默认配置

* 恢复默认 .gitignore 文件

* 更新队列批处理逻辑
2025-08-07 17:36:10 +08:00
8c00492e44 Update the naming of table creation function (#760) 2025-08-07 16:57:57 +08:00
0237d4c7b1 Update log output config and format (#759) 2025-08-07 16:46:56 +08:00
53e64bce37 Add auth whitelist regular expression config (#738) 2025-07-24 21:34:24 +08:00
d7f87ed0ad Update the default cache period for userinfo (#734) 2025-07-21 21:31:55 +08:00
ce3be1db8e Add support for celery dynamic tasks (#715)
* Add support for celery dynamic tasks

* Update the celery conf

* Update the celery task tables name

* Refactor the celery task-related interfaces

* Optimize auto-discovery tasks

* Remove redundant config

* Refine the business codes

* Optimize crontab validation returns

* Update dependencies in pyproject toml

* Fix some bugs

* Update dependencies

* Update the version to 1.7.0

* Fix update and delete event
2025-07-11 07:54:33 +08:00
2bbbbe764a Update the log output default style (#714)
* Update the log output default style

* Update the log file compression

* fix line

* Add log summary
2025-07-06 14:32:36 +08:00
ef5e921c08 Update the middleware logging accuracy (#713)
* Update the middleware logging accuracy

* Update the log style
2025-07-05 19:52:37 +08:00
234bf708b3 Fix the code with outdated system config (#683) 2025-06-23 22:23:06 +08:00
408c866dda Update cache cleanup for logout interface (#678)
* Update cache cleanup for logout interface

* Add dependencies of interface
2025-06-22 23:41:48 +08:00
5621daea98 Update the version to 1.5.0 (#663) 2025-06-09 21:32:12 +08:00
1a7734185f Fix non-asyncio nested async IO (#610)
* Fix non-asyncio nested async IO

* Add redis init ping
2025-05-20 18:11:11 +08:00
1e54b0ba42 Add plugin info config and interfaces (#601)
* Add plugin info config and interfaces

* Remove test data
2025-05-15 20:50:24 +08:00
27b9cf4c64 Simplify apps and plugins config method (#600) 2025-05-13 13:16:06 +08:00
032364e48e Refactor the data rule to scope rule (#596)
* WIP

* update codes

* update codes

* update filter_data_permission

* Fix schema

* Fix issues
2025-04-28 18:15:52 +08:00
9b3425d801 Update the default RBAC solution (#593) 2025-04-27 14:54:39 +08:00
da8e7c1b01 Fix the plugin system route injection (#581) 2025-04-18 23:09:25 +08:00
fc34c98f0a Update the code generator to plugin (#578)
* Update the code generator to plugin

* Fix get all tables return type
2025-04-17 11:06:43 +08:00
6c70b34ae6 Optimize the file structure of code generator (#574) 2025-04-15 19:54:18 +08:00
e492cec7d7 Optimize codes and comments with cursor (#550) 2025-03-28 10:08:32 +08:00
a4a394a18d Optimize the dynamic import of data models (#546) 2025-03-16 15:13:09 +08:00
554a6f59bd Add plugin related interfaces (#535)
* Add plugin related interfaces

* Update interface auth

* Add build plugin zip service
2025-03-01 15:58:41 +08:00
68d41cf028 Add log module root and output levels (#534) 2025-02-27 15:38:41 +08:00
3f9badd4b9 Add sqlalchemy connection pool config (#529) 2025-02-25 15:46:10 +08:00
6d44f807a7 Update loguru and deploy log config (#517)
* Update loguru config

* Update config

* fix log level

* Update deploy log config
2025-02-24 12:17:05 +08:00
9602e28429 Add local file upload interfaces (#489)
* Add the alibaba cloud oss plugin

* Update oss plugin struct

* Add local upload
2025-02-21 20:18:35 +08:00
5e7a4e1e74 Update casbin rbac verify to plugin (#513)
* Update casbin rbac verify to plugin

* Update requirements

* move sys api to casbin plugin

* Update plugin toml and parse

* Fix plugin router inject

* Update api prefix to apis
2025-02-17 13:41:11 +08:00
d9985f9d4d Add plugin system and notice plugin (#503)
* Update system notice to plugin

* Add plugin model alembic support

* update plugin conf

* add plugin route injection

* update plugin route inject

* fix and optimize plugin router inject
2025-02-13 21:19:49 +08:00
1d1a917580 Fix fastapi config variable naming and type (#506) 2025-02-08 11:47:45 +08:00
3b65679fb0 Add token related interfaces (#495) 2025-01-23 13:12:46 +08:00
3fe0023a0a Update redocs arg and url to redoc (#493) 2025-01-17 16:06:30 +08:00
e0606d115c Update the route version define location (#485)
* Update the route version define location

* fix lint
2025-01-10 14:00:26 +08:00
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
a9b9b58290 Fix and update alembic env and ini (#474) 2024-12-11 19:55:46 +08:00
bd45022a59 Update role-based data permissions (#465)
* Add department data operation permissions

* Update sys models

* Add role department many-to-many relationship

* Format RBAC code

* update codes

* add update role depts api

* add comments

* Update the implementation

* update dept arg

* debug front

* Update the model file naming

* Refactor the data perms

* Add data permission rule

* Optimize the details

* Implement data filtering

* finish
2024-11-23 21:23:52 +08:00
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
8da993655b Add request state middleware (#426)
* Add request state middleware

* Fix linux do OAuth2 redirect uri
2024-09-21 17:57:27 +08:00
b13410c7d1 Optimize the naming of setting params (#410) 2024-09-09 11:50:22 +08:00
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
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
24528e6050 Updated refresh token storage logic (#403) 2024-09-05 21:37:25 +08:00
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
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
5a283b1c3c Update and enable access log middleware (#348) 2024-07-10 16:47:23 +08:00
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
3b060c73b2 Refactor global log default handler (#347)
* 🦄 refactor: optimize log output

Unified log output using the loguru logging library

* 🌈 style: pre-commit fix

* 🌈 style: pre-commit fix

* Clean up and update some code

* Update default log output style
2024-07-09 18:40:25 +08:00
84c16bc983 Delete the gzip middleware to improve performance (#325) 2024-06-03 12:45:42 +08:00
2589ddcdf6 Upgrade and update fastapi service startup (#319) 2024-05-04 22:39:09 +08:00