package com.storlead.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统应用（sys_app），与 menu.app_id 对应。
 */
@Data
@Accessors(chain = true)
@TableName("sys_app")
@ApiModel(value = "SysAppEntity", description = "系统应用")
public class SysAppEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键，对应 menu.app_id")
    private Long id;

    @ApiModelProperty(value = "应用编码，全局唯一")
    private String appCode;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "前台标题")
    private String appTitle;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "默认首页路由/入口")
    private String homePath;

}
