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