package cd.casic.ci.process.process.converter;

import cd.casic.ci.process.dto.req.template.TemplateTaskCreateByDataReq;
import cd.casic.ci.process.dto.resp.template.TemplateTasksResp;
import cd.casic.ci.process.process.dataObject.template.TemplateTask;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface TemplateTaskConverter {
    TemplateTaskConverter INSTANCE = Mappers.getMapper(TemplateTaskConverter.class);
    TemplateTasksResp doToResp(TemplateTask task);

    TemplateTask taskDataToTaskModule(TemplateTaskCreateByDataReq k);
}
