云库增加 AI识图,缓存,我的云库收藏增加安全标志

调用外部API 扣费
This commit is contained in:
chfei committed 2026-11-06 19:25:36 +08:00
1 parent 7c29e57623
commit 150e8644b7
49 files changed
+1069 -28

No files matched your search

@@ -0,0 +1,19 @@
using MAX.Framework.Conventions;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Store.Framework.Base;
using Store.Modules.CloudProduct.Dtos;
using Store.Modules.CloudProduct.Services;
namespace Store.Modules.CloudProduct.Controllers;
/// <summary>上传图片识别及当前用户的商品安全记录。</summary>
[Tags("商品检测"), DefaultHttpPost]
[Route("api/CloudGoods/[action]")]
public sealed class ProductInspectionController(ProductInspectionService service) : AppControllerBase
{
[EndpointSummary("识别上传图片中的文字和品牌 Logo")]
[RequestFormLimits(ValueLengthLimit = ProductInspectionService.MaxBase64Length)]
public Task<string[]> InspectImage(InspectImageRequest request, CancellationToken cancellationToken)
=> service.InspectAsync(request, cancellationToken);
}