using ApiTools.Core; using Furion.DatabaseAccessor; using MediatR; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ApiTools.CommonServer.Application { //public class GetWxSettingQueryHandler(IRepository rep, IRepository repSmsLog) : IRequestHandler //{ // private readonly IRepository rep = rep; // private readonly IRepository repSmsLog = repSmsLog; // /// // /// 查询短信配置 // /// // /// // /// // /// // public async Task Handle(GetSmsSettingQuery request, CancellationToken cancellationToken) // { // var logier = JwtUtils.GetCurrentLogier(); // var detail = await rep.AsQueryable().AsNoTracking() // .Where(it => it.ChannelId == logier.ChannelId) // .GetDetail(); // detail.Accesses = detail.Accesses.OrderBy(it => it.Sort).ToList(); // return detail; // } //} }