feat(admin): 实现系统数据导入导出功能,支持提供商和模型批量配置

This commit is contained in:
fawney19
2026-04-11 21:39:04 +08:00
parent 801e16c988
commit a9f610fa69
36 changed files with 3247 additions and 409 deletions
@@ -1,4 +1,5 @@
use super::ADMIN_USERS_DATA_UNAVAILABLE_DETAIL;
use crate::handlers::admin::shared::AdminTypedObjectPatch;
use axum::{
body::Body,
http,
@@ -94,12 +95,7 @@ pub(super) struct AdminUpdateUserRequest {
pub(super) is_active: Option<bool>,
}
#[derive(Debug, Default)]
pub(super) struct AdminUpdateUserFieldPresence {
pub(super) allowed_providers: bool,
pub(super) allowed_api_formats: bool,
pub(super) allowed_models: bool,
}
pub(super) type AdminUpdateUserPatch = AdminTypedObjectPatch<AdminUpdateUserRequest>;
pub(super) fn build_admin_users_data_unavailable_response() -> Response<Body> {
(