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());
    }
}