package com.gxwebsoft.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gxwebsoft.common.system.entity.FileRecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 应用管理记录表
 *
 * @author 科技小王子
 * @since 2023-10-26 22:06:23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "App对象", description = "应用管理记录表")
@TableName("oa_app")
public class App implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应用ID")
    @TableId(value = "app_id", type = IdType.AUTO)
    private Integer appId;

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

    @ApiModelProperty(value = "应用标识")
    private String appCode;

    @ApiModelProperty(value = "应用秘钥")
    private String appSecret;

    @ApiModelProperty(value = "上级id, 0是顶级")
    private Integer parentId;

    @ApiModelProperty(value = "应用类型")
    private String appType;

    @ApiModelProperty(value = "应用类型")
    private String appTypeMultiple;

    @ApiModelProperty(value = "类型, 0菜单, 1按钮")
    private Integer menuType;

    @ApiModelProperty(value = "企业ID")
    private Integer companyId;

    @ApiModelProperty(value = "企业名称")
    private String companyName;

    @ApiModelProperty(value = "企业简称")
    @TableField(exist = false)
    private String shortName;

    @ApiModelProperty(value = "企业商标")
    @TableField(exist = false)
    private String companyLogo;

    @ApiModelProperty(value = "应用图标")
    private String appIcon;

    @ApiModelProperty(value = "二维码")
    private String appQrcode;

    @ApiModelProperty(value = "链接地址")
    private String appUrl;

    @ApiModelProperty(value = "后台管理地址")
    private String adminUrl;

    @ApiModelProperty(value = "下载地址")
    private String downUrl;

    @ApiModelProperty(value = "链接地址")
    private String serverUrl;

    @ApiModelProperty(value = "文件服务器")
    private String fileUrl;

    @ApiModelProperty(value = "回调地址")
    private String callbackUrl;

    @ApiModelProperty(value = "腾讯文档地址")
    private String docsUrl;

    @ApiModelProperty(value = "代码仓库地址")
    private String gitUrl;

    @ApiModelProperty(value = "原型图地址")
    private String prototypeUrl;

    @ApiModelProperty(value = "IP白名单")
    private String ipAddress;

    @ApiModelProperty(value = "应用截图")
    private String images;

    @ApiModelProperty(value = "应用包名")
    private String packageName;

    @ApiModelProperty(value = "下载次数")
    private Integer clicks;

    @ApiModelProperty(value = "安装次数")
    private Integer installs;

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

    @ApiModelProperty(value = "应用介绍")
    private String content;

    @ApiModelProperty(value = "项目需求")
    private String requirement;

    @ApiModelProperty(value = "开发者(个人或公司)")
    private String developer;

    @ApiModelProperty(value = "项目负责人")
    private String director;

    @ApiModelProperty(value = "项目经理")
    private String projectDirector;

    @ApiModelProperty(value = "业务员")
    private String salesman;

    @ApiModelProperty(value = "软件定价")
    private BigDecimal price;

    @ApiModelProperty(value = "划线价格")
    private BigDecimal linePrice;

    @ApiModelProperty(value = "评分")
    private String score;

    @ApiModelProperty(value = "星级")
    private String star;

    @ApiModelProperty(value = "菜单路由地址")
    private String path;

    @ApiModelProperty(value = "菜单组件地址, 目录可为空")
    private String component;

    @ApiModelProperty(value = "权限标识")
    private String authority;

    @ApiModelProperty(value = "打开位置")
    private String target;

    @ApiModelProperty(value = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)")
    private Integer hide;

    @ApiModelProperty(value = "禁止搜索，1禁止 0 允许")
    private Integer search;

    @ApiModelProperty(value = "菜单侧栏选中的path")
    private String active;

    @ApiModelProperty(value = "其它路由元信息")
    private String meta;

    @ApiModelProperty(value = "版本，0正式版 1体验版 2开发版")
    private String edition;

    @ApiModelProperty(value = "版本号")
    private String version;

    @ApiModelProperty(value = "是否已安装")
    private Integer isUse;

    @ApiModelProperty(value = "附近1")
    private String file1;

    @ApiModelProperty(value = "附件2")
    private String file2;

    @ApiModelProperty(value = "附件3")
    private String file3;

    @ApiModelProperty(value = "是否在续费提醒显示")
    private Boolean showExpiration;

    @ApiModelProperty(value = "服务到期时间")
    private Date expirationTime;

    @ApiModelProperty(value = "最近一笔的续费金额")
    private BigDecimal renewMoney;

    @ApiModelProperty(value = "应用状态")
    private String appStatus;

    @ApiModelProperty(value = "是否作为案例展示")
    private Boolean showCase;

    @ApiModelProperty(value = "是否推荐")
    private Boolean recommend;

    @ApiModelProperty(value = "是否显示在首页")
    private Boolean showIndex;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "机构id")
    private Integer organizationId;

    @ApiModelProperty(value = "租户编号")
    private String tenantCode;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "成员管理")
    @TableField(exist = false)
    private List<AppUser> users;

    @ApiModelProperty(value = "链接列表")
    @TableField(exist = false)
    private List<AppUrl> appUrlList;

    @ApiModelProperty(value = "项目附件")
    @TableField(exist = false)
    private List<FileRecord> appFiles;

    @ApiModelProperty(value = "主体名称")
    @TableField(exist = false)
    private String tenantName;

    @ApiModelProperty(value = "开发者名称")
    @TableField(exist = false)
    private String realName;

    @ApiModelProperty(value = "开发者名称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "开发者头像")
    @TableField(exist = false)
    private String avatar;

    @ApiModelProperty(value = "手机号码")
    @TableField(exist = false)
    private String phone;

}
