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

This commit is contained in:
Fu Diwei
2021-06-04 21:43:58 +08:00
parent 5a35c5cf1d
commit 3e491dc2f5
24 changed files with 894 additions and 0 deletions

View File

@@ -0,0 +1,170 @@
{
"creator_userid": "WangXiaoMing",
"template_id": "3Tka1eD6v6JfzhDMqPd3aMkFdxqtJMc2ZRioeFXkaaa",
"use_template_approver": 0,
"choose_department": 2,
"approver": [
{
"attr": 2,
"userid": [ "WuJunJie", "WangXiaoMing" ]
},
{
"attr": 1,
"userid": [ "LiuXiaoGang" ]
}
],
"notifyer": [ "WuJunJie", "WangXiaoMing" ],
"notify_type": 1,
"apply_data": {
"contents": [
{
"control": "Text",
"id": "Text-15111111111",
"value": {
"text": "文本填写的内容",
"new_number": "700",
"new_money": "700",
"date": {
"type": "day",
"s_timestamp": 1569859200
},
"selector": {
"type": "multi",
"options": [
{
"key": "option-15111111111"
},
{
"key": "option-15222222222"
}
]
},
"members": [
{
"userid": "WuJunJie",
"name": "Jackie"
},
{
"userid": "WangXiaoMing",
"name": "Tom"
}
],
"departments": [
{
"openapi_id": 2,
"name": "销售部"
},
{
"openapi_id": 3,
"name": "生产部"
}
],
"files": [
{
"file_id": "1G6nrLmr5EC3MMb_-zK1dDdzmd0p7cNliYu9V5w7o8K1aaa"
}
],
"children": [
{
"list": [
{
"control": "Text",
"id": "Text-15111111111",
"title": [
{
"text": "明细内文本控件",
"lang": "zh_CN"
}
],
"value": {
"text": "明细文本"
}
}
]
}
],
"vacation": {
"selector": {
"type": "single",
"options": [
{
"key": "3",
"value": [
{
"text": "病假",
"lang": "zh_CN"
}
]
}
]
},
"attendance": {
"date_range": {
"type": "hour",
"new_begin": 1568077200,
"new_end": 1568368800,
"new_duration": 291600
},
"type": 1
}
},
"attendance": {
"date_range": {
"type": "halfday",
"new_begin": 1570550400,
"new_end": 1570593600,
"new_duration": 86400
},
"type": 4
},
"location": {
"latitude": "30.547239",
"longitude": "104.063291",
"title": "腾讯科技(成都)有限公司(腾讯成都大厦)",
"address": "四川省成都市武侯区天府三街198号腾讯成都大厦A座",
"time": 1605690460
},
"related_approval": [
{
"sp_no": "202011180001"
}
],
"formula": {
"value": "5.0"
},
"date_range": {
"new_begin": 1570550400,
"new_end": 1570593600,
"new_duration": 86400
}
}
}
]
},
"summary_list": [
{
"summary_info": [
{
"text": "摘要第1行",
"lang": "zh_CN"
}
]
},
{
"summary_info": [
{
"text": "摘要第2行",
"lang": "zh_CN"
}
]
},
{
"summary_info": [
{
"text": "摘要第3行",
"lang": "zh_CN"
}
]
}
]
}

View File

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

View File

@@ -0,0 +1,3 @@
{
"open_template_id": "1Bs2gZz5csQ1jLdCY8A3WHN9GtFaSYWJDK2S4FU2Fp"
}

View File

@@ -0,0 +1,3 @@
{
"template_id": "open_Bs5M5HHaB8HiW9vs5MKHQRm7mhW1mv8UkptTJDeoc"
}

View File

@@ -0,0 +1,238 @@
{
"errcode": 0,
"errmsg": "ok",
"info": {
"sp_no": "201909270002",
"sp_name": "全字段",
"sp_status": 1,
"template_id": "Bs5KJ2NT4ncf4ZygaE8MB3779yUW8nsMaJd3mmE9v",
"apply_time": 1569584428,
"applyer": {
"userid": "WuJunJie",
"partyid": "2"
},
"sp_record": [
{
"sp_status": 1,
"approverattr": 1,
"details": [
{
"approver": {
"userid": "WuJunJie"
},
"speech": "",
"sp_status": 1,
"sptime": 0,
"media_id": []
},
{
"approver": {
"userid": "WangXiaoMing"
},
"speech": "",
"sp_status": 1,
"sptime": 0,
"media_id": []
}
]
}
],
"notifyer": [
{
"userid": "LiuXiaoGang"
}
],
"apply_data": {
"contents": [
{
"control": "Text",
"id": "Text-15111111111",
"title": [
{
"text": "文本控件",
"lang": "zh_CN"
}
],
"value": {
"text": "文本填写的内容",
"new_number": "700",
"new_money": "700",
"date": {
"type": "day",
"s_timestamp": "1569859200"
},
"selector": {
"type": "multi",
"options": [
{
"key": "option-15111111111",
"value": [
{
"text": "选项1",
"lang": "zh_CN"
}
]
},
{
"key": "option-15222222222",
"value": [
{
"text": "选项2",
"lang": "zh_CN"
}
]
}
]
},
"members": [
{
"userid": "WuJunJie",
"name": "Jackie"
},
{
"userid": "WangXiaoMing",
"name": "Tom"
}
],
"departments": [
{
"openapi_id": "2",
"name": "销售部"
},
{
"openapi_id": "3",
"name": "生产部"
}
],
"files": [
{
"file_id": "WWCISP_v2z8qZENw2qwSiNroVKykbxxMXvmI1lELzG-fo25Y9n1duozezKEu6zSIvOHPCd9_8s934AJncRz5f9G4E_nCQonUHLdiAnCLjfZQQwVaiG7krKzyGB1MpYa9ZVkk0gQ7P8HvO_SOdwzLwpyUZ3Tm2ApyoO_78nTM-iEkf_TILqXuYxKd7ByYL34wMA9Czf6Iy151tHbcYNvbNZZHTnL4UMQdohJ_MPYA2Wz00IebZb3_UuIk5MdJSH_IKlZn9Ms5"
},
{
"file_id": "WWCISP_gZ3BMg5hwI1Adi16NwzJgpi9zp6QQjMdYcuemVWBeHnmMK3QJOYiIIkHvRIh0ysZcAo6gJp069o5tx7qxVzin1Q9LKswff624E1qCCmt088ISBVPScoqEiG4YTI_Kltrqn7b0wvMTudd9lIE3ywgHatPRWKxsHNsSxEY_FuaFWlGHzxcYKNq_LIfVBXZGji-C5bXp23MwpTcCXYfWPfSEpEeXW5c5sQscY_MeW5uc0gITpeFKFXARXmKC62_u7Ln"
}
],
"children": [
{
"list": [
{
"control": "Text",
"id": "Text-15111111111",
"title": [
{
"text": "明细内文本控件",
"lang": "zh_CN"
}
],
"value": {
"text": "明细文本"
}
}
]
}
],
"vacation": {
"selector": {
"type": "single",
"options": [
{
"key": "3",
"value": [
{
"text": "病假",
"lang": "zh_CN"
}
]
}
]
},
"attendance": {
"date_range": {
"type": "hour",
"new_begin": 1568077200,
"new_end": 1568368800,
"new_duration": 291600
},
"type": 1
}
},
"attendance": {
"date_range": {
"type": "halfday",
"new_begin": 1599494400,
"new_end": 1599667199,
"new_duration": 172800
},
"type": 4,
"slice_info": {
"day_items": [
{
"daytime": 1599494400,
"duration": 86400
},
{
"daytime": 1599580800,
"duration": 86400
}
],
"duration": 172800,
"state": 1
}
},
"punch_correction": {
"state": "迟到",
"time": 1570550400
},
"date_range": {
"type": "halfday",
"new_begin": 1570550400,
"new_end": 1570593600,
"new_duration": 86400
},
"location": {
"latitude": "30.547239",
"longitude": "104.063291",
"title": "腾讯科技(成都)有限公司(腾讯成都大厦)",
"address": "四川省成都市武侯区天府三街198号腾讯成都大厦A座",
"time": 1605690460
},
"related_approval": [
{
"template_names": [
{
"text": "模板A",
"lang": "zh_CN"
},
{
"text": "",
"lang": "en"
}
],
"sp_status": 1,
"name": "小明",
"create_time": 1605690437,
"sp_no": "202011180001"
}
],
"formula": {
"value": "5.0"
}
}
}
]
},
"comments": [
{
"commentUserInfo": {
"userid": "WuJunJie"
},
"commenttime": 1569584111,
"commentcontent": "这是备注信息",
"commentid": "6741314136717778040",
"media_id": [
"WWCISP_Xa1dXIyC9VC2vGTXyBjUXh4GQ31G-a7jilEjFjkYBfncSJv0kM1cZAIXULWbbtosVqA7hprZIUkl4GP0DYZKDrIay9vCzeQelmmHiczwfn80v51EtuNouzBhUBTWo9oQIIzsSftjaVmd4EC_dj5-rayfDl6yIIRdoUs1V_Gz6Pi3yH37ELOgLNAPYUSJpA6V190Xunl7b0s5K5XC9c7eX5vlJek38rB_a2K-kMFMiM1mHDqnltoPa_NT9QynXuHi"
]
}
]
}
}

View File

@@ -0,0 +1,24 @@
{
"starttime": "1569546000",
"endtime": "1569718800",
"cursor": 0,
"size": 100,
"filters": [
{
"key": "template_id",
"value": "ZLqk8pcsAoaXZ1eY56vpAgfX28MPdYU3ayMaSPHaaa"
},
{
"key": "creator",
"value": "WuJunJie"
},
{
"key": "department",
"value": "1"
},
{
"key": "sp_status",
"value": "1"
}
]
}

View File

@@ -0,0 +1,9 @@
{
"errcode": 0,
"errmsg": "ok",
"sp_no_list": [
"201909270001",
"201909270002",
"201909270003"
]
}

View File

@@ -0,0 +1,3 @@
{
"template_id": "ZLqk8pcsAoXZ1eYa6vpAgfX28MPdYU3ayMaSPHaaa"
}

View File

@@ -0,0 +1,118 @@
{
"errcode": 0,
"errmsg": "ok",
"template_names": [
{
"text": "全字段",
"lang": "zh_CN"
}
],
"template_content": {
"controls": [
{
"property": {
"control": "Selector",
"id": "Selector-15111111111",
"title": [
{
"text": "单选控件",
"lang": "zh_CN"
}
],
"placeholder": [
{
"text": "这是单选控件的说明",
"lang": "zh_CN"
}
],
"require": 0,
"un_print": 0
},
"config": {
"date": {
"type": "day"
},
"selector": {
"type": "single",
"options": [
{
"key": "option-15111111111",
"value": [
{
"text": "选项1",
"lang": "zh_CN"
}
]
},
{
"key": "option-15222222222",
"value": [
{
"text": "选项2",
"lang": "zh_CN"
}
]
}
]
},
"contact": {
"type": "multi",
"mode": "department"
},
"table": {
"children": [
{
"property": {
"control": "Text",
"id": "Text-15111111111",
"title": [
{
"text": "明细内文本控件",
"lang": "zh_CN"
}
],
"placeholder": [
{
"text": "这是明细内文本控件的说明",
"lang": "zh_CN"
}
],
"require": 0,
"un_print": 0
}
}
]
},
"attendance": {
"date_range": {
"type": "hour"
},
"type": 3
},
"vacation_list": {
"item": [
{
"id": 1,
"name": [
{
"text": "年假",
"lang": "zh_CN"
}
]
},
{
"id": 2,
"name": [
{
"text": "事假",
"lang": "zh_CN"
}
]
}
]
}
}
}
]
}
}