package com.agileboot.domain.collaboration.record.dto;

import cn.hutool.core.bean.BeanUtil;
import com.agileboot.domain.collaboration.record.db.CollaborationTaskEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author codex
 */
@NoArgsConstructor
@Data
public class CollaborationTaskDTO {

    public CollaborationTaskDTO(CollaborationTaskEntity entity) {
        if (entity != null) {
            BeanUtil.copyProperties(entity, this);
        }
    }

    private Long taskId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date releaseDate;

    private Integer sortOrder;

}
