problem_info.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // 自动生成模板ProblemInfo
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. )
  6. // ProblemInfo 结构体
  7. // 如果含有time.Time 请自行import time包
  8. type ProblemInfo struct {
  9. global.GVA_MODEL
  10. Oper uint `json:"oper" form:"oper" gorm:"column:oper;comment:发布人;type:bigint"`
  11. Handler *int `json:"handler" form:"handler" gorm:"column:handler;comment:处理人;type:bigint"`
  12. Imgs string `json:"imgs" form:"imgs" gorm:"column:imgs;comment:关联图片;type:varchar(2000);"`
  13. Video string `json:"video" form:"video" gorm:"column:video;comment:关联视频;type:varchar(255);"`
  14. SiteId uint `json:"siteId" form:"siteId" gorm:"column:site_id;comment:站点id;type:bigint"`
  15. SiteName string `json:"siteName" form:"siteName" gorm:"column:site_name;comment:站点id;type:bigint"`
  16. Position string `json:"position" form:"position" gorm:"column:position;comment:经纬度;type:varchar(255);"`
  17. Matter string `json:"matter" form:"matter" gorm:"column:matter;comment:问题列表;type:varchar(255);"`
  18. SiteType *int `json:"siteType" form:"siteType" gorm:"column:site_type;comment:站点类型;type:int;"`
  19. Status string `json:"status" form:"status" gorm:"column:status;comment:处理状态;type:varchar(255);"`
  20. Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
  21. HandImgs string `json:"handImgs" form:"handImgs" gorm:"column:hand_imgs;comment:处理图片;type:varchar(255);"`
  22. HandText string `json:"handText" form:"handText" gorm:"column:hand_text;comment:处理内容;type:varchar(255);"`
  23. Department string `json:"department" form:"department" gorm:"column:department;comment:责任部门;type:varchar(255);"`
  24. Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:问题备注;type:varchar(600);"`
  25. Count *int `json:"count" form:"count" gorm:"default:0;column:count;comment:阅读次数;type:int);"`
  26. Integral *int `json:"integral" form:"integral" gorm:"default:0;column:integral;comment:积分;type:int);"`
  27. UnitName string `json:"unitName" form:"unitName" gorm:"column:unit_name;comment:单位名称;type:varchar(255));"`
  28. UnitId *int `json:"unitId" form:"unitId" gorm:"default:0;column:unit_id;comment:单位id;type:int);"`
  29. MatterList interface{} `json:"matterList" gorm:"-"`
  30. }
  31. type ProblemInfo1 struct {
  32. global.GVA_MODEL
  33. Oper uint `json:"oper" form:"oper" gorm:"column:oper;comment:发布人;type:bigint"`
  34. Handler *int `json:"handler" form:"handler" gorm:"column:handler;comment:处理人;type:bigint"`
  35. Imgs string `json:"imgs" form:"imgs" gorm:"column:imgs;comment:关联图片;type:varchar(2000);"`
  36. Video string `json:"video" form:"video" gorm:"column:video;comment:关联视频;type:varchar(255);"`
  37. SiteId uint `json:"siteId" form:"siteId" gorm:"column:site_id;comment:站点id;type:bigint"`
  38. SiteName string `json:"siteName" form:"siteName" gorm:"column:site_name;comment:站点id;type:bigint"`
  39. Position string `json:"position" form:"position" gorm:"column:position;comment:经纬度;type:varchar(255);"`
  40. Matter string `json:"matter" form:"matter" gorm:"column:matter;comment:问题列表;type:varchar(255);"`
  41. SiteType string `json:"siteType" form:"siteType" gorm:"column:site_type;comment:站点类型;type:varchar(255);"`
  42. Status string `json:"status" form:"status" gorm:"column:status;comment:处理状态;type:varchar(255);"`
  43. Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
  44. HandImgs string `json:"handImgs" form:"handImgs" gorm:"column:hand_imgs;comment:处理图片;type:varchar(255);"`
  45. HandText string `json:"handText" form:"handText" gorm:"column:hand_text;comment:处理内容;type:varchar(255);"`
  46. Department string `json:"department" form:"department" gorm:"column:department;comment:责任部门;type:varchar(255);"`
  47. Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:问题备注;type:varchar(600);"`
  48. Count *int `json:"count" form:"count" gorm:"default:0;column:count;comment:阅读次数;type:int);"`
  49. Integral *int `json:"integral" form:"integral" gorm:"default:0;column:integral;comment:积分;type:int);"`
  50. UnitName string `json:"unitName" form:"unitName" gorm:"column:unit_name;comment:单位名称;type:varchar(255));"`
  51. UnitId *int `json:"unitId" form:"unitId" gorm:"default:0;column:unit_id;comment:单位id;type:int);"`
  52. }
  53. // TableName ProblemInfo 表名
  54. func (ProblemInfo) TableName() string {
  55. return "problem_info"
  56. }
  57. func (ProblemInfo1) TableName() string {
  58. return "problem_info"
  59. }