ice 3 년 전
부모
커밋
86376deb35
3개의 변경된 파일24개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      server/model/autocode/content.go
  2. 22 0
      server/model/autocode/problem_info.go
  3. 1 1
      server/model/autocode/request/problem_info.go

+ 1 - 1
server/model/autocode/content.go

@@ -9,7 +9,7 @@ import (
 // 如果含有time.Time 请自行import time包
 type Content struct {
 	global.GVA_MODEL
-	Oper     *int   `json:"oper" form:"oper" gorm:"column:oper;comment:操作人;type:bigint"`
+	Oper     string   `json:"oper" form:"oper" gorm:"column:oper;comment:操作人;type:varchar(255);"`
 	Title    string `json:"title" form:"title" gorm:"column:title;comment:标题;type:varchar(255);"`
 	Subtitle string `json:"subtitle" form:"subtitle" gorm:"column:subtitle;comment:副标题;type:varchar(255);"`
 	Text     string `json:"text" form:"text" gorm:"column:text;comment:内容;type:text;"`

+ 22 - 0
server/model/autocode/problem_info.go

@@ -28,7 +28,29 @@ type ProblemInfo struct {
 	MatterList system.SysDictionary `json:"matterList" gorm:"-"`
 }
 
+type ProblemInfo1 struct {
+	global.GVA_MODEL
+	Oper       uint                 `json:"oper" form:"oper" gorm:"column:oper;comment:发布人;type:bigint"`
+	Handler    *int                 `json:"handler" form:"handler" gorm:"column:handler;comment:处理人;type:bigint"`
+	Imgs       string               `json:"imgs" form:"imgs" gorm:"column:imgs;comment:关联图片;type:varchar(2000);"`
+	Video      string               `json:"video" form:"video" gorm:"column:video;comment:关联视频;type:varchar(255);"`
+	SiteId     uint                 `json:"siteId" form:"siteId" gorm:"column:site_id;comment:站点id;type:bigint"`
+	SiteName   string               `json:"siteName" form:"siteName" gorm:"column:site_name;comment:站点id;type:bigint"`
+	Position   string               `json:"position" form:"position" gorm:"column:position;comment:经纬度;type:varchar(255);"`
+	Matter     string               `json:"matter" form:"matter" gorm:"column:matter;comment:问题列表;type:varchar(255);"`
+	SiteType   string               `json:"siteType" form:"siteType" gorm:"column:site_type;comment:站点类型;type:varchar(255);"`
+	Status     string               `json:"status" form:"status" gorm:"column:status;comment:处理状态;type:varchar(255);"`
+	Region     string               `json:"region" form:"region" gorm:"column:region;comment:区域;type:varchar(255);"`
+	HandImgs   string               `json:"handImgs" form:"handImgs" gorm:"column:hand_imgs;comment:处理图片;type:varchar(255);"`
+	HandText   string               `json:"handText" form:"handText" gorm:"column:hand_text;comment:处理内容;type:varchar(255);"`
+	Department string               `json:"department" form:"department" gorm:"column:department;comment:责任部门;type:varchar(255);"`
+	Remark     string               `json:"remark" form:"remark" gorm:"column:remark;comment:问题备注;type:varchar(600);"`
+}
+
 // TableName ProblemInfo 表名
 func (ProblemInfo) TableName() string {
 	return "problem_info"
 }
+func (ProblemInfo1) TableName() string {
+	return "problem_info"
+}

+ 1 - 1
server/model/autocode/request/problem_info.go

@@ -6,6 +6,6 @@ import (
 )
 
 type ProblemInfoSearch struct {
-	autocode.ProblemInfo
+	autocode.ProblemInfo1
 	request.PageInfo
 }