009_DI-Elec/newFront/c#前端/SWS.Service/LibraryFileService.cs
2025-08-15 15:36:40 +08:00

32 lines
689 B
C#

using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using SWS.Commons;
using SWS.Model;
namespace SWS.Service
{
public class LibraryFileService : HttpService
{
public LibraryFileService() : base()
{
}
public async Task<ec_library_file> GetEntity( string libraryFileID)
{
var res = await this.GetAsync<ec_library_file>($"LibraryFileApi/GetEntity?projectId={GlobalObject.curProject.ProjectId}&libraryFileID={libraryFileID}");
if (res.code == 200)
{
return res.data;
}
else
{
}
return null;
}
}
}