sheet.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. package response
  2. import (
  3. "eta/eta_api/models/data_manage/excel"
  4. "time"
  5. )
  6. // FindExcelInfoResp 根据名称获取excel的信息
  7. type FindExcelInfoResp struct {
  8. IsFind bool `description:"是否存在同名文件"`
  9. ExcelInfo FindExcelInfo `description:"表格详情"`
  10. SheetList []*excel.SheetItem `description:"sheet列表"`
  11. }
  12. // FindExcelInfo excel的数据详情
  13. type FindExcelInfo struct {
  14. ExcelInfoId int `orm:"column(excel_info_id);pk"`
  15. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,默认:1"`
  16. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  17. ExcelName string `description:"表格名称"`
  18. UniqueCode string `description:"表格唯一编码"`
  19. ExcelClassifyId int `description:"表格分类id"`
  20. SysUserId int `description:"操作人id"`
  21. SysUserRealName string `description:"操作人真实姓名"`
  22. ExcelImage string `description:"表格图片"`
  23. FileUrl string `description:"表格下载地址"`
  24. Sort int `description:"排序字段,数字越小越排前面"`
  25. ModifyTime time.Time `description:"最近修改日期"`
  26. CreateTime time.Time `description:"创建日期"`
  27. Button excel.ExcelInfoDetailButton `description:"操作权限"`
  28. CanEdit bool `description:"是否可编辑"`
  29. Editor string `description:"编辑人"`
  30. HaveOperaAuth bool `description:"是否有数据权限,默认:false"`
  31. }