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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
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)
@ApiModel(value = "OaAssetsServer对象", description = "服务")
public class OaAssetsServer implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "服务名称")
    private String server;

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

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "服务器ID")
    private Integer assetsId;

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

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

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

    @ApiModelProperty(value = "可见用户")
    private String userIds;

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

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

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

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

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
