提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.social.dto; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.enums.UserTypeEnum; |
|
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.Data; |
|
9 |
|
|
10 |
import lombok.NoArgsConstructor; |
|
11 |
|
|
12 |
import javax.validation.constraints.NotEmpty; |
|
13 |
import javax.validation.constraints.NotNull; |
|
14 |
|
|
15 |
@Schema(description = "RPC 服务 - 取消绑定社交用户 Request DTO") |
|
16 |
@Data |
|
17 |
@AllArgsConstructor |
|
18 |
@NoArgsConstructor |
|
19 |
public class SocialUserUnbindReqDTO { |
|
20 |
|
|
21 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
22 |
@NotNull(message = "用户编号不能为空") |
|
23 |
private Long userId; |
|
24 |
@Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
25 |
@InEnum(UserTypeEnum.class) |
|
26 |
@NotNull(message = "用户类型不能为空") |
|
27 |
private Integer userType; |
|
28 |
|
|
29 |
@Schema(description = "社交平台的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
30 |
@InEnum(SocialTypeEnum.class) |
|
31 |
@NotNull(message = "社交平台的类型不能为空") |
|
32 |
private Integer socialType; |
|
33 |
@Schema(description = "社交平台的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "zsw") |
|
34 |
@NotEmpty(message = "社交平台的 openid 不能为空") |
|
35 |
private String openid; |
|
36 |
|
|
37 |
} |