package com.microservices.zone.member.domain.vo;

import com.microservices.zone.member.domain.points.ZonePointsApply;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 积分申请修改对象
 *
 * @author otto
 */
@Data
@ApiModel("积分申请修改对象")
public class ZonePointsApplyUpdateVo {
    @ApiModelProperty(value = "主键ID", required = true)
    private Long id;

    @ApiModelProperty(value = "回复/响应内容")
    private String reply;

    @ApiModelProperty(value = "状态：pending待处理/success成功/fail失败/rejected已拒绝")
    private String status;

    @ApiModelProperty(value = "事件ID（关联积分流水事件）")
    private String eventId;

    @ApiModelProperty(value = "回复人ID")
    private Long replyId;

    public ZonePointsApply toZonePointsApply() {
        ZonePointsApply zonePointsApply = new ZonePointsApply();
        zonePointsApply.setId(id);
        zonePointsApply.setReply(reply);
        zonePointsApply.setStatus(status);
        zonePointsApply.setEventId(eventId);
        zonePointsApply.setReplyId(replyId);
        return zonePointsApply;
    }
}