Modules/UserCenter/Gardener.UserCenter.Impl/Services/ClientService.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using Furion.DatabaseAccessor;
using Furion.DataEncryption;
using Furion.FriendlyException;
using Gardener.Attributes;
using Gardener.Authentication.Core;
using Gardener.Authentication.Dtos;
using Gardener.Authentication.Enums;
using Gardener.Authorization.Dtos;
using Gardener.EntityFramwork;
using Gardener.Enums;
using Gardener.SystemManager.Dtos;
using Gardener.UserCenter.Dtos;
using Gardener.UserCenter.Impl.Domains;
using Gardener.UserCenter.Services;
using Mapster;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Gardener.UserCenter.Impl.Services
{
/// <summary>
/// 客户端服务
/// </summary>
[ApiDescriptionSettings("UserCenterServices")]
public class ClientService : ServiceBase<Client, ClientDto, Guid>, IClientService
{
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly IJwtService _jwtBearerService;
private readonly IRepository<ClientFunction> _clientFunctionRespository;
/// <summary>
///
/// </summary>
/// <param name="jwtBearerService"></param>
/// <param name="httpContextAccessor"></param>
/// <param name="repository"></param>
/// <param name="clientFunctionRespository"></param>
public ClientService(IJwtService jwtBearerService, IHttpContextAccessor httpContextAccessor, IRepository<Client> repository, IRepository<ClientFunction> clientFunctionRespository) : base(repository)
{
_jwtBearerService = jwtBearerService;
_httpContextAccessor = httpContextAccessor;
_clientFunctionRespository = clientFunctionRespository;
}
/// <summary>
/// 根据客户端编号获取绑定的接口列表
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public async Task<List<FunctionDto>> GetFunctions([ApiSeat(ApiSeats.ActionStart)] Guid id)
后面还有 71 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
