基础服务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.
 
 

32 lines
1.2 KiB

  1. using BPA.SAAS.Manage.Application.System.Dtos;
  2. using BPA.SAAS.Manage.Application.System.Interface;
  3. using Microsoft.AspNetCore.Components.Forms;
  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 SystemConfigServices : ITransient, IDynamicApiController
  13. {
  14. ISystemConfigService _SystemConfigService;
  15. public SystemConfigServices(ISystemConfigService SystemConfigService)
  16. {
  17. _SystemConfigService = SystemConfigService;
  18. }
  19. [HttpPost("/api/systemconfig/GetCosRequestSignURL"), ApiDescriptionSettings(SplitCamelCase = false), AllowAnonymous, NonUnify]
  20. public FileOutInfoDto GetCosRequestSignURL(FileInputInfoDto inputDto)
  21. {
  22. return _SystemConfigService.GetCosRequestSignURL(inputDto);
  23. }
  24. [HttpPost("/api/systemconfig/GetCosFileURL"), ApiDescriptionSettings(SplitCamelCase = false), AllowAnonymous, NonUnify]
  25. public async Task<string> GetCosImgesURL(IFormFile file)
  26. {
  27. return await _SystemConfigService.GetCosImgesURL(file);
  28. }
  29. }
  30. }