Files
xin-procurement/web/domain/iHomeSpecial.ts
T
2026-08-31 22:21:59 +08:00

18 lines
454 B
TypeScript

import type IProduct from '@/domain/iProduct.ts';
/** 小程序首页特价推荐商品 */
export default interface IHomeSpecial {
id?: number;
product_id?: number;
product?: IProduct;
sort?: number;
status?: number;
created_at?: string;
updated_at?: string;
}
export const HOME_SPECIAL_STATUS_MAP: Record<number, { text: string; color: string }> = {
0: { text: '停用', color: 'error' },
1: { text: '正常', color: 'success' },
};