All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lframework.starter.mybatis.enums.Gender Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
package com.lframework.starter.mybatis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.lframework.starter.web.enums.BaseEnum;

public enum Gender implements BaseEnum {
  UNKNOWN(0, "未知"), MAN(1, "男"), FEMALE(2, "女");

  @EnumValue
  private final Integer code;

  private final String desc;

  Gender(Integer code, String desc) {

    this.code = code;
    this.desc = desc;
  }

  @Override
  public Integer getCode() {

    return this.code;
  }

  @Override
  public String getDesc() {

    return this.desc;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy