init project

This commit is contained in:
Timi
2026-08-01 18:01:23 +08:00
parent 286fa1ba56
commit 11c48bf00c
107 changed files with 19350 additions and 1 deletions
+60
View File
@@ -0,0 +1,60 @@
import type { Attachment, Model, User } from "timi-web";
export type CustomerGender = "MALE" | "FEMALE";
export type BodyAreaValue = {
selectedCodeList: string[];
};
export type Customer = {
code?: string;
name?: string;
gender?: CustomerGender;
age?: number;
telephone?: string;
address?: string;
remark?: string;
disease?: string;
conditioningPart?: BodyAreaValue;
introducerCustomerId?: string;
creatorUserId?: string;
lastSignInAt?: number;
introducerCustomer?: Customer;
creatorUser?: Partial<User>;
invitedCount?: number;
attachmentList?: Attachment[];
attachmentIdList?: string[];
} & Model;
export type CustomerSearchReq = {
keyword?: string;
introducerCustomerId?: string;
};
export type CustomerTrendStatReq = {
beginCreatedAt: number;
endCreatedAt: number;
};
export type CustomerDailyStatView = {
dateValue?: number;
newCustomerCount?: number;
totalCustomerCount?: number;
};
export type CustomerGenderStatView = {
genderCode?: CustomerGender | "UNKNOWN";
count?: number;
};
export type CustomerInviteUpdateReq = {
customerId: string;
introducerCustomerId?: string;
};
export type QuickRegisterReq = {
customerCode: string;
registrationEventId: string;
remark?: string;
attachmentIdList?: string[];
};