You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
4 months ago
|
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;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 邮箱账号接口
|
||
|
/// </summary>
|
||
|
public class EmailUserAccountController : ApiController
|
||
|
{
|
||
|
private readonly IEmailUserAccountService _emailParseService;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="invokeService"></param>
|
||
|
public EmailUserAccountController(IEmailUserAccountService invokeService)
|
||
|
{
|
||
|
_emailParseService = invokeService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列表
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
[Route("GetPageAsync")]
|
||
|
public Task<DataResult<List<EmailUserAccountPageDto>>> GetPageAsync([FromBody] PageRequest<QueryEmailUserAccountDto> request)
|
||
|
{
|
||
|
return _emailParseService.GetPageAsync(request);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 保存邮件账户配置
|
||
|
/// </summary>
|
||
|
/// <param name="info">邮件账户配置表信息</param>
|
||
|
/// <returns>返回回执</returns>
|
||
|
[HttpPost("Save")]
|
||
|
public async Task<DataResult<EmailUserAccountDto>> Save(EmailUserAccountDto info)
|
||
|
{
|
||
|
return await _emailParseService.Save(info);
|
||
|
}
|
||
|
}
|