noticeSetModel.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package model
  2. type RequestListFilter struct {
  3. SearchValue string
  4. }
  5. type ResposeNoticeSetRecords struct {
  6. Records []NoticeSetRecords `json:"records"` //记录列表
  7. Current int `json:"current"` //当前分页
  8. Size int `json:"size"` //每页数量
  9. Total int `json:"total"` //总数
  10. Pages int `json:"pages"` //总页数
  11. }
  12. //返回结果
  13. type NoticeSetRecords struct {
  14. ID string `json:"id"`
  15. Rtype int `json:"rtype,omitempty"`
  16. DeviceId int `json:"deviceId,omitempty"`
  17. DeviceType int `json:"deviceType,omitempty"`
  18. RtypeName string `json:"showName,omitempty"`
  19. DevUserNoticeModesName string `json:"showOperationTypeName,omitempty"`
  20. BusinessNoticeModesName string `json:"showBusinessTypeName,omitempty"`
  21. DevUserIdsName string `json:"noticeOperationName,omitempty"`
  22. DevUserIds string `json:"noticeOperationMan,omitempty"`
  23. BusinessUserIdsName string `json:"noticeBusinessName,omitempty"`
  24. BusinessUserIds string `json:"noticeBusinessMan,omitempty"`
  25. Children []NoticeSetRecords `json:"children,omitempty"`
  26. }
  27. // NoticeUpdateData 保存时的请求数据
  28. type NoticeUpdateData struct {
  29. DeviceID int `json:"deviceId"`
  30. DeviceType int `json:"deviceType"`
  31. ID string `json:"id"`
  32. NoticeBusinessMan string `json:"noticeBusinessMan"`
  33. NoticeBusinessType string `json:"noticeBusinessType"`
  34. NoticeOperationMan string `json:"noticeOperationMan"`
  35. NoticeOperationType string `json:"noticeOperationType"`
  36. Rtype int `json:"rtype"`
  37. ShowBusinessTypeName string `json:"showBusinessTypeName"`
  38. ShowName string `json:"showName"`
  39. ShowOperationTypeName string `json:"showOperationTypeName"`
  40. NoticeBusinessManName string `json:"$noticeBusinessMan"`
  41. NoticeOperationManName string `json:"$noticeOperationMan"`
  42. }
  43. type NoticeSetDetail struct {
  44. ID string `json:"id"`
  45. RidType int `json:"ridType"`
  46. NoticeOperationType string `json:"noticeOperationType"`
  47. NoticeBusinessType string `json:"noticeBusinessType"`
  48. NoticeOperationMan string `json:"noticeOperationMan"`
  49. NoticeBusinessMan string `json:"noticeBusinessMan"`
  50. CreateTime string `json:"createTime"`
  51. CreateUser string `json:"createUser"`
  52. UpdateTime string `json:"updateTime"`
  53. UpdateUser string `json:"updateUser"`
  54. TenantID string `json:"tenantId"`
  55. IsDeleted int `json:"isDeleted"`
  56. Rid int `json:"rid"`
  57. }
  58. type NoticeSetDUserList struct {
  59. ID string `json:"id"`
  60. Name string `json:"name"`
  61. }