jiayue_index.go 1.5 KB

123456789101112131415161718192021222324252627282930
  1. package index_data
  2. // JiaYueIndexReq 指标请求体
  3. type JiaYueIndexReq struct {
  4. IndexCode string `json:"index_code" form:"index_code" description:"指标编码"`
  5. SourceExtend string `json:"source_extend" form:"source_extend" description:"来源"`
  6. IndexCodeRequired int `json:"index_code_required" form:"index_code_required" description:"指标编码是否必填: 0-否; 1-是"`
  7. }
  8. // JiaYueIndexAndDataReq 指标数据请求体
  9. type JiaYueIndexAndDataReq struct {
  10. JiaYueIndexReq
  11. StartDate string `json:"start_date" form:"start_date" description:"开始日期"`
  12. EndDate string `json:"end_date" form:"end_date" description:"结束日期"`
  13. }
  14. // JiaYuePageIndexReq 指标列表请求体-分页
  15. type JiaYuePageIndexReq struct {
  16. SourceExtend string `json:"source_extend" form:"source_extend" description:"来源"`
  17. Keyword string `json:"keyword" form:"keyword" description:"关键词"`
  18. Frequency string `json:"frequency" form:"frequency" description:"频度"`
  19. PageIndex int `json:"page_index" form:"page_index" description:"当前页码"`
  20. PageSize int `json:"page_size" form:"page_size" description:"每页数据量"`
  21. SortField int `json:"sort_field" form:"sort_field" description:"排序字段: 1-指标开始时间; 2-指标最新时间; 3-更新时间"`
  22. SortRule int `json:"sort_rule" form:"sort_rule" description:"排序方式: 1-正序; 2-倒序"`
  23. }
  24. type JiaYueImportDataReq struct {
  25. SourceExtend string `json:"source_extend" form:"source_extend" description:"来源"`
  26. }