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.
46 lines
819 B
46 lines
819 B
3 years ago
|
package com.eco.plugin.xxxx.zxyhsso.bean;
|
||
|
|
||
|
public class AjaxResult {
|
||
|
|
||
|
//状态码
|
||
|
private int code;
|
||
|
//信息
|
||
|
private String msg;
|
||
|
//数据
|
||
|
private String data;
|
||
|
|
||
|
public int getCode() {
|
||
|
return code;
|
||
|
}
|
||
|
|
||
|
public void setCode(int code) {
|
||
|
this.code = code;
|
||
|
}
|
||
|
|
||
|
public String getMsg() {
|
||
|
return msg;
|
||
|
}
|
||
|
|
||
|
public void setMsg(String msg) {
|
||
|
this.msg = msg;
|
||
|
}
|
||
|
|
||
|
public String getData() {
|
||
|
return data;
|
||
|
}
|
||
|
|
||
|
public void setData(String data) {
|
||
|
this.data = data;
|
||
|
}
|
||
|
|
||
|
public AjaxResult(int code,String msg,String data){}
|
||
|
|
||
|
public static AjaxResult success(){
|
||
|
return new AjaxResult(200,"请求成功","");
|
||
|
}
|
||
|
|
||
|
public static AjaxResult error(String msg){
|
||
|
return new AjaxResult(-1,msg,"");
|
||
|
}
|
||
|
}
|