xiangning 2548c3ed91 refactor(endpoints): 统一命名空间大小写规范
- 将 file 相关端点命名空间从小写改为首字母大写
- 将 im 相关端点命名空间从小写改为首字母大写
- 将 workflow 相关端点命名空间从小写改为首字母大写
- 将 rag 相关端点命名空间从小写改为首字母大写
- 将 platform 相关端点命名空间从小写改为首字母大写
- 保持代码功能不变,仅调整命名空间命名风格一致性
2026-07-03 17:12:48 +08:00

25 lines
674 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using File.Application.Features.Buckets.Commands;
using MediatR;
namespace BuildFlow.Host.Endpoints.File.Buckets;
/// <summary>创建存储桶端点。POST /api/buckets,按名称创建存储桶。</summary>
[Authorize]
/// <summary>
/// undefined
/// </summary>
public class CreateBucketEndpoint(IMediator mediator) : Endpoint<CreateBucketRequest, object>
{
public override void Configure()
{
Post("/buckets");
}
public override async Task HandleAsync(CreateBucketRequest req, CancellationToken ct)
{
var message = await mediator.Send(new CreateBucketCommand(req.Name), ct);
await Send.OkAsync(new { message }, ct);
}
}