TAddress.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. package com.ylx.massage.domain;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableLogic;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.ylx.common.annotation.Excel;
  7. import io.swagger.annotations.ApiModel;
  8. import io.swagger.annotations.ApiModelProperty;
  9. import lombok.Data;
  10. import java.io.Serializable;
  11. import java.util.Date;
  12. /**
  13. * 地址(TAddress)表实体类
  14. *
  15. * @author makejava
  16. * @since 2024-04-11 17:18:53
  17. */
  18. @SuppressWarnings("serial")
  19. @ApiModel(value = "TAddress", description = "地址管理")
  20. @Data
  21. public class TAddress extends Model<TAddress> {
  22. //主键
  23. @ApiModelProperty("主键")
  24. private String id;
  25. /**
  26. * 商户id
  27. */
  28. @ApiModelProperty("商户id")
  29. private Long merchantId;
  30. /**
  31. * 性别(0女1男)
  32. */
  33. @TableField("sex")
  34. private Integer sex;
  35. /**
  36. * 用户openId
  37. */
  38. @ApiModelProperty("用户openId")
  39. private String openid;
  40. /**
  41. * 城市编码
  42. */
  43. @ApiModelProperty("城市编码")
  44. private String cityCode;
  45. //电话
  46. @ApiModelProperty("电话")
  47. private String phone;
  48. /**
  49. * 姓名
  50. */
  51. @ApiModelProperty("姓名")
  52. private String userName;
  53. //地图展示地址
  54. @ApiModelProperty("地图展示地址")
  55. private String atlasAdd;
  56. //经度
  57. @ApiModelProperty("经度")
  58. private Double longitude;
  59. //纬度
  60. @ApiModelProperty("纬度")
  61. private Double latitude;
  62. //详细地址
  63. @ApiModelProperty("详细地址")
  64. private String address;
  65. @ApiModelProperty("地址name")
  66. private String name;
  67. /**
  68. * 用户类型 1:用户 2:技师
  69. */
  70. @ApiModelProperty("用户类型 1:用户 2:技师")
  71. private Integer userType;
  72. /**
  73. * 地址类型 0:普通地址 1:默认地址 2:虚拟地址
  74. */
  75. @ApiModelProperty("地址类型 0:普通地址 1:默认地址 2:虚拟地址")
  76. private Integer type;
  77. /**
  78. * 创建时间
  79. */
  80. @ApiModelProperty("创建时间")
  81. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  82. private Date createTime;
  83. /**
  84. * 修改时间
  85. */
  86. @ApiModelProperty("修改时间")
  87. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  88. private Date updateTime;
  89. //是否删除0否1是
  90. @ApiModelProperty("是否删除0否1是")
  91. @TableLogic
  92. private Integer isDelete;
  93. public String getId() {
  94. return id;
  95. }
  96. public void setId(String id) {
  97. this.id = id;
  98. }
  99. public String getOpenid() {
  100. return openid;
  101. }
  102. public void setOpenid(String openid) {
  103. this.openid = openid;
  104. }
  105. public String getPhone() {
  106. return phone;
  107. }
  108. public void setPhone(String phone) {
  109. this.phone = phone;
  110. }
  111. public String getUserName() {
  112. return userName;
  113. }
  114. public void setUserName(String userName) {
  115. this.userName = userName;
  116. }
  117. public String getAtlasAdd() {
  118. return atlasAdd;
  119. }
  120. public void setAtlasAdd(String atlasAdd) {
  121. this.atlasAdd = atlasAdd;
  122. }
  123. public Double getLongitude() {
  124. return longitude;
  125. }
  126. public void setLongitude(Double longitude) {
  127. this.longitude = longitude;
  128. }
  129. public Double getLatitude() {
  130. return latitude;
  131. }
  132. public void setLatitude(Double latitude) {
  133. this.latitude = latitude;
  134. }
  135. public Integer getType() {
  136. return type;
  137. }
  138. public void setType(Integer type) {
  139. this.type = type;
  140. }
  141. public String getAddress() {
  142. return address;
  143. }
  144. public void setAddress(String address) {
  145. this.address = address;
  146. }
  147. public Date getCreateTime() {
  148. return createTime;
  149. }
  150. public void setCreateTime(Date createTime) {
  151. this.createTime = createTime;
  152. }
  153. public Date getUpdateTime() {
  154. return updateTime;
  155. }
  156. public void setUpdateTime(Date updateTime) {
  157. this.updateTime = updateTime;
  158. }
  159. public Integer getIsDelete() {
  160. return isDelete;
  161. }
  162. public void setIsDelete(Integer isDelete) {
  163. this.isDelete = isDelete;
  164. }
  165. /**
  166. * 获取主键值
  167. *
  168. * @return 主键值
  169. */
  170. @Override
  171. public Serializable pkVal() {
  172. return this.id;
  173. }
  174. }