zhubaomin
2025-06-06 20afccf343cd9c2f8efb1a20a0e92d4844a4adfa
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());
    }
}