Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Mar 17, 2024
1 parent 0ed6cf4 commit 0aaa835
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@cordisjs/vitepress": "^3.2.6",
"@intlify/unplugin-vue-i18n": "^1.5.0",
"@koishijs/components": "^1.5.8",
"@koishijs/core": "^4.17.0-alpha.0",
"@koishijs/core": "^4.17.2",
"@koishijs/dns": "^1.0.1",
"@koishijs/market": "^4.2.5",
"@koishijs/registry": "^7.0.3",
Expand All @@ -25,7 +25,7 @@
"cross-env": "^7.0.3",
"element-plus": "2.4.0",
"esbuild-register": "^3.5.0",
"koishi": "^4.17.0-alpha.0",
"koishi": "^4.17.2",
"markdown-it-mathjax3": "^4.3.2",
"marked-vue": "^1.3.0",
"typescript": "^5.3.2",
Expand Down
6 changes: 3 additions & 3 deletions zh-CN/api/service/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

- **method:** `string` 请求方法
- **url:** `string` 请求地址
- **config:** `AxiosRequestConfig` 配置项
- **config:** `RequestConfig` 配置项
- 返回值: `Promise<any>`

### ctx.http.head(url, config)
### ctx.http.get(url, config)
### ctx.http.delete(url, config)

- **url:** `string` 请求地址
- **config:** `AxiosRequestConfig` 配置项
- **config:** `RequestConfig` 配置项
- 返回值: `Promise<any>`

发送 HEAD / GET / DELETE 请求。
Expand All @@ -33,7 +33,7 @@

- **url:** `string` 请求地址
- **data:** `any` 请求数据
- **config:** `AxiosRequestConfig` 配置项
- **config:** `RequestConfig` 配置项
- 返回值: `Promise<any>`

发送 POST / PUT / PATCH 请求。
Expand Down
5 changes: 4 additions & 1 deletion zh-CN/api/service/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

## 实例方法

### ctx.permissions.define(name, inherits)
### ctx.permissions.define(name, options)

- **name:** `string` 权限名称
- **options.check:** `(session: Partial<Session>) => boolean` 权限检查函数

### ctx.permissions.inherit(a, b)

Expand Down
2 changes: 1 addition & 1 deletion zh-CN/guide/adapter/message.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class LarkAdapter {
responseType: 'stream',
})
ctx.status = 200
ctx.response.headers['content-type'] = response.headers['content-type']
ctx.response.headers['content-type'] = response.headers.get('content-type')
ctx.response.body = response.data
})
}
Expand Down
4 changes: 2 additions & 2 deletions zh-CN/schema/basic/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ code: |
array: Schema.array(Number).description('这是一个数组,点击右侧的按钮添加元素。'),
table1: Schema.array(String).role('table').description('以表格形式显示的数组。'),
table2: Schema.array(Schema.object({
foo: Schema.string().disabled(),
foo: Schema.string(),
bar: Schema.number().experimental(),
qux: Schema.bitset({ FOO: 1, BAR: 2, QUX: 4 }).default(5),
})).role('table').description('以表格形式显示的由对象构成的数组。'),
Expand All @@ -31,7 +31,7 @@ export default Schema.object({
table1: Schema.array(String).role('table'),
table2: Schema.array(Schema.object({
foo: Schema.string(),
bar: Schema.number(),
bar: Schema.number().experimental(),
qux: Schema.bitset({ FOO: 1, BAR: 2, QUX: 4 }).default(5),
})).role('table'),
})
Expand Down

0 comments on commit 0aaa835

Please sign in to comment.