problem_info.go 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. OperName string `json:"operName" form:"operName" gorm:"column:oper_name;comment:发布人;type:varchar(255);"`
  14. Handler *int `json:"handler" form:"handler" gorm:"column:handler;comment:处理人;type:bigint"`
  15. Imgs string `json:"imgs" form:"imgs" gorm:"column:imgs;comment:关联图片;type:varchar(2000);"`
  16. Video string `json:"video" form:"video" gorm:"column:video;comment:关联视频;type:varchar(255);"`
  17. SiteId uint `json:"siteId" form:"siteId" gorm:"column:site_id;comment:站点id;type:bigint"`
  18. SiteName string `json:"siteName" form:"siteName" gorm:"column:site_name;comment:站点id;type:bigint"`
  19. Position string `json:"position" form:"position" gorm:"column:position;comment:经纬度;type:varchar(255);"`
  20. Matter string `json:"matter" form:"matter" gorm:"column:matter;comment:问题列表;type:varchar(255);"`
  21. SiteType *int `json:"siteType" form:"siteType" gorm:"column:site_type;comment:站点类型;type:int;"`
  22. Status string `json:"status" form:"status" gorm:"column:status;comment:处理状态;type:varchar(255);"`
  23. Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
  24. HandImgs string `json:"handImgs" form:"handImgs" gorm:"column:hand_imgs;comment:处理图片;type:varchar(255);"`
  25. HandText string `json:"handText" form:"handText" gorm:"column:hand_text;comment:处理内容;type:varchar(255);"`
  26. Department string `json:"department" form:"department" gorm:"column:department;comment:责任部门;type:varchar(255);"`
  27. Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:问题备注;type:varchar(600);"`
  28. Audit string `json:"remark1" form:"remark1" gorm:"column:remark1;comment:审核备注;type:varchar(600);"`
  29. Count *int `json:"count" form:"count" gorm:"default:0;column:count;comment:阅读次数;type:int);"`
  30. Integral *int `json:"integral" form:"integral" gorm:"default:0;column:integral;comment:积分;type:int);"`
  31. UnitName string `json:"unitName" form:"unitName" gorm:"column:unit_name;comment:单位名称;type:varchar(255));"`
  32. UnitId *int `json:"unitId" form:"unitId" gorm:"default:0;column:unit_id;comment:单位id;type:int);"`
  33. MatterList interface{} `json:"matterList" gorm:"-"`
  34. }
  35. type ProblemInfo1 struct {
  36. global.GVA_MODEL
  37. HandAt time.Time // 处理时间
  38. Oper uint `json:"oper" form:"oper" gorm:"column:oper;comment:发布人;type:bigint"`
  39. OperName string `json:"operName" form:"operName" gorm:"column:oper_name;comment:发布人;type:varchar(255);"`
  40. Handler *int `json:"handler" form:"handler" gorm:"column:handler;comment:处理人;type:bigint"`
  41. Imgs string `json:"imgs" form:"imgs" gorm:"column:imgs;comment:关联图片;type:varchar(2000);"`
  42. Video string `json:"video" form:"video" gorm:"column:video;comment:关联视频;type:varchar(255);"`
  43. SiteId uint `json:"siteId" form:"siteId" gorm:"column:site_id;comment:站点id;type:bigint"`
  44. SiteName string `json:"siteName" form:"siteName" gorm:"column:site_name;comment:站点id;type:bigint"`
  45. Position string `json:"position" form:"position" gorm:"column:position;comment:经纬度;type:varchar(255);"`
  46. Matter string `json:"matter" form:"matter" gorm:"column:matter;comment:问题列表;type:varchar(255);"`
  47. SiteType string `json:"siteType" form:"siteType" gorm:"column:site_type;comment:站点类型;type:varchar(255);"`
  48. Status string `json:"status" form:"status" gorm:"column:status;comment:处理状态;type:varchar(255);"`
  49. Region string `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
  50. HandImgs string `json:"handImgs" form:"handImgs" gorm:"column:hand_imgs;comment:处理图片;type:varchar(255);"`
  51. HandText string `json:"handText" form:"handText" gorm:"column:hand_text;comment:处理内容;type:varchar(255);"`
  52. Department string `json:"department" form:"department" gorm:"column:department;comment:责任部门;type:varchar(255);"`
  53. Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:问题备注;type:varchar(600);"`
  54. Audit string `json:"remark1" form:"remark1" gorm:"column:remark1;comment:审核备注;type:varchar(600);"`
  55. Count *int `json:"count" form:"count" gorm:"default:0;column:count;comment:阅读次数;type:int);"`
  56. Integral *int `json:"integral" form:"integral" gorm:"default:0;column:integral;comment:积分;type:int);"`
  57. UnitName string `json:"unitName" form:"unitName" gorm:"column:unit_name;comment:单位名称;type:varchar(255);"`
  58. UnitId *int `json:"unitId" form:"unitId" gorm:"default:0;column:unit_id;comment:单位id;type:int);"`
  59. }
  60. type ProblemCount struct {
  61. Matterid string `json:"matterid" form:"matterid" gorm:"column:matterid;comment:问题ID;type:varchar(255);"`
  62. Problem string `json:"problem" form:"problem" gorm:"column:problem;comment:问题;type:varchar(255);"`
  63. Mattercount string `json:"mattercount" form:"mattercount" gorm:"column:mattercount;comment:问题次数;type:varchar(255);"`
  64. Num string `json:"num" form:"num" gorm:"column:num;comment:次数;type:varchar(255);"`
  65. Proportion string `json:"proportion" form:"proportion" gorm:"column:proportion;comment:比例;type:varchar(255);"`
  66. }
  67. type ProblemSum struct {
  68. UnitId string `json:"unitId" form:"unitId" gorm:"column:unit_id;comment:单位ID;type:varchar(255);"`
  69. UnitName string `json:"unitName" form:"unitName" gorm:"column:unit_name;comment:单位名称;type:varchar(255);"`
  70. Totalnum string `json:"totalnum" form:"totalnum" gorm:"column:totalnum;comment:问题总数;type:varchar(255);"`
  71. Handnum string `json:"handnum" form:"handnum" gorm:"column:handnum;comment:已处理;type:varchar(255);"`
  72. Num string `json:"num" form:"num" gorm:"column:num;comment:总数;type:varchar(255);"`
  73. Handproportion string `json:"handproportion" form:"handproportion" gorm:"column:handproportion;comment:处理率;type:varchar(255);"`
  74. }
  75. // TableName ProblemInfo 表名
  76. func (ProblemInfo) TableName() string {
  77. return "problem_info"
  78. }
  79. func (ProblemInfo1) TableName() string {
  80. return "problem_info"
  81. }