当前位置 : 主页 > 编程语言 > java >

数据返回封装类2

来源:互联网 收集:自由互联 发布时间:2021-06-28
gistfile1.txt package com.digitalchina.common.data;/** * Created by wanggw on 2016/10/29. */public class Constants {/* 平台代码规范常量 */public final static String RTN_CODE_SUCCESS = "000000"; //通用成功代码public final stati
gistfile1.txt
package com.digitalchina.common.data;

/**
 * Created by wanggw on 2016/10/29.
 */
public class Constants {
	
	/* 平台代码规范常量 */
	public final static String RTN_CODE_SUCCESS = "000000"; //通用成功代码
	public final static String RTN_CODE_FAIL = "999999"; //通用错误代码
	
	public final static String RTN_CODE_INVALID_API = "123456"; //定制的错误代码
    
    public final static String RTN_STATUS_SUCCESS = "OK";
    public final static String RTN_STATUS_ERROR = "ERROR";

    /**
     * 通用错误信息
     */
    public final static String RTN_MESSAGE_ERROR = "请求发生异常";
}
网友评论