address_response.go 3.1 KB

12345678910111213141516171819202122
  1. package response
  2. import "time"
  3. type AddressResponse struct {
  4. Id int64 `excel:"name=用户地址id " xorm:"pk autoincr notnull comment('用户地址id')" json:"id" binding:"required"` //用户地址id
  5. MemberId int64 `excel:"name=用户id " xorm:"pk notnull comment('用户id')" json:"memberId" binding:"required"` //用户id
  6. Name string `excel:"name=收货人姓名 " xorm:"varchar(32) notnull comment('收货人姓名')" json:"name" binding:"required"` //收货人姓名
  7. Phone string `excel:"name=收货人电话 " xorm:"varchar(16) notnull comment('收货人电话')" json:"phone" binding:"required"` //收货人电话
  8. Province string `excel:"name=收货人所在省 " xorm:"varchar(64) notnull comment('收货人所在省')" json:"province" binding:"required"` //收货人所在省
  9. City string `excel:"name=收货人所在市 " xorm:"varchar(64) notnull comment('收货人所在市')" json:"city" binding:"required"` //收货人所在市
  10. AreaCode string `excel:"name=城市编码 " xorm:"varchar(64) notnull comment('城市编码')" json:"areaCode" binding:"required"` //城市编码
  11. District string `excel:"name=收货人所在区 " xorm:"varchar(64) notnull comment('收货人所在区')" json:"district" binding:"required"` //收货人所在区
  12. Detail string `excel:"name=收货人详细地址 " xorm:"varchar(256) notnull comment('收货人详细地址')" json:"detail" binding:"required"` //收货人详细地址
  13. PostCode string `excel:"name=邮编 " xorm:"varchar(20) notnull comment('邮编')" json:"postCode" binding:"required"` //邮编
  14. Longitude string `excel:"name=经度 " xorm:"varchar(16) notnull default('0') comment('经度')" json:"longitude" binding:"required"` //经度
  15. Latitude string `excel:"name=纬度 " xorm:"varchar(16) notnull default('0') comment('纬度')" json:"latitude" binding:"required"` //纬度
  16. IsDefault int `excel:"name=是否默认 ,format=1=是,2=否" xorm:"pk notnull default(1) comment('是否默认')" json:"isDefault" binding:"required,oneof=1 2 "` //是否默认(1是 2否)
  17. IsDel int `excel:"name=是否删除 ,format=1=是,2=否" xorm:"pk notnull default(1) comment('是否删除')" json:"isDel" binding:"required,oneof=1 2 "` //是否删除(1是 2否)
  18. CreateTime time.Time `excel:"name=创建时间 " xorm:"datetime notnull comment('创建时间')" json:"createTime" binding:"required"` //创建时间
  19. UpdateTime time.Time `excel:"name=更新时间 " xorm:"datetime comment('更新时间')" json:"updateTime" ` //更新时间
  20. }