liurunyu
3 天以前 6ebc3a4e7dc07f92e30a10f93bb19c32bef34d1c
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());
    }
}