peng
2 天以前 5e77d6fbb049b2407a15387d73e2755d901a235e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
    }
 
}