@@ -9,6 +9,7 @@ using IRaCIS.Core.Application.Service;
|
||||
using IRaCIS.Core.Application.ViewModel;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using IRaCIS.Core.Infrastructure;
|
||||
using IRaCIS.Core.Infrastructure.NewtonsoftJson;
|
||||
using MassTransit;
|
||||
using Medallion.Threading;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
@@ -104,6 +105,25 @@ namespace IRaCIS.Application.Services
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
[LowerCamelCaseJson]
|
||||
public class TestModel
|
||||
{
|
||||
public Guid TestId { get; set; }
|
||||
|
||||
public string TestName { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class TestModel2
|
||||
{
|
||||
public Guid TestId { get; set; }
|
||||
}
|
||||
|
||||
public IResponseOutput TestJson()
|
||||
{
|
||||
return ResponseOutput.Ok(new TestModel(), new TestModel2());
|
||||
}
|
||||
|
||||
public string TestHoliday(DateTime startdate,DateTime endDate)
|
||||
{
|
||||
@@ -522,7 +542,7 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
|
||||
var aliConfig = oSSService.ObjectStoreServiceOptions.AliyunOSS;
|
||||
var _ossClient = new OssClient(aliConfig.endPoint, aliConfig.accessKeyId, aliConfig.accessKeySecret);
|
||||
var _ossClient = new OssClient(aliConfig.EndPoint, aliConfig.AccessKeyId, aliConfig.AccessKeySecret);
|
||||
|
||||
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
|
||||
|
||||
@@ -539,7 +559,7 @@ namespace IRaCIS.Application.Services
|
||||
do
|
||||
{
|
||||
// 使用 prefix 模拟目录结构,设置 MaxKeys 和 NextMarker
|
||||
var objectListing = _ossClient.ListObjects(new ListObjectsRequest(aliConfig.bucketName)
|
||||
var objectListing = _ossClient.ListObjects(new ListObjectsRequest(aliConfig.BucketName)
|
||||
{
|
||||
Prefix = relativePath,
|
||||
MaxKeys = 1000,
|
||||
|
||||
Reference in New Issue
Block a user