Merge remote-tracking branch 'origin/xlj' into feature/translate
This commit is contained in:
BIN
logs/infra-server.log.2025-07-25.0.gz
Normal file
BIN
logs/infra-server.log.2025-07-25.0.gz
Normal file
Binary file not shown.
BIN
logs/infra-server.log.2025-07-28.0.gz
Normal file
BIN
logs/infra-server.log.2025-07-28.0.gz
Normal file
Binary file not shown.
BIN
logs/system-server.log.2025-07-28.0.gz
Normal file
BIN
logs/system-server.log.2025-07-28.0.gz
Normal file
Binary file not shown.
@@ -13,6 +13,7 @@
|
||||
<modules>
|
||||
<module>tashow-infra-api</module>
|
||||
<module>tashow-system-api</module>
|
||||
<module>tashow-product-api</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
|
||||
90
tashow-feign/tashow-product-api/pom.xml
Normal file
90
tashow-feign/tashow-product-api/pom.xml
Normal file
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.tashow.cloud</groupId>
|
||||
<artifactId>tashow-feign</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>tashow-product-api</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
<description>
|
||||
infra 模块 API,暴露给其它模块调用
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tashow.cloud</groupId>
|
||||
<artifactId>tashow-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 参数校验 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>jakarta.validation</groupId>
|
||||
<artifactId>jakarta.validation-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RPC 远程调用相关 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.5.13</version> <!-- 推荐使用最新稳定版本 -->
|
||||
</dependency>
|
||||
<!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
<!-- Swagger Core -->
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-core</artifactId>
|
||||
<version>2.2.20</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger Models -->
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
<version>2.2.20</version>
|
||||
</dependency>
|
||||
<!-- EasyExcel 核心库 -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>easyexcel</artifactId>
|
||||
<version>4.0.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.5.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-annotation</artifactId>
|
||||
<version>3.5.9</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tashow.cloud</groupId>
|
||||
<artifactId>tashow-data-mybatis</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* infra API 包,定义暴露给其它模块的 API
|
||||
*/
|
||||
package com.tashow.cloud.productapi.api;
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.tashow.cloud.productapi.api.product;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.dto.CategoryDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.CategoryDto;
|
||||
import com.tashow.cloud.productapi.enums.ApiConstants;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
|
||||
/** RPC 服务 - 参数配置 */
|
||||
public interface CategoryApi {
|
||||
|
||||
String PREFIX = ApiConstants.PREFIX + "/category";
|
||||
|
||||
/** 根据参数键查询参数值 */
|
||||
@GetMapping(PREFIX + "/categoryList")
|
||||
List<CategoryDO> categoryList(@RequestParam(value = "grade", required = false) Integer grade,
|
||||
@RequestParam(value = "categoryId", required = false) Long categoryId,
|
||||
@RequestParam(value = "categoryName", required = false) String categoryName,
|
||||
@RequestParam(value = "status", required = false) Integer status);
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品类目 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_category")
|
||||
@KeySequence("tz_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CategoryDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 类目ID
|
||||
*/
|
||||
@TableId
|
||||
private Long categoryId;
|
||||
/**
|
||||
* 店铺ID
|
||||
*/
|
||||
private Long shopId;
|
||||
/**
|
||||
* 父节点
|
||||
*/
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 父节名称
|
||||
*/
|
||||
private String parentName;
|
||||
|
||||
/**
|
||||
* 产品类目名称
|
||||
*/
|
||||
private String categoryName;
|
||||
/**
|
||||
* 类目图标
|
||||
*/
|
||||
private String icon;
|
||||
/**
|
||||
* 类目的显示图片
|
||||
*/
|
||||
private String pic;
|
||||
/**
|
||||
* 类目描述
|
||||
*/
|
||||
private String description;
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> tag;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* 默认是1,表示正常状态,0为下线状态
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 分类层级 1、2、3级
|
||||
*/
|
||||
private Integer grade;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品类目 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class CategoryDto {
|
||||
|
||||
/**
|
||||
* 类目ID
|
||||
*/
|
||||
private Long categoryId;
|
||||
/**
|
||||
* 店铺ID
|
||||
*/
|
||||
private Long shopId;
|
||||
/**
|
||||
* 父节点
|
||||
*/
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 父节名称
|
||||
*/
|
||||
private String parentName;
|
||||
|
||||
/**
|
||||
* 产品类目名称
|
||||
*/
|
||||
private String categoryName;
|
||||
/**
|
||||
* 类目图标
|
||||
*/
|
||||
private String icon;
|
||||
/**
|
||||
* 类目的显示图片
|
||||
*/
|
||||
private String pic;
|
||||
/**
|
||||
* 类目描述
|
||||
*/
|
||||
private String description;
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> tag;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* 默认是1,表示正常状态,0为下线状态
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 分类层级 1、2、3级
|
||||
*/
|
||||
private Integer grade;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊日期附加费用规则 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_additional_fee_dates")
|
||||
@KeySequence("tz_prod_additional_fee_dates_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdAdditionalFeeDatesDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 特殊日期规则的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'
|
||||
*/
|
||||
private Integer dateType;
|
||||
|
||||
/**
|
||||
* 类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> customTimeSlots;
|
||||
/* *//**
|
||||
* 指定日期
|
||||
*//*
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> specificDates;*/
|
||||
/**
|
||||
* 收费方式0:''固定金额'':1:''基准价上浮
|
||||
*/
|
||||
private Integer chargeMode;
|
||||
/**
|
||||
* 价格或上浮百分比
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 是否启用该规则是否启用该规则0关1开
|
||||
*/
|
||||
private Integer isEnabled;
|
||||
public boolean isEmpty() {
|
||||
return id == null ;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 特殊时段附加费用规则 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_additional_fee_periods")
|
||||
@KeySequence("tz_prod_additional_fee_periods_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdAdditionalFeePeriodsDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 特殊时段规则的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 特殊时段设置
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> specialTimeSlots;
|
||||
/**
|
||||
* 收费方式0:'固定金额',1:'基准价上浮'
|
||||
*/
|
||||
private Integer chargeMode;
|
||||
/**
|
||||
* 价格或上浮百分比
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 浮动百分比
|
||||
*/
|
||||
private BigDecimal floatingPercentage;
|
||||
public boolean isEmpty() {
|
||||
return id == null ;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod")
|
||||
@KeySequence("tz_prod_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
@TableId
|
||||
private Long prodId;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String prodName;
|
||||
/**
|
||||
* 商品简称
|
||||
*/
|
||||
private String abbreviation;
|
||||
/**
|
||||
* seo标题
|
||||
*/
|
||||
private String seoShortName;
|
||||
/**
|
||||
* seo搜索
|
||||
*/
|
||||
private String seoSearch;
|
||||
/**
|
||||
* 关键词
|
||||
*/
|
||||
private String keyword;
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Long shopId;
|
||||
/**
|
||||
* 简要描述,卖点等
|
||||
*/
|
||||
private String brief;
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
private String brand;
|
||||
|
||||
|
||||
/**
|
||||
* 是否置灰0否1是
|
||||
*/
|
||||
private Integer isProhibit;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
*/
|
||||
private String processNotes;
|
||||
/**
|
||||
* 详细描述
|
||||
*/
|
||||
private String content;
|
||||
/**
|
||||
* 商品编号
|
||||
*/
|
||||
private String prodNumber;
|
||||
/**
|
||||
* 商品主图
|
||||
*/
|
||||
private String pic;
|
||||
/**
|
||||
* 商品轮播图片,以,分割
|
||||
*/
|
||||
private String imgs;
|
||||
|
||||
/**
|
||||
* 视频
|
||||
*/
|
||||
private String video;
|
||||
|
||||
/**
|
||||
* 商品轮播图片,以,分割
|
||||
*/
|
||||
private String whiteImg;
|
||||
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> tag;
|
||||
|
||||
/**
|
||||
* 默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 商品分类id
|
||||
*/
|
||||
private Long categoryId;
|
||||
|
||||
/**
|
||||
* 商品分类名称
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
/**
|
||||
* 销量
|
||||
*/
|
||||
private Integer soldNum;
|
||||
/**
|
||||
* 分享图
|
||||
*/
|
||||
private String shareImage;
|
||||
/**
|
||||
* 分享话术
|
||||
*/
|
||||
private String shareContent;
|
||||
/**
|
||||
* 是否开启区域0关1开
|
||||
*/
|
||||
private Integer regionSwitch;
|
||||
/**
|
||||
* 是否特殊时段0关1开
|
||||
*/
|
||||
private Integer additionalSwitch;
|
||||
/**
|
||||
* 是否特殊日期(节假日周末什么的)0关1开
|
||||
*/
|
||||
private Integer additionalFeeSwitch;
|
||||
/**
|
||||
* 是否紧急响应服务0关1开
|
||||
*/
|
||||
private Integer emergencySwitch;
|
||||
/**
|
||||
* 是否预约0关1开
|
||||
*/
|
||||
private Integer reservationSwitch;
|
||||
/**
|
||||
* 是否接单上线0关1开
|
||||
*/
|
||||
private Integer orderLimitSwitch;
|
||||
/**
|
||||
* 是否开启体重配置0关1开
|
||||
*/
|
||||
private Integer weightSwitch;
|
||||
/**
|
||||
* 版本 乐观锁
|
||||
*/
|
||||
private Integer version;
|
||||
/**
|
||||
* 展示的权重
|
||||
*/
|
||||
private Integer top;
|
||||
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
private Date deleteTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品紧急响应服务设置 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_emergency_response")
|
||||
@KeySequence("tz_prod_emergency_response_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdEmergencyResponseDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 紧急响应服务配置的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 可响应时间段
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> responseTimeSlots;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 紧急响应时间区间设置 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_emergency_response_intervals")
|
||||
@KeySequence("tz_prod_emergency_response_intervals_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdEmergencyResponseIntervalsDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 响应时间区间的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的紧急响应服务配置ID
|
||||
*/
|
||||
private Long configId;
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
|
||||
/**
|
||||
* 响应模式名称modeName
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 响应时间(小时)
|
||||
*/
|
||||
private BigDecimal responseHours;
|
||||
/**
|
||||
* 收费模式0:固定收费 1:浮动收费
|
||||
*/
|
||||
private Integer chargeMode;
|
||||
/**
|
||||
* 浮动百分比
|
||||
*/
|
||||
private BigDecimal floatingPercentage;
|
||||
/**
|
||||
* 价格或上浮百分比
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
|
||||
public boolean isEmpty() {
|
||||
return id == null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 属性规则 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_extend")
|
||||
@KeySequence("tz_prod_extend_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdExtendDO {
|
||||
|
||||
/**
|
||||
* 属性值ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 是否显示失效规格值 0否1是
|
||||
*/
|
||||
private Integer isExpire;
|
||||
|
||||
/**
|
||||
* 是否显示禁用规格值 0否1是
|
||||
*/
|
||||
private Integer isDisable;
|
||||
|
||||
/**
|
||||
* 体重是否收费0否1是
|
||||
*/
|
||||
private Integer isWeightCharge;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdPropValueDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 商品属性 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_prop")
|
||||
@KeySequence("tz_prod_prop_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdPropDO{
|
||||
|
||||
|
||||
/**
|
||||
* 属性id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
private Long propId;
|
||||
/**
|
||||
* 属性名称
|
||||
*/
|
||||
private String propName;
|
||||
/**
|
||||
* ProdPropRule 1:销售属性(规格); 2:参数属性;
|
||||
*/
|
||||
private Integer rule;
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Long shopId;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Long prodId;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 是否删除0否1是
|
||||
*/
|
||||
private Integer deleted;
|
||||
/**
|
||||
* isExist 是否新增 0否1是
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private Integer isExist;
|
||||
|
||||
|
||||
/**
|
||||
* 状态0禁用1启用
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 属性值
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private List<ProdPropValueDO> prodPropValues;
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 属性规则 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_prop_value")
|
||||
@KeySequence("tz_prod_prop_value_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdPropValueDO {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
private Long valueId;
|
||||
/**
|
||||
* 属性值名称
|
||||
*/
|
||||
private String propValue;
|
||||
/**
|
||||
* 属性ID
|
||||
*/
|
||||
private Long propId;
|
||||
/**
|
||||
* 是否删除0否1是
|
||||
*/
|
||||
private Integer deleted;
|
||||
|
||||
/**
|
||||
* 状态0禁用1启用
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 是否失效0否1是
|
||||
*/
|
||||
private Integer isExpire;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* isExist 是否新增 0否1是
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private Integer isExist;
|
||||
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
private Date deleteTime;
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodreservationconfig.TimeBookVO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品预约配置 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_reservation_config")
|
||||
@KeySequence("tz_prod_reservation_config_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdReservationConfigDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 预约配置的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 预约时段设置
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> reservationTimeSlots;
|
||||
/**
|
||||
* 需提前多少小时预约
|
||||
*/
|
||||
private Integer advanceHours;
|
||||
/**
|
||||
* 预约日期范围 7天 10天 15天 30天
|
||||
*/
|
||||
private Integer reservationDateRange;
|
||||
/**
|
||||
* 是否允许更改预约时间 1可以 0不可以
|
||||
*/
|
||||
private Integer allowChange;
|
||||
|
||||
/**
|
||||
* 时间段
|
||||
*/
|
||||
private Integer timeSlot;
|
||||
|
||||
/**
|
||||
* 更改预约时间的时间规则(如服务开始前1小时可更改)
|
||||
*/
|
||||
private Integer changeTimeRule;
|
||||
/**
|
||||
* 允许更改预约时间的最大次数
|
||||
*/
|
||||
private Integer maxChangeTimes;
|
||||
/**
|
||||
* 预约时间区间设置
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private TimeBookVO timeBook;
|
||||
|
||||
public TimeBookVO getTimeBook() {
|
||||
if (this.timeBook == null) {
|
||||
this.timeBook = new TimeBookVO();
|
||||
this.timeBook.setTimeSlot(this.timeSlot);
|
||||
this.timeBook.setReservationTimeSlots(this.reservationTimeSlots);
|
||||
}
|
||||
return this.timeBook;
|
||||
}
|
||||
|
||||
public void setTimeBook(TimeBookVO timeBook) {
|
||||
this.timeBook = timeBook;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 商品与服务区域关联 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_service_area_relevance")
|
||||
@KeySequence("tz_prod_service_area_relevance_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdServiceAreaRelevanceDO{
|
||||
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 关联的服务区域ID
|
||||
*/
|
||||
private Long areaId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 服务区域 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_service_areas")
|
||||
@KeySequence("tz_prod_service_areas_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdServiceAreasDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 服务区域的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 服务区域名称(如台江区、鼓楼区)
|
||||
*/
|
||||
private String areaName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 超区规则 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_service_over_area_rules")
|
||||
@KeySequence("tz_prod_service_over_area_rules_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdServiceOverAreaRulesDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 超区规则的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)
|
||||
*/
|
||||
private Integer ruleType;
|
||||
/**
|
||||
* 超区费用(仅在rule_type为accept_with_fee时有效)
|
||||
*/
|
||||
private BigDecimal fee;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 商品和标签管理 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_tags")
|
||||
@KeySequence("tz_prod_tags_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdTagsDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Long productId;
|
||||
/**
|
||||
* 标签id
|
||||
*/
|
||||
private Long tagId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 体重区间价格 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_prod_weight_range_prices")
|
||||
@KeySequence("tz_prod_weight_range_prices_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProdWeightRangePricesDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 体重区间价格的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的体重配置ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 体重区间
|
||||
*/
|
||||
private String weightRange;
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 是否收费0否1是
|
||||
*/
|
||||
private Integer isEnabled;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 商品接单上限设置 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_product_order_limit")
|
||||
@KeySequence("tz_product_order_limit_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProductOrderLimitDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 接单上限配置的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 限制单位'0:按自然天',1:'按自然周',2:'按自然月'
|
||||
*/
|
||||
private Integer limitUnit;
|
||||
/**
|
||||
* 上限阈值
|
||||
*/
|
||||
private Integer maxOrders;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 店铺信息 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_shop_detail")
|
||||
@KeySequence("tz_shop_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ShopDetailDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
@TableId
|
||||
private Long shopId;
|
||||
/**
|
||||
* 店铺名称(数字、中文,英文(可混合,不可有特殊字符),可修改)、不唯一
|
||||
*/
|
||||
private String shopName;
|
||||
/**
|
||||
* 店长用户id
|
||||
*/
|
||||
private String userId;
|
||||
/**
|
||||
* 店铺类型
|
||||
*/
|
||||
private Integer shopType;
|
||||
/**
|
||||
* 店铺简介(可修改)
|
||||
*/
|
||||
private String intro;
|
||||
/**
|
||||
* 店铺公告(可修改)
|
||||
*/
|
||||
private String shopNotice;
|
||||
/**
|
||||
* 店铺行业(餐饮、生鲜果蔬、鲜花等)
|
||||
*/
|
||||
private Integer shopIndustry;
|
||||
/**
|
||||
* 店长
|
||||
*/
|
||||
private String shopOwner;
|
||||
/**
|
||||
* 店铺绑定的手机(登录账号:唯一)
|
||||
*/
|
||||
private String mobile;
|
||||
/**
|
||||
* 店铺联系电话
|
||||
*/
|
||||
private String tel;
|
||||
/**
|
||||
* 店铺所在纬度(可修改)
|
||||
*/
|
||||
private String shopLat;
|
||||
/**
|
||||
* 店铺所在经度(可修改)
|
||||
*/
|
||||
private String shopLng;
|
||||
/**
|
||||
* 店铺详细地址
|
||||
*/
|
||||
private String shopAddress;
|
||||
/**
|
||||
* 店铺所在省份(描述)
|
||||
*/
|
||||
private String province;
|
||||
/**
|
||||
* 店铺所在城市(描述)
|
||||
*/
|
||||
private String city;
|
||||
/**
|
||||
* 店铺所在区域(描述)
|
||||
*/
|
||||
private String area;
|
||||
/**
|
||||
* 店铺省市区代码,用于回显
|
||||
*/
|
||||
private String pcaCode;
|
||||
/**
|
||||
* 店铺logo(可修改)
|
||||
*/
|
||||
private String shopLogo;
|
||||
/**
|
||||
* 店铺相册
|
||||
*/
|
||||
private String shopPhotos;
|
||||
/**
|
||||
* 每天营业时间段(可修改)
|
||||
*/
|
||||
private String openTime;
|
||||
/**
|
||||
* 店铺状态(-1:未开通 0: 停业中 1:营业中),可修改
|
||||
*/
|
||||
private Integer shopStatus;
|
||||
/**
|
||||
* 0:商家承担运费; 1:买家承担运费
|
||||
*/
|
||||
private Integer transportType;
|
||||
/**
|
||||
* 固定运费
|
||||
*/
|
||||
private BigDecimal fixedFreight;
|
||||
/**
|
||||
* 满X包邮
|
||||
*/
|
||||
private BigDecimal fullFreeShipping;
|
||||
/**
|
||||
* 分销开关(0:开启 1:关闭)
|
||||
*/
|
||||
private Integer isDistribution;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 单品SKU DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_sku")
|
||||
@KeySequence("tz_sku_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SkuDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 单品ID
|
||||
*/
|
||||
@TableId
|
||||
private Long skuId;
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 销售属性组合字符串 格式是p1:v1;p2:v2
|
||||
*/
|
||||
private String properties;
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
private String alias;
|
||||
/**
|
||||
* 当前价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 基准价
|
||||
*/
|
||||
private BigDecimal basePrice;
|
||||
/**
|
||||
* 最低价格
|
||||
*/
|
||||
private BigDecimal minPrice;
|
||||
/**
|
||||
* 最高价格
|
||||
*/
|
||||
private BigDecimal maxPrice;
|
||||
/**
|
||||
* 成本价
|
||||
*/
|
||||
private BigDecimal originalPrice;
|
||||
/**
|
||||
* 市场价
|
||||
*/
|
||||
private BigDecimal marketPrice;
|
||||
|
||||
/**
|
||||
* 服务内容
|
||||
*/
|
||||
private String serviceContent;
|
||||
/**
|
||||
* 规格id 多个用逗号分隔(1,2,3)
|
||||
*/
|
||||
private String propIds;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String unit;
|
||||
/**
|
||||
* 0:主服务1:待定
|
||||
*/
|
||||
private Integer type;
|
||||
/**
|
||||
* 概述
|
||||
*/
|
||||
private String overview;
|
||||
/**
|
||||
* 库存
|
||||
*/
|
||||
private Integer stocks;
|
||||
|
||||
|
||||
/**
|
||||
* 总库存是0 无线库存是1
|
||||
*/
|
||||
private Integer stocksFlg;
|
||||
|
||||
/**
|
||||
* 锁定库存数
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private Integer stocksLockNum;
|
||||
/**
|
||||
* 预警库存
|
||||
*/
|
||||
private Integer warnStocks;
|
||||
/**
|
||||
* 库存扣款时机0:付款扣1:下单扣
|
||||
*/
|
||||
private Integer stocksType;
|
||||
/**
|
||||
* sku编码
|
||||
*/
|
||||
private String skuCode;
|
||||
/**
|
||||
* 商品条形码
|
||||
*/
|
||||
private String modelId;
|
||||
/**
|
||||
* sku图片
|
||||
*/
|
||||
private String pic;
|
||||
/**
|
||||
* sku名称
|
||||
*/
|
||||
private String skuName;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String prodName;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
/**
|
||||
* 商品重量
|
||||
*/
|
||||
private Double weight;
|
||||
/**
|
||||
* 商品体积
|
||||
*/
|
||||
private Double volume;
|
||||
/**
|
||||
* 0 禁用 1 启用
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 最小购买数量
|
||||
*/
|
||||
private Integer moq;
|
||||
/**
|
||||
* 是否上下架0下架1上架
|
||||
*/
|
||||
private Integer isShelf;
|
||||
|
||||
/**
|
||||
* 是否默认规则0否1是
|
||||
*/
|
||||
private Integer isSpecs;
|
||||
|
||||
/**
|
||||
* 扩展服务表单id
|
||||
*/
|
||||
private Long formId;
|
||||
|
||||
|
||||
/**
|
||||
* isExist 是否新增 0否1是
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private Integer isExist;
|
||||
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
private Date deleteTime;
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 服务交付方式 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_sku_service_deliver")
|
||||
@KeySequence("tz_sku_service_deliver_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SkuServiceDeliverDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 服务遗体运输唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的扩展服务ID
|
||||
*/
|
||||
private Long serviceId;
|
||||
/**
|
||||
* 交互方式0:快递物流 1:到店自提 2:商家自送
|
||||
*/
|
||||
private Integer type;
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 是否收费0:免费1收费
|
||||
*/
|
||||
private Integer isCharge;
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
private String province;
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
private String city;
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
private String area;
|
||||
/**
|
||||
* 电话号码
|
||||
*/
|
||||
private String tel;
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 服务详情 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_sku_service_details")
|
||||
@KeySequence("tz_sku_service_details_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SkuServiceDetailsDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 服务详情的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的扩展服务ID
|
||||
*/
|
||||
private Long serviceId;
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private String pic;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 是否收费0:免费1收费
|
||||
*/
|
||||
private Integer isCharge;
|
||||
/**
|
||||
* 是否默认值0否1是
|
||||
*/
|
||||
private Integer isDefault;
|
||||
/**
|
||||
* 类型:0:配置信息1:交付方式
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 地点
|
||||
*/
|
||||
private String adress;
|
||||
|
||||
/**
|
||||
* 触发节点名称
|
||||
*/
|
||||
private String triggerName;
|
||||
|
||||
/**
|
||||
* 触发节点id(或关联节点)
|
||||
*/
|
||||
private Long triggerId;
|
||||
|
||||
|
||||
/**
|
||||
* 是否并行0串行1并行
|
||||
*/
|
||||
private Integer isParallel;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String describeContent;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 服务物料详情 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_sku_service_material")
|
||||
@KeySequence("tz_sku_service_material_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SkuServiceMaterialDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 服务物料的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的扩展服务ID
|
||||
*/
|
||||
private Long serviceId;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String describeContent;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 服务遗体运输 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_sku_service_transport")
|
||||
@KeySequence("tz_sku_service_transport_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SkuServiceTransportDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 服务遗体运输唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的扩展服务ID
|
||||
*/
|
||||
private Long serviceId;
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
private String contacts;
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
private String province;
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
private String city;
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
private String area;
|
||||
/**
|
||||
* 电话号码
|
||||
*/
|
||||
private String tel;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.tashow.cloud.productapi.api.product.dto;
|
||||
|
||||
import com.tashow.cloud.mybatis.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
/**
|
||||
* 商品SKU扩展服务表单 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("tz_sku_services_form")
|
||||
@KeySequence("tz_sku_services_form_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SkuServicesFormDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 扩展服务的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 表单名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 表单ID
|
||||
*/
|
||||
private Integer formId;
|
||||
|
||||
/**
|
||||
* 服务名称
|
||||
*/
|
||||
private String serviceName;
|
||||
/**
|
||||
* 是否启用该服务
|
||||
*/
|
||||
private Integer isEnabled;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import static com.tashow.cloud.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 产品类目分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class CategoryPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "店铺ID", example = "22369")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "父节点", example = "16509")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "产品类目名称", example = "王五")
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "类目图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "类目的显示图片")
|
||||
private String pic;
|
||||
|
||||
@Schema(description = "类目描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "标签")
|
||||
private List<String> tag;
|
||||
|
||||
@Schema(description = "排序")
|
||||
private Integer sort;
|
||||
|
||||
@Schema(description = "默认是1,表示正常状态,0为下线状态", example = "1")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "分类层级")
|
||||
private Integer grade;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 产品类目 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class CategoryRespVO {
|
||||
|
||||
@Schema(description = "类目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15856")
|
||||
@ExcelProperty("类目ID")
|
||||
private Long categoryId;
|
||||
|
||||
@Schema(description = "店铺ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22369")
|
||||
@ExcelProperty("店铺ID")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "父节点", requiredMode = Schema.RequiredMode.REQUIRED, example = "16509")
|
||||
@ExcelProperty("父节点")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "产品类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@ExcelProperty("产品类目名称")
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "类目图标")
|
||||
@ExcelProperty("类目图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "类目的显示图片")
|
||||
@ExcelProperty("类目的显示图片")
|
||||
private String pic;
|
||||
|
||||
@Schema(description = "类目描述")
|
||||
@ExcelProperty("类目描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "标签")
|
||||
@ExcelProperty("标签")
|
||||
private List<String> tag;
|
||||
|
||||
@Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("排序")
|
||||
private Integer sort;
|
||||
|
||||
@Schema(description = "默认是1,表示正常状态,0为下线状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("默认是1,表示正常状态,0为下线状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "分类层级", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("分类层级")
|
||||
private Integer grade;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 产品类目新增/修改 Request VO")
|
||||
@Data
|
||||
public class CategorySaveReqVO {
|
||||
|
||||
@Schema(description = "类目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15856")
|
||||
private Long categoryId;
|
||||
|
||||
@Schema(description = "店铺ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22369")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "父节点", requiredMode = Schema.RequiredMode.REQUIRED, example = "16509")
|
||||
//@NotNull(message = "父节点不能为空")
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 父节名称
|
||||
*/
|
||||
private String parentName;
|
||||
|
||||
@Schema(description = "产品类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
//@NotEmpty(message = "产品类目名称不能为空")
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "类目图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "类目的显示图片")
|
||||
private String pic;
|
||||
|
||||
@Schema(description = "类目描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "标签")
|
||||
private List<String> tag;
|
||||
|
||||
@Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Integer sort;
|
||||
|
||||
@Schema(description = "默认是1,表示正常状态,0为下线状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "分类层级 1级 2级 3级", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
//@NotNull(message = "分类层级不能为空")
|
||||
private Integer grade;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.tashow.cloud.productapi.api.product.dto.*;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse.ProdEmergencyInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodserviceareas.ProdServiceAreasInfoVO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "商品服务配置 VO")
|
||||
@Data
|
||||
public class ProdListVO {
|
||||
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
@TableId
|
||||
private Long prodId;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String prodName;
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private String shopName;
|
||||
|
||||
/**
|
||||
* 默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 是否置灰0否1是
|
||||
*/
|
||||
private Integer isProhibit;
|
||||
/**
|
||||
* 服务区域地址名称集合
|
||||
*/
|
||||
private List<String> areaNameList;
|
||||
|
||||
/**
|
||||
* 紧急服务最快响应时间(小时)
|
||||
*/
|
||||
private BigDecimal responseHours;
|
||||
/**
|
||||
* 服务时段
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> reservationTimeSlots;
|
||||
|
||||
/**
|
||||
* 还剩多少天
|
||||
*/
|
||||
private Long remainingDays;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
*/
|
||||
private String processNotes;
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date deleteTime;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import static com.tashow.cloud.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 商品分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "商品名称", example = "赵六")
|
||||
private String prodName;
|
||||
|
||||
@Schema(description = "店铺id", example = "10843")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核", example = "2")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "商品分类", example = "14895")
|
||||
private Long categoryId;
|
||||
|
||||
/**
|
||||
* 商品分类名称
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
//@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private String[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
@Schema(description = "商品回收站分页查询")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdRecycleBinVO extends PageParam {
|
||||
|
||||
@Schema(description = "商品名称", example = "18784")
|
||||
private String prodName;
|
||||
|
||||
@Schema(description = "删除时间")
|
||||
//@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private String[] deleteTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdRespVO {
|
||||
|
||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6943")
|
||||
@ExcelProperty("产品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
@ExcelProperty("商品名称")
|
||||
private String prodName;
|
||||
|
||||
@Schema(description = "商品简称")
|
||||
@ExcelProperty("商品简称")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "seo标题", example = "李四")
|
||||
@ExcelProperty("seo标题")
|
||||
private String seoShortName;
|
||||
|
||||
|
||||
@Schema(description = "seo搜索")
|
||||
@ExcelProperty("seo搜索")
|
||||
private String seoSearch;
|
||||
|
||||
@Schema(description = "关键词")
|
||||
@ExcelProperty("关键词")
|
||||
private String keyword;
|
||||
|
||||
@Schema(description = "店铺id", example = "10843")
|
||||
@ExcelProperty("店铺id")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "简要描述,卖点等")
|
||||
@ExcelProperty("简要描述,卖点等")
|
||||
private String brief;
|
||||
|
||||
@Schema(description = "品牌")
|
||||
@ExcelProperty("品牌")
|
||||
private String brand;
|
||||
|
||||
@Schema(description = "详细描述")
|
||||
@ExcelProperty("详细描述")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "商品编号")
|
||||
@ExcelProperty("商品编号")
|
||||
private String prodNumber;
|
||||
|
||||
@Schema(description = "商品主图")
|
||||
@ExcelProperty("商品主图")
|
||||
private String pic;
|
||||
|
||||
@Schema(description = "商品轮播图片,以,分割")
|
||||
@ExcelProperty("商品轮播图片,以,分割")
|
||||
private String imgs;
|
||||
|
||||
/**
|
||||
* 视频
|
||||
*/
|
||||
private String video;
|
||||
|
||||
/**
|
||||
* 商品轮播图片,以,分割
|
||||
*/
|
||||
private String whiteImg;
|
||||
|
||||
@Schema(description = "默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核", example = "2")
|
||||
@ExcelProperty("默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "商品分类", example = "14895")
|
||||
@ExcelProperty("商品分类")
|
||||
private Long categoryId;
|
||||
|
||||
/**
|
||||
* 商品分类名称
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "销量")
|
||||
@ExcelProperty("销量")
|
||||
private Integer soldNum;
|
||||
|
||||
@Schema(description = "分享图")
|
||||
@ExcelProperty("分享图")
|
||||
private String shareImage;
|
||||
|
||||
@Schema(description = "'是否置灰0否1是'")
|
||||
private Integer isProhibit;
|
||||
|
||||
@Schema(description = "审核备注")
|
||||
private String processNotes;
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
public List<String> tag;
|
||||
|
||||
@Schema(description = "分享话术")
|
||||
@ExcelProperty("分享话术")
|
||||
private String shareContent;
|
||||
|
||||
@Schema(description = "是否开启区域0关1开")
|
||||
@ExcelProperty("是否开启区域0关1开")
|
||||
private Integer regionSwitch;
|
||||
|
||||
@Schema(description = "是否特殊时段0关1开")
|
||||
@ExcelProperty("是否特殊时段0关1开")
|
||||
private Integer additionalSwitch;
|
||||
|
||||
@Schema(description = "是否特殊日期(节假日周末什么的)0关1开")
|
||||
@ExcelProperty("是否特殊日期(节假日周末什么的)0关1开")
|
||||
private Integer additionalFeeSwitch;
|
||||
|
||||
@Schema(description = "是否紧急响应服务0关1开")
|
||||
@ExcelProperty("是否紧急响应服务0关1开")
|
||||
private Integer emergencySwitch;
|
||||
|
||||
@Schema(description = "是否预约0关1开")
|
||||
@ExcelProperty("是否预约0关1开")
|
||||
private Integer reservationSwitch;
|
||||
|
||||
@Schema(description = "是否接单上线0关1开")
|
||||
@ExcelProperty("是否接单上线0关1开")
|
||||
private Integer orderLimitSwitch;
|
||||
|
||||
@Schema(description = "是否开启体重配置0关1开")
|
||||
@ExcelProperty("是否开启体重配置0关1开")
|
||||
private Integer weightSwitch;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
@ExcelProperty("创建人")
|
||||
private String createBy;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
@ExcelProperty("修改人")
|
||||
private String updateBy;
|
||||
|
||||
@Schema(description = "版本 乐观锁")
|
||||
@ExcelProperty("版本 乐观锁")
|
||||
private Integer version;
|
||||
|
||||
@Schema(description = "展示的权重")
|
||||
@ExcelProperty("展示的权重")
|
||||
private Integer top;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "商品服务配置 VO")
|
||||
@Data
|
||||
public class ProdRestoreListVO {
|
||||
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
@TableId
|
||||
private Long prodId;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String prodName;
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private String shopName;
|
||||
|
||||
/**
|
||||
* 服务区域地址名称集合
|
||||
*/
|
||||
private List<String> areaNameList;
|
||||
|
||||
/**
|
||||
* 紧急服务最快响应时间(小时)
|
||||
*/
|
||||
private BigDecimal responseHours;
|
||||
/**
|
||||
* 服务时段
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> reservationTimeSlots;
|
||||
|
||||
/**
|
||||
* 还剩多少天
|
||||
*/
|
||||
private Long remainingDays;
|
||||
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date deleteTime;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.dto.SkuDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodprop.ProdPropSaveReqVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdSaveReqVO {
|
||||
|
||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6943")
|
||||
private Long prodId;
|
||||
|
||||
//@Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
//@NotEmpty(message = "商品名称不能为空")
|
||||
private String prodName;
|
||||
|
||||
@Schema(description = "商品简称")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "seo标题", example = "李四")
|
||||
private String seoShortName;
|
||||
|
||||
@Schema(description = "seo搜索")
|
||||
private String seoSearch;
|
||||
|
||||
@Schema(description = "关键词")
|
||||
private String keyword;
|
||||
|
||||
/**
|
||||
* 商品分类名称
|
||||
*/
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "店铺id", example = "10843")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "简要描述,卖点等")
|
||||
private String brief;
|
||||
|
||||
@Schema(description = "品牌")
|
||||
private String brand;
|
||||
|
||||
@Schema(description = "详细描述")
|
||||
private String content;
|
||||
/**
|
||||
* 视频
|
||||
*/
|
||||
private String video;
|
||||
|
||||
/**
|
||||
* 白底图
|
||||
*/
|
||||
private String whiteImg;
|
||||
|
||||
@Schema(description = "商品编号")
|
||||
private String prodNumber;
|
||||
|
||||
@Schema(description = "商品主图")
|
||||
private String pic;
|
||||
|
||||
@Schema(description = "商品轮播图片,以,分割")
|
||||
private String imgs;
|
||||
|
||||
@Schema(description = "默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核", example = "2")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "'是否置灰0否1是'")
|
||||
private Integer isProhibit;
|
||||
|
||||
@Schema(description = "审核备注")
|
||||
private String processNotes;
|
||||
|
||||
|
||||
@Schema(description = "商品分类", example = "14895")
|
||||
private Long categoryId;
|
||||
|
||||
@Schema(description = "销量")
|
||||
private Integer soldNum;
|
||||
|
||||
@Schema(description = "分享图")
|
||||
private String shareImage;
|
||||
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
public List<String> tag;
|
||||
|
||||
@Schema(description = "分享话术")
|
||||
private String shareContent;
|
||||
|
||||
@Schema(description = "是否开启区域0关1开")
|
||||
private Integer regionSwitch;
|
||||
|
||||
@Schema(description = "是否特殊时段0关1开")
|
||||
private Integer additionalSwitch;
|
||||
|
||||
@Schema(description = "是否特殊日期(节假日周末什么的)0关1开")
|
||||
private Integer additionalFeeSwitch;
|
||||
|
||||
@Schema(description = "是否紧急响应服务0关1开")
|
||||
private Integer emergencySwitch;
|
||||
|
||||
@Schema(description = "是否预约0关1开")
|
||||
private Integer reservationSwitch;
|
||||
|
||||
@Schema(description = "是否接单上线0关1开")
|
||||
private Integer orderLimitSwitch;
|
||||
|
||||
@Schema(description = "是否开启体重配置0关1开")
|
||||
private Integer weightSwitch;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
private String updateBy;
|
||||
|
||||
@Schema(description = "版本 乐观锁")
|
||||
private Integer version;
|
||||
|
||||
@Schema(description = "展示的权重")
|
||||
private Integer top;
|
||||
|
||||
@Schema(description = "sku列表")
|
||||
private List<SkuDO> skuList;
|
||||
|
||||
@Schema(description = "规格")
|
||||
private List<ProdPropSaveReqVO> prodPropSaveReqVO;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdAdditionalFeeDatesDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdAdditionalFeePeriodsDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdWeightRangePricesDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProductOrderLimitDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse.ProdEmergencyInfoReqVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse.ProdEmergencyInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodreservationconfig.ProdReservationInfoReqVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodreservationconfig.ProdReservationInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodserviceareas.ProdServiceAreasInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices.ProdWeightRangePricesSaveInfoVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Schema(description = "商品服务配置 VO")
|
||||
@Data
|
||||
public class ProdServiceInfoVO {
|
||||
|
||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6943")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
@Schema(description = "新建人")
|
||||
private String creator;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
private String updater;
|
||||
|
||||
@Schema(description = "分类名称")
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "是否开启服务区域配置0关1开")
|
||||
private Integer regionSwitch;
|
||||
@Schema(description = "服务区域配置")
|
||||
public ProdServiceAreasInfoVO prodServiceAreasInfo;
|
||||
|
||||
|
||||
@Schema(description = "是否预约0关1开")
|
||||
private Integer reservationSwitch;
|
||||
@Schema(description = "预约配置")
|
||||
public ProdReservationInfoReqVO prodReservationConfig;
|
||||
|
||||
@Schema(description = "是否紧急响应服务0关1开")
|
||||
private Integer emergencySwitch;
|
||||
@Schema(description = "急响应服务配置")
|
||||
public ProdEmergencyInfoReqVO prodEmergencyInfoVO;
|
||||
|
||||
@Schema(description = "是否接单上线0关1开")
|
||||
private Integer orderLimitSwitch;
|
||||
@Schema(description = "接单上线配置")
|
||||
public ProductOrderLimitDO productOrderLimitVO;
|
||||
|
||||
|
||||
@Schema(description = "是否特殊日期(节假日周末什么的)0关1开 ")
|
||||
private Integer additionalSwitch;
|
||||
@Schema(description = "特殊日期规则配置")
|
||||
public List<ProdAdditionalFeeDatesDO> prodAdditionalFeeDatesList;
|
||||
|
||||
@Schema(description = "是否特殊时段0关1开")
|
||||
private Integer additionalFeeSwitch;
|
||||
@Schema(description = "特殊时段规则配置 ")
|
||||
public List<ProdAdditionalFeePeriodsDO> prodAdditionalFeePeriodsList;
|
||||
|
||||
|
||||
@Schema(description = "是否开启体重配置0关1开")
|
||||
private Integer weightSwitch;
|
||||
@Schema(description = "体重配置")
|
||||
public ProdWeightRangePricesSaveInfoVO prodWeightConfig;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prod;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse.ProdEmergencyInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodreservationconfig.ProdReservationInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodserviceareas.ProdServiceAreasInfoVO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.*;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices.ProdWeightRangePricesSaveInfoVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Schema(description = "商品服务配置 VO")
|
||||
@Data
|
||||
public class ProdServiceVO {
|
||||
|
||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6943")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
@Schema(description = "新建人")
|
||||
private String creator;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
private String updater;
|
||||
|
||||
@Schema(description = "分类名称")
|
||||
private String categoryName;
|
||||
|
||||
@Schema(description = "是否开启服务区域配置0关1开")
|
||||
private Integer regionSwitch;
|
||||
@Schema(description = "服务区域配置")
|
||||
public ProdServiceAreasInfoVO prodServiceAreasInfo;
|
||||
|
||||
|
||||
@Schema(description = "是否预约0关1开")
|
||||
private Integer reservationSwitch;
|
||||
@Schema(description = "预约配置")
|
||||
public ProdReservationInfoVO prodReservationConfig;
|
||||
|
||||
/* public List<ProdAdditionalFeeBlackVO> getProdReservationBlackList() {
|
||||
if (prodReservationBlackList == null || prodReservationBlackList.isEmpty()) {
|
||||
return prodReservationBlackList;
|
||||
}
|
||||
return prodReservationBlackList.stream()
|
||||
.filter(Objects::nonNull)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public void setProdReservationBlackList(List<ProdAdditionalFeeBlackVO> prodReservationBlackList) {
|
||||
this.prodReservationBlackList = prodReservationBlackList;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
@Schema(description = "是否紧急响应服务0关1开")
|
||||
private Integer emergencySwitch;
|
||||
@Schema(description = "急响应服务配置")
|
||||
public ProdEmergencyInfoVO prodEmergencyInfoVO;
|
||||
|
||||
@Schema(description = "是否接单上线0关1开")
|
||||
private Integer orderLimitSwitch;
|
||||
@Schema(description = "接单上线配置")
|
||||
public ProductOrderLimitDO productOrderLimitVO;
|
||||
|
||||
|
||||
@Schema(description = "是否特殊日期(节假日周末什么的)0关1开")
|
||||
private Integer additionalSwitch;
|
||||
@Schema(description = "特殊日期规则配置")
|
||||
public List<ProdAdditionalFeeDatesDO> prodAdditionalFeeDatesList;
|
||||
|
||||
@Schema(description = "是否特殊时段0关1开 ")
|
||||
private Integer additionalFeeSwitch;
|
||||
@Schema(description = "特殊时段规则配置 ")
|
||||
public List<ProdAdditionalFeePeriodsDO> prodAdditionalFeePeriodsList;
|
||||
|
||||
|
||||
@Schema(description = "是否开启体重配置0关1开")
|
||||
private Integer weightSwitch;
|
||||
@Schema(description = "体重配置")
|
||||
public ProdWeightRangePricesSaveInfoVO prodWeightConfig;
|
||||
|
||||
|
||||
public ProdReservationInfoVO getProdReservationConfig() {
|
||||
|
||||
if (this.prodReservationConfig == null) {
|
||||
return null;
|
||||
}
|
||||
// 判断是否“逻辑上为空”
|
||||
if (isProdReservationInfoEmpty(this.prodReservationConfig)) {
|
||||
return null;
|
||||
}
|
||||
return this.prodReservationConfig;
|
||||
}
|
||||
|
||||
public void setProdReservationConfig(ProdReservationInfoVO prodReservationConfig) {
|
||||
this.prodReservationConfig = prodReservationConfig;
|
||||
}
|
||||
|
||||
private boolean isProdReservationInfoEmpty(ProdReservationInfoVO config) {
|
||||
if (config == null) return true;
|
||||
// 判断所有字段是否都为 null 或空
|
||||
return config.getId() == null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊日期附加费用规则 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdAdditionalFeeBlackVO {
|
||||
|
||||
@Schema(description = "特殊日期规则的唯一标识符")
|
||||
@ExcelProperty("特殊日期规则的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'")
|
||||
@ExcelProperty("日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'")
|
||||
private Integer dateType;
|
||||
|
||||
@Schema(description = "黑名单日期设置")
|
||||
@ExcelProperty("黑名单日期设置")
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> customTimeSlots;
|
||||
|
||||
|
||||
@Schema(description = "类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期")
|
||||
@ExcelProperty("类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期")
|
||||
private Integer type;
|
||||
|
||||
@Schema(description = "是否启用该规则是否启用该规则0关1开", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否启用该规则是否启用该规则0关1开")
|
||||
private Integer isEnabled;
|
||||
public boolean isEmpty() {
|
||||
return id == null ;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊日期附加费用规则分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdAdditionalFeeDatesPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "商品id", example = "24324")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "名称", example = "赵六")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'", example = "2")
|
||||
private Integer dateType;
|
||||
|
||||
@Schema(description = "自定义日期时间段(JSON格式存储)")
|
||||
private String customTimeSlots;
|
||||
|
||||
@Schema(description = "指定日期(JSON格式存储)")
|
||||
private String specificDates;
|
||||
|
||||
@Schema(description = "收费方式0:''固定金额'':1:''基准价上浮")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "17305")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "是否启用该规则是否启用该规则0关1开")
|
||||
private Integer isEnabled;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊日期附加费用规则 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdAdditionalFeeDatesRespVO {
|
||||
|
||||
@Schema(description = "特殊日期规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "1445")
|
||||
@ExcelProperty("特殊日期规则的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24324")
|
||||
@ExcelProperty("商品id")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
@ExcelProperty("名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@ExcelProperty("日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'")
|
||||
private Integer dateType;
|
||||
|
||||
@Schema(description = "自定义日期时间段(JSON格式存储)")
|
||||
@ExcelProperty("自定义日期时间段(JSON格式存储)")
|
||||
private String customTimeSlots;
|
||||
|
||||
@Schema(description = "指定日期(JSON格式存储)")
|
||||
@ExcelProperty("指定日期(JSON格式存储)")
|
||||
private String specificDates;
|
||||
|
||||
@Schema(description = "收费方式0:''固定金额'':1:''基准价上浮")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "17305")
|
||||
@ExcelProperty("价格或上浮百分比")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "是否启用该规则是否启用该规则0关1开", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否启用该规则是否启用该规则0关1开")
|
||||
private Integer isEnabled;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊日期附加费用规则新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdAdditionalFeeDatesSaveReqVO {
|
||||
|
||||
@Schema(description = "特殊日期规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "1445")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24324")
|
||||
@NotNull(message = "商品id不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@NotNull(message = "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'不能为空")
|
||||
private Integer dateType;
|
||||
|
||||
@Schema(description = "自定义日期时间段(JSON格式存储)")
|
||||
private String customTimeSlots;
|
||||
|
||||
@Schema(description = "指定日期(JSON格式存储)")
|
||||
private String specificDates;
|
||||
|
||||
@Schema(description = "收费方式0:''固定金额'':1:''基准价上浮", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "收费方式不能为空")
|
||||
private Integer chargeMode;
|
||||
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "17305")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "是否启用该规则是否启用该规则0关1开", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "是否启用该规则不能为空")
|
||||
private Integer isEnabled;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeeperiods;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊时段附加费用规则分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdAdditionalFeePeriodsPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "商品ID", example = "11100")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "名称", example = "张三")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "特殊时段设置(JSON格式存储)")
|
||||
private String specialTimeSlots;
|
||||
|
||||
@Schema(description = "收费方式0:'固定金额',1:'基准价上浮'")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "20834")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "浮动百分比")
|
||||
private BigDecimal floatingPercentage;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeeperiods;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊时段附加费用规则 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdAdditionalFeePeriodsRespVO {
|
||||
|
||||
@Schema(description = "特殊时段规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "24746")
|
||||
@ExcelProperty("特殊时段规则的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11100")
|
||||
@ExcelProperty("商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||
@ExcelProperty("名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "特殊时段设置(JSON格式存储)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("特殊时段设置(JSON格式存储)")
|
||||
private List<String> specialTimeSlots;
|
||||
|
||||
@Schema(description = "收费方式0:'固定金额',1:'基准价上浮'", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("收费方式0:'固定金额',1:'基准价上浮'")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "20834")
|
||||
@ExcelProperty("价格或上浮百分比")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "浮动百分比")
|
||||
@ExcelProperty("浮动百分比")
|
||||
private BigDecimal floatingPercentage;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodadditionalfeeperiods;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 特殊时段附加费用规则新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdAdditionalFeePeriodsSaveReqVO {
|
||||
|
||||
@Schema(description = "特殊时段规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "24746")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11100")
|
||||
@NotNull(message = "商品ID不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "特殊时段设置(JSON格式存储)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "特殊时段设置(JSON格式存储)不能为空")
|
||||
private List<String> specialTimeSlots;
|
||||
|
||||
@Schema(description = "收费方式0:'固定金额',1:'基准价上浮'", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "收费方式0:'固定金额',1:'基准价上浮'不能为空")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "20834")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "浮动百分比")
|
||||
private BigDecimal floatingPercentage;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdEmergencyResponseIntervalsDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdEmergencyInfoReqVO {
|
||||
|
||||
|
||||
/**
|
||||
* 紧急响应服务配置的唯一标识符
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 可响应时间段
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> responseTimeSlots;
|
||||
|
||||
@Schema(description = "紧急响应时间区间设置")
|
||||
public List<ProdEmergencyResponseIntervalsDO> prodEmergencyResponseIntervalsList;
|
||||
|
||||
@Schema(description = "紧急响应黑名单日期设置")
|
||||
public List<ProdAdditionalFeeBlackVO> prodEmergencyResponseBlackList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdEmergencyResponseIntervalsDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdEmergencyInfoVO {
|
||||
|
||||
|
||||
/**
|
||||
* 紧急响应服务配置的唯一标识符
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 可响应时间段
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> responseTimeSlots;
|
||||
|
||||
@Schema(description = "紧急响应时间区间设置")
|
||||
public List<ProdEmergencyResponseIntervalsDO> prodEmergencyResponseIntervalsList;
|
||||
|
||||
@Schema(description = "紧急响应黑名单日期设置")
|
||||
public List<ProdAdditionalFeeBlackVO> prodEmergencyResponseBlackList;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdEmergencyResponsePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "关联的商品ID", example = "29152")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "可响应时间段")
|
||||
private List<String> responseTimeSlots;
|
||||
|
||||
@Schema(description = "黑名自定义日期")
|
||||
private List<String> blacklistedDates;
|
||||
|
||||
@Schema(description = "黑名单指定日期")
|
||||
private List<String> blackAppointDates;
|
||||
|
||||
@Schema(description = "法定节假日是否开启0:关闭1开启")
|
||||
private Integer blackHappy;
|
||||
|
||||
@Schema(description = "固定休息日周末是否开启0关闭1开启")
|
||||
private Integer blackWeekend;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdEmergencyResponseRespVO {
|
||||
|
||||
@Schema(description = "紧急响应服务配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "7448")
|
||||
@ExcelProperty("紧急响应服务配置的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29152")
|
||||
@ExcelProperty("关联的商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "可响应时间段(JSON格式存储)")
|
||||
@ExcelProperty("可响应时间段(JSON格式存储)")
|
||||
private String responseTimeSlots;
|
||||
|
||||
@Schema(description = "黑名自定义日期(JSON格式存储)")
|
||||
@ExcelProperty("黑名自定义日期(JSON格式存储)")
|
||||
private String blacklistedDates;
|
||||
|
||||
@Schema(description = "黑名单指定日期(JSON格式存储)")
|
||||
@ExcelProperty("黑名单指定日期(JSON格式存储)")
|
||||
private String blackAppointDates;
|
||||
|
||||
@Schema(description = "法定节假日是否开启0:关闭1开启")
|
||||
@ExcelProperty("法定节假日是否开启0:关闭1开启")
|
||||
private Integer blackHappy;
|
||||
|
||||
@Schema(description = "固定休息日周末是否开启0关闭1开启")
|
||||
@ExcelProperty("固定休息日周末是否开启0关闭1开启")
|
||||
private Integer blackWeekend;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@ExcelProperty("更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdEmergencyResponseSaveReqVO {
|
||||
|
||||
@Schema(description = "紧急响应服务配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "7448")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29152")
|
||||
@NotNull(message = "关联的商品ID不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "可响应时间段")
|
||||
private List<String> responseTimeSlots;
|
||||
|
||||
@Schema(description = "黑名自定义日期")
|
||||
private List<String>blacklistedDates;
|
||||
|
||||
@Schema(description = "黑名单指定日期")
|
||||
private List<String> blackAppointDates;
|
||||
|
||||
@Schema(description = "法定节假日是否开启0:关闭1开启")
|
||||
private Integer blackHappy;
|
||||
|
||||
@Schema(description = "固定休息日周末是否开启0关闭1开启")
|
||||
private Integer blackWeekend;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponseintervals;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 紧急响应时间区间设置分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdEmergencyResponseIntervalsPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "关联的紧急响应服务配置ID", example = "5737")
|
||||
private Long configId;
|
||||
|
||||
@Schema(description = "响应模式名称", example = "王五")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "响应时间(小时)")
|
||||
private BigDecimal responseHours;
|
||||
|
||||
@Schema(description = "收费模式0:固定收费 1:浮动收费")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "浮动百分比")
|
||||
private BigDecimal floatingPercentage;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "17810")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponseintervals;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 紧急响应时间区间设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdEmergencyResponseIntervalsRespVO {
|
||||
|
||||
@Schema(description = "响应时间区间的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "29650")
|
||||
@ExcelProperty("响应时间区间的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的紧急响应服务配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5737")
|
||||
@ExcelProperty("关联的紧急响应服务配置ID")
|
||||
private Long configId;
|
||||
|
||||
@Schema(description = "响应模式名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@ExcelProperty("响应模式名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "响应时间(小时)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("响应时间(小时)")
|
||||
private BigDecimal responseHours;
|
||||
|
||||
@Schema(description = "收费模式0:固定收费 1:浮动收费", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("收费模式0:固定收费 1:浮动收费")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "浮动百分比")
|
||||
@ExcelProperty("浮动百分比")
|
||||
private BigDecimal floatingPercentage;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "17810")
|
||||
@ExcelProperty("价格或上浮百分比")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "最后更新时间")
|
||||
@ExcelProperty("最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponseintervals;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 紧急响应时间区间设置新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdEmergencyResponseIntervalsSaveReqVO {
|
||||
|
||||
@Schema(description = "响应时间区间的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "29650")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的紧急响应服务配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5737")
|
||||
@NotNull(message = "关联的紧急响应服务配置ID不能为空")
|
||||
private Long configId;
|
||||
|
||||
@Schema(description = "响应模式名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@NotEmpty(message = "响应模式名称不能为空")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "响应时间(小时)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "响应时间(小时)不能为空")
|
||||
private BigDecimal responseHours;
|
||||
|
||||
@Schema(description = "收费模式0:固定收费 1:浮动收费", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "收费模式0:固定收费 1:浮动收费不能为空")
|
||||
private Integer chargeMode;
|
||||
|
||||
@Schema(description = "浮动百分比")
|
||||
private BigDecimal floatingPercentage;
|
||||
|
||||
@Schema(description = "价格或上浮百分比", example = "17810")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodprop;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
@Schema(description = "管理后台 - 商品属性分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdPropPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "属性名称", example = "李四")
|
||||
private String propName;
|
||||
|
||||
@Schema(description = "ProdPropRule 1:销售属性(规格); 2:参数属性;")
|
||||
private Integer rule;
|
||||
|
||||
@Schema(description = "店铺id", example = "2806")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "商品id", example = "21671")
|
||||
private Integer prodId;
|
||||
|
||||
@Schema(description = "是否删除0否1是")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodprop;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 商品属性 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdPropRespVO {
|
||||
|
||||
@Schema(description = "属性id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14271")
|
||||
@ExcelProperty("属性id")
|
||||
private Long propId;
|
||||
|
||||
@Schema(description = "属性名称", example = "李四")
|
||||
@ExcelProperty("属性名称")
|
||||
private String propName;
|
||||
|
||||
@Schema(description = "ProdPropRule 1:销售属性(规格); 2:参数属性;")
|
||||
@ExcelProperty("ProdPropRule 1:销售属性(规格); 2:参数属性;")
|
||||
private Integer rule;
|
||||
|
||||
@Schema(description = "店铺id", example = "2806")
|
||||
@ExcelProperty("店铺id")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "商品id", example = "21671")
|
||||
@ExcelProperty("商品id")
|
||||
private Integer prodId;
|
||||
|
||||
@Schema(description = "是否删除0否1是")
|
||||
@ExcelProperty("是否删除0否1是")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodprop;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdPropValueDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品属性新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdPropSaveReqVO {
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "属性id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14271")
|
||||
private Long propId;
|
||||
|
||||
@Schema(description = "属性名称", example = "李四")
|
||||
private String propName;
|
||||
|
||||
@Schema(description = "ProdPropRule 1:销售属性(规格); 2:参数属性;")
|
||||
private Integer rule;
|
||||
|
||||
@Schema(description = "店铺id", example = "2806")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "商品id(添加的时候不传)", example = "21671")
|
||||
private Integer prodId;
|
||||
|
||||
@Schema(description = "是否删除0否1是")
|
||||
private Integer deleted;
|
||||
|
||||
/**
|
||||
* isExist 是否新增 0否1是
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private Integer isExist;
|
||||
/**
|
||||
* 属性值
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
@NotEmpty(message="规格属性值不能为空")
|
||||
private List<ProdPropValueDO> prodPropValues;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodpropvalue;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
@Schema(description = "")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProPageReqVO extends PageParam {
|
||||
|
||||
/**
|
||||
* 属性规格名称
|
||||
*/
|
||||
private String propValue;
|
||||
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Long prodId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodpropvalue;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ProPropRecycleBinVO {
|
||||
@Schema(description = "规格值id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 属性规格名称
|
||||
*/
|
||||
private String propValue;
|
||||
/**
|
||||
* 关联规格属性id
|
||||
*/
|
||||
private Long propId;
|
||||
|
||||
/**
|
||||
* 还剩多少天
|
||||
*/
|
||||
private Long remainingDays;
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date deleteTime;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodpropvalue;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
@Schema(description = "管理后台 - 属性规则分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdPropValuePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "属性值名称")
|
||||
private String propValue;
|
||||
|
||||
@Schema(description = "属性ID", example = "28282")
|
||||
private Long propId;
|
||||
|
||||
@Schema(description = "是否删除0否1是")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodpropvalue;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 属性规则 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdPropValueRespVO {
|
||||
|
||||
@Schema(description = "属性值ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13799")
|
||||
@ExcelProperty("属性值ID")
|
||||
private Long valueId;
|
||||
|
||||
@Schema(description = "属性值名称")
|
||||
@ExcelProperty("属性值名称")
|
||||
private String propValue;
|
||||
|
||||
@Schema(description = "属性ID", example = "28282")
|
||||
@ExcelProperty("属性ID")
|
||||
private Long propId;
|
||||
|
||||
@Schema(description = "是否删除0否1是")
|
||||
@ExcelProperty("是否删除0否1是")
|
||||
private Boolean deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodpropvalue;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 属性规则新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdPropValueSaveReqVO {
|
||||
|
||||
@Schema(description = "属性值ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13799")
|
||||
private Long valueId;
|
||||
|
||||
@Schema(description = "属性值名称")
|
||||
private String propValue;
|
||||
|
||||
@Schema(description = "属性ID", example = "28282")
|
||||
private Long propId;
|
||||
|
||||
@Schema(description = "是否删除0否1是")
|
||||
private Boolean deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodreservationconfig;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品预约配置分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdReservationConfigPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "关联的商品ID", example = "19369")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "预约时段设置")
|
||||
private List<String> reservationTimeSlots;
|
||||
|
||||
@Schema(description = "需提前多少小时预约")
|
||||
private Integer advanceHours;
|
||||
|
||||
@Schema(description = "预约日期范围 7天 10天 15天 30天")
|
||||
private Integer reservationDateRange;
|
||||
|
||||
@Schema(description = "是否允许更改预约时间 1可以 0不可以")
|
||||
private Boolean allowChange;
|
||||
|
||||
@Schema(description = "更改预约时间的时间规则(如服务开始前1小时可更改)")
|
||||
private Integer changeTimeRule;
|
||||
|
||||
@Schema(description = "允许更改预约时间的最大次数")
|
||||
private Integer maxChangeTimes;
|
||||
|
||||
@Schema(description = "黑名自定义日期")
|
||||
private List<String> blacklistedDates;
|
||||
|
||||
/**
|
||||
* '是否开启黑名单自定义0关1开'
|
||||
*/
|
||||
private Integer isBlacklisted;
|
||||
|
||||
/**
|
||||
* '是否开启黑名单指定日期0关1开'
|
||||
*/
|
||||
private Integer isBlackAppoint;
|
||||
|
||||
@Schema(description = "黑名单指定日期")
|
||||
private List<String> blackAppointDates;
|
||||
|
||||
@Schema(description = "法定节假日是否开启0:关闭1开启")
|
||||
private Boolean blackHappy;
|
||||
|
||||
@Schema(description = "固定休息日周末是否开启0关闭1开启")
|
||||
private Boolean blackWeekend;
|
||||
|
||||
@Schema(description = "配置创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "配置最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodreservationconfig;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品预约配置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdReservationConfigRespVO {
|
||||
|
||||
@Schema(description = "预约配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "20606")
|
||||
@ExcelProperty("预约配置的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19369")
|
||||
@ExcelProperty("关联的商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "预约时段设置", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("预约时段设置")
|
||||
private List<String> reservationTimeSlots;
|
||||
|
||||
@Schema(description = "需提前多少小时预约", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("需提前多少小时预约")
|
||||
private Integer advanceHours;
|
||||
|
||||
@Schema(description = "预约日期范围 7天 10天 15天 30天", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("预约日期范围 7天 10天 15天 30天")
|
||||
private Integer reservationDateRange;
|
||||
|
||||
@Schema(description = "是否允许更改预约时间 1可以 0不可以", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否允许更改预约时间 1可以 0不可以")
|
||||
private Boolean allowChange;
|
||||
|
||||
@Schema(description = "更改预约时间的时间规则(如服务开始前1小时可更改)")
|
||||
@ExcelProperty("更改预约时间的时间规则(如服务开始前1小时可更改)")
|
||||
private Integer changeTimeRule;
|
||||
|
||||
@Schema(description = "允许更改预约时间的最大次数")
|
||||
@ExcelProperty("允许更改预约时间的最大次数")
|
||||
private Integer maxChangeTimes;
|
||||
|
||||
@Schema(description = "黑名自定义日期")
|
||||
@ExcelProperty("黑名自定义日期")
|
||||
private List<String> blacklistedDates;
|
||||
|
||||
/**
|
||||
* '是否开启黑名单自定义0关1开'
|
||||
*/
|
||||
private Integer isBlacklisted;
|
||||
|
||||
/**
|
||||
* '是否开启黑名单指定日期0关1开'
|
||||
*/
|
||||
private Integer isBlackAppoint;
|
||||
|
||||
@Schema(description = "黑名单指定日期")
|
||||
@ExcelProperty("黑名单指定日期")
|
||||
private List<String> blackAppointDates;
|
||||
|
||||
@Schema(description = "法定节假日是否开启0:关闭1开启")
|
||||
@ExcelProperty("法定节假日是否开启0:关闭1开启")
|
||||
private Boolean blackHappy;
|
||||
|
||||
@Schema(description = "固定休息日周末是否开启0关闭1开启")
|
||||
@ExcelProperty("固定休息日周末是否开启0关闭1开启")
|
||||
private Boolean blackWeekend;
|
||||
|
||||
@Schema(description = "配置创建时间")
|
||||
@ExcelProperty("配置创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "配置最后更新时间")
|
||||
@ExcelProperty("配置最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodreservationconfig;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品预约配置新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdReservationConfigSaveReqVO {
|
||||
|
||||
@Schema(description = "预约配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "20606")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19369")
|
||||
@NotNull(message = "关联的商品ID不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "预约时段设置", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "预约时段设置不能为空")
|
||||
private List<String> reservationTimeSlots;
|
||||
|
||||
@Schema(description = "需提前多少小时预约", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "需提前多少小时预约不能为空")
|
||||
private Integer advanceHours;
|
||||
|
||||
@Schema(description = "预约日期范围 7天 10天 15天 30天", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "预约日期范围 7天 10天 15天 30天不能为空")
|
||||
private Integer reservationDateRange;
|
||||
|
||||
@Schema(description = "是否允许更改预约时间 1可以 0不可以", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "是否允许更改预约时间 1可以 0不可以不能为空")
|
||||
private Boolean allowChange;
|
||||
|
||||
@Schema(description = "更改预约时间的时间规则(如服务开始前1小时可更改)")
|
||||
private Integer changeTimeRule;
|
||||
|
||||
@Schema(description = "允许更改预约时间的最大次数")
|
||||
private Integer maxChangeTimes;
|
||||
|
||||
@Schema(description = "黑名自定义日期")
|
||||
private List<String> blacklistedDates;
|
||||
|
||||
/**
|
||||
* '是否开启黑名单自定义0关1开'
|
||||
*/
|
||||
private Integer isBlacklisted;
|
||||
|
||||
/**
|
||||
* '是否开启黑名单指定日期0关1开'
|
||||
*/
|
||||
private Integer isBlackAppoint;
|
||||
|
||||
@Schema(description = "黑名单指定日期")
|
||||
private List<String> blackAppointDates;
|
||||
|
||||
@Schema(description = "法定节假日是否开启0:关闭1开启")
|
||||
private Boolean blackHappy;
|
||||
|
||||
@Schema(description = "固定休息日周末是否开启0关闭1开启")
|
||||
private Boolean blackWeekend;
|
||||
|
||||
@Schema(description = "配置创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "配置最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodreservationconfig;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdReservationInfoReqVO {
|
||||
|
||||
/**
|
||||
* 预约配置的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 预约时段设置
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> reservationTimeSlots;
|
||||
/**
|
||||
* 需提前多少小时预约
|
||||
*/
|
||||
private Integer advanceHours;
|
||||
/**
|
||||
* 预约日期范围 7天 10天 15天 30天
|
||||
*/
|
||||
private Integer reservationDateRange;
|
||||
/**
|
||||
* 是否允许更改预约时间 1可以 0不可以
|
||||
*/
|
||||
private Integer allowChange;
|
||||
|
||||
/**
|
||||
* 时间段
|
||||
*/
|
||||
private Integer timeSlot;
|
||||
|
||||
/**
|
||||
* 更改预约时间的时间规则(如服务开始前1小时可更改)
|
||||
*/
|
||||
private Integer changeTimeRule;
|
||||
/**
|
||||
* 允许更改预约时间的最大次数
|
||||
*/
|
||||
private Integer maxChangeTimes;
|
||||
|
||||
/**
|
||||
* 预约时间区间设置
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private TimeBookVO timeBook;
|
||||
|
||||
public TimeBookVO getTimeBook() {
|
||||
if (this.timeBook == null) {
|
||||
this.timeBook = new TimeBookVO();
|
||||
this.timeBook.setTimeSlot(this.timeSlot);
|
||||
this.timeBook.setReservationTimeSlots(this.reservationTimeSlots);
|
||||
}
|
||||
return this.timeBook;
|
||||
}
|
||||
|
||||
public void setTimeBook(TimeBookVO timeBook) {
|
||||
this.timeBook = timeBook;
|
||||
}
|
||||
|
||||
@Schema(description = "预约黑名单日期设置")
|
||||
public List<ProdAdditionalFeeBlackVO> prodReservationBlackList = new ArrayList<>();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodreservationconfig;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdEmergencyResponseIntervalsDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO;
|
||||
import com.tashow.cloud.productapi.general.StringListTypeHandler;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Schema(description = "管理后台 - 商品紧急响应服务设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdReservationInfoVO {
|
||||
|
||||
/**
|
||||
* 预约配置的唯一标识符
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 预约时段设置
|
||||
*/
|
||||
@TableField(typeHandler = StringListTypeHandler.class)
|
||||
private List<String> reservationTimeSlots;
|
||||
/**
|
||||
* 需提前多少小时预约
|
||||
*/
|
||||
private Integer advanceHours;
|
||||
/**
|
||||
* 预约日期范围 7天 10天 15天 30天
|
||||
*/
|
||||
private Integer reservationDateRange;
|
||||
/**
|
||||
* 是否允许更改预约时间 1可以 0不可以
|
||||
*/
|
||||
private Integer allowChange;
|
||||
|
||||
/**
|
||||
* 时间段
|
||||
*/
|
||||
private Integer timeSlot;
|
||||
|
||||
/**
|
||||
* 更改预约时间的时间规则(如服务开始前1小时可更改)
|
||||
*/
|
||||
private Integer changeTimeRule;
|
||||
/**
|
||||
* 允许更改预约时间的最大次数
|
||||
*/
|
||||
private Integer maxChangeTimes;
|
||||
|
||||
/**
|
||||
* 预约时间区间设置
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
private TimeBookVO timeBook;
|
||||
|
||||
public TimeBookVO getTimeBook() {
|
||||
if (this.timeBook == null) {
|
||||
this.timeBook = new TimeBookVO();
|
||||
this.timeBook.setTimeSlot(this.timeSlot);
|
||||
this.timeBook.setReservationTimeSlots(this.reservationTimeSlots);
|
||||
}
|
||||
return this.timeBook;
|
||||
}
|
||||
|
||||
public void setTimeBook(TimeBookVO timeBook) {
|
||||
this.timeBook = timeBook;
|
||||
}
|
||||
|
||||
@Schema(description = "预约黑名单日期设置")
|
||||
public List<ProdAdditionalFeeBlackVO> prodReservationBlackList;
|
||||
|
||||
|
||||
/* public List<ProdAdditionalFeeBlackVO> getProdReservationBlackList() {
|
||||
if (prodReservationBlackList == null || prodReservationBlackList.isEmpty()) {
|
||||
return prodReservationBlackList;
|
||||
}
|
||||
return prodReservationBlackList.stream()
|
||||
.filter(black -> black != null && !black.isEmpty())
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public void setProdReservationBlackList(List<ProdAdditionalFeeBlackVO> prodReservationBlackList) {
|
||||
this.prodReservationBlackList = prodReservationBlackList;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodreservationconfig;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 商品预约配置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class TimeBookVO {
|
||||
|
||||
/**
|
||||
* 预约时段设置
|
||||
*/
|
||||
private List<String> reservationTimeSlots;
|
||||
/**
|
||||
* 时间段
|
||||
*/
|
||||
private Integer timeSlot;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodservicearearelevance;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
@Schema(description = "管理后台 - 商品与服务区域关联分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdServiceAreaRelevancePageReqVO extends PageParam {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodservicearearelevance;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 商品与服务区域关联 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdServiceAreaRelevanceRespVO {
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23588")
|
||||
@ExcelProperty("关联的商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "关联的服务区域ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28293")
|
||||
@ExcelProperty("关联的服务区域ID")
|
||||
private Long areaId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodservicearearelevance;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 商品与服务区域关联新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdServiceAreaRelevanceSaveReqVO {
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23588")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "关联的服务区域ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28293")
|
||||
private Long areaId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceareas;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 服务区域 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdServiceAreasInfoVO {
|
||||
|
||||
/**
|
||||
* 超区规则的唯一标识符
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 关联的商品ID
|
||||
*/
|
||||
private Long prodId;
|
||||
/**
|
||||
* 超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)
|
||||
*/
|
||||
private Integer ruleType;
|
||||
/**
|
||||
* 超区费用(仅在rule_type为accept_with_fee时有效)
|
||||
*/
|
||||
private BigDecimal fee;
|
||||
|
||||
|
||||
@Schema(description = "服务区域地址名称")
|
||||
private List<String> areaNameList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceareas;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.tashow.cloud.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 服务区域分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdServiceAreasPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "服务区域名称(如台江区、鼓楼区)", example = "芋艿")
|
||||
private String areaName;
|
||||
|
||||
@Schema(description = "区域创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceareas;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 服务区域 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdServiceAreasRespVO {
|
||||
|
||||
@Schema(description = "服务区域的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "26474")
|
||||
@ExcelProperty("服务区域的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "服务区域名称(如台江区、鼓楼区)", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||
@ExcelProperty("服务区域名称(如台江区、鼓楼区)")
|
||||
private String areaName;
|
||||
|
||||
@Schema(description = "区域创建时间")
|
||||
@ExcelProperty("区域创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceareas;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 服务区域新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdServiceAreasSaveReqVO {
|
||||
|
||||
@Schema(description = "服务区域的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "26474")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "服务区域名称(如台江区、鼓楼区)", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||
@NotEmpty(message = "服务区域名称(如台江区、鼓楼区)不能为空")
|
||||
private String areaName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceoverarearules;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 超区规则分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdServiceOverAreaRulesPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "关联的商品ID", example = "20133")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)", example = "1")
|
||||
private Boolean ruleType;
|
||||
|
||||
@Schema(description = "超区费用(仅在rule_type为accept_with_fee时有效)")
|
||||
private BigDecimal fee;
|
||||
|
||||
@Schema(description = "规则创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "规则最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceoverarearules;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 超区规则 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdServiceOverAreaRulesRespVO {
|
||||
|
||||
@Schema(description = "超区规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "32421")
|
||||
@ExcelProperty("超区规则的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20133")
|
||||
@ExcelProperty("关联的商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)")
|
||||
private Boolean ruleType;
|
||||
|
||||
@Schema(description = "超区费用(仅在rule_type为accept_with_fee时有效)")
|
||||
@ExcelProperty("超区费用(仅在rule_type为accept_with_fee时有效)")
|
||||
private BigDecimal fee;
|
||||
|
||||
@Schema(description = "规则创建时间")
|
||||
@ExcelProperty("规则创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "规则最后更新时间")
|
||||
@ExcelProperty("规则最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodserviceoverarearules;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 超区规则新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdServiceOverAreaRulesSaveReqVO {
|
||||
|
||||
@Schema(description = "超区规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "32421")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20133")
|
||||
@NotNull(message = "关联的商品ID不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)不能为空")
|
||||
private Boolean ruleType;
|
||||
|
||||
@Schema(description = "超区费用(仅在rule_type为accept_with_fee时有效)")
|
||||
private BigDecimal fee;
|
||||
|
||||
@Schema(description = "规则创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "规则最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodtags;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.tashow.cloud.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 商品和标签管理分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdTagsPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodtags;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 商品和标签管理 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdTagsRespVO {
|
||||
|
||||
@Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8574")
|
||||
@ExcelProperty("商品id")
|
||||
private Long productId;
|
||||
|
||||
@Schema(description = "标签id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24317")
|
||||
@ExcelProperty("标签id")
|
||||
private Long tagId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodtags;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 商品和标签管理新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdTagsSaveReqVO {
|
||||
|
||||
@Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8574")
|
||||
private Long productId;
|
||||
|
||||
@Schema(description = "标签id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24317")
|
||||
private Long tagId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.productorderlimit;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 商品接单上限设置分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProductOrderLimitPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "关联的商品ID", example = "10171")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "限制单位'0:按自然天',1:'按自然周',2:'按自然月'")
|
||||
private Boolean limitUnit;
|
||||
|
||||
@Schema(description = "上限阈值")
|
||||
private Integer maxOrders;
|
||||
|
||||
@Schema(description = "配置创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "配置最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.productorderlimit;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 商品接单上限设置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProductOrderLimitRespVO {
|
||||
|
||||
@Schema(description = "接单上限配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "10334")
|
||||
@ExcelProperty("接单上限配置的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10171")
|
||||
@ExcelProperty("关联的商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "限制单位'0:按自然天',1:'按自然周',2:'按自然月'", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("限制单位'0:按自然天',1:'按自然周',2:'按自然月'")
|
||||
private Boolean limitUnit;
|
||||
|
||||
@Schema(description = "上限阈值", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("上限阈值")
|
||||
private Integer maxOrders;
|
||||
|
||||
@Schema(description = "配置创建时间")
|
||||
@ExcelProperty("配置创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "配置最后更新时间")
|
||||
@ExcelProperty("配置最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.productorderlimit;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 商品接单上限设置新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProductOrderLimitSaveReqVO {
|
||||
|
||||
@Schema(description = "接单上限配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "10334")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10171")
|
||||
@NotNull(message = "关联的商品ID不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "限制单位'0:按自然天',1:'按自然周',2:'按自然月'", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "限制单位'0:按自然天',1:'按自然周',2:'按自然月'不能为空")
|
||||
private Boolean limitUnit;
|
||||
|
||||
@Schema(description = "上限阈值", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "上限阈值不能为空")
|
||||
private Integer maxOrders;
|
||||
|
||||
@Schema(description = "配置创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "配置最后更新时间")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 体重区间价格分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ProdWeightRangePricesPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "关联的体重配置ID", example = "6754")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "体重区间")
|
||||
private String weightRange;
|
||||
|
||||
@Schema(description = "价格", example = "11575")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "是否启用该规则0否1是")
|
||||
private Integer isEnabled;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 体重区间价格 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProdWeightRangePricesRespVO {
|
||||
|
||||
@Schema(description = "体重区间价格的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "26157")
|
||||
@ExcelProperty("体重区间价格的唯一标识符")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的体重配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6754")
|
||||
@ExcelProperty("关联的体重配置ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "体重区间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("体重区间")
|
||||
private String weightRange;
|
||||
|
||||
@Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "11575")
|
||||
@ExcelProperty("价格")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "是否启用该规则0否1是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否启用该规则0否1是")
|
||||
private Integer isEnabled;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdWeightRangePricesDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 体重区间价格新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdWeightRangePricesSaveInfoVO {
|
||||
|
||||
@Schema(description = "体重是否收费0否1是")
|
||||
private Integer isWeightCharge;
|
||||
|
||||
@Schema(description = "体重配置")
|
||||
public List<ProdWeightRangePricesDO> prodWeightConfigList;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.prodweightrangeprices;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 体重区间价格新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProdWeightRangePricesSaveReqVO {
|
||||
|
||||
@Schema(description = "体重区间价格的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "26157")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "关联的体重配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6754")
|
||||
@NotNull(message = "关联的体重配置ID不能为空")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "体重区间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "体重区间不能为空")
|
||||
private String weightRange;
|
||||
|
||||
@Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "11575")
|
||||
@NotNull(message = "价格不能为空")
|
||||
private BigDecimal price;
|
||||
|
||||
@Schema(description = "是否启用该规则0否1是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "是否启用该规则0否1是不能为空")
|
||||
private Integer isEnabled;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.shopdetail;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.tashow.cloud.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 店铺信息分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class ShopDetailPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "店铺名称(数字、中文,英文(可混合,不可有特殊字符),可修改)、不唯一", example = "芋艿")
|
||||
private String shopName;
|
||||
|
||||
@Schema(description = "店长用户id", example = "15607")
|
||||
private String userId;
|
||||
|
||||
@Schema(description = "店铺类型", example = "2")
|
||||
private Integer shopType;
|
||||
|
||||
@Schema(description = "店铺简介(可修改)")
|
||||
private String intro;
|
||||
|
||||
@Schema(description = "店铺公告(可修改)")
|
||||
private String shopNotice;
|
||||
|
||||
@Schema(description = "店铺行业(餐饮、生鲜果蔬、鲜花等)")
|
||||
private Integer shopIndustry;
|
||||
|
||||
@Schema(description = "店长")
|
||||
private String shopOwner;
|
||||
|
||||
@Schema(description = "店铺绑定的手机(登录账号:唯一)")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "店铺联系电话")
|
||||
private String tel;
|
||||
|
||||
@Schema(description = "店铺所在纬度(可修改)")
|
||||
private String shopLat;
|
||||
|
||||
@Schema(description = "店铺所在经度(可修改)")
|
||||
private String shopLng;
|
||||
|
||||
@Schema(description = "店铺详细地址")
|
||||
private String shopAddress;
|
||||
|
||||
@Schema(description = "店铺所在省份(描述)")
|
||||
private String province;
|
||||
|
||||
@Schema(description = "店铺所在城市(描述)")
|
||||
private String city;
|
||||
|
||||
@Schema(description = "店铺所在区域(描述)")
|
||||
private String area;
|
||||
|
||||
@Schema(description = "店铺省市区代码,用于回显")
|
||||
private String pcaCode;
|
||||
|
||||
@Schema(description = "店铺logo(可修改)")
|
||||
private String shopLogo;
|
||||
|
||||
@Schema(description = "店铺相册")
|
||||
private String shopPhotos;
|
||||
|
||||
@Schema(description = "每天营业时间段(可修改)")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private String[] openTime;
|
||||
|
||||
@Schema(description = "店铺状态(-1:未开通 0: 停业中 1:营业中),可修改", example = "2")
|
||||
private Integer shopStatus;
|
||||
|
||||
@Schema(description = "0:商家承担运费; 1:买家承担运费", example = "2")
|
||||
private Integer transportType;
|
||||
|
||||
@Schema(description = "固定运费")
|
||||
private BigDecimal fixedFreight;
|
||||
|
||||
@Schema(description = "满X包邮")
|
||||
private BigDecimal fullFreeShipping;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "分销开关(0:开启 1:关闭)")
|
||||
private Integer isDistribution;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.shopdetail;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 店铺信息 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ShopDetailRespVO {
|
||||
|
||||
@Schema(description = "店铺id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5101")
|
||||
@ExcelProperty("店铺id")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "店铺名称(数字、中文,英文(可混合,不可有特殊字符),可修改)、不唯一", example = "芋艿")
|
||||
@ExcelProperty("店铺名称(数字、中文,英文(可混合,不可有特殊字符),可修改)、不唯一")
|
||||
private String shopName;
|
||||
|
||||
@Schema(description = "店长用户id", example = "15607")
|
||||
@ExcelProperty("店长用户id")
|
||||
private String userId;
|
||||
|
||||
@Schema(description = "店铺类型", example = "2")
|
||||
@ExcelProperty("店铺类型")
|
||||
private Integer shopType;
|
||||
|
||||
@Schema(description = "店铺简介(可修改)")
|
||||
@ExcelProperty("店铺简介(可修改)")
|
||||
private String intro;
|
||||
|
||||
@Schema(description = "店铺公告(可修改)")
|
||||
@ExcelProperty("店铺公告(可修改)")
|
||||
private String shopNotice;
|
||||
|
||||
@Schema(description = "店铺行业(餐饮、生鲜果蔬、鲜花等)")
|
||||
@ExcelProperty("店铺行业(餐饮、生鲜果蔬、鲜花等)")
|
||||
private Integer shopIndustry;
|
||||
|
||||
@Schema(description = "店长")
|
||||
@ExcelProperty("店长")
|
||||
private String shopOwner;
|
||||
|
||||
@Schema(description = "店铺绑定的手机(登录账号:唯一)")
|
||||
@ExcelProperty("店铺绑定的手机(登录账号:唯一)")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "店铺联系电话")
|
||||
@ExcelProperty("店铺联系电话")
|
||||
private String tel;
|
||||
|
||||
@Schema(description = "店铺所在纬度(可修改)")
|
||||
@ExcelProperty("店铺所在纬度(可修改)")
|
||||
private String shopLat;
|
||||
|
||||
@Schema(description = "店铺所在经度(可修改)")
|
||||
@ExcelProperty("店铺所在经度(可修改)")
|
||||
private String shopLng;
|
||||
|
||||
@Schema(description = "店铺详细地址")
|
||||
@ExcelProperty("店铺详细地址")
|
||||
private String shopAddress;
|
||||
|
||||
@Schema(description = "店铺所在省份(描述)")
|
||||
@ExcelProperty("店铺所在省份(描述)")
|
||||
private String province;
|
||||
|
||||
@Schema(description = "店铺所在城市(描述)")
|
||||
@ExcelProperty("店铺所在城市(描述)")
|
||||
private String city;
|
||||
|
||||
@Schema(description = "店铺所在区域(描述)")
|
||||
@ExcelProperty("店铺所在区域(描述)")
|
||||
private String area;
|
||||
|
||||
@Schema(description = "店铺省市区代码,用于回显")
|
||||
@ExcelProperty("店铺省市区代码,用于回显")
|
||||
private String pcaCode;
|
||||
|
||||
@Schema(description = "店铺logo(可修改)")
|
||||
@ExcelProperty("店铺logo(可修改)")
|
||||
private String shopLogo;
|
||||
|
||||
@Schema(description = "店铺相册")
|
||||
@ExcelProperty("店铺相册")
|
||||
private String shopPhotos;
|
||||
|
||||
@Schema(description = "每天营业时间段(可修改)")
|
||||
@ExcelProperty("每天营业时间段(可修改)")
|
||||
private String openTime;
|
||||
|
||||
@Schema(description = "店铺状态(-1:未开通 0: 停业中 1:营业中),可修改", example = "2")
|
||||
@ExcelProperty("店铺状态(-1:未开通 0: 停业中 1:营业中),可修改")
|
||||
private Integer shopStatus;
|
||||
|
||||
@Schema(description = "0:商家承担运费; 1:买家承担运费", example = "2")
|
||||
@ExcelProperty("0:商家承担运费; 1:买家承担运费")
|
||||
private Integer transportType;
|
||||
|
||||
@Schema(description = "固定运费")
|
||||
@ExcelProperty("固定运费")
|
||||
private BigDecimal fixedFreight;
|
||||
|
||||
@Schema(description = "满X包邮")
|
||||
@ExcelProperty("满X包邮")
|
||||
private BigDecimal fullFreeShipping;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "分销开关(0:开启 1:关闭)")
|
||||
@ExcelProperty("分销开关(0:开启 1:关闭)")
|
||||
private Integer isDistribution;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.shopdetail;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 店铺信息新增/修改 Request VO")
|
||||
@Data
|
||||
public class ShopDetailSaveReqVO {
|
||||
|
||||
@Schema(description = "店铺id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5101")
|
||||
private Long shopId;
|
||||
|
||||
@Schema(description = "店铺名称(数字、中文,英文(可混合,不可有特殊字符),可修改)、不唯一", example = "芋艿")
|
||||
private String shopName;
|
||||
|
||||
@Schema(description = "店长用户id", example = "15607")
|
||||
private String userId;
|
||||
|
||||
@Schema(description = "店铺类型", example = "2")
|
||||
private Integer shopType;
|
||||
|
||||
@Schema(description = "店铺简介(可修改)")
|
||||
private String intro;
|
||||
|
||||
@Schema(description = "店铺公告(可修改)")
|
||||
private String shopNotice;
|
||||
|
||||
@Schema(description = "店铺行业(餐饮、生鲜果蔬、鲜花等)")
|
||||
private Integer shopIndustry;
|
||||
|
||||
@Schema(description = "店长")
|
||||
private String shopOwner;
|
||||
|
||||
@Schema(description = "店铺绑定的手机(登录账号:唯一)")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "店铺联系电话")
|
||||
private String tel;
|
||||
|
||||
@Schema(description = "店铺所在纬度(可修改)")
|
||||
private String shopLat;
|
||||
|
||||
@Schema(description = "店铺所在经度(可修改)")
|
||||
private String shopLng;
|
||||
|
||||
@Schema(description = "店铺详细地址")
|
||||
private String shopAddress;
|
||||
|
||||
@Schema(description = "店铺所在省份(描述)")
|
||||
private String province;
|
||||
|
||||
@Schema(description = "店铺所在城市(描述)")
|
||||
private String city;
|
||||
|
||||
@Schema(description = "店铺所在区域(描述)")
|
||||
private String area;
|
||||
|
||||
@Schema(description = "店铺省市区代码,用于回显")
|
||||
private String pcaCode;
|
||||
|
||||
@Schema(description = "店铺logo(可修改)")
|
||||
private String shopLogo;
|
||||
|
||||
@Schema(description = "店铺相册")
|
||||
private String shopPhotos;
|
||||
|
||||
@Schema(description = "每天营业时间段(可修改)")
|
||||
private String openTime;
|
||||
|
||||
@Schema(description = "店铺状态(-1:未开通 0: 停业中 1:营业中),可修改", example = "2")
|
||||
private Integer shopStatus;
|
||||
|
||||
@Schema(description = "0:商家承担运费; 1:买家承担运费", example = "2")
|
||||
private Integer transportType;
|
||||
|
||||
@Schema(description = "固定运费")
|
||||
private BigDecimal fixedFreight;
|
||||
|
||||
@Schema(description = "满X包邮")
|
||||
private BigDecimal fullFreeShipping;
|
||||
|
||||
@Schema(description = "分销开关(0:开启 1:关闭)")
|
||||
private Integer isDistribution;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.sku;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.dto.SkuServiceDeliverDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.SkuServiceDetailsDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.SkuServiceMaterialDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.SkuServiceTransportDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "sku扩展服务配置 VO")
|
||||
@Data
|
||||
public class SkuExtendVO {
|
||||
|
||||
@Schema(description = "表单名称")
|
||||
private String skuFormName;
|
||||
|
||||
@Schema(description = "遗体接运车辆配置0关1开")
|
||||
private Integer transportCarSwitch;
|
||||
@Schema(description = "遗体接运扩展服务配置")
|
||||
public List<SkuServiceDetailsDO> transportCarList;
|
||||
@Schema(description = "遗体接运服务物料")
|
||||
public List<SkuServiceMaterialDO> transportCarMaterialList;
|
||||
|
||||
@Schema(description = "遗体运输目的地配置0关1开")
|
||||
private Integer trafficSwitch;
|
||||
@Schema(description = "遗体运输目的地配置")
|
||||
public List<SkuServiceTransportDO> trafficList;
|
||||
@Schema(description = "遗体运输目的地物料")
|
||||
public List<SkuServiceMaterialDO> trafficMaterialList;
|
||||
|
||||
@Schema(description = "遗体清洁配置0关1开")
|
||||
private Integer cleanSwitch;
|
||||
@Schema(description = "遗体清洁配置")
|
||||
public List<SkuServiceDetailsDO> cleanList;
|
||||
@Schema(description = "遗体清洁物料")
|
||||
public List<SkuServiceMaterialDO> cleanMaterialList;
|
||||
|
||||
@Schema(description = "追思告别配置0关1开")
|
||||
private Integer reflectionSwitch;
|
||||
@Schema(description = "追思告别配置")
|
||||
public List<SkuServiceDetailsDO> reflectionList;
|
||||
@Schema(description = "追思告别物料")
|
||||
public List<SkuServiceMaterialDO> reflectionMaterialList;
|
||||
|
||||
@Schema(description = "遗体火化配置0关1开")
|
||||
private Integer cremationSwitch;
|
||||
@Schema(description = "遗体火化配置")
|
||||
public List<SkuServiceDetailsDO> cremationList;
|
||||
@Schema(description = "遗体火化物料")
|
||||
public List<SkuServiceMaterialDO> cremationMaterialList;
|
||||
|
||||
@Schema(description = "骨灰处理配置0关1开")
|
||||
private Integer ashProcessingSwitch;
|
||||
@Schema(description = "骨灰处理配置")
|
||||
public List<SkuServiceDetailsDO> ashProcessingList;
|
||||
@Schema(description = "骨灰处理配送方式配置")
|
||||
public List<SkuServiceDeliverDO> ashProcessingDeliverList;
|
||||
@Schema(description = "骨灰处理物料")
|
||||
public List<SkuServiceMaterialDO> ashProcessingMaterialList;
|
||||
|
||||
@Schema(description = "骨灰装殓配置0关1开")
|
||||
private Integer boneashSwitch;
|
||||
@Schema(description = "骨灰装殓配置")
|
||||
public List<SkuServiceDetailsDO> boneashList;
|
||||
|
||||
@Schema(description = "纪念品配置0关1开")
|
||||
private Integer souvenirSwitch;
|
||||
@Schema(description = "纪念品配置")
|
||||
public List<SkuServiceDetailsDO> souvenirList;
|
||||
@Schema(description = "纪念品配送方式配置")
|
||||
public List<SkuServiceDeliverDO> souvenirDeliverList;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.sku;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
@Schema(description = "管理后台 - 单品SKU分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class SkuPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "商品ID", example = "18784")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "销售属性组合字符串")
|
||||
private String properties;
|
||||
|
||||
@Schema(description = "skuID", example = "18784")
|
||||
private Long skuId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.sku;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdPropDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SkuPropInfoVO {
|
||||
@Schema(description = "产品id")
|
||||
private Long prodId;
|
||||
|
||||
/**
|
||||
* 是否显示失效规格值 0否1是
|
||||
*/
|
||||
private Integer isExpire;
|
||||
|
||||
/**
|
||||
* 是否显示禁用规格值 0否1是
|
||||
*/
|
||||
private Integer isDisable;
|
||||
|
||||
@Schema(description = "规格")
|
||||
public List<ProdPropDO> prodPropSaveReqVO;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.sku;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.dto.SkuDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prodprop.ProdPropSaveReqVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SkuPropVO {
|
||||
@Schema(description = "产品id")
|
||||
private Long prodId;
|
||||
|
||||
/**
|
||||
* 是否显示失效规格值 0否1是
|
||||
*/
|
||||
private Integer isExpire = 1;
|
||||
|
||||
/**
|
||||
* 是否显示禁用规格值 0否1是
|
||||
*/
|
||||
private Integer isDisable =1;
|
||||
|
||||
|
||||
@Schema(description = "sku列表")
|
||||
public List<SkuDO> skuList;
|
||||
|
||||
@Schema(description = "规格")
|
||||
public List<ProdPropSaveReqVO> prodPropSaveReqVO;
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.sku;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class SkuRecycleBinVO {
|
||||
@Schema(description = "单品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32230")
|
||||
private Long skuId;
|
||||
|
||||
/**
|
||||
* 属性规格名称
|
||||
*/
|
||||
private String properties;
|
||||
/**
|
||||
* 是否显示失效规格值 0否1是
|
||||
*/
|
||||
private String skuName;
|
||||
|
||||
/**
|
||||
* 还剩多少天
|
||||
*/
|
||||
private Long remainingDays;
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date deleteTime;
|
||||
|
||||
|
||||
|
||||
|
||||
@Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18784")
|
||||
@ExcelProperty("商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "别名")
|
||||
@ExcelProperty("别名")
|
||||
private String alias;
|
||||
|
||||
@Schema(description = "当前价格", example = "32405")
|
||||
@ExcelProperty("价格")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 基准价
|
||||
*/
|
||||
private BigDecimal basePrice;
|
||||
|
||||
@Schema(description = "最低价格", example = "5040")
|
||||
@ExcelProperty("最低价格")
|
||||
private BigDecimal minPrice;
|
||||
|
||||
@Schema(description = "最高价格", example = "11547")
|
||||
@ExcelProperty("最高价格")
|
||||
private BigDecimal maxPrice;
|
||||
|
||||
@Schema(description = "成本价", example = "28062")
|
||||
@ExcelProperty("成本价")
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
@Schema(description = "市场价", example = "11547")
|
||||
@ExcelProperty("市场价")
|
||||
private BigDecimal marketPrice;
|
||||
|
||||
@Schema(description = "单位")
|
||||
@ExcelProperty("单位")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "0:主服务1:待定", example = "1")
|
||||
@ExcelProperty("0:主服务1:待定")
|
||||
private Integer type;
|
||||
|
||||
@Schema(description = "概述")
|
||||
@ExcelProperty("概述")
|
||||
private String overview;
|
||||
|
||||
@Schema(description = "库存")
|
||||
@ExcelProperty("库存")
|
||||
private Integer stocks;
|
||||
|
||||
|
||||
@Schema(description = "总库存是0 无线库存是1")
|
||||
@ExcelProperty("总库存是0 无线库存是1")
|
||||
private Integer stocksFlg;
|
||||
|
||||
/**
|
||||
* 锁定库存数
|
||||
*/
|
||||
@Schema(description = "锁定库存数")
|
||||
@ExcelProperty("锁定库存数")
|
||||
private Integer stocksLockNum;
|
||||
|
||||
@Schema(description = "预警库存")
|
||||
@ExcelProperty("预警库存")
|
||||
private Integer warnStocks;
|
||||
|
||||
@Schema(description = "库存扣款时机0:付款扣1:下单扣", example = "1")
|
||||
@ExcelProperty("库存扣款时机0:付款扣1:下单扣")
|
||||
private Boolean stocksType;
|
||||
|
||||
@Schema(description = "sku编码")
|
||||
@ExcelProperty("sku编码")
|
||||
private String skuCode;
|
||||
|
||||
@Schema(description = "商品条形码", example = "14390")
|
||||
@ExcelProperty("商品条形码")
|
||||
private String modelId;
|
||||
|
||||
@Schema(description = "sku图片")
|
||||
@ExcelProperty("sku图片")
|
||||
private String pic;
|
||||
|
||||
|
||||
@Schema(description = "商品名称", example = "芋艿")
|
||||
@ExcelProperty("商品名称")
|
||||
private String prodName;
|
||||
|
||||
@Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("版本号")
|
||||
private Integer version;
|
||||
|
||||
@Schema(description = "商品重量")
|
||||
@ExcelProperty("商品重量")
|
||||
private Double weight;
|
||||
|
||||
@Schema(description = "商品体积")
|
||||
@ExcelProperty("商品体积")
|
||||
private Double volume;
|
||||
|
||||
@Schema(description = "0 禁用 1 启用", example = "1")
|
||||
@ExcelProperty("0 禁用 1 启用")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "0 正常 1 已被删除")
|
||||
@ExcelProperty("0 正常 1 已被删除")
|
||||
private Integer isDelete;
|
||||
|
||||
@Schema(description = "最小购买数量")
|
||||
@ExcelProperty("最小购买数量")
|
||||
private Integer moq;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
/**
|
||||
* 是否上下架0下架1上架
|
||||
*/
|
||||
private Integer isShelf;
|
||||
|
||||
/**
|
||||
* 是否默认规则0否1是
|
||||
*/
|
||||
private Integer isSpecs;
|
||||
|
||||
/**
|
||||
* 服务内容
|
||||
*/
|
||||
private String serviceContent;
|
||||
/**
|
||||
* 规格id 多个用逗号分隔(1,2,3)
|
||||
*/
|
||||
private String propIds;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.tashow.cloud.productapi.api.product.vo.sku;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 单品SKU Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class SkuRespVO {
|
||||
|
||||
@Schema(description = "单品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32230")
|
||||
@ExcelProperty("单品ID")
|
||||
private Long skuId;
|
||||
|
||||
@Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18784")
|
||||
@ExcelProperty("商品ID")
|
||||
private Long prodId;
|
||||
|
||||
@Schema(description = "销售属性组合字符串 格式是p1:v1;p2:v2")
|
||||
@ExcelProperty("销售属性组合字符串 格式是p1:v1;p2:v2")
|
||||
private String properties;
|
||||
|
||||
@Schema(description = "别名")
|
||||
@ExcelProperty("别名")
|
||||
private String alias;
|
||||
|
||||
@Schema(description = "当前价格", example = "32405")
|
||||
@ExcelProperty("价格")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 基准价
|
||||
*/
|
||||
private BigDecimal basePrice;
|
||||
|
||||
@Schema(description = "最低价格", example = "5040")
|
||||
@ExcelProperty("最低价格")
|
||||
private BigDecimal minPrice;
|
||||
|
||||
@Schema(description = "最高价格", example = "11547")
|
||||
@ExcelProperty("最高价格")
|
||||
private BigDecimal maxPrice;
|
||||
|
||||
@Schema(description = "成本价", example = "28062")
|
||||
@ExcelProperty("成本价")
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
@Schema(description = "市场价", example = "11547")
|
||||
@ExcelProperty("市场价")
|
||||
private BigDecimal marketPrice;
|
||||
|
||||
@Schema(description = "单位")
|
||||
@ExcelProperty("单位")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "0:主服务1:待定", example = "1")
|
||||
@ExcelProperty("0:主服务1:待定")
|
||||
private Integer type;
|
||||
|
||||
@Schema(description = "概述")
|
||||
@ExcelProperty("概述")
|
||||
private String overview;
|
||||
|
||||
@Schema(description = "库存")
|
||||
@ExcelProperty("库存")
|
||||
private Integer stocks;
|
||||
|
||||
|
||||
@Schema(description = "总库存是0 无线库存是1")
|
||||
@ExcelProperty("总库存是0 无线库存是1")
|
||||
private Integer stocksFlg;
|
||||
|
||||
/**
|
||||
* 锁定库存数
|
||||
*/
|
||||
@Schema(description = "锁定库存数")
|
||||
@ExcelProperty("锁定库存数")
|
||||
private Integer stocksLockNum;
|
||||
|
||||
@Schema(description = "预警库存")
|
||||
@ExcelProperty("预警库存")
|
||||
private Integer warnStocks;
|
||||
|
||||
@Schema(description = "库存扣款时机0:付款扣1:下单扣", example = "1")
|
||||
@ExcelProperty("库存扣款时机0:付款扣1:下单扣")
|
||||
private Boolean stocksType;
|
||||
|
||||
@Schema(description = "sku编码")
|
||||
@ExcelProperty("sku编码")
|
||||
private String skuCode;
|
||||
|
||||
@Schema(description = "商品条形码", example = "14390")
|
||||
@ExcelProperty("商品条形码")
|
||||
private String modelId;
|
||||
|
||||
@Schema(description = "sku图片")
|
||||
@ExcelProperty("sku图片")
|
||||
private String pic;
|
||||
|
||||
@Schema(description = "sku名称", example = "张三")
|
||||
@ExcelProperty("sku名称")
|
||||
private String skuName;
|
||||
|
||||
@Schema(description = "商品名称", example = "芋艿")
|
||||
@ExcelProperty("商品名称")
|
||||
private String prodName;
|
||||
|
||||
@Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("版本号")
|
||||
private Integer version;
|
||||
|
||||
@Schema(description = "商品重量")
|
||||
@ExcelProperty("商品重量")
|
||||
private Double weight;
|
||||
|
||||
@Schema(description = "商品体积")
|
||||
@ExcelProperty("商品体积")
|
||||
private Double volume;
|
||||
|
||||
@Schema(description = "0 禁用 1 启用", example = "1")
|
||||
@ExcelProperty("0 禁用 1 启用")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "0 正常 1 已被删除")
|
||||
@ExcelProperty("0 正常 1 已被删除")
|
||||
private Integer isDelete;
|
||||
|
||||
@Schema(description = "最小购买数量")
|
||||
@ExcelProperty("最小购买数量")
|
||||
private Integer moq;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
/**
|
||||
* 是否上下架0下架1上架
|
||||
*/
|
||||
private Integer isShelf;
|
||||
|
||||
/**
|
||||
* 是否默认规则0否1是
|
||||
*/
|
||||
private Integer isSpecs;
|
||||
|
||||
/**
|
||||
* 服务内容
|
||||
*/
|
||||
private String serviceContent;
|
||||
/**
|
||||
* 规格id 多个用逗号分隔(1,2,3)
|
||||
*/
|
||||
private String propIds;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user