assignment.go 843 B

12345678910111213141516171819202122
  1. // 自动生成模板Assignment
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. "github.com/flipped-aurora/gin-vue-admin/server/model/example"
  6. )
  7. // Assignment 结构体
  8. // 如果含有time.Time 请自行import time包
  9. type Assignment struct {
  10. global.GVA_MODEL
  11. UnitIds string `json:"unitIds" form:"unitIds" gorm:"column:unit_ids;comment:目标部门;type:varchar(255);"`
  12. Title string `json:"title" form:"title" gorm:"column:title;comment:标题;type:varchar(255);"`
  13. Text string `json:"text" form:"text" gorm:"column:text;comment:内容;type:text;"`
  14. Files []example.ExaFileUploadAndDownload `json:"files" gorm:"-"`
  15. }
  16. // TableName Assignment 表名
  17. func (Assignment) TableName() string {
  18. return "assignment"
  19. }