test_response.go 1.3 KB

1234567891011121314
  1. package response
  2. import "time"
  3. type TestResponse struct {
  4. Id int64 `excel:"name=主键id " xorm:"pk autoincr notnull comment('主键id')" json:"id" binding:"required"` //主键id
  5. Label string `excel:"name=名称 " xorm:"varchar(30) comment('名称')" json:"label" binding:"required"` //名称
  6. Image string `excel:"name=图片 " xorm:"varchar(200) comment('图片')" json:"image" binding:"required"` //图片
  7. IsDel int `excel:"name=删除 ,format=1=是,2=否" xorm:"tinyint(1) comment('删除')" json:"isDel" binding:"required,oneof=1 2 "` //删除(1是 2否)
  8. CreateBy string `excel:"name=创建人 " xorm:"varchar(64) comment('创建人')" json:"createBy" ` //创建人
  9. CreateTime time.Time `excel:"name=创建时间 " xorm:"datetime comment('创建时间')" json:"createTime" ` //创建时间
  10. UpdateBy string `excel:"name=更新人 " xorm:"varchar(64) comment('更新人')" json:"updateBy" ` //更新人
  11. UpdateTime time.Time `excel:"name=更新时间 " xorm:"datetime comment('更新时间')" json:"updateTime" ` //更新时间
  12. }