using System.ComponentModel; namespace CardApi { public enum CardType { [Description("类型1")] TYPE_1, [Description("类型2")] TYPE_2 } }