namespace JNPF.Extras.CollectiveOAuth.Enums; /// /// 枚举模型. /// public struct EnumModel { /// /// 构造函数. /// /// public EnumModel(Enum um) { this.value = (int)Convert.ChangeType(um, typeof(int)); this.name = um.ToString(); this.text = um.GetDesc(); } public int value { get; set; } public string name { get; set; } public string text { get; set; } }