基础服务api
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
986 B

  1. using BPA.Aliyun.OSS.Options;
  2. using BPA.SAAS.Manage.Application.System.Dtos;
  3. using BPA.SAAS.Manage.Application.System.Interface;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPA.SAAS.Manage.Application.System
  10. {
  11. [ApiDescriptionSettings("SYS", Tag = "获取阿里云参数")]
  12. public class AliyunOssServices : ITransient, IDynamicApiController
  13. {
  14. IAliyunOssService _aliyunOssService;
  15. public AliyunOssServices(IAliyunOssService aliyunOssService)
  16. {
  17. _aliyunOssService = aliyunOssService;
  18. }
  19. [HttpPost("/api/systemconfig/GeneratePostPolicy"), ApiDescriptionSettings(SplitCamelCase = false), AllowAnonymous, NonUnify]
  20. public async Task<AliyunOssPostPolicyResponse> GeneratePostPolicyAsync(Aliyun0ssGeneratePostPolicyRequest request)
  21. {
  22. return await _aliyunOssService.GeneratePostPolicyAsync(request);
  23. }
  24. }
  25. }