ScheduleTaskController.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Business.ResourceExamineManagement.Dto;
  2. using Business.ScheduleTaskManagement;
  3. using Microsoft.AspNetCore.Mvc;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Volo.Abp;
  10. using Volo.Abp.AspNetCore.Mvc;
  11. namespace Business.Controllers
  12. {
  13. /// <summary>
  14. /// 同步数据
  15. /// </summary>
  16. [RemoteService]
  17. [Area("Business")]
  18. [Route("api/business/schedule-task")]
  19. public class ScheduleTaskController : AbpController
  20. {
  21. private readonly IScheduleTaskAppService _ScheduleTaskAppService;
  22. public ScheduleTaskController(IScheduleTaskAppService ScheduleTaskAppService)
  23. {
  24. _ScheduleTaskAppService = ScheduleTaskAppService;
  25. }
  26. /// <summary>
  27. /// 同步基础数据到mongodb
  28. /// </summary>
  29. /// <returns></returns>
  30. [HttpGet]
  31. public Task<ResultDto> SyncBaseDataToMongoDB()
  32. {
  33. return _ScheduleTaskAppService.SyncBaseDataToMongoDB();
  34. }
  35. }
  36. }