home.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package home
  2. import "github.com/gogf/gf/os/gtime"
  3. type SetUpHomeConfig struct {
  4. ModuleCode string `json:"module_code"`
  5. NumReportConfig []*NumReportConfig `json:"num_report_config"`
  6. DataReportConfig []*DataReportConfig `json:"data_report_config"`
  7. }
  8. type SearchHomeConfig struct {
  9. ModuleCode string `json:"module_code"`
  10. }
  11. type SearchNumReportData struct {
  12. ReportId []int64 `json:"ids"`
  13. }
  14. type SearchDataReportData struct {
  15. ReportId int64 `json:"id"`
  16. Params map[string]interface{}
  17. }
  18. type NumReportConfig struct {
  19. Id int64 `json:"id"`
  20. ReportIcon string `json:"report_icon"`
  21. ReportCode string `json:"report_code"`
  22. ReportName string `json:"report_name"`
  23. ReportDesc string `json:"report_desc"`
  24. Sort int64 `json:"sort"`
  25. }
  26. type DataReportConfig struct {
  27. Id int64 `json:"id"`
  28. ReportCode string `json:"report_code"`
  29. ReportName string `json:"report_name"`
  30. ReportDesc string `json:"report_desc"`
  31. ReportType string `json:"report_type"`
  32. LocationX int64 `json:"location_x"`
  33. LocationY int64 `json:"location_y"`
  34. SizeH int64 `json:"size_h"`
  35. SizeW int64 `json:"size_w"`
  36. }
  37. type NumReportResponses struct {
  38. NumReportResponse []*NumReportResponse `json:"num_report_response"`
  39. }
  40. type NumReportResponse struct {
  41. NumReportConfig
  42. Data interface{} `json:"data"`
  43. }
  44. type DataReportResponse struct {
  45. DataReportConfig
  46. Data interface{} `json:"data"`
  47. }
  48. type SearchWechatNumReportDataReq struct {
  49. ViewInterval string `json:"viewInterval" v:"required#查看范围不能为空"` //查看范围
  50. }
  51. type SearchWechatNumReportDataRes struct {
  52. NewCustomer int `json:"newCustomer"` // 新增客户数量
  53. NewBusiness int `json:"newBusiness"` // 新增项目数量
  54. NewTask int `json:"newTask"` // 未处理督办事项
  55. }
  56. type SearchFollowUpReportData struct {
  57. Month *gtime.Time `json:"month" v:"required#月份不能为空"`
  58. }
  59. type SearchPunchRecordsData struct {
  60. Month *gtime.Time `json:"month" v:"required#月份不能为空"`
  61. }