package com.yuchen.saas.manage.system.api.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;


@Data
@ApiModel(value = "运营商对象", description = "运营商对象")
public class OperatorVO implements Serializable {

    private static final long serialVersionUID = 1L;


    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    @ApiModelProperty(value = "租户名称")
    private String tenantName;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "机构主键")
    private Long deptId;


    @ApiModelProperty(value = "运营商名称")
    private String OpName;


    @ApiModelProperty(value = "机构类型")
    private Integer deptCategory;
    /**
     * 统一信用代码
     */
    @ApiModelProperty(value = "统一信用代码")
    private String creditCode;
    @ApiModelProperty(value = "所属行业")
    private String companyTrade;

    @ApiModelProperty(value = "法人")
    @NotNull(message = "法定代表人不能为空")
    private String legalPerson;

    @ApiModelProperty(value = "主管理员")
    private String masterName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "是否失效")
    private Integer opStatus;

    @ApiModelProperty(value = "运营商菜单权限")
    private List<MenuVO> menus;

    @ApiModelProperty(value = "运营商园区权限")
    private List<DeptParkVO> parks;
    @ApiModelProperty(value = "运营商类型")
    private Integer operatorType;

}
