package com.gxwebsoft.oa.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.gxwebsoft.common.system.entity.FileRecord;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 应用
 *
 * @author 科技小王子
 * @since 2024-09-10 20:57:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "OaApp对象", description = "应用")
public class OaApp implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "应用名称")
    private String appName;

    @Schema(description = "应用标识")
    private String appCode;

    @Schema(description = "应用秘钥")
    private String appSecret;

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

    @Schema(description = "应用类型")
    private String appType;

    @Schema(description = "应用类型")
    private String appTypeMultiple;

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

    @Schema(description = "企业ID")
    private Integer companyId;

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "应用图标")
    private String appIcon;

    @Schema(description = "二维码")
    private String appQrcode;

    @Schema(description = "链接地址")
    private String appUrl;

    @Schema(description = "后台管理地址")
    private String adminUrl;

    @Schema(description = "下载地址")
    private String downUrl;

    @Schema(description = "链接地址")
    private String serverUrl;

    @Schema(description = "文件服务器")
    private String fileUrl;

    @Schema(description = "回调地址")
    private String callbackUrl;

    @Schema(description = "腾讯文档地址")
    private String docsUrl;

    @Schema(description = "代码仓库地址")
    private String gitUrl;

    @Schema(description = "原型图地址")
    private String prototypeUrl;

    @Schema(description = "IP白名单")
    private String ipAddress;

    @Schema(description = "应用截图")
    private String images;

    @Schema(description = "应用包名")
    private String packageName;

    @Schema(description = "下载次数")
    private Integer clicks;

    @Schema(description = "安装次数")
    private Integer installs;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "应用介绍")
    private String content;

    @Schema(description = "项目需求")
    private String requirement;

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

    @Schema(description = "项目负责人")
    private String director;

    @Schema(description = "项目经理")
    private String projectDirector;

    @Schema(description = "业务员")
    private String salesman;

    @Schema(description = "软件定价")
    private BigDecimal price;

    @Schema(description = "划线价格")
    private BigDecimal linePrice;

    @Schema(description = "评分")
    private String score;

    @Schema(description = "星级")
    private String star;

    @Schema(description = "菜单路由地址")
    private String path;

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

    @Schema(description = "权限标识")
    private String authority;

    @Schema(description = "打开位置")
    private String target;

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

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

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

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

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

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "是否已安装")
    private Integer isUse;

    @Schema(description = "附近1")
    private String file1;

    @Schema(description = "附件2")
    private String file2;

    @Schema(description = "附件3")
    private String file3;

    @Schema(description = "是否显示续费提醒")
    private Boolean showExpiration;

    @Schema(description = "是否作为案例展示")
    private Integer showCase;

    @Schema(description = "是否显示在首页")
    private Integer showIndex;

    @Schema(description = "是否推荐")
    private Integer recommend;

    @Schema(description = "到期时间")
    private Date expirationTime;

    @Schema(description = "续费金额")
    private BigDecimal renewMoney;

    @Schema(description = "应用状态")
    private String appStatus;

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

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

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

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "机构id")
    private Integer organizationId;

    @Schema(description = "租户编号")
    private String tenantCode;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;

    @Schema(description = "成员管理")
    @TableField(exist = false)
    private List<OaAppUser> users;

    @Schema(description = "链接列表")
    @TableField(exist = false)
    private List<OaAppUrl> appUrlList;

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

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

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

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

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

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

}
