package com.jeesharp.business.modules.member.vo;

import com.jeesharp.framework.pojo.vo.BaseInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 会员积分流水详情 VO。
 *
 * @author jeesharp
 * @since 2026-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "会员积分流水详情VO")
public class MemberPointsLogInfoVO extends BaseInfoVO implements MemberOrderDisplay {

    @Schema(description = "会员ID")
    private String memberId;

    @Schema(description = "会员编号")
    private String memberNo;

    @Schema(description = "会员姓名/昵称")
    private String memberNickname;

    @Schema(description = "会员手机")
    private String memberMobile;

    @Schema(description = "流水类型：1-获取 2-消费 3-冻结 4-解冻 5-过期 6-调整")
    private Integer pointsType;

    @Schema(description = "流水类型名称")
    private String pointsTypeName;

    @Schema(description = "变动积分（正增负减）")
    private Integer points;

    @Schema(description = "变动前可用积分")
    private Integer beforePoints;

    @Schema(description = "变动后可用积分")
    private Integer afterPoints;

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

    @Schema(description = "业务类型名称")
    private String bizTypeName;

    @Schema(description = "业务ID")
    private String bizId;

    @Schema(description = "业务描述")
    private String bizDesc;

    @Schema(description = "积分规则ID")
    private String ruleId;

    @Schema(description = "积分规则名称")
    private String ruleName;

    @Schema(description = "积分过期时间")
    private LocalDateTime expireDate;

    @Schema(description = "操作来源")
    private String operateSource;
}
