|
|
|
@ -1,13 +1,16 @@
|
|
|
|
|
package com.luoo.user.vo.store;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
import com.luoo.user.pojo.Region;
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.Value;
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* DTO for {@link com.luoo.user.pojo.Store}
|
|
|
|
@ -81,9 +84,55 @@ public class StoreAppVO implements Serializable {
|
|
|
|
|
@ApiModelProperty(value = "折扣")
|
|
|
|
|
private Float discount;
|
|
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@ApiModelProperty("创建时间")
|
|
|
|
|
private LocalDateTime createTime;
|
|
|
|
|
|
|
|
|
|
public StoreAppVO() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public StoreAppVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, String contactAvatar, String contactNickName, Integer visitCount, String introduction, String code, Float discount) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.regionId = regionId;
|
|
|
|
|
this.address = address;
|
|
|
|
|
this.lng = lng;
|
|
|
|
|
this.lat = lat;
|
|
|
|
|
this.contact = contact;
|
|
|
|
|
this.phone = phone;
|
|
|
|
|
this.tel = tel;
|
|
|
|
|
this.openingHours = openingHours;
|
|
|
|
|
this.background = background;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.contactAvatar = contactAvatar;
|
|
|
|
|
this.contactNickName = contactNickName;
|
|
|
|
|
this.visitCount = visitCount;
|
|
|
|
|
this.introduction = introduction;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.discount = discount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public StoreAppVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, String contactAvatar, String contactNickName, Integer visitCount, String introduction, String code) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.regionId = regionId;
|
|
|
|
|
this.address = address;
|
|
|
|
|
this.lng = lng;
|
|
|
|
|
this.lat = lat;
|
|
|
|
|
this.contact = contact;
|
|
|
|
|
this.phone = phone;
|
|
|
|
|
this.tel = tel;
|
|
|
|
|
this.openingHours = openingHours;
|
|
|
|
|
this.background = background;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.contactAvatar = contactAvatar;
|
|
|
|
|
this.contactNickName = contactNickName;
|
|
|
|
|
this.visitCount = visitCount;
|
|
|
|
|
this.introduction = introduction;
|
|
|
|
|
this.code = code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public StoreAppVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, Integer visitCount, String introduction, String code) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.name = name;
|
|
|
|
@ -101,4 +150,5 @@ public class StoreAppVO implements Serializable {
|
|
|
|
|
this.introduction = introduction;
|
|
|
|
|
this.code = code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|