2、接口返回参数中添加追踪状态码traceCode,用于查看服务处理日志,方便调试与定故障定位; 3、添加项目调试模式(isDebug参数),调用maat通用接口时,调式携带提交内容,生产过程为空;
35 lines
747 B
Java
35 lines
747 B
Java
package com.nis.restful;
|
|
|
|
|
|
public class RestConstants {
|
|
/**
|
|
* json报文字段
|
|
*/
|
|
public static final String REST_SERVICE_HTTP_STATUS = "status";
|
|
|
|
public static final String REST_SERVICE_BUSINESS_CODE = "businessCode";
|
|
|
|
public static final String REST_SERVICE_REASON = "reason";
|
|
|
|
public static final String REST_SERVICE_MSG = "msg";
|
|
|
|
public static final String REST_SERVICE_DATA = "data";
|
|
|
|
public static final String REST_SERVICE_URI = "fromuri";
|
|
|
|
public static final String REST_SERVICE_ACTIVE_SYS = "activeSys";
|
|
|
|
public static final String REST_SERVICE_LOG_SOURCE = "logSource";
|
|
|
|
public static final String TRACE_CODE = "traceCode";
|
|
|
|
//暂时4个
|
|
|
|
/**
|
|
* code错误码
|
|
*/
|
|
|
|
|
|
|
|
}
|