export interface EnumType {
  code: number;
  description: string; // 👈 修正了原拼写错误 "descrition"
}

export interface BoolEnumType {
  code: boolean;
  description: string;
}

/**
 * 操作类型
 */
export const recordType: EnumType[] = [
  { code: 1, description: "添加" },
  { code: 2, description: "修改" },
  { code: 3, description: "删除" },
  { code: 4, description: "启用" },
  { code: 5, description: "禁用" },
  { code: 6, description: "回收" },
  { code: 7, description: "还原" },
  { code: 8, description: "登录" },
  { code: 9, description: "退出" },
  { code: 10, description: "其他" },
];

/**
 * 角色类型
 */
export const roleType: EnumType[] = [
  { code: 0, description: "后台人员" },
  { code: 1, description: "系统管理员" },
  { code: 2, description: "普通用户" },
  { code: 3, description: "经纪人" },
];

/**
 * 状态（0: 启用, 1: 禁用）
 */
export const status: EnumType[] = [
  { code: 0, description: "启用" },
  { code: 1, description: "禁用" },
];

export const isSuccess: BoolEnumType[] = [
  { code: true, description: "成功" },
  { code: false, description: "失败" },
];
