enum BackActionEnum { refresh, } enum LoginEnum { apple, fastLogin } enum InventoryInOrOutEnum { In, Out } // 创建一个映射,将 InventoryInOrOutEnum 值与整数关联起来 const Map InventoryInOrOutEnumValues = { InventoryInOrOutEnum.In: 0, InventoryInOrOutEnum.Out: 1, };