mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-18 17:48:12 +08:00
feat(work): 新增文档表格相关接口
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"docid": "DOCID",
|
||||
"version": 10,
|
||||
"requests": [
|
||||
{
|
||||
"replace_text": {
|
||||
"text": "hello world",
|
||||
"ranges": [
|
||||
{
|
||||
"start_index": 10,
|
||||
"length": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"insert_text": {
|
||||
"text": "text content",
|
||||
"location": {
|
||||
"index": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"delete_content": {
|
||||
"range": {
|
||||
"start_index": 10,
|
||||
"length": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"insert_image": {
|
||||
"image_id": "https://https://wework.qpic.cn/wwpic/xxxxxx",
|
||||
"width": 10,
|
||||
"height": 10,
|
||||
"location": {
|
||||
"index": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"insert_page_break": {
|
||||
"location": {
|
||||
"index": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"insert_table": {
|
||||
"rows": 2,
|
||||
"cols": 2,
|
||||
"location": {
|
||||
"index": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"insert_paragraph": {
|
||||
"location": {
|
||||
"index": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"update_text_property": {
|
||||
"bold": true,
|
||||
"color": "000000",
|
||||
"background_color": "0000FF"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"docid": "DOCID",
|
||||
"requests": [
|
||||
{
|
||||
"add_sheet_request": {
|
||||
"title": "sheet_name",
|
||||
"row_count": 10,
|
||||
"column_count": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"update_range_request": {
|
||||
"sheet_id": "AAAAA",
|
||||
"grid_data": {
|
||||
"start_row": 1,
|
||||
"start_column": 1,
|
||||
"rows": [
|
||||
{
|
||||
"values": [
|
||||
{
|
||||
"cell_value": {
|
||||
"text": "hello world",
|
||||
"link": {
|
||||
"text": "hello world",
|
||||
"url": "http://xxxx.com"
|
||||
}
|
||||
},
|
||||
"cell_format": {
|
||||
"text_format": {
|
||||
"font": "Courier New",
|
||||
"font_size": 14,
|
||||
"bold": false,
|
||||
"italic": false,
|
||||
"strikethrough": false,
|
||||
"underline": false,
|
||||
"color": {
|
||||
"red": 0,
|
||||
"green": 0,
|
||||
"blue": 255,
|
||||
"alpha": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"delete_dimension_request": {
|
||||
"sheet_id": "AAAAA",
|
||||
"dimension": "ROW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"delete_sheet_request": {
|
||||
"sheet_id": "AAAAA"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"data": {
|
||||
"responses": [
|
||||
{
|
||||
"add_sheet_response": {
|
||||
"properties": {
|
||||
"sheet_id": "ABCDE",
|
||||
"title": "XXXXXX",
|
||||
"row_count": 100,
|
||||
"column_count": 100
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"update_range_response": {
|
||||
"updated_cells": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"delete_dimension_response": {
|
||||
"deleted": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"delete_sheet_response": {
|
||||
"sheet_id": "AABBCC"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"docid": "DOCID"
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"data": [
|
||||
{
|
||||
"sheet_id": "ABCDE",
|
||||
"title": "XXXXXX",
|
||||
"row_count": 100,
|
||||
"column_count": 100
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"docid": "DOCID",
|
||||
"sheet_id": "AABBCC",
|
||||
"range": "A1:B2"
|
||||
}
|
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"data": {
|
||||
"result": {
|
||||
"start_row": 1,
|
||||
"start_column": 1,
|
||||
"rows": [
|
||||
{
|
||||
"values": [
|
||||
{
|
||||
"cell_value": {
|
||||
"text": "hello world",
|
||||
"link": {
|
||||
"text": "hello world",
|
||||
"url": "http://xxxx.com"
|
||||
}
|
||||
},
|
||||
"cell_format": {
|
||||
"text_format": {
|
||||
"font": "Courier New",
|
||||
"font_size": 14,
|
||||
"bold": false,
|
||||
"italic": false,
|
||||
"strikethrough": false,
|
||||
"underline": false,
|
||||
"color": {
|
||||
"red": 0,
|
||||
"green": 0,
|
||||
"blue": 255,
|
||||
"alpha": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user