diff --git a/pkg/base_info/friend_api_struct.go b/pkg/base_info/friend_api_struct.go index a45e7ccfa..ba1290a44 100644 --- a/pkg/base_info/friend_api_struct.go +++ b/pkg/base_info/friend_api_struct.go @@ -35,7 +35,7 @@ type AddFriendResp struct { type AddFriendResponseReq struct { ParamsCommFriend - Flag int32 `json:"flag" binding:"required"` + Flag int32 `json:"flag" binding:"required, oneof=-1 1"` HandleMsg string `json:"handleMsg"` } type AddFriendResponseResp struct {