home.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package home
  2. type SetUpHomeConfig struct {
  3. ModuleCode string `json:"module_code"`
  4. NumReportConfig []*NumReportConfig `json:"num_report_config"`
  5. DataReportConfig []*DataReportConfig `json:"data_report_config"`
  6. }
  7. type SearchHomeConfig struct {
  8. ModuleCode string `json:"module_code"`
  9. }
  10. type SearchNumReportData struct {
  11. ReportId []int64 `json:"ids"`
  12. }
  13. type SearchDataReportData struct {
  14. ReportId int64 `json:"id"`
  15. Params map[string]interface{}
  16. }
  17. type NumReportConfig struct {
  18. Id int64 `json:"id"`
  19. ReportIcon string `json:"report_icon"`
  20. ReportCode string `json:"report_code"`
  21. ReportName string `json:"report_name"`
  22. ReportDesc string `json:"report_desc"`
  23. Sort int64 `json:"sort"`
  24. }
  25. type DataReportConfig struct {
  26. Id int64 `json:"id"`
  27. ReportCode string `json:"report_code"`
  28. ReportName string `json:"report_name"`
  29. ReportDesc string `json:"report_desc"`
  30. ReportType string `json:"report_type"`
  31. LocationX int64 `json:"location_x"`
  32. LocationY int64 `json:"location_y"`
  33. SizeH int64 `json:"size_h"`
  34. SizeW int64 `json:"size_w"`
  35. }
  36. type NumReportResponses struct {
  37. NumReportResponse []*NumReportResponse `json:"num_report_response"`
  38. }
  39. type NumReportResponse struct {
  40. NumReportConfig
  41. Data interface{} `json:"data"`
  42. }
  43. type DataReportResponse struct {
  44. DataReportConfig
  45. Data interface{} `json:"data"`
  46. }