package cn.stylefeng.team.portal.modular.front.pojo.appcenter;

import cn.stylefeng.roses.kernel.file.api.format.FileUrlFormatProcess;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.annotation.SimpleFieldFormat;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class AppCenterLink {

    @ChineseDescription("主键id")
    private Long appLinkId;

    @ChineseDescription("所属链接分类id")
    private Long linkCategoryId;

    @ChineseDescription("链接名称")
    private String linkName;

    @ChineseDescription("图标类型：1-文件id，2-选择图片")
    private Integer iconType;

    @ChineseDescription("图标编码")
    private String iconCode;

    @ChineseDescription("链接图标的文件id")
    @SimpleFieldFormat(processClass = FileUrlFormatProcess.class)
    private Long linkIconFileId;

    @ChineseDescription("跳转方式：1-内部路由，2-外部链接")
    private Integer redirectType;

    @ChineseDescription("跳转路由")
    private String redirectUrl;

    @ChineseDescription("打开方式：1-本页面打开，2-新标签打开")
    private Integer openType;

    @ChineseDescription("排序")
    private BigDecimal fldSort;

    @ChineseDescription("是否可用，true-可用，false-不可用")
    private Boolean canUseFlag;

    @ChineseDescription("是否已经选中")
    private Boolean selectFlag = false;

}