提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.user.vo.user; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.enums.CommonStatusEnum; |
|
4 |
import com.iailab.framework.common.validation.InEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import javax.validation.constraints.NotNull; |
|
9 |
|
|
10 |
@Schema(description = "管理后台 - 用户更新状态 Request VO") |
|
11 |
@Data |
|
12 |
public class UserUpdateStatusReqVO { |
|
13 |
|
|
14 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
15 |
@NotNull(message = "角色编号不能为空") |
|
16 |
private Long id; |
|
17 |
|
|
18 |
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
19 |
@NotNull(message = "状态不能为空") |
|
20 |
@InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
|
21 |
private Integer status; |
|
22 |
|
|
23 |
} |