test(work): 适配新的模型测试

This commit is contained in:
Fu Diwei
2021-06-05 16:38:28 +08:00
parent 0d6feba1df
commit d70996c8fc
66 changed files with 664 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{
"mobiles": [
"10000000000",
"10000000001"
]
}

View File

@@ -0,0 +1,18 @@
{
"errcode": 0,
"errmsg": "ok",
"success_list": [
{
"mobile": "18900000000",
"external_userid": "aaabbbcccc",
"foreign_key": "zhangsan"
}
],
"fail_list": [
{
"errcode": 60136,
"errmsg": "record not found",
"mobile": "10000000001"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"openid": "ooAAAAAAAAAAA"
}

View File

@@ -4,6 +4,7 @@
"external_contact": {
"external_userid": "woAJ2GCAAAXtWyujaWJHDDGi0mACHAAA",
"name": "李四",
"foreign_key": "lisi",
"position": "Manager",
"avatar": "http://p.qlogo.cn/bizmail/IcsdgagqefergqerhewSdage/0",
"corp_name": "腾讯",
@@ -11,6 +12,18 @@
"type": 2,
"gender": 1,
"unionid": "ozynqsulJFCZ2z1aYeS8h-nuasdAAA",
"is_subscribe": 1,
"subscriber_info": {
"tag_id": [
"TAG_ID1",
"TAG_ID2"
],
"remark_mobiles": [
"10000000000",
"10000000001"
],
"remark": "李小明-爸爸"
},
"external_profile": {
"external_attr": [
{

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"subscribe_mode": 1
}

View File

@@ -0,0 +1,7 @@
{
"errcode": 0,
"errmsg": "ok",
"qrcode_big": "http://p.qpic.cn/wwhead/XXXX",
"qrcode_middle": "http://p.qpic.cn/wwhead/XXXX",
"qrcode_thumb": "http://p.qpic.cn/wwhead/XXXX"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"view_mode": 1
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,4 @@
{
"upgrade_time": 1594090969,
"upgrade_switch": 2
}

View File

@@ -0,0 +1,5 @@
{
"next_upgrade_time": 1625587200,
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,21 @@
{
"name": "一年级",
"parentid": 5,
"id": 2,
"type": 1,
"register_year": 2018,
"standard_grade": 1,
"order": 1,
"department_admins": [
{
"userid": "zhangsan",
"type": 4,
"subject": "语文"
},
{
"userid": "lisi",
"type": 3,
"subject": "数学"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "created",
"id": 2
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "deleted"
}

View File

@@ -0,0 +1,46 @@
{
"errcode": 0,
"errmsg": "ok",
"departments": [
{
"name": "一年级",
"parentid": 1,
"id": 2,
"type": 2,
"register_year": 2018,
"standard_grade": 1,
"order": 1,
"department_admins": [
{
"userid": "zhangsan",
"type": 1
},
{
"userid": "lisi",
"type": 2
}
],
"is_graduated": 0
},
{
"name": "一年级一班",
"parentid": 1,
"id": 3,
"type": 1,
"department_admins": [
{
"userid": "zhangsan",
"type": 3,
"subject": "语文"
},
{
"userid": "lisi",
"type": 4,
"subject": "数学"
}
],
"open_group_chat": 1,
"group_chat_id": "group_chat_id"
}
]
}

View File

@@ -0,0 +1,23 @@
{
"name": "一年级",
"parentid": 5,
"id": 2,
"register_year": 2018,
"standard_grade": 1,
"order": 1,
"new_id": 100,
"department_admins": [
{
"op": 0,
"userid": "zhangsan",
"type": 3,
"subject": "语文"
},
{
"op": 1,
"userid": "lisi",
"type": 4,
"subject": "数学"
}
]
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "updated"
}

View File

@@ -0,0 +1,21 @@
{
"errcode": 0,
"errmsg": "ok",
"living_info": {
"theme": "直角三角形讲解",
"living_start": 1586405229,
"living_duration": 1800,
"anchor_userid": "zhangsan",
"living_range": {
"partyids": [ 1, 4, 9 ],
"group_names": [
"group_name1",
"group_name2"
]
},
"viewer_num": 100,
"comment_num": 110,
"open_replay": 1,
"push_stream_url": "https://www.qq.test.com"
}
}

View File

@@ -0,0 +1,4 @@
{
"livingid": "livingid1",
"next_key": "NEXT_KEY"
}

View File

@@ -0,0 +1,25 @@
{
"errcode": 0,
"errmsg": "ok",
"ending": 1,
"next_key": "NEXT_KEY",
"stat_info": {
"students": [
{
"student_userid": "zhansan_child",
"parent_userid": "zhangsan",
"partyids": [
10,
11
]
},
{
"student_userid": "lisi_child",
"parent_userid": "lisi",
"partyids": [
5
]
}
]
}
}

View File

@@ -0,0 +1,4 @@
{
"livingid": "livingid1",
"next_key": "NEXT_KEY"
}

View File

@@ -0,0 +1,50 @@
{
"errcode": 0,
"errmsg": "ok",
"ending": 1,
"next_key": "NEXT_KEY",
"stat_infoes": {
"students": [
{
"student_userid": "zhansan_child",
"parent_userid": "zhangsan",
"partyids": [
10,
11
],
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 1
},
{
"student_userid": "lisi_child",
"parent_userid": "lisi",
"partyids": [
10,
11
],
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 0
}
],
"visitors": [
{
"nickname": "wx_nickname1",
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 1
},
{
"nickname": "wx_nickname2",
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 0
}
]
}
}

View File

@@ -0,0 +1,41 @@
{
"errcode": 0,
"errmsg": "ok",
"user_type": 1,
"student": {
"student_userid": "zhangsan",
"name": "张三",
"department": [ 1, 2 ],
"parents": [
{
"parent_userid": "zhangsan_parent1",
"relation": "爸爸",
"mobile": "18000000000",
"is_subscribe": 1,
"external_userid": "xxxxx"
},
{
"parent_userid": "zhangsan_parent2",
"relation": "妈妈",
"mobile": "18000000001",
"is_subscribe": 0
}
]
},
"parent": {
"parent_userid": "zhangsan_parent2",
"mobile": "18000000003",
"is_subscribe": 1,
"external_userid": "xxxxx",
"children": [
{
"student_userid": "zhangsan",
"relation": "妈妈"
},
{
"student_userid": "lisi",
"relation": "伯母"
}
]
}
}

View File

@@ -0,0 +1,31 @@
{
"errcode": 0,
"errmsg": "ok",
"parents": [
{
"parent_userid": "zhangsan_parent",
"mobile": "18900000000",
"is_subscribe": 1,
"external_userid": "xxx",
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸",
"name": "张三"
}
]
},
{
"parent_userid": "lisi_parent",
"mobile": "18900000001",
"is_subscribe": 0,
"children": [
{
"student_userid": "lisi",
"relation": "妈妈",
"name": "李四"
}
]
}
]
}

View File

@@ -0,0 +1,47 @@
{
"errcode": 0,
"errmsg": "ok",
"students": [
{
"student_userid": "zhangsan",
"name": "张三",
"department": [ 1, 2 ],
"parents": [
{
"parent_userid": "zhangsan_parent1",
"relation": "爸爸",
"mobile": "18000000001",
"is_subscribe": 1,
"external_userid": "xxx"
},
{
"parent_userid": "zhangsan_parent2",
"relation": "妈妈",
"mobile": "18000000002",
"is_subscribe": 0
}
]
},
{
"student_userid": "lisi",
"name": "李四",
"department": [ 4, 5 ],
"parents": [
{
"parent_userid": "lisi_parent1",
"relation": "爷爷",
"mobile": "18000000003",
"is_subscribe": 1,
"external_userid": "xxx"
},
{
"parent_userid": "lisi_parent2",
"relation": "妈妈",
"mobile": "18000000004",
"is_subscribe": 1,
"external_userid": "xxx"
}
]
}
]
}

View File

@@ -0,0 +1,33 @@
{
"parents": [
{
"parent_userid": "zhangsan_parent_userid",
"mobile": "18000000000",
"to_invite": false,
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸"
},
{
"student_userid": "lisi",
"relation": "伯父"
}
]
},
{
"parent_userid": "lisi_parent_userid",
"mobile": "18000000001",
"children": [
{
"student_userid": "lisi",
"relation": "爸爸"
},
{
"student_userid": "zhangsan",
"relation": "伯父"
}
]
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 1,
"errmsg": "invalid parent_userid: lisi_parent_userid",
"result_list": [
{
"parent_userid": "lisi_parent_userid",
"errcode": 1,
"errmsg": "invalid parent_userid: lisi_parent_userid"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 1111,
"errmsg": "userid not found",
"result_list": [
{
"parent_userid": "lisi",
"errcode": 1111,
"errmsg": "userid not found"
}
]
}

View File

@@ -0,0 +1,25 @@
{
"parents": [
{
"parent_userid": "zhangsan_baba",
"new_parent_userid": "zhangsan_baba_new",
"mobile": "10000000000",
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸"
}
]
},
{
"parent_userid": "lisi_mama",
"mobile": "10000000001",
"children": [
{
"student_userid": "lisi",
"relation": "妈妈"
}
]
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 1,
"errmsg": "invalid parent_userid: lisi_parent_userid",
"result_list": [
{
"parent_userid": "lisi_parent_userid",
"errcode": 1,
"errmsg": "invalid parent_userid: lisi_parent_userid"
}
]
}

View File

@@ -0,0 +1,15 @@
{
"parent_userid": "zhangsan_parent_userid",
"mobile": "10000000000",
"to_invite": false,
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸"
},
{
"student_userid": "lisi",
"relation": "伯父"
}
]
}

View File

@@ -0,0 +1,15 @@
{
"parent_userid": "zhangsan_parent_userid",
"new_parent_userid": "NEW_ID",
"mobile": "18000000000",
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸"
},
{
"student_userid": "lisi",
"relation": "伯父"
}
]
}

View File

@@ -0,0 +1,14 @@
{
"students": [
{
"student_userid": "zhangsan",
"name": "张三",
"department": [ 1, 2 ]
},
{
"student_userid": "lisi",
"name": "李四",
"department": [ 3, 4 ]
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 1,
"errmsg": "invalid student_userid: zhangsan",
"result_list": [
{
"student_userid": "zhangsan",
"errcode": 1,
"errmsg": "invalid student_userid: zhangsan"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 1111,
"errmsg": "userid not found",
"result_list": [
{
"student_userid": "lisi",
"errcode": 1111,
"errmsg": "userid not found"
}
]
}

View File

@@ -0,0 +1,15 @@
{
"students": [
{
"student_userid": "zhangsan",
"new_student_userid": "zhangsan_new",
"name": "张三",
"department": [ 1, 2 ]
},
{
"student_userid": "lisi",
"name": "李四",
"department": [ 3, 4 ]
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 1,
"errmsg": "invalid student_userid: zhangsan",
"result_list": [
{
"student_userid": "zhangsan",
"errcode": 1,
"errmsg": "invalid student_userid: zhangsan"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"student_userid": "zhangsan",
"name": "张三",
"department": [ 1, 2 ]
}

View File

@@ -0,0 +1,6 @@
{
"student_userid": "zhangsan",
"new_student_userid": "NEW_ID",
"name": "张三",
"department": [ 1, 2 ]
}

View File

@@ -4,5 +4,15 @@
"UserId": "USERID",
"DeviceId": "DEVICEID",
"OpenId": "OPENID",
"external_userid": "EXTERNAL_USERID"
"external_userid": "EXTERNAL_USERID",
"parents": [
{
"corpid": "wxCorpId1",
"parent_userid": "zhangsan"
},
{
"corpid": "wxCorpId2",
"parent_userid": "lisi"
}
]
}