Update ShopDetailParam.java

cyj
pbvfus8to 8 months ago
parent d81c5bdead
commit 667014ca80

@ -8,215 +8,301 @@
* *
*/ */
// 该类所属的包名表明其位于商城相关的Java Bean的参数param包下主要用于封装与店铺详情相关的参数信息这些参数通常是前端传递给后端以便后端进行店铺详情相关的业务处理操作例如店铺信息的新增、修改等功能。
package com.yami.shop.bean.param; package com.yami.shop.bean.param;
import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size; import jakarta.validation.constraints.Size;
/** /**
* ShopDetailParamJava Bean使Jakarta Validation
* GetterSetter便便使
*
* @author lanhai * @author lanhai
*/ */
public class ShopDetailParam { public class ShopDetailParam {
// 店铺的唯一标识符在整个系统中用于区分不同的店铺在涉及店铺相关的数据库操作如查询、更新、删除等以及业务逻辑处理时依靠这个ID来精准定位到具体的店铺实体。
private Long shopId; private Long shopId;
/** /**
* (()) * @NotBlank
* @Size50
*/ */
@NotBlank(message = "店铺名称不能为空") @NotBlank(message = "店铺名称不能为空")
@Size(max = 50, message = "商品名称长度应该小于{max}") @Size(max = 50, message = "商品名称长度应该小于{max}")
private String shopName; private String shopName;
/** /**
* () * @Size200
*/ */
@Size(max = 200, message = "店铺简介长度应该小于{max}") @Size(max = 200, message = "店铺简介长度应该小于{max}")
private String intro; private String intro;
/** /**
* () * @Size50便
*/ */
@Size(max = 50, message = "店铺公告长度应该小于{max}") @Size(max = 50, message = "店铺公告长度应该小于{max}")
private String shopNotice; private String shopNotice;
/** /**
* * @NotBlank@Size20便
*/ */
@NotBlank(message = "店铺联系电话不能为空") @NotBlank(message = "店铺联系电话不能为空")
@Size(max = 20, message = "店铺公告长度应该小于{max}") @Size(max = 20, message = "店铺公告长度应该小于{max}")
private String tel; private String tel;
/** /**
* * @NotBlank@Size100便便
*/ */
@NotBlank(message = "店铺详细地址不能为空") @NotBlank(message = "店铺详细地址不能为空")
@Size(max = 100, message = "店铺公告长度应该小于{max}") @Size(max = 100, message = "店铺公告长度应该小于{max}")
private String shopAddress; private String shopAddress;
/** /**
* * @NotBlank10便
*/ */
@NotBlank(message = "店铺所在省份不能为空") @NotBlank(message = "店铺所在省份不能为空")
@Size(max = 10, message = "店铺所在省份长度应该小于{max}") @Size(max = 10, message = "店铺所在省份长度应该小于{max}")
private String province; private String province;
/** /**
* * @NotBlank10
*/ */
@NotBlank(message = "店铺所在城市不能为空") @NotBlank(message = "店铺所在城市不能为空")
@Size(max = 10, message = "店铺所在城市长度应该小于{max}") @Size(max = 10, message = "店铺所在城市长度应该小于{max}")
private String city; private String city;
/** /**
* * @NotBlank@Size10便
*/ */
@NotBlank(message = "店铺所在区域不能为空") @NotBlank(message = "店铺所在区域不能为空")
@Size(max = 10, message = "店铺所在省份区域长度应该小于{max}") @Size(max = 10, message = "店铺所在省份区域长度应该小于{max}")
private String area; private String area;
/** /**
* * 使@NotBlank20@Size
*/ */
@NotBlank(message = "店铺省市区代码不能为空") @NotBlank(message = "店铺省市区代码不能为空")
@Size(max = 20, message = "店铺省市区代码长度应该小于{max}") @Size(max = 20, message = "店铺省市区代码长度应该小于{max}")
private String pcaCode; private String pcaCode;
/** /**
* logo() * logo@NotBlank@Size200Base64logo
*/ */
@NotBlank(message = "店铺logo不能为空") @NotBlank(message = "店铺logo不能为空")
@Size(max = 200, message = "店铺logo长度应该小于{max}") @Size(max = 200, message = "店铺logo长度应该小于{max}")
private String shopLogo; private String shopLogo;
/** /**
* * @Size1000便
*/ */
@Size(max = 1000, message = "店铺相册长度应该小于{max}") @Size(max = 1000, message = "店铺相册长度应该小于{max}")
private String shopPhotos; private String shopPhotos;
/** /**
* () * @NotBlank@Size100便
*/ */
@NotBlank(message = "每天营业时间段不能为空") @NotBlank(message = "每天营业时间段不能为空")
@Size(max = 100, message = "每天营业时间段长度应该小于{max}") @Size(max = 100, message = "每天营业时间段长度应该小于{max}")
private String openTime; private String openTime;
/** /**
* (-1: 0: 1:) * -101便
*/ */
private Integer shopStatus; private Integer shopStatus;
/**
* Getter便使
*/
public String getShopName() { public String getShopName() {
return shopName; return shopName;
} }
/**
* SettershopName便使
*/
public void setShopName(String shopName) { public void setShopName(String shopName) {
this.shopName = shopName; this.shopName = shopName;
} }
/**
* Getter
*/
public String getIntro() { public String getIntro() {
return intro; return intro;
} }
/**
* Setterintro便使
*/
public void setIntro(String intro) { public void setIntro(String intro) {
this.intro = intro; this.intro = intro;
} }
/**
* Getter便
*/
public String getShopNotice() { public String getShopNotice() {
return shopNotice; return shopNotice;
} }
/**
* SettershopNotice便使
*/
public void setShopNotice(String shopNotice) { public void setShopNotice(String shopNotice) {
this.shopNotice = shopNotice; this.shopNotice = shopNotice;
} }
/**
* Getter
*/
public String getTel() { public String getTel() {
return tel; return tel;
} }
/**
* Settertel便使
*/
public void setTel(String tel) { public void setTel(String tel) {
this.tel = tel; this.tel = tel;
} }
/**
* Getter便
*/
public String getShopAddress() { public String getShopAddress() {
return shopAddress; return shopAddress;
} }
/**
* SettershopAddress便使
*/
public void setShopAddress(String shopAddress) { public void setShopAddress(String shopAddress) {
this.shopAddress = shopAddress; this.shopAddress = shopAddress;
} }
/**
* Getter
*/
public String getProvince() { public String getProvince() {
return province; return province;
} }
/**
* Setterprovince便使
*/
public void setProvince(String province) { public void setProvince(String province) {
this.province = province; this.province = province;
} }
/**
* Getter便
*/
public String getCity() { public String getCity() {
return city; return city;
} }
/**
* Settercity便使
*/
public void setCity(String city) { public void setCity(String city) {
this.city = city; this.city = city;
} }
/**
* Getter
*/
public String getArea() { public String getArea() {
return area; return area;
} }
/**
* Setterarea便使
*/
public void setArea(String area) { public void setArea(String area) {
this.area = area; this.area = area;
} }
/**
* Getter便
*/
public String getPcaCode() { public String getPcaCode() {
return pcaCode; return pcaCode;
} }
/**
* SetterpcaCode便使
*/
public void setPcaCode(String pcaCode) { public void setPcaCode(String pcaCode) {
this.pcaCode = pcaCode; this.pcaCode = pcaCode;
} }
/**
* logoGetterlogologologo
*/
public String getShopLogo() { public String getShopLogo() {
return shopLogo; return shopLogo;
} }
/**
* logoSetterlogoshopLogologologo便使
*/
public void setShopLogo(String shopLogo) { public void setShopLogo(String shopLogo) {
this.shopLogo = shopLogo; this.shopLogo = shopLogo;
} }
/**
* Getter便
*/
public String getShopPhotos() { public String getShopPhotos() {
return shopPhotos; return shopPhotos;
} }
/**
* SettershopPhotos便使
*/
public void setShopPhotos(String shopPhotos) { public void setShopPhotos(String shopPhotos) {
this.shopPhotos = shopPhotos; this.shopPhotos = shopPhotos;
} }
/**
* Getter
*/
public String getOpenTime() { public String getOpenTime() {
return openTime; return openTime;
} }
/**
* SetteropenTime便使
*/
public void setOpenTime(String openTime) { public void setOpenTime(String openTime) {
this.openTime = openTime; this.openTime = openTime;
} }
/**
* Getter便
*/
public Integer getShopStatus() { public Integer getShopStatus() {
return shopStatus; return shopStatus;
} }
/**
* SettershopStatus便
*/
public void setShopStatus(Integer shopStatus) { public void setShopStatus(Integer shopStatus) {
this.shopStatus = shopStatus; this.shopStatus = shopStatus;
} }
/**
* IDGetterIDID
*/
public Long getShopId() { public Long getShopId() {
return shopId; return shopId;
} }
/**
* IDSetterIDshopIdIDID便使
*/
public void setShopId(Long shopId) { public void setShopId(Long shopId) {
this.shopId = shopId; this.shopId = shop
}
}
Loading…
Cancel
Save