| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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
- {
- /// <summary>
- /// 主界面Controller
- /// </summary>
-
- [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";
- }
- }
- }
|