import com.google.gson.annotations.SerializedName
|
|
data class OAuth2AccessToken(
|
@SerializedName("access_token")
|
val value: String, // token值
|
@SerializedName("token_type")
|
val tokenType: String, // token类型
|
@SerializedName("refresh_token")
|
val refreshToken: String, // 刷新token
|
val scope: String // 作用域
|
)
|
|
data class TokenResponse(
|
val code: String, // 注意这里改为 String 类型
|
val msg: String,
|
val data: OAuth2AccessToken?
|
)
|