| 1234567891011121314151617181920212223242526272829303132333435363738 |
- 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 SyncBaseDataToMongoDB()
- {
- return _ScheduleTaskAppService.SyncBaseDataToMongoDB();
- }
- }
- }
|