HomeController.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Attribute;
  2. using Base;
  3. using Common;
  4. using Dto;
  5. using Enums;
  6. using Filters;
  7. using Infrastructure;
  8. using Infrastructure.Model;
  9. using Mapster;
  10. using Microsoft.AspNetCore.Mvc;
  11. using Middleware;
  12. using Model;
  13. using Model.Base;
  14. using Services;
  15. using Util;
  16. namespace Controllers
  17. {
  18. /// <summary>
  19. /// 主界面Controller
  20. /// </summary>
  21. [Route("/")]
  22. public class HomeController : BaseController
  23. {
  24. private readonly IAppSourceSetService _AppSourceSetService;
  25. public HomeController(IAppSourceSetService AppSourceSetService)
  26. {
  27. _AppSourceSetService = AppSourceSetService;
  28. }
  29. [Route("/noauth/test1")]
  30. public string test1()
  31. {
  32. _AppSourceSetService.sycnOssFile(new AppSourceSet()
  33. {
  34. kind = "creater",
  35. projectId = 203,
  36. host = "laikeba-uni.oss-cn-chengdu.aliyuncs.com",
  37. bucketName = "test-ossforteam",
  38. endPoint = "oss-cn-chengdu.aliyuncs.com",
  39. accessKeyId = "LTAI5tJsPaNzqCSMCPwb8zfz",
  40. accessKeySecret = "efM31Up75fQcgZ32U6xvAciagceQae",
  41. path = "MERCHANT_APP",
  42. }, "2.0.0");
  43. return "ok";
  44. }
  45. }
  46. }