提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.notice.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotBlank; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
import javax.validation.constraints.Size; |
|
9 |
|
|
10 |
@Schema(description = "管理后台 - 通知公告创建/修改 Request VO") |
|
11 |
@Data |
|
12 |
public class NoticeSaveReqVO { |
|
13 |
|
|
14 |
@Schema(description = "岗位公告编号", example = "1024") |
|
15 |
private Long id; |
|
16 |
|
|
17 |
@Schema(description = "公告标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主") |
|
18 |
@NotBlank(message = "公告标题不能为空") |
|
19 |
@Size(max = 50, message = "公告标题不能超过50个字符") |
|
20 |
private String title; |
|
21 |
|
|
22 |
@Schema(description = "公告类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主") |
|
23 |
@NotNull(message = "公告类型不能为空") |
|
24 |
private Integer type; |
|
25 |
|
|
26 |
@Schema(description = "公告内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "半生编码") |
|
27 |
private String content; |
|
28 |
|
|
29 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
30 |
private Integer status; |
|
31 |
|
|
32 |
} |