You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
990 B
33 lines
990 B
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Win_in.Sfs.Message.Application.Contracts;
|
|
using Win_in.Sfs.Message.Domain;
|
|
using Win_in.Sfs.Message.Domain.Shared;
|
|
|
|
namespace Win_in.Sfs.Message.Application;
|
|
|
|
/// <summary>
|
|
/// 站点消息
|
|
/// </summary>
|
|
// [Authorize(AnnouncementPermissions.Default)]
|
|
|
|
[Authorize]
|
|
[Route($"{MessageConsts.RootPath}announcement")]
|
|
public class AnnouncementService : SfsMessageCrudAppServiceBase<Announcement, AnnouncementDto, SfsMessageRequestInputBase, AnnouncementEditInput>
|
|
, IAnnouncementService
|
|
{
|
|
//private bool _configSendEmail = true;
|
|
|
|
private readonly SmsService _smsService;
|
|
private readonly EmailSendService _emailSendService;
|
|
|
|
public AnnouncementService(
|
|
SmsService smsService,
|
|
EmailSendService emailSendService,
|
|
IAnnouncementRepository repository
|
|
) : base(repository)
|
|
{
|
|
_smsService = smsService;
|
|
_emailSendService = emailSendService;
|
|
}
|
|
}
|
|
|