| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using Business.ResourceExamineManagement.Dto;
- using Business.ScheduleTaskManagement;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Volo.Abp;
- using Volo.Abp.AspNetCore.Mvc;
- namespace Business.Controllers
- {
- /// <summary>
- /// 同步数据
- /// </summary>
- [RemoteService]
- [Area("Business")]
- [Route("api/business/schedule-task")]
- public class ScheduleTaskController : AbpController
- {
- private readonly IScheduleTaskAppService _ScheduleTaskAppService;
- public ScheduleTaskController(IScheduleTaskAppService ScheduleTaskAppService)
- {
- _ScheduleTaskAppService = ScheduleTaskAppService;
- }
- /// <summary>
- /// 同步基础数据到mongodb
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public Task<ResultDto> SyncBaseDataToMongoDB()
- {
- return _ScheduleTaskAppService.SyncBaseDataToMongoDB();
- }
- }
- }
|