using DS.Module.Core; using DS.Module.DjyServiceStatus; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.EmailParse.Dtos; using DS.WMS.Core.EmailParse.Interface; using DS.WMS.Core.Sys.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 邮箱账号接口 /// public class EmailUserAccountController : ApiController { private readonly IEmailUserAccountService _emailParseService; /// /// 构造函数 /// /// public EmailUserAccountController(IEmailUserAccountService invokeService) { _emailParseService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetPageAsync")] public Task>> GetPageAsync([FromBody] PageRequest request) { return _emailParseService.GetPageAsync(request); } /// /// 保存邮件账户配置 /// /// 邮件账户配置表信息 /// 返回回执 [HttpPost("Save")] public async Task> Save(EmailUserAccountDto info) { return await _emailParseService.Save(info); } }