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

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.rds.entity.sys.NoticeMessage;
import com.red.circle.other.inner.model.cmd.sys.SysNoticeMessageCmd;
import com.red.circle.other.inner.model.dto.sys.SysNoticeMessageDTO;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2021/3/27
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface SysNoticeInnerConvertor {

  NoticeMessage toNoticeMessage(SysNoticeMessageCmd cmd);

  SysNoticeMessageDTO toSysNoticeMessageDTO(NoticeMessage noticeMessage);
}
