提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.auth.vo; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.validation.InEnum; |
|
4 |
import com.iailab.module.system.enums.social.SocialTypeEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.AllArgsConstructor; |
|
7 |
import lombok.Builder; |
|
8 |
import lombok.Data; |
|
9 |
import lombok.NoArgsConstructor; |
|
10 |
|
|
11 |
import javax.validation.constraints.NotEmpty; |
|
12 |
import javax.validation.constraints.NotNull; |
|
13 |
|
|
14 |
@Schema(description = "管理后台 - 社交绑定登录 Request VO,使用 code 授权码 + 账号密码") |
|
15 |
@Data |
|
16 |
@NoArgsConstructor |
|
17 |
@AllArgsConstructor |
|
18 |
@Builder |
|
19 |
public class AuthSocialLoginReqVO { |
|
20 |
|
|
21 |
@Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
22 |
@InEnum(SocialTypeEnum.class) |
|
23 |
@NotNull(message = "社交平台的类型不能为空") |
|
24 |
private Integer type; |
|
25 |
|
|
26 |
@Schema(description = "授权码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
27 |
@NotEmpty(message = "授权码不能为空") |
|
28 |
private String code; |
|
29 |
|
|
30 |
@Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62") |
|
31 |
@NotEmpty(message = "state 不能为空") |
|
32 |
private String state; |
|
33 |
|
|
34 |
} |