没有什么特别的功能
添加枚举类
package com.imooc.enums;
/*
* 性别
* */
public enum YesOrNo {
NO(0,"否"),
YES(1,"是");
public final Integer type;
public final String value;
YesOrNo(Integer type, String value) {
this.type = type;
this.value = value;
}
}
然后 接口,实现类,没啥东西