1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package cn.iocoder.yudao.module.wxcp.controller.admin.activity.vo;
 
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.wxcp.enums.activity.WxCpPushScopeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - 企业微信活动 创建/修改 Request VO")
@Data
public class WxCpActivitySaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "活动标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "2026 年春季团建")
    @NotEmpty(message = "活动标题不能为空")
    @Size(max = 128, message = "活动标题长度不能超过 128 个字符")
    private String title;
 
    @Schema(description = "活动详情")
    private String content;
 
    @Schema(description = "封面图地址")
    @Size(max = 512, message = "封面图地址长度不能超过 512 个字符")
    private String coverUrl;
 
    @Schema(description = "活动地点", example = "公司大会议室")
    @Size(max = 255, message = "活动地点长度不能超过 255 个字符")
    private String location;
 
    @Schema(description = "活动开始时间")
    private LocalDateTime startTime;
 
    @Schema(description = "活动结束时间")
    private LocalDateTime endTime;
 
    @Schema(description = "报名开始时间")
    private LocalDateTime signupStartTime;
 
    @Schema(description = "报名结束时间")
    private LocalDateTime signupEndTime;
 
    @Schema(description = "报名人数上限,0 表示不限", example = "50")
    @NotNull(message = "报名人数上限不能为空,不限请填 0")
    private Integer signupLimit;
 
    @Schema(description = "推送范围(选填,不传默认全员);推送时仍可在推送弹窗里重新选择", example = "0")
    @InEnum(WxCpPushScopeEnum.class)
    private Integer pushScope;
 
    @Schema(description = "推送目标:部门ID或成员账号,多个用逗号分隔", example = "1,2 或 LiuYi,ZhangSan")
    @Size(max = 1024, message = "推送目标长度不能超过 1024 个字符")
    private String pushTarget;
 
    @Schema(description = "备注")
    @Size(max = 512, message = "备注长度不能超过 512 个字符")
    private String remark;
 
}