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

import com.backendsys.entity.validator.RangeArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@TableName("cms_site_info")
public class SiteInfo {

    public static interface Detail{}
    public static interface Update{}

    @TableId(type = IdType.AUTO)
    private Long id;

    private String language;

    @NotEmpty(message="网站名称不能为空", groups = { Update.class })
    @Size(min = 2, max = 50, message = "网站名称长度在 {min}-{max} 字符", groups = { Update.class })
    private String name;

    @Size(max = 100, message = "关键词长度不超过 {max} 字符", groups = { Update.class })
    private String meta_keyword;
    @Size(max = 200, message = "关键词描述长度不超过 {max} 字符", groups = { Update.class })
    private String meta_description;

    @Size(max = 100, message = "版权信息长度不超过 {max} 字符", groups = { Update.class })
    private String copyright;

    @Size(max = 50, message = "备案信息长度不超过 {max} 字符", groups = { Update.class })
    private String icp;

    private String create_time;
    private String update_time;

}
