package com.cf.imes.module.system.controller.admin.notify.vo.template;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import java.util.Map;

@Schema(description = "管理后台 - 站内信模板的发送 Request VO")
@Data
public class NotifyTemplateSendReqVO {

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "01")
    //@NotNull(message = "用户id不能为空")
    private Long userId = 0L;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "01")
    @NotEmpty(message = "模板编码不能为空")
    @Size(max = 64, message = "模板编码长度不能超过64个字符")
    private String templateCode;

    @Schema(description = "模板参数")
    @Size(max = 10, message = "模板参数数量不能超过10个")
    private Map<String, Object> templateParams;

}
