Merge remote-tracking branch 'origin/master'
# Conflicts: # play-admin/src/main/java/com/starry/admin/modules/shop/controller/PlayCouponInfoController.java # play-admin/src/main/java/com/starry/admin/modules/shop/module/entity/PlayCouponInfoEntity.java # play-admin/src/main/java/com/starry/admin/modules/shop/module/vo/PlayCouponInfoReturnVo.java # play-admin/src/main/java/com/starry/admin/modules/shop/service/IPlayCouponDetailsService.java # play-admin/src/main/java/com/starry/admin/modules/weichat/controller/WxCouponController.java
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.starry.admin.modules.weichat.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
|
||||
/**
|
||||
* 顾客优惠券查询对象
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024/7/6 下午4:16
|
||||
**/
|
||||
@Data
|
||||
public class WxCouponQueryVo {
|
||||
|
||||
|
||||
private String commodityId;
|
||||
|
||||
|
||||
/**
|
||||
* 下单类型(-1:其他类型;0:指定单;1:随机单;2:打赏单)
|
||||
*/
|
||||
@NotNull(message = "下单类型不能为空")
|
||||
@Pattern(regexp = "[0|1]", message = "订单类型必须为0或者1")
|
||||
private String placeType;
|
||||
|
||||
|
||||
private int commodityQuantity;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.starry.admin.modules.weichat.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 顾客优惠券查询对象
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024/7/6 下午4:16
|
||||
**/
|
||||
@Data
|
||||
public class WxCouponReturnVo {
|
||||
|
||||
/**
|
||||
* 优惠券ID
|
||||
*/
|
||||
private String id;
|
||||
|
||||
|
||||
/**
|
||||
* 优惠券名称
|
||||
**/
|
||||
private String couponName;
|
||||
|
||||
|
||||
/**
|
||||
* 有效期类型(0:永久有效;1:固定时间内有效;2:领取后几天内有效)
|
||||
*/
|
||||
private String validityPeriodType;
|
||||
|
||||
/**
|
||||
* 生效时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime productiveTime;
|
||||
|
||||
/**
|
||||
* 到期时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime expirationTime;
|
||||
|
||||
/**
|
||||
* 生效时长,validityPeriodType=2时有效
|
||||
**/
|
||||
private Integer effectiveDay;
|
||||
|
||||
/**
|
||||
* 使用优惠券最低消费金额
|
||||
**/
|
||||
private BigDecimal useMinAmount;
|
||||
|
||||
/**
|
||||
* 优惠类型(0:满减;1:折扣)
|
||||
*/
|
||||
private String discountType;
|
||||
|
||||
/**
|
||||
* 折扣值
|
||||
*/
|
||||
private BigDecimal discountAmount;
|
||||
|
||||
/**
|
||||
* 优惠是否可使用(0:不可使用,1:可使用)
|
||||
*/
|
||||
private String available;
|
||||
|
||||
/**
|
||||
* 优惠券不可用的原因
|
||||
*/
|
||||
private String reasonForUnavailableUse;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user