package request import ( "server/model/common/request" "server/model/system" "time" ) type SearchAppFileParams struct { system.File request.PageInfo } type ChangeFileInfo struct { ID int `gorm:"primarykey"` // 主键ID CategoryName string `gorm:"comment:文件类别名" json:"categoryName"` //文件类别名 AuthId []int `json:"authId" gorm:"comment:文件权限" ` //文件的操作权限 } type Distribute struct { ID int `gorm:"primarykey"` // 主键ID Depts []int `json:"depts" gorm:"comment:下发的部门"` EfectiveDate *time.Time `json:"effectiveDate" gorm:"comment:截止时间"` } type UserFile struct { ID int `gorm:"primarykey"` // 主键ID Operator int `json:"operator" gorm:"comment:操作人id"` Receiver int `json:"receiver" gorm:"comment:接收人id"` FileId int `json:"fileId" gorm:"comment:文件id"` EffectiveDate *time.Time `json:"effectiveDate" gorm:"comment:截止时间"` OperationStatus string `json:"OperationStatus" gorm:"comment:操作状态"` IsDeleted int `json:"isDeleted" gorm:"comment:是否删除"` } func (UserFile) TableName() string { return "user_file" // 指定表名为 "user_file" }