18 lines
454 B
TypeScript
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' },
|
|
};
|