package com.cool.store.dto.point;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Auther zx_szh
 * @Date 2026/1/8 15:00
 * @Version 1.0
 */
@Data
public class PointStatisticsDTO {

    @ApiModelProperty("已签约数量")
    private Integer contractedCount;

    @ApiModelProperty("已审核数量")
    private Integer approvedCount;

    @ApiModelProperty("已失效数量")
    private Integer invalidCount;

    private Integer totalCount;


    public PointStatisticsDTO() {
        this.contractedCount = 0;
        this.approvedCount = 0;
        this.invalidCount = 0;
        this.totalCount = 0;
    }

    public Integer getTotalCount() {
        return totalCount = contractedCount + approvedCount + invalidCount;
    }
}
