package com.backendsys.modules.cms.navigation.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.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@TableName("cms_navigation_i18n")
public class NavigationI18n {

    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 navigation_id;
    @NotEmpty(message="语言不能为空")
    private String language;
    @Size(max = 50, message = "菜单名称长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String navigation_name;
    @Size(max = 1000, message = "链接长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String link;
    @Size(max = 5000, message = "链接匹配路径长度不超过 {max} 字符", groups = { Create.class, Update.class })
    private String link_start_with;

}
