| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.dingTalk.DingTalk; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "éétoken宿¶å¨æ¥å£") |
| | | @RestController |
| | | @RequestMapping("/timer/dingTalkToken") |
| | | public class DingTalkTokenTimerController extends BaseController { |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private SystemDictDataService systemDictDataService; |
| | | |
| | | @Autowired |
| | | private DingTalk dingTalk; |
| | | /** |
| | | * æ¯å¦å¼åè
|
| | | */ |
| | | @Value("${debug_model}") |
| | | private Boolean timing; |
| | | |
| | | @ApiOperation("å¼å¯å®æ¶æ´æ°ééä¸å¡token") |
| | | @PostMapping("/updateDingTalkTokenOrigin") |
| | | public ApiResponse updateDingTalkTokenOrigin() throws Exception { |
| | | dingTalk.updTokenInfo(); |
| | | return ApiResponse.success("å¼å¯å®æ¶æ´æ°å¾®ä¿¡å
¬ä¼å·accesstokenæå"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |