😎增加根据文件Id获取文件信息接口

This commit is contained in:
zuohuaijun 2024-08-08 16:44:07 +08:00
parent e7617303bc
commit e6e9897c88
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@
<PackageReference Include="SqlSugarCore" Version="5.1.4.166" /> <PackageReference Include="SqlSugarCore" Version="5.1.4.166" />
<PackageReference Include="SSH.NET" Version="2024.1.0" /> <PackageReference Include="SSH.NET" Version="2024.1.0" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.4.4" /> <PackageReference Include="System.Linq.Dynamic.Core" Version="1.4.4" />
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1063" /> <PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1064" />
<PackageReference Include="UAParser" Version="3.1.47" /> <PackageReference Include="UAParser" Version="3.1.47" />
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" /> <PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
</ItemGroup> </ItemGroup>

View File

@ -279,7 +279,8 @@ public class SysFileService : IDynamicApiController, ITransient
/// </summary> /// </summary>
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
private async Task<SysFile> GetFile([FromQuery] FileInput input) [DisplayName("获取文件")]
public async Task<SysFile> GetFile([FromQuery] FileInput input)
{ {
var file = await _sysFileRep.CopyNew().GetFirstAsync(u => u.Id == input.Id); var file = await _sysFileRep.CopyNew().GetFirstAsync(u => u.Id == input.Id);
return file ?? throw Oops.Oh(ErrorCodeEnum.D8000); return file ?? throw Oops.Oh(ErrorCodeEnum.D8000);