add event verify

This commit is contained in:
Timi
2026-08-29 15:35:28 +08:00
parent 24cf6fc714
commit 904af04cdd
9 changed files with 233 additions and 16 deletions
+1
View File
@@ -17,6 +17,7 @@ export type EventItem = {
requireValue?: boolean;
status?: EventStatus;
requirePhoto?: boolean;
requireVerification?: boolean;
limitType?: EventLimitType;
limitValue?: number;
beginAt?: number;
+10
View File
@@ -4,6 +4,9 @@ import type { EventItem } from "@/types/EventItem";
import type { PointLedgerChangeType } from "@/types/Point";
export type EventRecord = {
verificationStatus?: VerificationStatus;
verifierUserId?: string;
verifiedAt?: number;
storeId?: string;
customerId?: string;
customerIdList?: string[];
@@ -21,9 +24,12 @@ export type EventRecord = {
customer?: Customer;
event?: EventItem;
operator?: Partial<User>;
verifier?: Partial<User>;
attachmentList?: Attachment[];
} & Model;
export type VerificationStatus = "NOT_REQUIRED" | "PENDING" | "VERIFIED";
export type EventRecordListItemView = {
id?: string;
customerId?: string;
@@ -31,6 +37,9 @@ export type EventRecordListItemView = {
eventId?: string;
event?: EventItem;
registeredAt?: number;
verificationStatus?: VerificationStatus;
verifierUserId?: string;
verifiedAt?: number;
};
export type EventRecordPageResult = PageResult<EventRecordListItemView> & {
@@ -41,6 +50,7 @@ export type EventRecordPage = {
storeId?: string;
customerId?: string;
eventIdList?: string[];
verificationStatus?: VerificationStatus;
keyword?: string;
beginAt?: number;
endAt?: number;