using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using AI.Platform.Service.Common;
using AI.Platform.Core.Entity;
using Microsoft.AspNetCore.Components;
using AI.Platform.Core;
using static AI.Platform.Core.Entity.PublicEnum;
using System.Net;
using System;
using AI.Platform.Service.Output;
using Microsoft.AspNetCore.Http.HttpResults;
using AI.Platform.Core.Entity.Site;
namespace AI.Platform.Service;
[ApiGroup(ApiGroupNames.System)]
public class FileService : BaseService
{
///
///
///
private readonly IHttpContextAccessor _contextAccessor;
private readonly SqlSugarRepository _siteReponsitory;
public FileService(IHttpContextAccessor contextAccessor, SqlSugarRepository siteReponsitory)
{
_contextAccessor = contextAccessor;
_siteReponsitory = siteReponsitory;
}
///
/// 上传图片
///
///
///
[HttpPost, AllowAnonymous]
public async Task