| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- package com.uas.eis.sdk.entity;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import lombok.Data;
- import lombok.NoArgsConstructor;
- import java.util.List;
- /**
- *歌尔接口响应类
- */
- @Data
- public class GRApiResult<T> {
- /* *//**
- * 自定义业务码
- * @return true:成功 false:失败
- *//*
- private String success;
- *//**
- * 交易为宜值,对应PO中的transId
- * *//*
- private String transId;
- *//**
- * 错误明细,数组,出现错误时需要返回
- * *//*
- private List<Errors> errors;*/
- /**
- * 错误明细,数组,出现错误时需要返回
- * */
- @JsonProperty("return")
- private ReturnData returnData;
- /*public String getSuccess() {
- return success;
- }
- public GRApiResult<T> setSuccess(String success) {
- this.success = success;
- return this;
- }
- public String getTransId() {
- return transId;
- }
- public GRApiResult<T> setTransId(String transId) {
- this.transId = transId;
- return this;
- }*/
- public GRApiResult(){
- }
- /*public GRApiResult(String success, String transId){
- this.success = success;
- this.transId = transId;
- }
- public GRApiResult(String success, String transId, List<Errors> errors){
- this.success = success;
- this.transId = transId;
- this.errors = errors;
- }*/
- public GRApiResult(ReturnData returnData){
- this.returnData = returnData;
- }
- }
|