feat(M08-D): 补广告与装修管理
This commit is contained in:
@@ -470,6 +470,54 @@ export interface TenantApplicationConfig {
|
||||
isDefault: boolean;
|
||||
}
|
||||
|
||||
export interface MediaAsset {
|
||||
id: string;
|
||||
storeId: string | null;
|
||||
url: string;
|
||||
mimeType: string;
|
||||
byteSize: number;
|
||||
width: number;
|
||||
height: number;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export type DecorationComponentType = 'HERO' | 'NOTICE' | 'GALLERY' | 'CONTACT' | 'ROOM_LIST';
|
||||
|
||||
export interface DecorationComponent {
|
||||
type: DecorationComponentType;
|
||||
props: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface DecorationVersion {
|
||||
id: string;
|
||||
storeId: string;
|
||||
templateCode: string;
|
||||
schemaVersion: number;
|
||||
content: { components: DecorationComponent[] };
|
||||
status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
||||
version: number;
|
||||
publishedAt: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface AdvertisementInput {
|
||||
scopeType: 'PLATFORM' | 'TENANT' | 'STORE';
|
||||
storeId: string | null;
|
||||
title: string;
|
||||
imageAssetId: string;
|
||||
targetType: 'NONE' | 'PAGE' | 'URL';
|
||||
targetValue: string;
|
||||
startsAt: string | null;
|
||||
endsAt: string | null;
|
||||
status: 'DRAFT' | 'ACTIVE' | 'INACTIVE';
|
||||
sortOrder: number;
|
||||
}
|
||||
|
||||
export interface Advertisement extends AdvertisementInput {
|
||||
id: string;
|
||||
imageUrl: string;
|
||||
}
|
||||
|
||||
export interface CleaningTask {
|
||||
id: string;
|
||||
taskNo: string;
|
||||
|
||||
Reference in New Issue
Block a user