package com.backendsys.modules.cms.banner.entity;

import com.backendsys.entity.validator.RangeArray;
import com.backendsys.modules.cms.article.entity.ArticleCategoryI18n;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
@TableName("cms_banner_i18n")
public class BannerI18n {
    public static interface Detail{}
    public static interface Create{}
    public static interface Update{}
    public static interface Delete{}

    @NotEmpty(message="语言不能为空", groups = { Create.class, Update.class })
    private String language;

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long banner_id;
    @Size(max = 50, message = "资讯标题长度不超过 {max} 字符", groups = { Create.class, Update.class })
    @NotNull(message="幻灯片标题不能为空", groups = { Create.class, Update.class })
    private String title;
    @Size(max = 1000, message = "链接路径长度不超过 {max} 字符", groups = { Create.class, Update.class})
    private String link;
    @Size(max = 1000, message = "图片路径长度不超过 {max} 字符", groups = { Create.class, Update.class})
    @NotNull(message="图片路径不能为空", groups = { Create.class, Update.class })
    private String image;
    @Size(max = 1000, message = "图片(缩略图)路径长度不超过 {max} 字符", groups = { Create.class, Update.class})
    @NotNull(message="图片(缩略图)路径不能为空", groups = { Create.class, Update.class })
    private String image_thumb;

}
