You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1011 B
33 lines
1011 B
using BBWY.Server.Business;
|
|
using BBWY.Server.Model.Db;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
|
|
|
namespace JD.API.Controllers
|
|
{
|
|
[Produces("application/json")]
|
|
[Route("Api/[Controller]/[Action]")]
|
|
[ApiController]
|
|
public class YunDingController : ControllerBase
|
|
{
|
|
private APIExecutionTimesRecorder apiExecutionTimesRecorder;
|
|
private YunDingBusiness yunDingBusiness;
|
|
public YunDingController(YunDingBusiness yunDingBusiness, APIExecutionTimesRecorder apiExecutionTimesRecorder)
|
|
{
|
|
this.yunDingBusiness = yunDingBusiness;
|
|
this.apiExecutionTimesRecorder = apiExecutionTimesRecorder;
|
|
}
|
|
|
|
[HttpGet]
|
|
public void RefreshKey()
|
|
{
|
|
yunDingBusiness.RefreshKey();
|
|
}
|
|
|
|
public void ApiExecutionTimesFlush()
|
|
{
|
|
apiExecutionTimesRecorder.Flush();
|
|
}
|
|
}
|
|
}
|
|
|