From 77a8c1a1d5881e9760ba25f653f578aa52f7ffef Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Mon, 25 Dec 2023 18:16:24 +0800 Subject: [PATCH] fix: fix the error of tag --- pkg/apistruct/manage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apistruct/manage.go b/pkg/apistruct/manage.go index 89996c6a8..f9f542835 100644 --- a/pkg/apistruct/manage.go +++ b/pkg/apistruct/manage.go @@ -60,7 +60,7 @@ type SendMsg struct { // SendMsgReq extends SendMsg with the requirement of RecvID when SessionType indicates a one-on-one or notification chat. type SendMsgReq struct { // RecvID uniquely identifies the receiver and is required for one-on-one or notification chat types. - RecvID string `json:"recvID" binding:"required_if" message:"recvID is required if sessionType is SingleChatType or NotificationChatType" binding:"required"` + RecvID string `json:"recvID" binding:"required_if" message:"recvID is required if sessionType is SingleChatType or NotificationChatType"` SendMsg }