report_dto.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package dto
  2. import (
  3. "go-template/business/model"
  4. "gitea.ckfah.com/cjjy/gocommon/pkg/common"
  5. )
  6. type ReportInfoRequest struct {
  7. Params ReportInfoParams `json:"params" binding:"required"`
  8. }
  9. type ReportInfoParams struct {
  10. Id uint64 `json:"id"`
  11. }
  12. type ReportInfoResult struct {
  13. Infos []interface{}
  14. }
  15. type ReportListRequest struct {
  16. Params ReportListParams `json:"params" binding:"required"`
  17. }
  18. type ReportListParams struct {
  19. common.PageRequest
  20. UserId uint64 `json:"user_id"`
  21. }
  22. type ReportListResult struct {
  23. Items []model.ReportPeccancy `json:"items"`
  24. common.PageResponse
  25. }
  26. type SendMQRequest struct {
  27. Params SendMQParams `json:"params" binding:"required"`
  28. }
  29. type SendMQParams struct {
  30. Topic string `json:"topic"`
  31. Message string `json:"message"`
  32. }
  33. type SendMQResult struct {
  34. Result interface{} `json:"result"`
  35. }
  36. type DownLoadXlsxFileParams struct {
  37. Row int `json:"-"`
  38. Column int `json:"-"`
  39. Sheet int `json:"-"`
  40. }
  41. type DownLoadCsvFileParams struct {
  42. Row int `json:"-"`
  43. Column int `json:"-"`
  44. }
  45. type UploadXlsxFileParams struct {
  46. SheetName string `json:"-"`
  47. }
  48. type UploadXlsxFileResponse struct {
  49. Rows int `json:"rows"`
  50. Columns int `json:"columns"`
  51. Header []string `json:"header"`
  52. }