package cn.iocoder.yudao.module.wxcp.controller.admin.notice.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.Size;
|
import lombok.Data;
|
|
@Schema(description = "管理后台 - 企业微信通知多图文条目 创建/修改 Request VO")
|
@Data
|
public class WxCpNoticeArticleSaveReqVO {
|
|
@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 = "图文摘要", example = "请各班级于本周五前完成报名")
|
@Size(max = 512, message = "图文摘要长度不能超过 512 个字符")
|
private String description;
|
|
@Schema(description = "点击跳转链接", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://example.com/news/1")
|
@NotEmpty(message = "图文跳转链接不能为空")
|
@Size(max = 1024, message = "跳转链接长度不能超过 1024 个字符")
|
private String linkUrl;
|
|
@Schema(description = "封面图 Blob ID(选填)", example = "1024")
|
private Long coverBlobId;
|
|
@Schema(description = "排序号,越小越靠前", example = "1")
|
private Integer sortNo;
|
|
}
|