master
parent
1ccf00955f
commit
d4c36f1fc0
@ -0,0 +1,26 @@
|
|||||||
|
package com.ms.biz.spi.timer;
|
||||||
|
|
||||||
|
import com.jinritemai.cloud.base.api.BaseRequest;
|
||||||
|
import com.jinritemai.cloud.base.api.BaseResponse;
|
||||||
|
import com.jinritemai.cloud.base.api.ExtensionService;
|
||||||
|
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
||||||
|
import com.ms.api.dto.ItemDTO;
|
||||||
|
import com.ms.biz.common.R;
|
||||||
|
import com.ms.biz.common.Ret;
|
||||||
|
import com.ms.biz.common.TimerBaseService;
|
||||||
|
import com.ms.biz.task.GetAuthInfoTaskService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
@ExtensionService("getAuthInfoTimer")
|
||||||
|
@Slf4j
|
||||||
|
public class GetAuthInfoTimerService extends TimerBaseService implements ExtensionServiceHandler<ItemDTO, Ret> {
|
||||||
|
@Autowired
|
||||||
|
GetAuthInfoTaskService getAuthInfoTaskService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BaseResponse<Ret> handle(BaseRequest<ItemDTO> req) {
|
||||||
|
getAuthInfoTaskService.runTask();
|
||||||
|
return R.ok(Ret.success());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue