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

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.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@TableName("cms_article_category_i18n")
public class ArticleCategoryI18n {

    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;

    @TableField("id")
    private Long article_category_id;

    @Size(max = 50, message = "资讯分类名称长度不超过 {max} 字符", groups = { Create.class, Update.class })
    @NotBlank(message="资讯分类名称不能为空", groups = { Create.class, Update.class })
    private String category_name;
    @Size(max = 200, message = "资讯分类描述长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String category_description;
}
