package com.red.circle.other.app.inner.convertor.approval;

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.rds.entity.approval.ApprovalDynamicContent;
import com.red.circle.other.inner.model.cmd.approval.ApprovalDynamicContentCmd;
import com.red.circle.other.inner.model.dto.approval.ApprovalDynamicDTO;
import org.mapstruct.Mapper;

/**
 * @author zongpubin on 2024/1/19
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface ApprovalDynamicConvertor {

  ApprovalDynamicDTO toApprovalDynamicDTO(ApprovalDynamicContent approvalDynamicContent);

  ApprovalDynamicContent toApprovalDynamicContent(ApprovalDynamicContentCmd cmd);
}
