feat(service): replace show-in-service with hide-for-guest toggle

Mirror the server HideForGuest flag on services: rename the
enable_show_in_service field to hide_for_guest across the form, schema
and generated types, reuse the existing HideForGuest label, and drop the
now-orphaned ShowInService i18n keys. Services are now visible to guests
by default and hidden only when the box is checked, matching servers.
This commit is contained in:
Nezha Dev
2026-06-02 03:07:36 +00:00
parent 4c0de60843
commit 90135b0819
13 changed files with 6 additions and 16 deletions
+3 -2
View File
@@ -631,10 +631,11 @@ export interface ModelService {
/** 展示排序,越大越靠前 */
display_index: number
duration: number
enable_show_in_service: boolean
enable_trigger_task: boolean
/** 失败时执行的触发任务id */
fail_trigger_tasks: number[]
/** 对游客隐藏 */
hide_for_guest: boolean
id: number
latency_notify: boolean
max_latency: number
@@ -656,9 +657,9 @@ export interface ModelServiceForm {
/** 展示排序,越大越靠前 */
display_index: number
duration: number
enable_show_in_service?: boolean
enable_trigger_task?: boolean
fail_trigger_tasks: number[]
hide_for_guest?: boolean
latency_notify?: boolean
/** @default 0 */
max_latency: number