From 04722986d1b81e97305e85179beadf4581a4e9c2 Mon Sep 17 00:00:00 2001 From: xcx Date: Tue, 7 Apr 2020 16:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/api.go b/api/api.go index 04595bb..babcfd4 100644 --- a/api/api.go +++ b/api/api.go @@ -31,6 +31,21 @@ func UserSig(identifier string, expire int) string { return sig } +//单个账号导入 +type AccountImportReq struct { + Identifier string `json:"Identifier"` //:"test", + Nick string `json:"Nick"` //:"test", + FaceUrl string `json:"FaceUrl"` //:"http://www.qq.com" +} +type AccountImportAns struct{} + +func AccountImport(r *AccountImportReq) (*AccountImportAns, error) { + a := AccountImportAns{} + err := Api("im_open_login_svc", "account_import", r, &a) + return &a, err +} + +//建群 //https://cloud.tencent.com/document/product/269/1615 type GroupCreateReq struct { OwnerAccount string `json:"Owner_Account"` @@ -48,6 +63,7 @@ func GroupCreate(r *GroupCreateReq) (*GroupCreateAns, error) { return &a, err } +//资料设置 type ProfileSetReq struct { FromAccount string `json:"From_Account"` ProfileItem []*ProfileSetReqItem `json:"ProfileItem"`