package com.product.integration.config;
|
|
import com.product.common.enums.IEnum;
|
|
/**
|
* @Description: 集成返回码定义
|
*/
|
public enum IntegrationCode implements IEnum {
|
OPERATION_SUCCESS("成功", "200"),
|
|
SAVE_FAIL("保存失败", "001"),
|
FIND_FAIL("查询失败", "002"),
|
DELETE_FAIL("删除失败", "003"),
|
|
SAVE_DEAL_RESPONSE_INFO("保存-处理响应数据结构失败", "010"),
|
;
|
private String text;
|
private String value;
|
|
private IntegrationCode(String text, String value) {
|
this.text = text;
|
this.value = value;
|
}
|
|
public String getText() {
|
return text;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
@Override
|
public String toString() {
|
return value + ": " + text;
|
}
|
}
|