violation_response.go 1.5 KB

123456789101112131415
  1. package response
  2. import "time"
  3. type ViolationResponse struct {
  4. Id int64 `excel:"name=主键id " xorm:"pk autoincr notnull comment('主键id')" json:"id" ` //主键id
  5. Item string `excel:"name=服务项 " xorm:"varchar(255) notnull default('0') comment('服务项')" json:"item" binding:"required"` //服务项
  6. Label string `excel:"name=项目 " xorm:"varchar(255) comment('项目')" json:"label" ` //项目
  7. Content string `excel:"name=标准 " xorm:"text comment('标准')" json:"content" ` //标准
  8. Score int `excel:"name=分数 " xorm:"int(10) notnull default(0) comment('分数')" json:"score" binding:"required"` //分数
  9. CreateTime time.Time `excel:"name=创建时间 " xorm:"datetime comment('创建时间')" json:"createTime" ` //创建时间
  10. CreateBy string `excel:"name=创建人 " xorm:"varchar(255) comment('创建人')" json:"createBy" ` //创建人
  11. UpdateTime time.Time `excel:"name=更新时间 " xorm:"datetime comment('更新时间')" json:"updateTime" ` //更新时间
  12. UpdateBy string `excel:"name=更新人 " xorm:"varchar(255) comment('更新人')" json:"updateBy" ` //更新人
  13. }