Skip to content

Commit 5b762fd

Browse files
committed
docs: 修改rpcName说明
1 parent ced3b50 commit 5b762fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ await client.user.getUsersById(opts);
216216
```json
217217
{
218218
"paths": {
219-
"/client/users": {
219+
"/some/client/users": {
220220
"get": {
221221
"operationId": "List_users",
222222
"parameters": [],
@@ -227,7 +227,7 @@ await client.user.getUsersById(opts);
227227
}
228228
```
229229

230-
1. 如果以 `method+uri` 的形式生成,则效果为:`openapi.getClientUsers()`
230+
1. 如果以 `method+uri` 的形式生成,则效果为:`openapi.getSomeClientUsers()`
231231
2. 如果以 `operationId` 的形式生成,则效果为:`openapi.listUsers()`
232232

233233
**注意**:如果operationId字段不存在,则仍以`method+uri`的规则生成

src/define-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface OpenapiClientConfig {
5050
* ```json
5151
* {
5252
* "paths": {
53-
* "/client/users": {
53+
* "/some/client/users": {
5454
* "get": {
5555
* "operationId": "List_users",
5656
* "parameters": [],
@@ -60,7 +60,7 @@ export interface OpenapiClientConfig {
6060
* }
6161
* }
6262
* ```
63-
* 1. 如果以 `method+uri` 的形式生成,则效果为:`openapi.getClientUsers()`
63+
* 1. 如果以 `method+uri` 的形式生成,则效果为:`openapi.getSomeClientUsers()`
6464
* 2. 如果以 `operationId` 的形式生成,则效果为:`openapi.listUsers()`
6565
*
6666
* 注意:如果operationId字段不存在,则仍以`method+uri`的规则生成

0 commit comments

Comments
 (0)