分享奖励接口修改

This commit is contained in:
张松
2025-03-11 09:53:19 +08:00
parent 8cc60c43b3
commit fcb458fa73
4 changed files with 37 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
package com.czg.account.dto;
import jakarta.validation.constraints.Min;
import lombok.Data;
/**
* @author Administrator
*/
@Data
public class ShopShareCouponDTO {
/**
* 券id
*/
private Long id;
/**
* 名称
*/
private String name;
/**
* 数量
*/
@Min(1)
private Integer num;
}

View File

@@ -67,7 +67,7 @@ public class ShopShareDTO implements Serializable {
/**
* 新用户获得券
*/
private List<Long> newCouponList;
private List<ShopShareCouponDTO> newCouponList;
/**
* 邀请人数
@@ -77,7 +77,7 @@ public class ShopShareDTO implements Serializable {
/**
* 奖励券
*/
private List<Long> rewardCouponList;
private List<ShopShareCouponDTO> rewardCouponList;
/**
* 获取方法 get-新用户领取获得 use-新用户使用获得

View File

@@ -1,6 +1,6 @@
package com.czg.account.vo;
import com.czg.account.entity.ShopCoupon;
import com.czg.account.dto.ShopShareCouponDTO;
import com.czg.account.entity.ShopShare;
import lombok.Data;
import lombok.EqualsAndHashCode;
@@ -17,9 +17,9 @@ public class ShopShareVO extends ShopShare {
/**
* 新人奖励优惠券信息
*/
private List<ShopCoupon> newCouponList = new ArrayList<>();
private List<ShopShareCouponDTO> newCouponList = new ArrayList<>();
/**
* 邀请人奖励优惠券信息
*/
private List<ShopCoupon> rewardCouponList = new ArrayList<>();
private List<ShopShareCouponDTO> rewardCouponList = new ArrayList<>();
}