io.github.dragons96.CommonResponseEnum Maven / Gradle / Ivy
The newest version!
package io.github.dragons96;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* Common response enum
* @author dragons
* @date 2022/3/16 11:17
*/
@Getter
@AllArgsConstructor
public enum CommonResponseEnum implements BusinessExceptionAssert {
/**
* server error
*/
SERVER_ERROR(500, "Internal Server Error"),
/**
* 成功状态
*/
OK(200, "OK")
;
/**
* 状态码
*/
private final int code;
/**
* 状态信息
*/
private final String message;
}