ソースを参照

增加字段值

lichangdong 4 日 前
コミット
48340fc768

+ 1 - 0
desc/wechat/add_wechat_friend_log.api

@@ -36,6 +36,7 @@ type (
         OwnerWxType  *string `json:"wxType,optional"`
         FindContent  *string `json:"phone,optional"`
         Status *string `json:"status,optional"`
+        StatusInt *int `json:"statusInt,optional"`
         ErrMessage  *string `json:"errMessage,optional"`
         TaskCount  *int `json:"taskCount,optional"`
         isShow  *int `json:"isShow,optional"`

+ 8 - 6
internal/logic/add_friend/add_friend_list_logic.go

@@ -82,15 +82,17 @@ func (l *AddFriendListLogic) AddFriendList(req *types.AddFriendListReq) (resp *t
 				OwnerWxId:   &v.OwnerWxID,
 				OwnerWxType: &wxString,
 				FindContent: &v.FindContent,
+				StatusInt:   &v.IsCanAdd,
 				Status: func() *string {
 					statusMap := map[int]string{
 						1: "待执行",
-						2: "成功申请",
-						3: "执行错误",
-						4: "用户不存在",
-						5: "后台取消",
-						6: "已是好友",
-						7: "成功邀请",
+						2: "已执行",
+						3: "成功申请",
+						4: "执行错误",
+						5: "用户不存在",
+						6: "后台取消",
+						7: "已是好友",
+						8: "成功邀请",
 					}
 					statusStr := statusMap[v.IsCanAdd]
 					return &statusStr

+ 1 - 0
internal/types/types.go

@@ -4755,6 +4755,7 @@ type FriendList struct {
 	OwnerWxType *string `json:"wxType,optional"`
 	FindContent *string `json:"phone,optional"`
 	Status      *string `json:"status,optional"`
+	StatusInt   *int    `json:"statusInt,optional"`
 	ErrMessage  *string `json:"errMessage,optional"`
 	TaskCount   *int    `json:"taskCount,optional"`
 	IsShow      *int    `json:"isShow,optional"`