using Attribute; using Base; using Common; using Dto; using Enums; using Filters; using Infrastructure; using Infrastructure.Model; using Mapster; using Microsoft.AspNetCore.Mvc; using Middleware; using Model; using Model.Base; using Services; using Util; namespace Controllers { /// /// 主界面Controller /// [Route("/")] public class HomeController : BaseController { private readonly IAppSourceSetService _AppSourceSetService; public HomeController(IAppSourceSetService AppSourceSetService) { _AppSourceSetService = AppSourceSetService; } [Route("/noauth/test1")] public string test1() { _AppSourceSetService.sycnOssFile(new AppSourceSet() { kind = "creater", projectId = 203, host = "laikeba-uni.oss-cn-chengdu.aliyuncs.com", bucketName = "test-ossforteam", endPoint = "oss-cn-chengdu.aliyuncs.com", accessKeyId = "LTAI5tJsPaNzqCSMCPwb8zfz", accessKeySecret = "efM31Up75fQcgZ32U6xvAciagceQae", path = "MERCHANT_APP", }, "2.0.0"); return "ok"; } } }