From c3edc4f5953371e27a26a7a4d7f6e5f7c0d2f3be Mon Sep 17 00:00:00 2001 From: que01 Date: Mon, 21 Sep 2026 19:16:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E9=A1=B9=E5=85=AC=E5=BC=80=E5=A5=91=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/03-data-and-api-design.md | 4 ++-- docs/openapi.yaml | 8 ++++---- packages/types/src/index.ts | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/03-data-and-api-design.md b/docs/03-data-and-api-design.md index 743ef43..2bffe82 100644 --- a/docs/03-data-and-api-design.md +++ b/docs/03-data-and-api-design.md @@ -111,8 +111,8 @@ AdminUser 1 ── n AuditLog ```text GET /api/public/brand -GET /api/public/services -GET /api/public/services/:id +GET /api/public/offerings +GET /api/public/offerings/:id GET /api/public/portfolio GET /api/public/portfolio/:id GET /api/public/feedbacks diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 143c3d9..4a1841d 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -26,9 +26,9 @@ paths: application/json: schema: $ref: "#/components/schemas/BrandProfile" - /public/services: + /public/offerings: get: - operationId: listPublicServices + operationId: listPublicOfferings responses: "200": description: Enabled public services @@ -37,7 +37,7 @@ paths: schema: type: array items: - $ref: "#/components/schemas/PublicService" + $ref: "#/components/schemas/PublicOffering" /customer/session/wechat: post: operationId: createCustomerSession @@ -260,7 +260,7 @@ components: hours: { type: [string, "null"] } address: { type: [string, "null"] } deliveryNote: { type: [string, "null"] } - PublicService: + PublicOffering: type: object required: [id, name, description, bookingEnabled] properties: diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 2c41c81..1d10af6 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -38,4 +38,3 @@ export interface PublicOffering { categoryKey?: string; config?: Record | null; } -export type PublicService = PublicOffering;