ScheduleTaskController.cs 996 B

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