package com.product.admin.test; import java.util.HashMap; import java.util.Map; import com.product.admin.config.CmnConst; import com.product.common.utils.HttpTest; /** * 邮件发送历史 * Copyright LX-BASE * @Title: LX-BASE- * @Project: MailHistoryTest * @Date: 2020-09-15 11:07 * @Author: 杜洪波 * @Description: */ public class MailHistoryTest extends HttpTest{ public static void main(String[] args) { listMailHostory(); //邮件发送历史记录列表 // findMailHostory(); //邮件发送历史记录详情 // updateMailHostory(); //邮件发送错误历史记录修改 // errorMailSend(); //错误邮件发送 } public static void listMailHostory() { Map map=new HashMap<>(); map.put("url/api", "/api/mailhistory/list-mailHistory/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_MAIL_SEND); map.put("cpage",1); map.put("pagesize",10); testPost(map); } public static void findMailHostory() { Map map=new HashMap<>(); map.put("url/api", "/api/mailhistory/find-mailHistory/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_MAIL_SEND); map.put("uuid", "5d67ba88-fc30-49d6-bd25-9253c67897fe"); testPost(map); } public static void updateMailHostory() { Map map=new HashMap<>(); map.put("url/api", "/api/mailhistory/update-mailHistory/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_MAIL_SEND); map.put("uuid","5d67ba88-fc30-49d6-bd25-9253c67897fe"); map.put("org_level_uuid","83ff8990-ad89-44ba-a6a1-4d5535bee556"); map.put("smtp_server_host","smtp.exmail.qq.com"); map.put("smtp_server_port","456"); map.put("smtp_username","1074825718@qq.com"); map.put("smtp_license_code","D4hrLWLEP3fh9wBg"); map.put("addressee","1582208867@qq.com"); map.put("mail_title","你好啊"); map.put("mail_content","你好啊"); map.put("mail_attachment",""); // map.put("send_stat",""); // map.put("send_mode","smtp"); // map.put("failure_reason",""); testPost(map); } public static void errorMailSend() { Map map=new HashMap<>(); map.put("url/api", "/api/mailhistory/send-error-mail/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_MAIL_SEND); map.put("uuid","5d67ba88-fc30-49d6-bd25-9253c67897fe"); testPost(map); } }