mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	短信提交 2021-04-01,重构返回的结果
This commit is contained in:
		@@ -30,7 +30,7 @@ public class CommonResult<T> implements Serializable {
 | 
			
		||||
    /**
 | 
			
		||||
     * 错误提示,用户可阅读
 | 
			
		||||
     *
 | 
			
		||||
     * @see ErrorCode#getMessage() ()
 | 
			
		||||
     * @see ErrorCode#getMsg() ()
 | 
			
		||||
     */
 | 
			
		||||
    private String msg;
 | 
			
		||||
 | 
			
		||||
@@ -56,7 +56,7 @@ public class CommonResult<T> implements Serializable {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static <T> CommonResult<T> error(ErrorCode errorCode) {
 | 
			
		||||
        return error(errorCode.getCode(), errorCode.getMessage());
 | 
			
		||||
        return error(errorCode.getCode(), errorCode.getMsg());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static <T> CommonResult<T> success(T data) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user