package cn.fateverse.query.entity.vo;

import cn.fateverse.common.decrypt.annotation.EncryptField;
import cn.fateverse.query.entity.UniColumn;
import cn.fateverse.query.entity.UniCon;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author Clay
 * @date 2023-11-30  21:59
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SqlInfoVo {
    //查询id
    @EncryptField
    @NotBlank(message = "查询id不为空")
    private String queryId;

    //查询语句
    @NotBlank(message = "sql语句不为空")
    private String uniSql;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String uqName;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    private String uqDescribe;

    private Long menuId;

    //查询条件
    private List<UniCon> uniCons;

    //查询列信息
    private List<UniColumn> uniColumns;

}
