package com.backendsys.modules.b2c.good.entity;

import com.backendsys.entity.validator.RangeArray;
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.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

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

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long good_category_id;
    @NotEmpty(message="语言不能为空", groups = { GoodI18n.Create.class, GoodI18n.Update.class })
    private String language;

    @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;

}
