From 8bf1cad94113d5c604e95e370cf068efdea87d27 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 30 八月 2023 09:43:49 +0800
Subject: [PATCH] fix
---
api/v1/serviceOrder.go | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/api/v1/serviceOrder.go b/api/v1/serviceOrder.go
index f76babe..887979d 100644
--- a/api/v1/serviceOrder.go
+++ b/api/v1/serviceOrder.go
@@ -66,6 +66,29 @@
ctx.Ok()
}
+// BatchDelete
+// @Tags 鏈嶅姟鍗�
+// @Summary 鎵归噺鍒犻櫎鏈嶅姟鍗�
+// @Produce application/json
+// @Param object body request.CommonIds true "鍙傛暟"
+// @Success 200 {object} contextx.Response{}
+// @Router /api/serviceOrder/delete [delete]
+func (s *ServiceOrderApi) BatchDelete(c *gin.Context) {
+ var params request.CommonIds
+ ctx, ok := contextx.NewContext(c, ¶ms)
+ if !ok {
+ return
+ }
+
+ errCode := service.NewServiceOrderService().BatchDeleteServiceOrder(params.Ids)
+ if errCode != ecode.OK {
+ ctx.Fail(errCode)
+ return
+ }
+
+ ctx.Ok()
+}
+
// Update
// @Tags 鏈嶅姟鍗曠鐞�
// @Summary 鏇存柊鏈嶅姟鍗�
--
Gitblit v1.8.0