-
Notifications
You must be signed in to change notification settings - Fork 1
/
users_test.go
67 lines (57 loc) · 1.16 KB
/
users_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package tests
import (
"testing"
"github.com/bianjieai/avata-sdk-go/v3/models"
)
// 创建钱包用户接口请求示例 p2s3Y1a0H3w130Z8
func TestCreateUsers(t *testing.T) {
params := &models.CreateUsersReq{
PhoneNum: "",
}
result, err := client.Users.CreateUsers(params)
if err != nil {
t.Log(err)
return
}
t.Logf("%+v \n", result)
}
// 认证钱包用户接口请求示例
func TestKycUsers(t *testing.T) {
params := &models.KycUsersReq{
UserType: 1,
UserID: "",
Name: "",
CertificateNum: "",
}
result, err := client.Users.KycUsers(params)
if err != nil {
t.Log(err)
return
}
t.Logf("%+v \n", result)
}
// 更新钱包用户接口请求示例
func TestEditUsers(t *testing.T) {
params := &models.EditUsersReq{
UserID: "",
PhoneNum: "",
}
result, err := client.Users.EditUsers(params)
if err != nil {
t.Log(err)
return
}
t.Logf("%+v \n", result)
}
// 查询钱包用户信息接口请求示例
func TestQueryUsers(t *testing.T) {
params := &models.QueryUsersReq{
PhoneNum: "",
}
result, err := client.Users.QueryUsers(params)
if err != nil {
t.Log(err)
return
}
t.Logf("%+v \n", result)
}