package com.backendsys.entity.Cms;

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

import java.util.List;

@Data
public class CmsPageDTO {
    public static interface Detail{}
    public static interface Update{}

    /**
     * cms_page
     */

    private String lang;

    private Long id;
    @NotNull(message="page_sign 不能为空", groups = { CmsPageDTO.Detail.class, CmsPageDTO.Update.class })
    private String page_sign;

    private String title;
    private String description;
    private String content;

    @NotEmpty(message="内容不能为空", groups = { CmsPageDTO.Update.class})
    private List<CmsPageTranslationsDTO> translations;

    private String create_time;
    private String update_time;

}
