unit_history.go 1.1 KB

123456789101112131415161718192021222324
  1. // 自动生成模板UnitHistory
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. )
  6. // UnitHistory 结构体
  7. // 如果含有time.Time 请自行import time包
  8. type UnitHistory struct {
  9. global.GVA_MODEL
  10. UnitName string `json:"unitName" form:"unitName" gorm:"column:unit_name;comment:单位名称;type:varchar(200);"`
  11. UnitIntegral *int `json:"unitIntegral" form:"unitIntegral" gorm:"column:unit_integral;comment:现有积分;type:int"`
  12. UnitMaxIntegral *int `json:"unitMaxIntegral" form:"unitMaxIntegral" gorm:"column:unit_max_integral;comment:满分;type:int"`
  13. Period string `json:"period" form:"period" gorm:"column:period;comment:期编号;type:varchar(40);"`
  14. UnitId *uint `json:"unitId" form:"unitId" gorm:"column:unit_id;comment:单位id;type:bigint"`
  15. ProblemIds string `json:"problemIds" form:"problemIds" gorm:"column:problem_ids;comment:关联问题id;type:varchar(10000);"`
  16. Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:单位类型;type:varchar(600);"`
  17. }
  18. // TableName UnitHistory 表名
  19. func (UnitHistory) TableName() string {
  20. return "unit_history"
  21. }