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

shz.core.msg.Success Maven / Gradle / Ivy

There is a newer version: 2024.0.2
Show newest version
package shz.core.msg;

public enum Success implements SuccessMsg {
    OK(200, "请求成功"),
    CREATED(201, "已创建"),
    ACCEPTED(202, "已接受"),
    NOT_AUTHORITATIVE(203, "非官方信息"),
    NO_CONTENT(204, "无内容"),
    RESET(205, "重置内容"),
    PARTIAL(206, "局部内容"),
    MULTI_STATUS(207, "XML消息"),

    ;

    private final int code;
    private final String msg;

    Success(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy