类 EmailController
- java.lang.Object
-
- net.risesoft.controller.EmailController
-
@RestController("standardEmailController") @RequestMapping("/api/standard/email") public class EmailController extends Object
-
-
构造器概要
构造器 构造器 说明 EmailController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 net.risesoft.pojo.Y9Result<Object>addressRelevancy(String search)邮件地址/姓名 关联net.risesoft.pojo.Y9Result<Object>contactPerson()最近联系人列表net.risesoft.pojo.Y9Result<Object>delete(long[] uids, String folder)删除邮件net.risesoft.pojo.Y9Result<Object>deletePermanently(long[] uids, String folder)永久删除邮件net.risesoft.pojo.Y9Result<EmailDetailDTO>detail(String folder, long uid)邮件详情voidexportEml(String folder, int uid, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)导出邮件 emlnet.risesoft.pojo.Y9Result<Object>flag(long[] uids, String folder, boolean flagged)邮件标星net.risesoft.pojo.Y9Result<EmailDTO>forward(String folder, long uid)转发邮件net.risesoft.pojo.Y9Page<EmailListDTO>list(int page, int size, String folder)根据文件夹分页查找邮件列表net.risesoft.pojo.Y9Result<Object>move(long[] uids, String originFolder, String toFolder)移动邮件net.risesoft.pojo.Y9Result<EmailDTO>quickReply(String folder, Long uid, String richText)快速回复net.risesoft.pojo.Y9Result<Object>read(long[] uids, String folder, Boolean isRead)标记为已读或未读net.risesoft.pojo.Y9Result<EmailDTO>reply(String folder, Long uid)回复net.risesoft.pojo.Y9Result<EmailDTO>replyAll(String folder, Long uid)回复不包括自己和密送的其他所有收件人net.risesoft.pojo.Y9Result<String>save(EmailDTO email)保存邮件net.risesoft.pojo.Y9Page<EmailListDTO>search(EmailSearchDTO searchDTO)搜索邮件net.risesoft.pojo.Y9Result<Object>send(String messageId)发送邮件net.risesoft.pojo.Y9Result<Object>todoList()待办数量列表
-
-
-
方法详细资料
-
delete
@DeleteMapping public net.risesoft.pojo.Y9Result<Object> delete(@RequestParam("uids") long[] uids, String folder) throws javax.mail.MessagingException
删除邮件- 参数:
uids- 邮件 uidfolder- 文件夹- 返回:
Y9Result<Object>- 抛出:
javax.mail.MessagingException- 通讯异常
-
deletePermanently
@DeleteMapping("/permanently") public net.risesoft.pojo.Y9Result<Object> deletePermanently(@RequestParam("uids") long[] uids, String folder) throws javax.mail.MessagingException永久删除邮件- 参数:
uids- 邮件 uidfolder- 文件夹- 返回:
Y9Result<Object>- 抛出:
javax.mail.MessagingException- 通讯异常
-
detail
@GetMapping("/{folder}/{uid}") public net.risesoft.pojo.Y9Result<EmailDetailDTO> detail(@PathVariable String folder, @PathVariable long uid) throws Exception邮件详情- 参数:
folder- 文件夹uid- 邮件 uid- 返回:
Y9Result<EmailDetailDTO>- 抛出:
Exception- 异常
-
exportEml
@GetMapping("/exportEml") public void exportEml(String folder, int uid, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws javax.mail.MessagingException, IOException导出邮件 eml- 参数:
folder- 文件夹uid- 邮件 uidresponse- 响应request- 请求- 抛出:
javax.mail.MessagingException- 通讯异常IOException- IO异常
-
flag
@PostMapping("/flag") public net.risesoft.pojo.Y9Result<Object> flag(@RequestParam("uids") long[] uids, @RequestParam String folder, boolean flagged) throws Exception邮件标星- 参数:
uids- 邮件 uidfolder- 文件夹flagged- 是否标星- 返回:
Y9Result<Object>- 抛出:
Exception- 异常
-
forward
@GetMapping("/forward/{folder}/{uid}") public net.risesoft.pojo.Y9Result<EmailDTO> forward(@PathVariable String folder, @PathVariable long uid) throws Exception转发邮件
-
list
@GetMapping("/list") public net.risesoft.pojo.Y9Page<EmailListDTO> list(int page, @RequestParam int size, @RequestParam(required=false) String folder) throws IOException, javax.mail.MessagingException根据文件夹分页查找邮件列表- 参数:
page- 页数size- 每页数量folder- 文件夹- 返回:
Y9Page<EmailListDTO>- 抛出:
IOException- IO异常javax.mail.MessagingException- 通讯异常
-
move
@PostMapping("/move") public net.risesoft.pojo.Y9Result<Object> move(@RequestParam("uids") long[] uids, String originFolder, String toFolder) throws javax.mail.MessagingException移动邮件- 参数:
uids- 邮件 uidoriginFolder- 原始文件夹toFolder- 移动至文件夹- 返回:
Y9Result<Object>- 抛出:
javax.mail.MessagingException- 通讯异常
-
read
@PostMapping("/read") public net.risesoft.pojo.Y9Result<Object> read(@RequestParam("uids") long[] uids, @RequestParam String folder, @RequestParam Boolean isRead) throws Exception标记为已读或未读- 参数:
uids- 邮件 uidfolder- 文件夹isRead- 是否已读- 返回:
Y9Result<Object>- 抛出:
Exception- 异常信息
-
reply
@GetMapping("/reply/{folder}/{uid}") public net.risesoft.pojo.Y9Result<EmailDTO> reply(@PathVariable String folder, @PathVariable Long uid) throws Exception回复
-
quickReply
@PostMapping("/quickReply/{folder}/{uid}") public net.risesoft.pojo.Y9Result<EmailDTO> quickReply(@PathVariable String folder, @PathVariable Long uid, @RequestParam String richText) throws Exception快速回复
-
replyAll
@GetMapping("/replyAll/{folder}/{uid}") public net.risesoft.pojo.Y9Result<EmailDTO> replyAll(@PathVariable String folder, @PathVariable Long uid) throws Exception回复不包括自己和密送的其他所有收件人
-
save
@PostMapping public net.risesoft.pojo.Y9Result<String> save(EmailDTO email) throws Exception
保存邮件
-
search
@GetMapping("/search") public net.risesoft.pojo.Y9Page<EmailListDTO> search(EmailSearchDTO searchDTO) throws javax.mail.MessagingException, IOException搜索邮件- 参数:
searchDTO- 搜索dto- 返回:
Y9Page<EmailListDTO>- 抛出:
javax.mail.MessagingException- 接收异常IOException- IO异常
-
send
@PostMapping("/send") public net.risesoft.pojo.Y9Result<Object> send(String messageId) throws Exception发送邮件- 参数:
messageId- 消息id- 返回:
Y9Result<Object>- 抛出:
Exception- 异常
-
todoList
@GetMapping("/todoList") public net.risesoft.pojo.Y9Result<Object> todoList() throws javax.mail.MessagingException待办数量列表- 返回:
Y9Result<Object>- 抛出:
javax.mail.MessagingException- 通讯异常
-
contactPerson
@ResponseBody @RequestMapping("/contact") public net.risesoft.pojo.Y9Result<Object> contactPerson() throws javax.mail.MessagingException, IOException最近联系人列表- 返回:
Y9Result<Object>- 抛出:
javax.mail.MessagingException- 接收异常IOException- IO异常
-
-