add event beginAt/endAt

This commit is contained in:
Timi
2026-08-03 12:27:20 +08:00
parent cd1b45eb24
commit 4b81694c8c
5 changed files with 179 additions and 23 deletions
+4 -3
View File
@@ -1,18 +1,19 @@
import type { Model } from "timi-web";
export type RegistrationEventStatus = "ACTIVE" | "INACTIVE" | "DELETED";
export type RegistrationEventStatus = "DRAFT" | "ACTIVE" | "INACTIVE" | "DELETED";
export type RegistrationLimitType = "NONE" | "DAILY_HALF_DAY" | "NATURAL_DAY" | "INTERVAL_HOUR" | "NATURAL_MONTH" | "TOTAL_LIMIT";
export type RegistrationLimitType = "NONE" | "DAILY_HALF_DAY" | "NATURAL_DAY" | "INTERVAL_HOUR" | "NATURAL_MONTH" | "TOTAL_LIMIT" | "CUSTOMER_TOTAL_LIMIT";
export type RegistrationEvent = {
name: string;
description?: string;
color?: string;
status?: RegistrationEventStatus;
enabled?: boolean;
requirePhoto?: boolean;
limitType?: RegistrationLimitType;
limitValue?: number;
beginAt?: number;
endAt?: number;
sort?: number;
roleCodeList?: string[];
} & Model;