package com.red.circle.other.infra.database.rds.dao.sys;

import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.dto.MessageCopywritingDTO;
import com.red.circle.other.infra.database.rds.entity.sys.SysMessageCopywritingTextType;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 推送文案类型表 Mapper 接口
 * </p>
 *
 * @author pengliang
 * @since 2020-06-04
 */
public interface SysMessageCopywritingTextTypeDAO extends BaseDAO<SysMessageCopywritingTextType> {


  /**
   * 获取推送消息文案
   *
   * @param template 模板
   * @param lang     语言
   * @return dto
   */
  MessageCopywritingDTO findMsgTypePushCopywriting(@Param("template") String template,
      @Param("lang") String lang);

  /**
   * 随即获取打招呼文案
   *
   * @param lang 语言
   * @return ignore
   */
  MessageCopywritingDTO findGreetRandomText(String lang);


}
