|
@@ -1,5 +1,6 @@
|
|
|
package com.nb.auth.granter;
|
|
package com.nb.auth.granter;
|
|
|
|
|
|
|
|
|
|
+import com.anji.captcha.model.vo.CaptchaVO;
|
|
|
import com.nb.auth.enums.GrantTypeEnum;
|
|
import com.nb.auth.enums.GrantTypeEnum;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
@@ -27,7 +28,8 @@ public class TokenParameter implements Serializable {
|
|
|
@ApiModelProperty("验证码,web账密登录、疼痛小管家手机验证码时使用")
|
|
@ApiModelProperty("验证码,web账密登录、疼痛小管家手机验证码时使用")
|
|
|
String code;
|
|
String code;
|
|
|
|
|
|
|
|
- @ApiModelProperty("验证码key,web账密登录时使用")
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "验证码key,web账密登录时使用",hidden = true)
|
|
|
|
|
+ @Deprecated
|
|
|
String codeKey;
|
|
String codeKey;
|
|
|
|
|
|
|
|
@ApiModelProperty("第三方应用登陆时使用")
|
|
@ApiModelProperty("第三方应用登陆时使用")
|
|
@@ -39,6 +41,8 @@ public class TokenParameter implements Serializable {
|
|
|
@ApiModelProperty("第三方应用登录时使用的时间戳,用来获取签名")
|
|
@ApiModelProperty("第三方应用登录时使用的时间戳,用来获取签名")
|
|
|
String timestamp;
|
|
String timestamp;
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty("行为验证码,web账密登录时使用")
|
|
|
|
|
+ CaptchaVO captcha;
|
|
|
public void setGrantType(String grantType) {
|
|
public void setGrantType(String grantType) {
|
|
|
this.grantType = GrantTypeEnum.valueOfCode(grantType);
|
|
this.grantType = GrantTypeEnum.valueOfCode(grantType);
|
|
|
}
|
|
}
|