| | |
| | | import com.taobao.api.ApiException; |
| | | 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.context.annotation.PropertySource; |
| | |
| | | * @author liusheng |
| | | * @date 2023-05-15 |
| | | */ |
| | | @Slf4j |
| | | @Api(description = "钉钉接口") |
| | | @RestController |
| | | @RequestMapping("/smartor/dingtalk") |
| | |
| | | @ApiOperation("发送钉钉消息") |
| | | @PostMapping("/sendNotification") |
| | | public AjaxResult sendNotification(@RequestBody DingTalkReqVo dingTalkReqVo) { |
| | | log.info("发送钉钉消息:{}", dingTalkReqVo); |
| | | Boolean aBoolean = dingTalkService.sendNotification(dingTalkReqVo); |
| | | if (aBoolean) { |
| | | return success(); |