liurunyu
7 天以前 5ade866b912c6098da132afb23d175e016de6c9f
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mybatis/envm/IEnum.java
New file
@@ -0,0 +1,13 @@
package com.dy.common.mybatis.envm;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.annotation.JSONField;
public interface IEnum {
    Byte getCode();
    String getName();
    @JSONField
    default JSONObject toJson() {
        return JSONObject.of("code", getCode(), "name", getName());
    }
}