docs: 更新业务提供项公开契约
This commit is contained in:
1 parent
a374614313
commit
c3edc4f595
3 files changed
+6
-7
No files matched your search
@@ -111,8 +111,8 @@ AdminUser 1 ── n AuditLog
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
GET /api/public/brand
|
GET /api/public/brand
|
||||||
GET /api/public/services
|
GET /api/public/offerings
|
||||||
GET /api/public/services/:id
|
GET /api/public/offerings/:id
|
||||||
GET /api/public/portfolio
|
GET /api/public/portfolio
|
||||||
GET /api/public/portfolio/:id
|
GET /api/public/portfolio/:id
|
||||||
GET /api/public/feedbacks
|
GET /api/public/feedbacks
|
||||||
|
|||||||
+4
-4
@@ -26,9 +26,9 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/BrandProfile"
|
$ref: "#/components/schemas/BrandProfile"
|
||||||
/public/services:
|
/public/offerings:
|
||||||
get:
|
get:
|
||||||
operationId: listPublicServices
|
operationId: listPublicOfferings
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Enabled public services
|
description: Enabled public services
|
||||||
@@ -37,7 +37,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/PublicService"
|
$ref: "#/components/schemas/PublicOffering"
|
||||||
/customer/session/wechat:
|
/customer/session/wechat:
|
||||||
post:
|
post:
|
||||||
operationId: createCustomerSession
|
operationId: createCustomerSession
|
||||||
@@ -260,7 +260,7 @@ components:
|
|||||||
hours: { type: [string, "null"] }
|
hours: { type: [string, "null"] }
|
||||||
address: { type: [string, "null"] }
|
address: { type: [string, "null"] }
|
||||||
deliveryNote: { type: [string, "null"] }
|
deliveryNote: { type: [string, "null"] }
|
||||||
PublicService:
|
PublicOffering:
|
||||||
type: object
|
type: object
|
||||||
required: [id, name, description, bookingEnabled]
|
required: [id, name, description, bookingEnabled]
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
@@ -38,4 +38,3 @@ export interface PublicOffering {
|
|||||||
categoryKey?: string;
|
categoryKey?: string;
|
||||||
config?: Record<string, unknown> | null;
|
config?: Record<string, unknown> | null;
|
||||||
}
|
}
|
||||||
export type PublicService = PublicOffering;
|
|
||||||
Reference in new issue
Block a user