feat(plugin): 批量操作端点 — batch_delete + batch_update
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user