package com.kexue.skills.entity.dto;

import com.kexue.skills.entity.base.BaseQueryDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * (ContentPurchase)查询条件封装类
 * 内容购买记录查询条件
 *
 * @author 王志维
 * @since 2025-02-21 23:01:48
 */
@Data
public class ContentPurchaseDto extends BaseQueryDto {
    
        @Schema(description ="主键ID")
        private Long purchaseId;

        @Schema(description ="用户ID")
        private Long userId;

        @Schema(description ="用户名")
        private String userName;

        @Schema(description ="内容ID")
        private Long contentId;

        @Schema(description ="内容标题")
        private String contentTitle;

        @Schema(description ="购买方式：1.余额支付 2.积分支付")
        private Integer payType;

        @Schema(description ="支付金额")
        private BigDecimal amount;

        @Schema(description ="支付积分")
        private Integer points;

        @Schema(description ="购买状态：1.待支付 2.已支付 3.已取消")
        private Integer status;

        @Schema(description ="购买时间开始")
        private Date purchaseTimeStart;

        @Schema(description ="购买时间结束")
        private Date purchaseTimeEnd;

        @Schema(description ="创建时间开始")
        private Date createTimeStart;

        @Schema(description ="创建时间结束")
        private Date createTimeEnd;

        @Schema(description ="更新时间开始")
        private Date updateTimeStart;

        @Schema(description ="更新时间结束")
        private Date updateTimeEnd;

        @Schema(description ="是否删除 ：0 未删除，1已删除")
        private Integer deleteFlag;

}