liu
9 小时以前 5d34bdd3c426bb2ca5f6627424ae67984f745603
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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;
import java.util.List;
 
@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 = "活动模板类型:1纯通知 2单条消息 3图片通知 4附件通知 5数据采集/评价",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "5")
    @NotNull(message = "活动模板类型不能为空")
    private Integer activityType;
 
    @Schema(description = "活动详情")
    private String content;
 
    @Schema(description = "卡片按钮文案(单条消息/数据采集模板使用)", example = "立即报名")
    @Size(max = 32, message = "按钮文案长度不能超过 32 个字符")
    private String buttonText;
 
    @Schema(description = "是否开启评价(数据采集模板使用)", example = "true")
    private Boolean ratingEnabled;
 
    @Schema(description = "评价标题", example = "活动满意度评价")
    @Size(max = 128, message = "评价标题长度不能超过 128 个字符")
    private String ratingTitle;
 
    @Schema(description = "评价最高星级,默认 5", example = "5")
    private Integer ratingMax;
 
    @Schema(description = "图片通知的图片文件编号列表(最多 9 张)", example = "[1,2]")
    @Size(max = 9, message = "图片最多上传 9 张")
    private List<Long> imageBlobIds;
 
    @Schema(description = "附件通知的附件文件编号列表(最多 5 个)", example = "[1,2]")
    @Size(max = 5, message = "附件最多上传 5 个")
    private List<Long> fileBlobIds;
 
    @Schema(description = "数据采集模板的自定义字段列表;null = 不改动,[] = 清空")
    private List<WxCpActivityFieldSaveReqVO> fieldList;
 
    @Schema(description = "封面图文件编号列表(最多 1 张)", example = "[1]")
    @Size(max = 1, message = "封面图最多上传 1 张")
    private List<Long> blobIds;
 
    @Schema(description = "详情图片文件编号列表(最多 5 张);不传 = 不改动,传 [] = 清空", example = "[2,3]")
    @Size(max = 5, message = "详情图片最多上传 5 张")
    private List<Long> detailBlobIds;
 
    @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 表示不限;仅数据采集模板使用,不传默认 0", example = "50")
    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;
 
}