package cn.axzo.msg.center.dal;


import cn.axzo.msg.center.dal.mapper.MessageTemplateMapper;
import cn.axzo.msg.center.domain.dto.SyncTemplateDataDTO;
import cn.axzo.msg.center.domain.entity.MessageTemplate;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 消息模板(MessageTemplate)表数据库访问层
 *
 * @author zhangran
 * @since 2022-03-28 14:59:16
 */
@Service
@Slf4j
public class MessageTemplateDao extends
        ServiceImpl<MessageTemplateMapper, MessageTemplate> {

  public void insertSql(SyncTemplateDataDTO template) {
    this.baseMapper.nativeSql(template.getId(), template.getTitle(), template.getContent());
  }
}

