| | |
| | | package com.ruoyi.common.core.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | |
| | | */ |
| | | @Data |
| | | @NoArgsConstructor |
| | | @ApiModel("请求响应对象") |
| | | @Schema(name = "请求响应对象") |
| | | public class R<T> implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | */ |
| | | public static final int FAIL = 500; |
| | | |
| | | @ApiModelProperty("消息状态码") |
| | | @Schema(name = "消息状态码") |
| | | private int code; |
| | | |
| | | @ApiModelProperty("消息内容") |
| | | @Schema(name = "消息内容") |
| | | private String msg; |
| | | |
| | | @ApiModelProperty("数据对象") |
| | | @Schema(name = "数据对象") |
| | | private T data; |
| | | |
| | | public static <T> R<T> ok() { |