package com.mmc.iuav.user.entity.activity;

import com.mmc.iuav.user.model.dto.activity.ActivityPartDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: zj
 * @Date: 2023/10/16 14:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityPartDO implements Serializable {
    private static final long serialVersionUID = 1113620415679504481L;
    private Integer id;
    private Integer activityId;
    private Integer userAccountId;
    private Integer pUserAccountId;
    private Date createTime;
    private Integer rewardValue;

    public ActivityPartDTO buildActivityPartDTO() {
        return ActivityPartDTO.builder().id(this.id).activityId(this.activityId).userAccountId(this.userAccountId)
                .pUserAccountId(this.pUserAccountId).createTime(this.createTime).rewardValue(this.rewardValue).build();
    }
}
