business_data.go 1.2 KB

1234567891011121314151617181920212223242526
  1. package request
  2. // BusinessDataListReq 指标列表筛选
  3. type BusinessDataListReq struct {
  4. PageSize int `form:"PageSize"`
  5. CurrentIndex int `form:"CurrentIndex"`
  6. Frequency string `form:"Frequency" description:"频度"`
  7. Source int `form:"Source" description:"来源id"`
  8. Keywords string `form:"Keywords" description:"指标ID/指标名称"`
  9. ListAll bool `form:"ListAll" description:"列表全选"`
  10. SortField int `form:"SortField" description:"排序字段: 0-默认; 1-开始时间; 2-最新时间; 3-更新时间"`
  11. SortRule int `form:"SortRule" description:"排序方式: 0-默认; 1-正序; 2-倒序"`
  12. }
  13. // BusinessDataBatchAddCheckReq 外部(商家)指标批量添加校验
  14. type BusinessDataBatchAddCheckReq struct {
  15. BusinessDataListReq
  16. IndexCodes []string `form:"IndexCodes" description:"全选为false时, 该数组为选中; 全选为true时, 该数组为不选的指标"`
  17. }
  18. // BusinessDataDataListReq 指标数据列表筛选
  19. type BusinessDataDataListReq struct {
  20. PageSize int `form:"PageSize"`
  21. CurrentIndex int `form:"CurrentIndex"`
  22. IndexCode string `form:"IndexCode" description:"指标编码"`
  23. }