package cn.lili.modules.lmk.domain.vo;
|
|
import cn.lili.base.AbsVo;
|
import cn.lili.modules.lmk.domain.entity.StoreCouponSingle;
|
import java.util.List;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import java.util.Date;
|
|
/**
|
* 店铺优惠卷单品展示
|
*
|
* @author peng
|
* @since 2025-09-26
|
*/
|
@Data
|
@ApiModel(value = "店铺优惠卷单品响应数据", description = "店铺优惠卷单品响应数据")
|
public class StoreCouponSingleVO extends AbsVo {
|
|
/** 店铺优惠卷关联id */
|
@ApiModelProperty("店铺优惠卷关联id")
|
private Long storeCoupRef;
|
|
/** 商家id */
|
@ApiModelProperty("商家id")
|
private Long storeId;
|
|
/** 优惠卷id */
|
@ApiModelProperty("优惠卷id")
|
private Long couponId;
|
|
/** 优惠卷名称 */
|
@ApiModelProperty("优惠卷名称")
|
private String couponName;
|
|
/** 编号 */
|
@ApiModelProperty("编号")
|
private String couponNo;
|
|
/** 是否领取 */
|
@ApiModelProperty("是否领取")
|
private String claimStatus;
|
|
public static StoreCouponSingleVO getVoByEntity(@NonNull StoreCouponSingle entity, StoreCouponSingleVO vo) {
|
if(vo == null) {
|
vo = new StoreCouponSingleVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|