diff --git a/dist/raw-seal-openapi.json b/dist/raw-seal-openapi.json index c16d5f7..0c5c931 100644 --- a/dist/raw-seal-openapi.json +++ b/dist/raw-seal-openapi.json @@ -100,6 +100,10 @@ "description": "合思 OpenAPI Secret (密钥)" } } + }, + "example": { + "appKey": "{{hoseApiKey}}", + "appSecurity": "{{hoseApiSecret}}" } } } @@ -198,6 +202,11 @@ "description": "临时免登凭据有效期(秒)" } } + }, + "example": { + "uid": "{{hoseUserId}}", + "pageType": "home", + "expireDate": 7200 } } } diff --git a/scripts/generate-raw-openapi.ts b/scripts/generate-raw-openapi.ts index 267a13d..36964fd 100644 --- a/scripts/generate-raw-openapi.ts +++ b/scripts/generate-raw-openapi.ts @@ -96,6 +96,10 @@ const spec = { appKey: { type: "string", default: "{{hoseApiKey}}", description: "合思 OpenAPI Key" }, appSecurity: { type: "string", default: "{{hoseApiSecret}}", description: "合思 OpenAPI Secret (密钥)" } } + }, + example: { + appKey: "{{hoseApiKey}}", + appSecurity: "{{hoseApiSecret}}" } } } @@ -164,6 +168,11 @@ const spec = { pageType: { type: "string", default: "home", description: "免登落地页类型" }, expireDate: { type: "integer", default: 7200, description: "临时免登凭据有效期(秒)" } } + }, + example: { + uid: "{{hoseUserId}}", + pageType: "home", + expireDate: 7200 } } }