package cn.ey.biz.module.system.api.i18n.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class I18nDTO {

    @ApiModelProperty(value = "类型 menu-菜单 label-显示标签 dict-字典")
    private String type;

    @ApiModelProperty(value = "显示键 如果是菜单或者字典对应的是其主键", required = true)
    private String key;

    @ApiModelProperty(value = "备注")
    private String memo;

    @NotNull(message = "app不能为空")
    private List<String> appIds;

    @ApiModelProperty(value = "多语言")
    private List<Lang> langs;

    @Data
    public static class Lang {
        @ApiModelProperty(value = "显示值")
        private String label;

        @ApiModelProperty(value = "语言种类", required = true)
        private String lang;
    }
}
