From 23fd3272d0dc1be4b0a92bc7b32a66ce8648b2e2 Mon Sep 17 00:00:00 2001 From: ljl <17743125563@163.com> Date: Mon, 25 Mar 2024 18:34:43 +0800 Subject: [PATCH] spi-stats:fix delete fact col kind. --- spi/spi-stats/src/api/ci/stats_ci_conf_api.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs b/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs index f1ffa4bc6..6d52f1b9a 100644 --- a/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs +++ b/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs @@ -151,6 +151,21 @@ impl StatsCiConfApi { TardisResp::ok(Void {}) } + /// Delete Fact Column Configuration + #[oai(path = "/fact/:fact_key/col/:fact_col_key/kind/:kind", method = "delete")] + async fn fact_col_kind_delete( + &self, + fact_key: Path, + fact_col_key: Path, + kind: Path, + rel_external_id: Query>, + ctx: TardisContextExtractor, + ) -> TardisApiResult { + let funs = crate::get_tardis_inst(); + stats_conf_serv::fact_col_delete(&fact_key.0, Some(fact_col_key.0.as_str()), rel_external_id.0, Some(kind.0), &funs, &ctx.0).await?; + TardisResp::ok(Void {}) + } + /// Delete All Column Configuration #[oai(path = "/fact/:fact_key/kind/:kind", method = "delete")] async fn fact_col_delete_by_kind(