| | |
| | | package com.panzhihua.common.model.vos; |
| | | |
| | | |
| | | import com.panzhihua.common.constants.Constants; |
| | | import lombok.Data; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import java.io.Serializable; |
| | | import java.lang.reflect.Field; |
| | | |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import com.panzhihua.common.constants.Constants; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 响应信息主体 |
| | |
| | | */ |
| | | @Data |
| | | public class R<T> implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 成功 |
| | | */ |
| | | public static final int SUCCESS = Constants.SUCCESS; |
| | | |
| | | /** |
| | | * 失败 |
| | | */ |
| | | public static final int FAIL = Constants.FAIL; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | |
| | | private String msg; |
| | |
| | | } |
| | | return Integer.valueOf(code); |
| | | } |
| | | |
| | | |
| | | } |