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.util.Date;

/**
 * (PointsTransaction)查询条件封装类
 * 积分交易记录查询条件
 *
 * @author 王志维
 * @since 2025-02-21 23:01:48
 */
@Data
public class PointsTransactionDto extends BaseQueryDto {
    
        @Schema(description ="主键ID")
        private Long transactionId;

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

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

        @Schema(description ="交易类型：1.获得积分 2.使用积分")
        private Integer transactionType;

        @Schema(description ="积分数量")
        private Integer points;

        @Schema(description ="交易前积分")
        private Integer beforePoints;

        @Schema(description ="交易后积分")
        private Integer afterPoints;

        @Schema(description ="状态：1.成功 2.失败")
        private Integer status;

        @Schema(description ="交易单号")
        private String transactionNo;

        @Schema(description ="支付方式：1.微信 2.支付宝 3.余额支付")
        private Integer payType;

        @Schema(description ="业务ID")
        private Long businessId;

        @Schema(description ="业务类型")
        private String businessType;

        @Schema(description ="备注")
        private String remark;

        @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;

}