功能(订单服务): 增加可配置未成年提示门禁

This commit is contained in:
2026-11-27 12:45:36 +08:00
parent 6c990403da
commit 450dee1031
20 changed files with 1203 additions and 95 deletions
@@ -33,6 +33,7 @@ import type {
WorkerPlatformNotificationConfig,
WorkerProductMatchConfig,
WorkerAnnouncementConfig,
OrderServiceAgeGateConfig,
WorkerSupportContactConfig,
WorkerProductNameSuffixConfig,
WorkerLevel,
@@ -137,6 +138,17 @@ export function saveAdminWorkerAnnouncement(payload: WorkerAnnouncementConfig) {
return apiPost<WorkerAnnouncementConfig>('/api/v1/admin/worker-platform/announcement', payload)
}
export function fetchAdminOrderServiceAgeGateConfig() {
return apiGet<OrderServiceAgeGateConfig>('/api/v1/admin/worker-platform/order-service-age-gate')
}
export function saveAdminOrderServiceAgeGateConfig(payload: OrderServiceAgeGateConfig) {
return apiPost<OrderServiceAgeGateConfig>(
'/api/v1/admin/worker-platform/order-service-age-gate',
payload,
)
}
export function fetchAdminWorkerSupportContact() {
return apiGet<WorkerSupportContactConfig>('/api/v1/admin/worker-platform/support-contact')
}