problem_reply.go 955 B

1234567891011121314151617181920212223
  1. // 自动生成模板ProblemReply
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. uuid "github.com/satori/go.uuid"
  6. )
  7. // ProblemReply 结构体
  8. // 如果含有time.Time 请自行import time包
  9. type ProblemReply struct {
  10. global.GVA_MODEL
  11. Uuid uuid.UUID `json:"uuid" form:"uuid" gorm:"column:uuid;comment:用户UUID;type:varchar(191);"`
  12. NickName string `json:"nickName" form:"nickName" gorm:"column:nick_name;comment:用户昵称;type:varchar(191);"`
  13. HeaderImg string `json:"headerImg" form:"headerImg" gorm:"column:header_img;comment:用户头像;type:varchar(191);"`
  14. ReplyMsg string `json:"replyMsg" form:"replyMsg" gorm:"column:reply_msg;comment:用户回复;type:varchar(1000);"`
  15. ProblemId *int `json:"problemId" form:"problemId" gorm:"column:problem_id;comment:问题 id;type:bigint"`
  16. }
  17. // TableName ProblemReply 表名
  18. func (ProblemReply) TableName() string {
  19. return "problem_reply"
  20. }