All Downloads are FREE. Search and download functionalities are using the official Maven repository.

love.keeping.starter.web.resp.InvokeResult Maven / Gradle / Ivy

The newest version!
package love.keeping.starter.web.resp;

import love.keeping.starter.common.constants.ResponseConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 统一响应数据
 *
 * @author Keeping
 */
@Data
public class InvokeResult implements Response {

  private static final long serialVersionUID = 1L;

  /**
   * 响应码
   */
  @ApiModelProperty(value = "响应码,2开头的响应码为成功,否则为失败", example = "200")
  private Integer code;

  /**
   * 响应信息
   */
  @ApiModelProperty(value = "响应信息", example = ResponseConstants.INVOKE_RESULT_SUCCESS_MSG)
  private String msg;

  /**
   * 数据
   */
  @ApiModelProperty("数据")
  private T data;

  /**
   * TraceId
   */
  @ApiModelProperty("TraceId")
  private String traceId;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy