Compare commits

...

2 Commits

3 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,11 @@ namespace OpenAuth.Repository.Domain
public string PullUrl { get; set; }
public string ServiceUrl { get; set; }
public string SecretKey { get; set; }
public bool Enable { get; set; }//是否启用
public int Imgsz { get; set; }//模型的图片像素大小
public double ConfThres { get; set; }//模型的标准置信度
[Navigate(NavigateType.OneToMany, nameof(LasaModelLabel.PId))]
public List<LasaModelLabel> ModelLabels { get; set; }
}

View File

@ -16,5 +16,6 @@ namespace OpenAuth.Repository.Domain
public int EnumValue { get; set; }
public double Reliability { get; set; }
public string PId { get; set; }
public string Color { get; set; }
}
}

View File

@ -28,6 +28,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
/// <param name="info"></param>
/// <returns></returns>
[HttpPost]
[AllowAnonymous]
public async Task<Response<bool>> AddAlgorithmsRepository(LasaAlgorithmsRepository info)
{
var result = new Response<bool>();
@ -48,6 +49,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
/// <param name="info"></param>
/// <returns></returns>
[HttpPost]
[AllowAnonymous]
public async Task<Response<bool>> UpdateAlgorithmsRepository(LasaAlgorithmsRepository info)
{
var result = new Response<bool>();