package cn.lili.modules.lmk.domain.vo;
|
|
import cn.lili.base.AbsVo;
|
import cn.lili.modules.lmk.domain.entity.StoreCoupon;
|
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-25
|
*/
|
@Data
|
@ApiModel(value = "店铺优惠卷对应关系响应数据", description = "店铺优惠卷对应关系响应数据")
|
public class StoreCouponVO extends AbsVo {
|
|
/** 店铺id */
|
@ApiModelProperty("店铺id")
|
private Long storeId;
|
|
/** 店铺名称 */
|
@ApiModelProperty("店铺名称")
|
private Long storeName;
|
|
/** 优惠卷id */
|
@ApiModelProperty("优惠卷id")
|
private Long couponId;
|
|
/** 优惠卷名称 */
|
@ApiModelProperty("优惠卷名称")
|
private String couponName;
|
|
public static StoreCouponVO getVoByEntity(@NonNull StoreCoupon entity, StoreCouponVO vo) {
|
if(vo == null) {
|
vo = new StoreCouponVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|