file.go 1021 B

123456789101112131415161718192021222324252627282930
  1. package model
  2. import (
  3. "time"
  4. )
  5. type ReqSysUserFile struct {
  6. ID int `gorm:"primarykey"` // 主键ID
  7. Depts []int `json:"depts" gorm:"comment:下发的部门"`
  8. EfectiveDate *time.Time `json:"effectiveDate" gorm:"comment:截止时间"`
  9. }
  10. type ReqSysUsers struct {
  11. SysUsersId []int `json:"users"` //转发的用户id
  12. FilesId []int `json:"filesId"` //转发的用户id
  13. }
  14. type SearchSysUserFiles struct {
  15. OriginalName string `json:"originalName"` //文件原始名
  16. SuffixName string `json:"suffixName"` //文件后缀名
  17. Sort int `json:"sort"` //排序方式
  18. PageNO int `json:"pageNO"` //当前页
  19. PageSize int `json:"pageSize"` //每页大小
  20. }
  21. type RespFileInfo struct {
  22. AuthId string `json:"authId"` //权限id
  23. OriginalName string `json:"originalName"` //权限id
  24. EffectiveDate time.Time `json:"effectiveDate" gorm:"effectiveDate"` //阅读的有效日期
  25. }