package com.gxwebsoft.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 服务
 *
 * @author 科技小王子
 * @since 2024-10-21 19:15:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "OaAssetsServer对象", description = "服务")
public class OaAssetsServer implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "插件id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "服务名称")
    private String server;

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

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "服务器ID")
    private Integer assetsId;

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

    @Schema(description = "状态, 10待审核 20已通过 30已驳回")
    private Integer status;

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

    @Schema(description = "可见用户")
    private String userIds;

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

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

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

    @Schema(description = "应用图标")
    @TableField(exist = false)
    private String logo;

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

}
