com.myb.common.enmus.CommonEnum Maven / Gradle / Ivy
package com.myb.common.enmus;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @Author meiyubin
* @Date 2023/11/29
* @DESC
*/
@AllArgsConstructor
public enum CommonEnum {
SUCCESS(0, "成功"),
FAIL(1, "失败"),
IP_FORMAT_ERROR(50001, "传入ip不正确"),
FILE_PATH_NOT_FIND(50001, "文件路径不存在"),
ERROR(2, "错误");
@Getter
private final Integer flag;
@Getter
private final String desc;
}