package com.sz.admin.system.pojo.vo.sysdatascope;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.core.handler.JacksonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * SysDataScopeVO
 * 
 * @author sz
 * @since 2024/6/27 13:26
 * @version 1.0
 */
@Deprecated(since = "v1.4.0-beta")
@Data
@Schema(description = "SysDataScope返回vo")
public class SysDataScopeVO {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "关联类型，data_scope_relation_type")
    private String relationTypeCd;

    @Schema(description = "关联表id")

    private Long relationId;

    @Schema(description = "数据权限")
    private String dataScope;

    @Schema(description = "关联部门")
    @Column(typeHandler = JacksonTypeHandler.class)
    private List<Long> deptOptions = new ArrayList<>();

    @Schema(description = "关联用户")
    @Column(typeHandler = JacksonTypeHandler.class)
    private List<Long> userOptions = new ArrayList<>();

}
