import {EnumManager}  from "./enums";

// 创建枚举管理器实例
const customersEnum = new EnumManager([
  {value: 'intermediary', name: '中介'},
  {value: 'owner', name: '业主'},
  {value: 'closer', name: '意向客户'},
  {value: 'visitor', name: '游客'},
]);
// 创建区域
const areaEnum = new EnumManager([
  {value: 1, name: '南通'},
  {value: 2, name: '盐城'}
]);

// 创建权益类型
const rightEnum = new EnumManager([
  {value: 'success', name: '已使用'},
  {value: 'checking', name: '确认中'},
  {value: 'checked', name: '待使用'},
]);
// 创建权益类型
const equiteEnum = new EnumManager([
  {value:1, name: 'hotel'},
  {value:3,name:'parentchild'},
  {value:4,name:'jiazhuang'},
  {value:5,name:'quanwu'},
  {value:6,name:'menchuang'},
  {value:7,name:'kangyang'},
  {value:9,name:'jdnk'},
  {value:11,name:'aiya'},
  {value:12,name:'yllvs'},
  {value:15,name:'birth'},
  {value:43,name:'bglxshyly'},

  {value:16,name:'ycjztg'},
  {value:17,name:'ycqwsc'},
  {value:18,name:'ycfwjbj'},
  {value:19,name:'ycmcby'},
  {value:20,name:'ycxwybm'},
  {value:21,name:'ycjd'},
  {value:23,name:'ycyllvs'},
  {value:24,name:'ycparentchild'},
  {value:28,name:'ycbirth'},
  {value:53,name:'ycbglxshyly'},
  // {value:4,name:'life'},
  // {value:5,name:'lvyou'},
  // {value:6,name:'caizhai'},
  // {value:7,name:'kangyang'},
  // {value:8,name:'fangchan'},
]);
const typerEnum=new EnumManager([
  {value:'product',name:'实体产品'},
  {value:'hotel',name:'酒店'},
  {value:'table',name:'表单'},
  {value:'qrcode',name:'二维码'},

])
const signInEnum=new EnumManager([
  {value:'product',name:'实体产品'},
  {value:'point',name:'积分'}
])
export {
    customersEnum,areaEnum,rightEnum,equiteEnum,typerEnum,signInEnum
}
// // 获取整个数组
// console.log(roleEnum.getAll());
// // 输出: 原始数组

// // 根据value获取name
// console.log(roleEnum.getName('owner')); // 输出: '业主'
// console.log(roleEnum.getName('visitor')); // 输出: '游客'

// // 根据name获取value
// console.log(roleEnum.getValue('中介')); // 输出: 'intermediary'

// // 获取所有value
// console.log(roleEnum.getValues()); 
// // 输出: ['intermediary', 'owner', 'closer', 'visitor']

// // 获取所有name
// console.log(roleEnum.getNames());
// // 输出: ['中介', '业主', '意向客户', '游客']