
package com.bs.common.core.domain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bs.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class SysTenant extends BaseEntity {

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    private String name;
    private String simpleName;
    private String contactUser;
    private String contactPhone;
    private Integer status;
    private String userName;
    private String password;

    @ApiModelProperty(value = "行政区划")
    private String areaCode;
    /**
     * 所有模块集合
     */
    @TableField(exist = false)
    private String systemNames;
    @TableField(exist = false)
    private Long tenantId;
    @TableField(exist = false)
    private String deptId;
    @TableField(exist = false)
    private TenantConfig tenantConfig;
    /**
     * 备注
     */
    private String remark;
    /**
     * 所属系统
     */
    @TableField(exist = false)
    private List<String> systems;

    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private List<Long> roleIds;


}
