提交 | 用户 | 时间
|
818a01
|
1 |
package com.iailab.module.system.controller.admin.oauth2.vo.open; |
H |
2 |
|
|
3 |
import cn.hutool.core.util.StrUtil; |
|
4 |
import com.iailab.framework.common.validation.InEnum; |
|
5 |
import com.iailab.module.system.enums.social.SocialTypeEnum; |
|
6 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
7 |
import lombok.AllArgsConstructor; |
|
8 |
import lombok.Builder; |
|
9 |
import lombok.Data; |
|
10 |
import lombok.NoArgsConstructor; |
|
11 |
import org.hibernate.validator.constraints.Length; |
|
12 |
|
|
13 |
import javax.validation.constraints.AssertTrue; |
|
14 |
import javax.validation.constraints.NotEmpty; |
|
15 |
import javax.validation.constraints.Pattern; |
|
16 |
|
|
17 |
@Schema(description = "管理后台 - 账号密码授权登录 Request VO") |
|
18 |
@Data |
|
19 |
@NoArgsConstructor |
|
20 |
@AllArgsConstructor |
|
21 |
@Builder |
|
22 |
public class OAuth2OpenLoginReqVO { |
|
23 |
|
7da8f1
|
24 |
// @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "tudou") |
H |
25 |
// private String clientId; |
|
26 |
// |
|
27 |
// @Schema(description = "客户端密钥", requiredMode = Schema.RequiredMode.REQUIRED, example = "fan") |
|
28 |
// private String clientSecret; |
|
29 |
|
818a01
|
30 |
@Schema(description = "授权类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "password") |
H |
31 |
private String grantType; |
|
32 |
|
|
33 |
//授权码模式 |
|
34 |
@Schema(description = "授权范围", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
|
35 |
private String code; |
|
36 |
|
|
37 |
@Schema(description = "重定向 URI", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
|
38 |
private String redirectUri; |
|
39 |
|
|
40 |
@Schema(description = "状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
|
41 |
private String state; |
|
42 |
|
|
43 |
//密码模式 |
|
44 |
@Schema(description = "授权范围", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
|
45 |
private String scope; |
|
46 |
|
|
47 |
@Schema(description = "账号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "iailabyuanma") |
|
48 |
@Length(min = 4, max = 16, message = "账号长度为 4-16 位") |
|
49 |
@Pattern(regexp = "^[A-Za-z0-9]+$", message = "账号格式为数字以及字母") |
|
50 |
private String username; |
|
51 |
|
|
52 |
@Schema(description = "密码", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "buzhidao") |
|
53 |
@Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
|
54 |
private String password; |
|
55 |
|
|
56 |
//刷新模式 |
|
57 |
@Schema(description = "刷新token", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
|
58 |
private String refreshToken; |
|
59 |
|
|
60 |
} |