123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package cn.cslg.pas.common.utils;
- public enum ResponseEnum {
- SUCCESS(200, "请求成功"),
- UNAUTHORIZED(401, "未登录"),
- NOT_PERMISSION(402, "无操作权限"),
- SYSTEM_ERROR(500, "系统异常"),
- SUCCESSBUT(200, "请求成功"),
- ERROR(0, "请求失败"),
- NO_PERMISSION(201,"无权限"),
- PARAMS_ERROR(202,"参数错误"),
- CONDITION_ERROR(203, "检索式错误"),
- PATENT_IMPORT_TASK_SUCCESS(903, "导入任务完成"),
- PATENT_IMPORT_PATENT_PART_SUCCESS(900, "专利信息部分上传成功"),
- COMPARE_LITERATURE_BATCH(600,"批量上传对比文献"),
- COMPARE_LITERATURE_BATCH_DONE(601,"批量上传对比文献完成");
- private Integer code;
- private String message;
- ResponseEnum(Integer code, String message) {
- this.code = code;
- this.message = message;
- }
- public Integer getCode() {
- return code;
- }
- public void setCode(Integer code) {
- this.code = code;
- }
- public String getMessage() {
- return message;
- }
- public void setMessage(String message) {
- this.message = message;
- }
- }
|