package request

// BatchEdbCollectReq 批量加入收藏
type BatchEdbCollectReq struct {
	GeneralEdbEsSearchReq
	EdbIdList             []int `description:"选中的指标id列表"`
	NoEdbIdList           []int `description:"未选中的指标id列表"`
	IsSelectAll           bool  `description:"是否选择所有指标"`
	CollectClassifyIdList []int `description:"收藏分类ID列表"`
}

// GeneralEdbEsSearchReq 指标通用es搜索参数
type GeneralEdbEsSearchReq struct {
	FilterSource int    `description:"搜索来源:1:其他搜索,2:累计值转月值搜索,3:变频,4:基础指标,5:同比"`
	ClassifyId   int    `description:"父级分类id"`
	Source       int    `description:"来源"`
	EdbAuth      int    `description:"指标权限范围,0-全部;1-我的;2-公共"`
	EdbCollect   int    `description:"指标收藏状态:0-全部;1-已收藏"`
	Frequency    string `description:"频度"`
	NotFrequency string `description:"不需要的频度"`
	EdbType      string `description:"指标类型:0-基础和计算;1-基础指标;2-计算指标;3-预测指标"`
	Keyword      string `description:"关键字"`
	KeyWord      string `description:"关键字"`
}