22 lines
535 B
TypeScript
22 lines
535 B
TypeScript
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' },
|
|
};
|