excel_info.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package response
  2. import (
  3. "eta_gn/eta_chart_lib/models"
  4. "eta_gn/eta_chart_lib/models/request"
  5. "eta_gn/eta_chart_lib/services/excel"
  6. "time"
  7. )
  8. type ExcelTableDetailResp struct {
  9. UniqueCode string `description:"表格唯一code"`
  10. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,默认:1"`
  11. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  12. ExcelImage string `description:"表格截图"`
  13. ExcelName string `description:"表格名称"`
  14. SourcesFrom string `description:"图表来源"`
  15. ExcelSource string `description:"表格来源str"`
  16. ExcelSourceEn string `description:"表格来源(英文)"`
  17. TableInfo excel.TableData
  18. Config ExcelTableDetailConfigResp
  19. }
  20. type ExcelTableDetailConfigResp struct {
  21. FontSize int
  22. }
  23. type TableCellResp struct {
  24. DataType int `description:"数据类型,1:普通的,2:插值法,3:手动输入,4:公式计算"`
  25. DataTime string `description:"所属日期"`
  26. ShowValue string `description:"展示的值"`
  27. Value string `description:"实际值(计算公式)"`
  28. }
  29. type TableDataItem struct {
  30. EdbInfoId int `description:"指标id"`
  31. Data []request.ManualDataReq `description:"数据列表"`
  32. }
  33. type TableDetailResp struct {
  34. ExcelInfo models.ExcelInfo `description:"表格基础信息"`
  35. TableData request.TableDataReq `description:"表格内容"`
  36. }
  37. type ExcelInfoDetail struct {
  38. ExcelInfoId int `orm:"column(excel_info_id);pk"`
  39. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,默认:1"`
  40. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  41. ExcelName string `description:"表格名称"`
  42. UniqueCode string `description:"表格唯一编码"`
  43. ExcelClassifyId int `description:"表格分类id"`
  44. SysUserId int `description:"操作人id"`
  45. SysUserRealName string `description:"操作人真实姓名"`
  46. Content string `description:"表格内容"`
  47. ExcelImage string `description:"表格图片"`
  48. FileUrl string `description:"表格下载地址"`
  49. Sort int `description:"排序字段,数字越小越排前面"`
  50. IsDelete int `description:"是否删除,0:未删除,1:已删除"`
  51. ModifyTime time.Time `description:"最近修改日期"`
  52. CreateTime time.Time `description:"创建日期"`
  53. TableData request.TableDataReq `description:"表格内容"`
  54. }