mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	调整响应成功状态码与全局保持一致
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
				
			|||||||
package com.ruoyi.common.core.domain;
 | 
					package com.ruoyi.common.core.domain;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.io.Serializable;
 | 
					import java.io.Serializable;
 | 
				
			||||||
 | 
					import com.ruoyi.common.constant.HttpStatus;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * 响应信息主体
 | 
					 * 响应信息主体
 | 
				
			||||||
@@ -12,10 +13,10 @@ public class R<T> implements Serializable
 | 
				
			|||||||
    private static final long serialVersionUID = 1L;
 | 
					    private static final long serialVersionUID = 1L;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 成功 */
 | 
					    /** 成功 */
 | 
				
			||||||
    public static final int SUCCESS = 200;
 | 
					    public static final int SUCCESS = HttpStatus.SUCCESS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 失败 */
 | 
					    /** 失败 */
 | 
				
			||||||
    public static final int FAIL = 500;
 | 
					    public static final int FAIL = HttpStatus.ERROR;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private int code;
 | 
					    private int code;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user