All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbb.web.common.dto.resp.CommonResp Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package com.github.houbb.web.common.dto.resp;

/**
 * @author binbin.hou
 * @since 0.0.1
 */
public enum CommonResp implements IResp {
    /**
     * 通用枚举
     */
    SUCCESS("0000", "成功"),
    FAIL("9999", "失败"),
    ;

    private final String code;

    private final String desc;

    CommonResp(String code, String message) {
        this.code = code;
        this.desc = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy