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

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("b2c_good_i18n")
public class GoodI18n {

    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_id;
    @NotEmpty(message="语言不能为空", groups = { Create.class, Update.class })
    private String language;

    @Size(max = 100, message = "商品名称长度不超过 {max} 字符", groups = { Create.class, Update.class })
    @NotEmpty(message="商品名称不能为空", groups = { Create.class, Update.class })
    private String good_name;
    @Size(max = 200, message = "商品描述长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String good_description;
    @Size(max = 20000, message = "商品内容长度不超过 {max} 字符", groups = { Create.class, Update.class })
    @NotEmpty(message="商品内容不能为空")
    private String good_content;
    @Size(max = 100, message = "关键词长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String meta_keyword;
    @Size(max = 200, message = "关键词描述长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String meta_description;

}
