32 lines
689 B
C#
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;
|
|
}
|
|
|
|
|
|
}
|
|
}
|