refactor(EGender): remove Description attributes from enum values
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Shop.Domain.Entities.CustomerAggregate;
|
||||
@@ -6,12 +5,7 @@ namespace Shop.Domain.Entities.CustomerAggregate;
|
||||
[JsonConverter(typeof(JsonStringEnumConverter<EGender>))]
|
||||
public enum EGender
|
||||
{
|
||||
[Description("Não informar")]
|
||||
None = 0,
|
||||
|
||||
[Description("Masculino")]
|
||||
Male = 1,
|
||||
|
||||
[Description("Feminino")]
|
||||
Female = 2
|
||||
}
|
||||
Reference in New Issue
Block a user