Example #1
0
        public async Task <IActionResult> Add([FromBody] AddScheduleInput input)
        {
            await _schedulerCenter.AddJobAsync(input);

            return(Ok(ResponseBody.From("添加成功")));
        }
Example #2
0
 public async Task <Result> AddJob([FromBody] ScheduleInfo info)
 {
     return(await _schedulerCenter.AddJobAsync(info));
 }