excel.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package request
  2. // SaveExcelInfoReq 编辑表格请求
  3. type SaveExcelInfoReq struct {
  4. ExcelInfoId int `description:"表格ID"`
  5. ExcelName string `description:"表格名称"`
  6. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,默认:1"`
  7. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  8. ExcelImage string `description:"表格截图"`
  9. ExcelClassifyId int `description:"分类id"`
  10. Content string `description:"Excel表格内容"`
  11. TableData interface{} `description:"自定义表格的数据内容"`
  12. OpSheetList []SheetOp `description:"sheet操作"`
  13. }
  14. type SheetOp struct {
  15. SheetIndex int `description:"对应的sheet下标"`
  16. SheetName string `description:"对应的sheet名称"`
  17. OpType string `description:"操作类型,新增:add;替换:replace,追加:append"`
  18. }
  19. type AddEdb struct {
  20. ExcelInfoId int `description:"表格ID"`
  21. DateSequenceStr string `description:"日期序列"`
  22. DateSequenceVal []string `description:"日期序列的值列表"`
  23. DataSequenceStr string `description:"数据序列"`
  24. DataSequenceVal []string `description:"数据序列的值列表"`
  25. EdbName string `description:"指标名称"`
  26. ClassifyId int `description:"分类id"`
  27. Frequency string `description:"频率"`
  28. Unit string `description:"单位"`
  29. }
  30. type EditEdb struct {
  31. ExcelInfoId int `description:"表格ID"`
  32. EdbInfoId int `description:"指标ID"`
  33. DateSequenceStr string `description:"日期序列"`
  34. DateSequenceVal []string `description:"日期序列的值列表"`
  35. DataSequenceStr string `description:"数据序列"`
  36. DataSequenceVal []string `description:"数据序列的值列表"`
  37. EdbName string `description:"指标名称"`
  38. ClassifyId int `description:"分类id"`
  39. Frequency string `description:"频率"`
  40. Unit string `description:"单位"`
  41. }