package com.backendsys.entity.Cms;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class CmsPageTranslationsDTO {

    /**
     * cms_page_translations
     */
    @NotNull(message="page_id 不能为空")
    private Long page_id;

    @NotEmpty(message="语言不能为空")
    private String language;

    @Size(max = 100, message = "内容标题长度不超过 {max} 字符")
    @NotEmpty(message="内容标题不能为空")
    private String title;

    @Size(max = 200, message = "内容描述长度不超过 {max} 字符")
    private String description;

    @Size(max = 10000, message = "内容内容长度不超过 {max} 字符")
    @NotEmpty(message="内容内容不能为空")
    private String content;

}
