mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Update the new plugin status to changed (#607)
* Fix cache update after plugin uninstall * Update new to changed
This commit is contained in:
@@ -22,9 +22,9 @@ async def get_all_plugins() -> ResponseSchemaModel[list[dict[str, Any]]]:
|
||||
return response_base.success(data=plugins)
|
||||
|
||||
|
||||
@router.get('/new', summary='是否存在新插件', dependencies=[DependsJwtAuth])
|
||||
async def has_new_plugins() -> ResponseSchemaModel[bool]:
|
||||
plugins = await plugin_service.has_new()
|
||||
@router.get('/changed', summary='插件状态是否变更', dependencies=[DependsJwtAuth])
|
||||
async def plugin_changed() -> ResponseSchemaModel[bool]:
|
||||
plugins = await plugin_service.changed()
|
||||
return response_base.success(data=bool(plugins))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user