app_file.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package request
  2. import (
  3. "server/model/common/request"
  4. "server/model/system"
  5. "time"
  6. )
  7. type SearchAppFileParams struct {
  8. system.File
  9. request.PageInfo
  10. }
  11. type ChangeFileInfo struct {
  12. ID int `gorm:"primarykey"` // 主键ID
  13. CategoryName string `gorm:"comment:文件类别名" json:"categoryName"` //文件类别名
  14. AuthId []int `json:"authId" gorm:"comment:文件权限" ` //文件的操作权限
  15. }
  16. type Distribute struct {
  17. ID int `gorm:"primarykey"` // 主键ID
  18. Depts []int `json:"depts" gorm:"comment:下发的部门"`
  19. EfectiveDate *time.Time `json:"effectiveDate" gorm:"comment:截止时间"`
  20. }
  21. type UserFile struct {
  22. ID int `gorm:"primarykey"` // 主键ID
  23. Operator int `json:"operator" gorm:"comment:操作人id"`
  24. Receiver int `json:"receiver" gorm:"comment:接收人id"`
  25. FileId int `json:"fileId" gorm:"comment:文件id"`
  26. EffectiveDate *time.Time `json:"effectiveDate" gorm:"comment:截止时间"`
  27. OperationStatus string `json:"OperationStatus" gorm:"comment:操作状态"`
  28. IsDeleted int `json:"isDeleted" gorm:"comment:是否删除"`
  29. }
  30. func (UserFile) TableName() string {
  31. return "user_file" // 指定表名为 "user_file"
  32. }