feat(商城): 代码优化
parent
31d266845b
commit
424306f776
@ -0,0 +1,25 @@
|
||||
package com.wayn.common.convert;
|
||||
|
||||
import com.wayn.common.config.WaynConfig;
|
||||
import com.wayn.common.core.domain.shop.vo.MallConfigResponseVO;
|
||||
|
||||
/**
|
||||
* @author: waynaqua
|
||||
* @date: 2023/11/13 23:10
|
||||
*/
|
||||
public class MallConfigConvert {
|
||||
|
||||
public static MallConfigResponseVO convertMallConfig() {
|
||||
|
||||
return MallConfigResponseVO.builder()
|
||||
.freightLimit(WaynConfig.getFreightLimit())
|
||||
.freightPrice(WaynConfig.getFreightPrice())
|
||||
.mobileUrl(WaynConfig.getMobileUrl())
|
||||
.email(WaynConfig.getEmail())
|
||||
.name(WaynConfig.getName())
|
||||
.unpaidOrderCancelDelayTime(WaynConfig.getUnpaidOrderCancelDelayTime())
|
||||
.version(WaynConfig.getVersion())
|
||||
.uploadDir(WaynConfig.getUploadDir())
|
||||
.build();
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.wayn.common.core.domain.shop.vo;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author: waynaqua
|
||||
* @date: 2023/11/13 23:08
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class MallConfigResponseVO implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4620022749379145372L;
|
||||
/**
|
||||
* 上传路径
|
||||
*/
|
||||
private String uploadDir;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 项目版本
|
||||
*/
|
||||
private String version;
|
||||
/**
|
||||
* 联系邮件
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 管理后台地址
|
||||
*/
|
||||
private String adminUrl;
|
||||
/**
|
||||
* 商城移动端地址
|
||||
*/
|
||||
private String mobileUrl;
|
||||
|
||||
/**
|
||||
* 未支付订单延时取消时间
|
||||
*/
|
||||
private Integer unpaidOrderCancelDelayTime;
|
||||
|
||||
/**
|
||||
* 商城免运费限额
|
||||
*/
|
||||
private BigDecimal freightLimit;
|
||||
/**
|
||||
* 商城运费
|
||||
*/
|
||||
private BigDecimal freightPrice;
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.wayn.common.core.domain.shop.vo;
|
||||
|
||||
import com.wayn.common.core.domain.shop.Goods;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author: waynaqua
|
||||
* @date: 2023/11/13 23:32
|
||||
*/
|
||||
@Data
|
||||
public class RecommonGoodsResponseVO implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 6261274861901027930L;
|
||||
|
||||
private List<Goods> data;
|
||||
}
|
Loading…
Reference in New Issue