forked from rongchao/epmet-cloud-rizhao
2 changed files with 49 additions and 1 deletions
@ -0,0 +1,48 @@ |
|||||
|
package com.epmet.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.dto.form.DingTalkTextMsg; |
||||
|
import com.epmet.commons.tools.utils.DingdingMsgSender; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
/** |
||||
|
* @Description 居民端党群议事 |
||||
|
* @Author yinzuomei |
||||
|
* @Date 2020/5/11 9:04 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@RestController |
||||
|
@RequestMapping("demo") |
||||
|
public class DemoController { |
||||
|
|
||||
|
@Autowired |
||||
|
private DingdingMsgSender dingdingMsgSender; |
||||
|
|
||||
|
|
||||
|
@GetMapping(value = "/ding") |
||||
|
public Result<?> detail(){ |
||||
|
DingTalkTextMsg msg = new DingTalkTextMsg(); |
||||
|
msg.setContent("123123123"); |
||||
|
return dingdingMsgSender.sendMsgSync(msg); |
||||
|
} |
||||
|
|
||||
|
@GetMapping(value = "/ding2") |
||||
|
public Result<?> detail2(){ |
||||
|
DingTalkTextMsg msg = new DingTalkTextMsg(); |
||||
|
msg.setContent("sdk"); |
||||
|
return dingdingMsgSender.sendMsgSdk(msg); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@GetMapping(value = "/ding3") |
||||
|
public Result<?> detail3(){ |
||||
|
log.error("ding2222222222222"); |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
Loading…
Reference in new issue