From 38427bd1931107447652cde2ccd69eb0c1ebd4cf Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 03 八月 2023 13:59:31 +0800
Subject: [PATCH] fix

---
 service/followRecord.go |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/service/followRecord.go b/service/followRecord.go
index 44b464b..b4e9dae 100644
--- a/service/followRecord.go
+++ b/service/followRecord.go
@@ -57,3 +57,21 @@
 	}
 	return ecode.OK
 }
+
+func (FollowRecordService) Assign(ids []int, memberId int) int {
+	// check followRecord exist
+	//errCode := checkFollowRecordExist(id)
+	//if errCode != ecode.OK {
+	//	return errCode
+	//}
+
+	// assign followRecord
+	err := model.NewFollowRecordSearch().SetIds(ids).UpdateMap(map[string]interface{}{
+		"member_id": memberId,
+	})
+	if err != nil {
+		return ecode.FollowRecordAssignErr
+	}
+
+	return ecode.OK
+}

--
Gitblit v1.8.0