add store

This commit is contained in:
Timi
2026-08-07 11:32:48 +08:00
parent 9df6dfaf59
commit fab3cd8891
21 changed files with 1355 additions and 31 deletions
+2
View File
@@ -9,6 +9,7 @@ export type BodyAreaValue = {
};
export type Customer = {
storeId?: string;
code?: string;
name?: string;
gender?: CustomerGender;
@@ -37,6 +38,7 @@ export type CustomerSearchReq = {
};
export type CustomerTrendStatReq = {
storeId?: string;
beginCreatedAt: number;
endCreatedAt: number;
};
+1 -1
View File
@@ -5,6 +5,7 @@ export type EventStatus = "DRAFT" | "ACTIVE" | "INACTIVE" | "DELETED";
export type EventLimitType = "NONE" | "DAILY_HALF_DAY" | "NATURAL_DAY" | "INTERVAL_HOUR" | "NATURAL_MONTH" | "TOTAL_LIMIT" | "CUSTOMER_TOTAL_LIMIT";
export type EventItem = {
storeId?: string;
name: string;
description?: string;
color?: string;
@@ -17,4 +18,3 @@ export type EventItem = {
sort?: number;
roleCodeList?: string[];
} & Model;
+5
View File
@@ -3,12 +3,15 @@ import type { Customer } from "@/types/Customer";
import type { EventItem } from "@/types/EventItem";
export type EventRecord = {
storeId?: string;
customerId?: string;
customerIdList?: string[];
eventId?: string;
operatorUserId?: string;
remark?: string;
registeredAt?: number;
registeredDateValue?: number;
businessDayNo?: number;
customer?: Customer;
event?: EventItem;
@@ -27,6 +30,7 @@ export type EventRecordListItemView = {
};
export type EventRecordPage = {
storeId?: string;
customerId?: string;
eventIdList?: string[];
keyword?: string;
@@ -35,6 +39,7 @@ export type EventRecordPage = {
} & BasePage;
export type EventRecordRankPage = {
storeId?: string;
customerId?: string;
eventIdList?: string[];
beginAt?: number;
+1
View File
@@ -1,6 +1,7 @@
import type { Model, Role, User } from "timi-web";
export type ManagedUser = {
storeId?: string;
userId?: string;
enabled?: boolean;
remark?: string;
+29
View File
@@ -0,0 +1,29 @@
import type { BasePage, Model } from "timi-web";
export type StoreStatus = "ACTIVE" | "INACTIVE" | "DELETED";
export type StoreBusinessDayOpenStatus = "OPEN" | "CLOSED";
export type Store = {
code?: string;
name?: string;
status?: StoreStatus;
telephone?: string;
address?: string;
remark?: string;
sort?: number;
} & Model;
export type StoreBusinessDay = {
storeId?: string;
dateValue?: number;
openStatus?: StoreBusinessDayOpenStatus;
businessDayNo?: number;
reason?: string;
} & Model;
export type StoreBusinessDayPage = {
storeId?: string;
beginDateValue?: number;
endDateValue?: number;
} & BasePage;