| | |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "钉钉token定时器接口") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/dingTalkToken") |
| | | public class DingTalkTokenTimerController extends BaseController { |
| | |
| | | @ApiOperation("开启定时更新钉钉业务token") |
| | | @PostMapping("/updateDingTalkTokenOrigin") |
| | | public ApiResponse updateDingTalkTokenOrigin() throws Exception { |
| | | log.info("定时任务执行开始:updateDingTalkTokenOrigin-更新钉钉token"); |
| | | dingTalk.updTokenInfo(); |
| | | return ApiResponse.success("开启定时更新微信公众号accesstoken成功"); |
| | | } |