Compare commits
2 Commits
9820be5ead
...
504c3af0ad
| Author | SHA1 | Date |
|---|---|---|
|
|
504c3af0ad | |
|
|
ce7eac2363 |
|
|
@ -23,6 +23,11 @@ namespace OpenAuth.Repository.Domain
|
||||||
public string PullUrl { get; set; }
|
public string PullUrl { get; set; }
|
||||||
public string ServiceUrl { get; set; }
|
public string ServiceUrl { get; set; }
|
||||||
public string SecretKey { 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))]
|
[Navigate(NavigateType.OneToMany, nameof(LasaModelLabel.PId))]
|
||||||
public List<LasaModelLabel> ModelLabels { get; set; }
|
public List<LasaModelLabel> ModelLabels { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,6 @@ namespace OpenAuth.Repository.Domain
|
||||||
public int EnumValue { get; set; }
|
public int EnumValue { get; set; }
|
||||||
public double Reliability { get; set; }
|
public double Reliability { get; set; }
|
||||||
public string PId { get; set; }
|
public string PId { get; set; }
|
||||||
|
public string Color { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
||||||
/// <param name="info"></param>
|
/// <param name="info"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
[AllowAnonymous]
|
||||||
public async Task<Response<bool>> AddAlgorithmsRepository(LasaAlgorithmsRepository info)
|
public async Task<Response<bool>> AddAlgorithmsRepository(LasaAlgorithmsRepository info)
|
||||||
{
|
{
|
||||||
var result = new Response<bool>();
|
var result = new Response<bool>();
|
||||||
|
|
@ -48,6 +49,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
||||||
/// <param name="info"></param>
|
/// <param name="info"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
[AllowAnonymous]
|
||||||
public async Task<Response<bool>> UpdateAlgorithmsRepository(LasaAlgorithmsRepository info)
|
public async Task<Response<bool>> UpdateAlgorithmsRepository(LasaAlgorithmsRepository info)
|
||||||
{
|
{
|
||||||
var result = new Response<bool>();
|
var result = new Response<bool>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue