小程序首页配置
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type {ISysFileInfo} from "@/domain/iSysFile.ts";
|
||||
|
||||
/** 小程序首页轮播图 */
|
||||
export default interface IHomeBanner {
|
||||
id?: number;
|
||||
title?: string;
|
||||
image_id?: number;
|
||||
image?: ISysFileInfo;
|
||||
image_url?: string;
|
||||
link?: string;
|
||||
sort?: number;
|
||||
status?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
export const HOME_BANNER_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '停用', color: 'error' },
|
||||
1: { text: '正常', color: 'success' },
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
import type {ISysFileInfo} from "@/domain/iSysFile.ts";
|
||||
|
||||
/** 小程序首页宫格导航 */
|
||||
export default interface IHomeNav {
|
||||
id?: number;
|
||||
name?: string;
|
||||
image_id?: number;
|
||||
image?: ISysFileInfo;
|
||||
image_url?: string;
|
||||
link?: string;
|
||||
sort?: number;
|
||||
status?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
export const HOME_NAV_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '停用', color: 'error' },
|
||||
1: { text: '正常', color: 'success' },
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
import type {ISysFileInfo} from "@/domain/iSysFile.ts";
|
||||
|
||||
/** 小程序首页促销推荐卡片 */
|
||||
export default interface IHomePromo {
|
||||
id?: number;
|
||||
title?: string;
|
||||
sub_title?: string;
|
||||
image_id?: number;
|
||||
image?: ISysFileInfo;
|
||||
image_url?: string;
|
||||
link?: string;
|
||||
sort?: number;
|
||||
status?: number;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
export const HOME_PROMO_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '停用', color: 'error' },
|
||||
1: { text: '正常', color: 'success' },
|
||||
};
|
||||
Reference in New Issue
Block a user