toInt static method

int toInt(
  1. UserAllowTypeEnum level
)

将枚举转换为整型

Implementation

static int toInt(UserAllowTypeEnum level) => level.index;