You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
653 B
Java

package com.jingcheng.cms.util;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 封装返回数据
*
* @author yaoyao.zhu
* @date
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@JSONType
public class AjaxResult {
/******** ajax 请求状态码 ****************/
public static final int SUCCESS = 1;
public static final int FAILED = 0;
/******** ajax 未授权 ****************/
public static final int UNAUTHORIZED = 401;
private int retcode = 1;
private String retmsg = "操作成功";
private Object data;
}