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

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 lombok.experimental.Accessors;

/**
 * <p>
 * 业务范围权限绑定表
 * </p>
 *
 * @author linyb
 * @since 2023-09-22
 */
@Data
@Accessors(chain = true)
@TableName("nest_role_business")
@ApiModel(value="NestRoleBusiness对象", description="业务范围权限绑定表")
public class NestRoleBusiness   {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    private Long roleId;
    /**
     * 业务范围对象（type为1时为园区id，以此类推）
     */
    @ApiModelProperty(name = "businessScopeId", value = "业务范围对象（type为1时为园区id，以此类推）")
    private Long businessScopeId;
    /**
     * 业务类型（1：园区，2：停车，3：充电）
     */
    @ApiModelProperty(name = "businessType", value = "业务类型（1：园区，2：停车，3：充电）")
    private Integer businessType;



}
