feat(plugin): 批量操作端点 — batch_delete + batch_update

This commit is contained in:
iven
2026-04-17 10:58:34 +08:00
parent 022ac951c9
commit c487a94f19
4 changed files with 166 additions and 2 deletions

View File

@@ -72,3 +72,14 @@ pub struct CountQueryParams {
/// JSON 格式过滤: {"field":"value"}
pub filter: Option<String>,
}
/// 批量操作请求
#[derive(Debug, Serialize, Deserialize, utoipa::ToSchema)]
pub struct BatchActionReq {
/// 操作类型: "batch_delete" 或 "batch_update"
pub action: String,
/// 记录 ID 列表(上限 100
pub ids: Vec<String>,
/// batch_update 时的更新数据
pub data: Option<serde_json::Value>,
}