云收藏 增加AI检测图片
This commit is contained in:
1 parent
b28940c02d
commit
b54a5f5310
36 files changed
+1978
-523
No files matched your search
@@ -418,7 +418,13 @@ namespace Work.Services
|
||||
public static async Task<PageData<CloudGoods>> SearchFavorites(UserFavoritesGoodsSearchRequest request)
|
||||
{
|
||||
request.UserName = GetUserName();
|
||||
return await StoreApiClient.Instance.CloudGoods.SearchFavorites(request);
|
||||
var page = await StoreApiClient.Instance.CloudGoods.SearchFavorites(request);
|
||||
foreach (var item in page.List)
|
||||
{
|
||||
item.DetectionResult = item.IsSafe == null ? "未检测" : item.IsSafe.Value ? "安全" : "违规";
|
||||
}
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -576,6 +582,8 @@ namespace Work.Services
|
||||
/// 平台类型
|
||||
/// </summary>
|
||||
public PlatformType Platform { get; set; }
|
||||
/// <summary>安全状态:0 全部(默认),1 安全,2 违规,3 未检测。</summary>
|
||||
public int SafeStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页码(默认1)
|
||||
@@ -629,6 +637,7 @@ namespace Work.Services
|
||||
}
|
||||
public class CloudGoods : BindableBase
|
||||
{
|
||||
|
||||
public bool IsSelected
|
||||
{
|
||||
get => GetValue<bool>();
|
||||
@@ -719,5 +728,18 @@ namespace Work.Services
|
||||
/// 索引同步状态:0未同步 1已同步
|
||||
/// </summary>
|
||||
public byte IndexStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 安全检测
|
||||
/// </summary>
|
||||
public bool? IsSafe { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public string? DetectionResult
|
||||
{
|
||||
get => GetValue<string>();
|
||||
set => SetValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user