feat(work): 新增文档相关接口

This commit is contained in:
fudiwei
2022-12-03 21:55:28 +08:00
parent 919c672d34
commit c8266df89e
54 changed files with 2652 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[doc_change]]></Event>
<ChangeType><![CDATA[doc_member_change]]></ChangeType>
<DocId><![CDATA[wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA]]></DocId>
<DocId><![CDATA[wcjgewCwAAqeJcPI1d8Pwbjt7nttzBBB]]></DocId>
</xml>

View File

@@ -0,0 +1,53 @@
{
"spaceid": "SPACEID",
"fatherid": "FATHERID",
"form_info": {
"form_title": "FORM_TITLE",
"form_desc": "FORM_DESC",
"form_header": "FORM_HEADER",
"form_question": {
"items": [
{
"question_id": 1,
"title": "TITLE",
"pos": 0,
"status": 1,
"reply_type": 1,
"must_reply": true,
"note": "NOTE",
"option_item": [
{
"key": 1,
"value": "VALUE",
"status": 1
}
],
"placeholder": "PLACEHOLDER"
}
]
},
"form_setting": {
"fill_out_auth": 0,
"fill_in_range": {
"userids": ["USER_1", "USER_2", "USER_3"],
"departmentids": [10001, 10002, 10003]
},
"setting_manager_range": {
"userids": ["USER_4", "USER_5", "USER_6"]
},
"timed_repeat_info": {
"enable": true,
"week_flag": 1,
"remind_time": 1,
"repeat_type": 1,
"skip_holiday": true,
"day_of_month": 1,
"fork_finish_type": 1
},
"max_fill_cnt": 0,
"timed_finish": 0,
"can_anonymous": false,
"can_notify_submit": false
}
}
}

View File

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

View File

@@ -0,0 +1,4 @@
{
"repeated_id": "REPEATED_ID1",
"answer_ids": [1]
}

View File

@@ -0,0 +1,75 @@
{
"errcode": 0,
"errmsg": "ok",
"answer": {
"answer_list": [
{
"answer_id": 15,
"user_name": "USER_NAME1",
"ctime": 1668430580,
"mtime": 1668430580,
"reply": {
"items": [
{
"question_id": 1,
"text_reply": "Ndjnd"
},
{
"question_id": 2,
"option_reply": [2]
},
{
"question_id": 3,
"text_reply": "20:53"
},
{
"question_id": 4,
"text_reply": "73℃"
},
{
"question_id": 5,
"file_extend_reply": [
{
"name": "FILE_NAME1",
"fileid": "FILEID1"
}
]
},
{
"question_id": 6,
"text_reply": "四川省/成都市/武侯区/天府三街(峰汇中心)"
},
{
"question_id": 7,
"text_reply": "test"
},
{
"question_id": 8,
"option_reply": [1]
},
{
"question_id": 9,
"text_reply": "2022年11月"
},
{
"question_id": 10,
"option_reply": [5]
},
{
"question_id": 11,
"option_reply": [3],
"option_extend_reply": [
{
"option_reply": 3,
"extend_text": "test"
}
]
}
]
},
"answer_status": 1,
"tmp_external_userid": "TMP_EXTERNAL_USERID1"
}
]
}
}

View File

@@ -0,0 +1,74 @@
{
"errcode": 0,
"errmsg": "ok",
"form_info": {
"formid": "FORMID1",
"form_title": "api创建的收集表_周期",
"form_desc": "这是描述",
"form_header": "URL",
"form_question": {
"items": [
{
"question_id": 1,
"title": "问题1",
"pos": 1,
"status": 1,
"reply_type": 1,
"must_reply": true,
"note": "问题备注1",
"placeholder": "提示1"
},
{
"question_id": 2,
"title": "问题2",
"pos": 2,
"status": 1,
"reply_type": 2,
"must_reply": false,
"note": "问题备注2",
"option_item": [
{
"key": 1,
"value": "A",
"status": 1
},
{
"key": 2,
"value": "B",
"status": 1
},
{
"key": 3,
"value": "C",
"status": 1
}
],
"placeholder": "提示2"
}
]
},
"form_setting": {
"fill_out_auth": 1,
"fill_in_range": {
"departmentids": [1],
"userids": ["USERID1", "USERID2"]
},
"setting_manager_range": {
"userids": ["USERID1", "USERID2"]
},
"timed_repeat_info": {
"enable": true,
"remind_time": 1668389400,
"rule_ctime": 1668418140,
"rule_mtime": 1668418140,
"repeat_type": 1,
"skip_holiday": false
},
"max_fill_cnt": 0,
"timed_finish": 0,
"can_anonymous": false,
"can_notify_submit": true
},
"repeated_id": ["REPEAT_ID1"]
}
}

View File

@@ -0,0 +1,8 @@
{
"repeated_id": "REPEATED_ID2",
"req_type": 2,
"start_time": 1667395287,
"end_time": 1668418369,
"limit": 20,
"cursor": 1
}

View File

@@ -0,0 +1,29 @@
{
"errcode": 0,
"errmsg": "ok",
"fill_cnt": 1,
"fill_user_cnt": 1,
"unfill_user_cnt": 90,
"submit_users": [
{
"userid": "USERID1",
"submit_time": 1668418200,
"answer_id": 1,
"user_name": "USER_NAME1"
},
{
"tmp_external_userid": "TMP_EXTERNAL_USERID1",
"submit_time": 1668418200,
"answer_id": 2,
"user_name": "USER_NAME2"
}
],
"unfill_users": [
{
"userid": "USERID1",
"user_name": "USER_NAME1"
}
],
"has_more": false,
"cursor": 1
}

View File

@@ -0,0 +1,44 @@
{
"oper": 1,
"formid": "FORMID",
"form_info": {
"form_title": "FORM_TITLE",
"form_desc": "FORM_DESC",
"form_header": "FORM_HEADER",
"form_question": {
"items": [
{
"question_id": 1,
"title": "TITLE",
"pos": 0,
"status": 1,
"reply_type": 1,
"must_reply": true,
"note": "NOTE",
"option_item": [
{
"key": 1,
"value": "VALUE",
"status": 1
}
],
"placeholder": "PLACEHOLDER"
}
]
},
"form_setting": {
"fill_out_auth": 0,
"fill_in_range": {
"userids": ["USER_1", "USER_2", "USER_3"],
"departmentids": [10001, 10002, 10003]
},
"setting_manager_range": {
"userids": ["USER_4", "USER_5", "USER_6"]
},
"max_fill_cnt": 0,
"timed_finish": 0,
"can_anonymous": false,
"can_notify_submit": false
}
}
}

View File

@@ -0,0 +1,7 @@
{
"spaceid": "SPACEID",
"fatherid": "FATHERID",
"doc_type": 0,
"doc_name": "DOC_NAME",
"admin_users": ["USERID1", "USERID2", "USERID3"]
}

View File

@@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"url": "URL",
"docid": "DOCID"
}

View File

@@ -0,0 +1,4 @@
{
"docid": "DOCID",
"formid": "FORMID"
}

View File

@@ -0,0 +1,42 @@
{
"errcode": 0,
"errmsg": "ok",
"access_rule": {
"enable_corp_internal": true,
"corp_internal_auth": 1,
"enable_corp_external": true,
"corp_external_auth": 1,
"corp_internal_approve_only_by_admin": true,
"corp_external_approve_only_by_admin": true,
"ban_share_external": false
},
"secure_setting": {
"enable_readonly_copy": false,
"watermark": {
"margin_type": 2,
"show_visitor_name": false,
"show_text": false,
"text": ""
},
"enable_readonly_comment": false
},
"doc_member_list": [
{
"type": 1,
"userid": "USERID1",
"auth": 7
},
{
"type": 1,
"tmp_external_userid": "TMP_EXTERNAL_USERID2",
"auth": 1
}
],
"co_auth_list": [
{
"type": 2,
"departmentid": 1,
"auth": 1
}
]
}

View File

@@ -0,0 +1,4 @@
{
"docid": "DOCID",
"formid": "FORMID"
}

View File

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

View File

@@ -0,0 +1,11 @@
{
"errcode": 0,
"errmsg": "ok",
"doc_base_info": {
"docid": "DOCID",
"doc_name": "DOC_NAME",
"create_time": 0,
"modify_time": 0,
"doc_type": 0
}
}

View File

@@ -0,0 +1,18 @@
{
"docid": "DOCID",
"enable_corp_internal": true,
"corp_internal_auth": 1,
"enable_corp_external": true,
"corp_external_auth": 1,
"corp_internal_approve_only_by_admin": true,
"corp_external_approve_only_by_admin": true,
"ban_share_external": false,
"update_co_auth_list": true,
"co_auth_list": [
{
"departmentid": 1,
"auth": 1,
"type": 2
}
]
}

View File

@@ -0,0 +1,20 @@
{
"docid": "DOCID",
"update_file_member_list": [
{
"type": 1,
"auth": 7,
"userid": "USERID1"
}
],
"del_file_member_list": [
{
"type": 1,
"userid": "USERID2"
},
{
"type": 1,
"tmp_external_userid": "TMP_EXTERNAL_USERID2"
}
]
}

View File

@@ -0,0 +1,10 @@
{
"docid": "DOCID",
"enable_readonly_copy": false,
"watermark": {
"margin_type": 1,
"show_visitor_name": true,
"show_text": true,
"text": "test mark"
}
}

View File

@@ -0,0 +1,5 @@
{
"docid": "DOCID",
"formid": "FORMID",
"new_name": "NEW_NAME"
}