| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package model
- import (
- "lims_adapter/model/announcement/internal"
- "github.com/gogf/gf/os/gtime"
- )
- // Announcement is the golang structure for table announcement.
- type Announcement internal.Announcement
- // Fill with you ideas below.
- type AnnouncementListReq struct {
- Title string `json:"title"`
- Sender string `json:"sender"`
- Status int `json:"status"`
- PublishTimeEnd *gtime.Time `json:"publish_time_end"`
- PublishTimeStart *gtime.Time `json:"publish_time_start"`
- Current int `json:"current"`
- Size int `json:"size"`
- }
- type AnnouncementAnnouncementReq struct {
- Current int `json:"current"`
- Size int `json:"size"`
- }
- type AnnouncementAddReq struct {
- Title string `json:"title" v:"required#请输入标题"` // 标题
- Content string `json:"content" v:"required#请输入内容"`
- IsTop bool `json:"isTop"` // 是否置顶
- Link string `json:"link"` // 链接
- File []FileInfo `json:"file"` // 文件
- DeptId int `json:"deptId"` // 标题
- ReceiverDevice string `json:"receiverDevice"` // 接收设备
- Status int `json:"-"`
- }
- type AnnouncementUpdateReq struct {
- Id int `json:"id" v:"required#请输入Id"`
- Title string `json:"title"` // 标题
- Content string `json:"content"`
- IsTop *bool `json:"isTop"` // 是否置顶
- Link string `json:"link"` // 链接
- File []FileInfo `json:"file"` // 文件
- DeptId int `json:"deptId"` // 标题
- ReceiverDevice *string `json:"receiverDevice"` // 接收设备
- Status int `json:"-"`
- FileDelete []int `json:"file_delete"`
- }
- type AnnouncementSetTopReq struct {
- Id int `json:"id" v:"required#请输入Id"`
- IsTop bool `json:"isTop"` // 是否置顶
- }
- type IdReq struct {
- Id int `json:"id" v:"required#请输入Id"`
- }
- type AnnouncementGetResp struct {
- Announcement
- ReceiverDeviceName string `json:"receiverDeviceName"`
- File []FileInfo `json:"file"` // 文件
- }
- type FileInfo struct {
- Id int `json:"id"`
- FileExtend string `json:"file_extend"`
- FileName string `json:"file_name"`
- FileSize int `json:"file_size"`
- FileUrl string `json:"file_url"`
- }
- type AnnouncementWithNew struct {
- Announcement
- IsNew bool `json:"isNew"`
- }
|