6
0

announcement.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "lims_adapter/model/announcement/internal"
  7. "github.com/gogf/gf/os/gtime"
  8. )
  9. // Announcement is the golang structure for table announcement.
  10. type Announcement internal.Announcement
  11. // Fill with you ideas below.
  12. type AnnouncementListReq struct {
  13. Title string `json:"title"`
  14. Sender string `json:"sender"`
  15. Status int `json:"status"`
  16. PublishTimeEnd *gtime.Time `json:"publish_time_end"`
  17. PublishTimeStart *gtime.Time `json:"publish_time_start"`
  18. Current int `json:"current"`
  19. Size int `json:"size"`
  20. }
  21. type AnnouncementAnnouncementReq struct {
  22. Current int `json:"current"`
  23. Size int `json:"size"`
  24. }
  25. type AnnouncementAddReq struct {
  26. Title string `json:"title" v:"required#请输入标题"` // 标题
  27. Content string `json:"content" v:"required#请输入内容"`
  28. IsTop bool `json:"isTop"` // 是否置顶
  29. Link string `json:"link"` // 链接
  30. File []FileInfo `json:"file"` // 文件
  31. DeptId int `json:"deptId"` // 标题
  32. ReceiverDevice string `json:"receiverDevice"` // 接收设备
  33. Status int `json:"-"`
  34. }
  35. type AnnouncementUpdateReq struct {
  36. Id int `json:"id" v:"required#请输入Id"`
  37. Title string `json:"title"` // 标题
  38. Content string `json:"content"`
  39. IsTop *bool `json:"isTop"` // 是否置顶
  40. Link string `json:"link"` // 链接
  41. File []FileInfo `json:"file"` // 文件
  42. DeptId int `json:"deptId"` // 标题
  43. ReceiverDevice *string `json:"receiverDevice"` // 接收设备
  44. Status int `json:"-"`
  45. FileDelete []int `json:"file_delete"`
  46. }
  47. type AnnouncementSetTopReq struct {
  48. Id int `json:"id" v:"required#请输入Id"`
  49. IsTop bool `json:"isTop"` // 是否置顶
  50. }
  51. type IdReq struct {
  52. Id int `json:"id" v:"required#请输入Id"`
  53. }
  54. type AnnouncementGetResp struct {
  55. Announcement
  56. ReceiverDeviceName string `json:"receiverDeviceName"`
  57. File []FileInfo `json:"file"` // 文件
  58. }
  59. type FileInfo struct {
  60. Id int `json:"id"`
  61. FileExtend string `json:"file_extend"`
  62. FileName string `json:"file_name"`
  63. FileSize int `json:"file_size"`
  64. FileUrl string `json:"file_url"`
  65. }
  66. type AnnouncementWithNew struct {
  67. Announcement
  68. IsNew bool `json:"isNew"`
  69. }