diff --git a/pkg/base_info/friend_api_struct.go b/pkg/base_info/friend_api_struct.go index e587853f57187d8a4654380a7c52d19809fd0418..2522288a80b5455670c4f8c0e86dc35b71a8c8e7 100644 --- a/pkg/base_info/friend_api_struct.go +++ b/pkg/base_info/friend_api_struct.go @@ -37,7 +37,7 @@ type AddFriendResponseReq struct { ParamsCommFriend //binding:"oneof=0 1 2"` //} - Flag int32 `json:"flag" binding:"required,oneof=0 1"` + Flag int32 `json:"flag" binding:"required,oneof=-1 0 1"` HandleMsg string `json:"handleMsg"` } type AddFriendResponseResp struct {