docs: 更新业务提供项公开契约

This commit is contained in:
que01 committed 2026-09-21 19:16:46 +08:00
1 parent a374614313
commit c3edc4f595
3 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -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
+4 -4
View File
@@ -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:
-1
View File
@@ -38,4 +38,3 @@ export interface PublicOffering {
categoryKey?: string;
config?: Record<string, unknown> | null;
}
export type PublicService = PublicOffering;