excel_info.go 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. package response
  2. import (
  3. excel2 "eta/eta_api/models/data_manage/excel"
  4. "eta/eta_api/models/data_manage/excel/request"
  5. "eta/eta_api/services/excel"
  6. "time"
  7. "github.com/rdlucklib/rdluck_tools/paging"
  8. )
  9. // AddExcelInfoResp 添加excel表格的返回
  10. type AddExcelInfoResp struct {
  11. ExcelInfoId int `description:"表格id"`
  12. UniqueCode string `description:"表格唯一编码"`
  13. }
  14. // ExcelListResp 表格列表返回数据
  15. type ExcelListResp struct {
  16. Paging *paging.PagingItem
  17. List []*excel2.MyExcelInfoList
  18. }
  19. // ExcelTableDetailResp excel表格详情
  20. type ExcelTableDetailResp struct {
  21. UniqueCode string `description:"表格唯一code"`
  22. ExcelImage string `description:"表格截图"`
  23. ExcelName string `description:"表格名称"`
  24. TableInfo excel.TableData
  25. Config ExcelTableDetailConfigResp
  26. SourcesFrom string `description:"图表来源"`
  27. ExcelSource string `description:"表格来源str"`
  28. ExcelSourceEn string `description:"表格来源(英文)"`
  29. ExcelInfoId int `description:"表id"`
  30. Source int `description:"表格来源"`
  31. }
  32. // ExcelTableDetailConfigResp
  33. // @Description: Excel表格的配置信息
  34. type ExcelTableDetailConfigResp struct {
  35. FontSize int
  36. }
  37. // TableCellResp 单元格
  38. type TableCellResp struct {
  39. DataType int `description:"数据类型,1:普通的,2:插值法,3:手动输入,4:公式计算"`
  40. DataTime string `description:"所属日期"`
  41. ShowValue string `description:"展示的值"`
  42. Value string `description:"实际值(计算公式)"`
  43. }
  44. type TableDataItem struct {
  45. EdbInfoId int `description:"指标id"`
  46. Data []request.ManualDataReq `description:"数据列表"`
  47. Decimal int `description:"小数位数"`
  48. ExcelSource string `description:"表格来源str"`
  49. ExcelSourceEn string `description:"表格来源(英文)"`
  50. }
  51. // TableDetailResp excel表格详情
  52. type TableDetailResp struct {
  53. ExcelInfo excel2.ExcelInfo `description:"表格基础信息"`
  54. TableData request.TableDataReq `description:"表格内容"`
  55. }
  56. // ExcelInfoDetail excel表格详情(前端使用)
  57. type ExcelInfoDetail struct {
  58. ExcelInfoId int `orm:"column(excel_info_id);pk"`
  59. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,默认:1"`
  60. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  61. ExcelName string `description:"表格名称"`
  62. UniqueCode string `description:"表格唯一编码"`
  63. ExcelClassifyId int `description:"表格分类id"`
  64. SysUserId int `description:"操作人id"`
  65. SysUserRealName string `description:"操作人真实姓名"`
  66. Content string `description:"表格内容"`
  67. ExcelImage string `description:"表格图片"`
  68. FileUrl string `description:"表格下载地址"`
  69. Sort int `description:"排序字段,数字越小越排前面"`
  70. IsDelete int `description:"是否删除,0:未删除,1:已删除"`
  71. ModifyTime time.Time `description:"最近修改日期"`
  72. CreateTime time.Time `description:"创建日期"`
  73. TableData interface{} `description:"表格内容"`
  74. Button excel2.ExcelInfoDetailButton `description:"操作权限"`
  75. CanEdit bool `description:"是否可编辑"`
  76. Editor string `description:"编辑人"`
  77. IsJoinPermission int `description:"是否加入权限管控,0:不加入;1:加入;默认:0"`
  78. HaveOperaAuth bool `description:"是否有数据权限"`
  79. ParentId int `description:"表格的父级id"`
  80. BalanceType int `description:"平衡表类型:0 动态表,1静态表"`
  81. UpdateUserId int `description:"更新人id"`
  82. UpdateUserRealName string `description:"更新人真实姓名"`
  83. RelExcelInfoId int `description:"平衡表里静态表关联的动态表excel id"`
  84. SourcesFrom string `description:"图表来源"`
  85. ExcelSource string `description:"表格来源str"`
  86. ExcelSourceEn string `description:"表格来源(英文)"`
  87. }
  88. type BalanceChildTableResp struct {
  89. List []*excel2.ExcelInfo
  90. }
  91. type BalanceTableWorkerResp struct {
  92. List []*excel2.ExcelWorker
  93. }
  94. type BalanceTableVersionListItem struct {
  95. ExcelInfoId int `description:"表格id"`
  96. UniqueCode string `description:"表格唯一编码"`
  97. BalanceType int `description:"平衡表类型:0 动态表,1静态表"`
  98. RelExcelInfoId int `description:"平衡表里静态表关联的动态表excel id"`
  99. VersionName string `description:"静态表版本名称"`
  100. }
  101. type BalanceTableVersionListResp struct {
  102. List []*BalanceTableVersionListItem
  103. }
  104. // ShareExcelInfoDetail 分享表格详情
  105. type ShareExcelInfoDetail struct {
  106. ExcelInfoId int `description:"表格ID"`
  107. ViewUserIds []int `description:"查看权限用户IDs"`
  108. EditUserIds []int `description:"编辑权限用户IDs"`
  109. }
  110. type ExcelRuleListResp struct {
  111. List []*excel2.ExcelInfoRuleMappingView
  112. }