live-forum/server/webapi/LiveForum/LiveForum.IService/Others/ICosService.cs
2026-03-24 11:27:37 +08:00

27 lines
806 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 LiveForum.Code.Base;
using LiveForum.Model.Dto.Others;
namespace LiveForum.IService.Others
{
/// <summary>
/// 腾讯云COS服务接口
/// </summary>
public interface ICosService
{
/// <summary>
/// 生成签名URL
/// </summary>
/// <param name="request">请求参数</param>
/// <returns>签名URL和过期时间</returns>
Task<BaseResponse<CosGenerateSignRespDto>> GenerateSignURL(CosGenerateSignReq request);
/// <summary>
/// 生成临时密钥
/// </summary>
/// <param name="request">请求参数</param>
/// <returns>临时密钥信息</returns>
Task<BaseResponse<CosGenerateTemporaryKeyRespDto>> GenerateTemporaryKey(CosGenerateTemporaryKeyReq request);
}
}