package org.example.mybatisplus.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum SexEnum {

    MALE(1,"男");
    //FEMALE(2,"女");

    //将注解所标识的属性的值存储到数据库中
    @EnumValue
    private Integer sex;
    private String sexname;

    SexEnum(Integer sex, String sexname) {
        this.sex = sex;
        this.sexname = sexname;

    }

}
