Skip to content

Commit 9d87d2c

Browse files
committed
Merge branch 'main' of github.com:1Panel-dev/MaxKB-toolstore
2 parents 994fe1d + 4b916e7 commit 9d87d2c

3 files changed

Lines changed: 20 additions & 11 deletions

File tree

tools/data.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,5 @@ additionalProperties:
2929
sort: 40
3030
locales:
3131
en: "Document Tool"
32-
zh-hant: "文檔內容提取"
33-
zh: "文档内容提取"
34-
- key: code_tool
35-
name: 内容处理
36-
sort: 50
37-
locales:
38-
en: "Code Tool"
39-
zh-hant: "代碼片段提取"
40-
zh: "代码片段提取"
32+
zh-hant: "內容處理"
33+
zh: "内容处理"

tools/extract/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- **编码自适应**:自动检测文本文件的编码格式
1111
- **易于集成**:简单的API接口,易于集成到现有系统中
1212

13-
## 安装依赖 (如果函数报错则安装,默认不需要安装)
13+
## 安装依赖
1414
```bash
1515
pip install python-docx pdfplumber
1616
```

tools/httputils/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- 后端服务集成:调用第三方接口时,需统一错误捕获与结构化结果处理,减少重复代码。
2020
- 日常接口调试:快速发送 HTTP 请求,自动处理编码与 JSON 解析,提升调试效率。
2121

22-
## 二、环境准备 (如报错,则需要安装依赖)
22+
## 二、环境准备
2323

2424
### 2.1 依赖库
2525

@@ -43,7 +43,23 @@
4343
pip install requests chardet
4444
```
4545

46+
## 参数说明
4647

48+
### 必需参数
49+
50+
| 参数名 | 类型 | 说明 | 示例 |
51+
| :------- | :--- | :-------------- | :------------------------------------- |
52+
| `method` | str | HTTP 请求方法 | `'GET'`, `'POST'`, `'PUT'`, `'DELETE'` |
53+
| `url` | str | 请求的 URL 地址 | `'https://api.example.com/endpoint'` |
54+
55+
### 可选参数
56+
57+
| 参数名 | 类型 | 默认值 | 说明 | |
58+
| :---------- | :----- | :----- | :----------------------------------- | ----------------------------------- |
59+
| `params` | String | None | URL 查询参数,数据类型json字符串 | `{"page": 1, "limit": 10}` |
60+
| `data` | String | None | 请求体数据(表单数据)或者josn字符串 | `{"key": "value"}` |
61+
| `json_data` | String | None | JSON 请求体数据,数据类型json字符串 | `{"name": "John"}` |
62+
| `headers` | String | None | 请求头信息,数据类型json字符串, | `{"Authorization": "Bearer token"}` |
4763

4864
## 注意事项
4965

0 commit comments

Comments
 (0)