From a8e13d86e2ac0be7f08bc771575c5313085c9245 Mon Sep 17 00:00:00 2001 From: wenxu12345 <44203734@qq.com> Date: Wed, 29 Dec 2021 13:30:50 +0800 Subject: [PATCH] Refactor code --- pkg/base_info/friend_api_struct.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/base_info/friend_api_struct.go b/pkg/base_info/friend_api_struct.go index ba1290a44..e587853f5 100644 --- a/pkg/base_info/friend_api_struct.go +++ b/pkg/base_info/friend_api_struct.go @@ -35,7 +35,9 @@ type AddFriendResp struct { type AddFriendResponseReq struct { ParamsCommFriend - Flag int32 `json:"flag" binding:"required, oneof=-1 1"` + //binding:"oneof=0 1 2"` + //} + Flag int32 `json:"flag" binding:"required,oneof=0 1"` HandleMsg string `json:"handleMsg"` } type AddFriendResponseResp struct {