无关风月
2025-02-13 8236caa8042288fcb9b584c21d6157f713183626
ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/drainage/model/QueryTokenResult.java
New file
@@ -0,0 +1,51 @@
package com.ruoyi.integration.drainage.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
 * 获取token返回结果
 * @author zhibing.pu
 * @Date 2025/1/23 17:15
 */
@Data
public class QueryTokenResult {
   /**
    * 运营商标识
    */
   @NotNull
   @JsonProperty("OperatorID")
   private String operatorID;
   /**
    * 成功状态
    * 0:成功
    * 1:失败
    */
   @NotNull
   @JsonProperty("SuccStat")
   private Integer succStat;
   /**
    * 获取的凭证
    */
   @NotNull
   @JsonProperty("AccessToken")
   private String accessToken;
   /**
    * 凭证有效期,秒
    */
   @NotNull
   @JsonProperty("TokenAvailableTime")
   private Long tokenAvailableTime;
   /**
    * 失败原因
    * 0:无
    * 1:无此运营商
    * 2:秘钥错误
    * 3`9自定义
    */
   @NotNull
   @JsonProperty("FailReason")
   private Integer failReason;
}