From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

---
 service/contract.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/contract.go b/service/contract.go
index 2072299..2910f87 100644
--- a/service/contract.go
+++ b/service/contract.go
@@ -40,9 +40,9 @@
 	return contacts, total, ecode.OK
 }
 
-func (ContractService) DeleteContract(ids []int) int {
+func (ContractService) DeleteContract(id int) int {
 	// delete client
-	err := model.NewContractSearch().SetIds(ids).Delete()
+	err := model.NewContractSearch().SetId(id).Delete()
 	if err != nil {
 		return ecode.ContractDeleteErr
 	}

--
Gitblit v1.8.0