|
@@ -45,6 +45,14 @@ type (
|
|
|
// Contact information | Contact数据
|
|
|
Data ContactInfo `json:"data"`
|
|
|
}
|
|
|
+
|
|
|
+ AddNewFriendReq {
|
|
|
+ OwnerWxid string `json:"ownerWxid"`
|
|
|
+ Wxid string `json:"wxid"`
|
|
|
+ Gid string `json:"gid"`
|
|
|
+ Desc string `json:"desc"`
|
|
|
+ AddType string `json:"addType"`
|
|
|
+ }
|
|
|
)
|
|
|
|
|
|
@server(
|
|
@@ -73,4 +81,7 @@ service Wechat {
|
|
|
// Get contact by ID | 通过ID获取Contact
|
|
|
@handler getContactById
|
|
|
post /contact (IDReq) returns (ContactInfoResp)
|
|
|
+
|
|
|
+ @handler addNewFriend
|
|
|
+ post /contact/addNewFriend (AddNewFriendReq) returns (BaseMsgResp)
|
|
|
}
|