You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.5 KiB
48 lines
1.5 KiB
2 years ago
|
package com.ynxbd.common.result;
|
||
|
|
||
|
|
||
|
import lombok.Getter;
|
||
|
import lombok.ToString;
|
||
|
import org.apache.http.HttpStatus;
|
||
|
|
||
|
/**
|
||
|
* 第三方系统调用编码枚举
|
||
|
* 千万不要动
|
||
|
*/
|
||
|
|
||
|
@Getter
|
||
|
@ToString
|
||
|
public enum JsonResultEnum {
|
||
|
SYS_WX("[微信]", "return_code", "return_msg", "SUCCESS", "FAIL", String.valueOf(HttpStatus.SC_REQUEST_TIMEOUT)),
|
||
|
|
||
|
SYS_ME("[医保]", "return_code", "return_msg", "SUCCESS", "FAIL", String.valueOf(HttpStatus.SC_REQUEST_TIMEOUT)),
|
||
|
|
||
|
SYS_MEDICAL_ASSISTANT("[就医助手]", "errcode", "errmsg", "0", "-1", String.valueOf(HttpStatus.SC_REQUEST_TIMEOUT)),
|
||
|
|
||
|
SYS_HIS("[HIS]", "ResponseCode", "ResponseMessage", "0", "-1", "500"),
|
||
|
|
||
|
SYS_RM_LIS("[瑞美LIS]", "ResultCode", "ResultMessage", "1", "0", String.valueOf(HttpStatus.SC_REQUEST_TIMEOUT));
|
||
|
|
||
|
// 调用系统标识
|
||
|
public final String SYS;
|
||
|
// 响应编码节点名
|
||
|
public final String CODE_NODE;
|
||
|
// 响应信息节点名
|
||
|
public final String MESSAGE_NODE;
|
||
|
// 调用成功编码
|
||
|
public final String SUCCESS_CODE;
|
||
|
// 错误编码
|
||
|
public final String ERROR_CODE;
|
||
|
// 超时编码
|
||
|
public final String TIMEOUT_CODE;
|
||
|
|
||
|
JsonResultEnum(String SYS, String CODE_NODE, String MESSAGE_NODE, String SUCCESS_CODE, String ERROR_CODE, String TIMEOUT_CODE) {
|
||
|
this.SYS = SYS;
|
||
|
this.CODE_NODE = CODE_NODE;
|
||
|
this.MESSAGE_NODE = MESSAGE_NODE;
|
||
|
this.SUCCESS_CODE = SUCCESS_CODE;
|
||
|
this.ERROR_CODE = ERROR_CODE;
|
||
|
this.TIMEOUT_CODE = TIMEOUT_CODE;
|
||
|
}
|
||
|
}
|