problem_info.go 5.0 KB

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