home.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. }
  47. type SearchWechatNumReportDataReq struct {
  48. ViewInterval string `json:"viewInterval" v:"required#查看范围不能为空"` //查看范围
  49. }
  50. type SearchWechatNumReportDataRes struct {
  51. NewCustomer int `json:"newCustomer"` // 新增客户数量
  52. NewBusiness int `json:"newBusiness"` // 新增项目数量
  53. NewTask int `json:"newTask"` // 未处理督办事项
  54. }