21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
import type {ISysFileInfo} from "@/domain/iSysFile.ts";
|
|
|
|
/** 客户等级 */
|
|
export default interface ICustomerLevel {
|
|
id?: number;
|
|
/** 等级名称 */
|
|
name?: string;
|
|
sort?: number;
|
|
status?: number;
|
|
icon_id?: number;
|
|
icon?: ISysFileInfo;
|
|
icon_url?: string;
|
|
created_at?: string;
|
|
updated_at?: string;
|
|
}
|
|
|
|
export const CUSTOMER_LEVEL_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
|
0: { text: '停用', color: 'error' },
|
|
1: { text: '正常', color: 'success' },
|
|
};
|