事件回调打印
This commit is contained in:
parent
f0f83e7ed7
commit
91f7ea0b3a
|
|
@ -2,19 +2,18 @@ package com.zhangshu.chat.demo.controller;
|
||||||
|
|
||||||
import com.zhangshu.chat.demo.dto.AgoraEventDto;
|
import com.zhangshu.chat.demo.dto.AgoraEventDto;
|
||||||
import com.zhangshu.chat.demo.dto.CommonResult;
|
import com.zhangshu.chat.demo.dto.CommonResult;
|
||||||
import com.zhangshu.chat.demo.dto.LoginDto;
|
|
||||||
import com.zhangshu.chat.demo.service.EventService;
|
import com.zhangshu.chat.demo.service.EventService;
|
||||||
import com.zhangshu.chat.demo.vo.LoginVo;
|
import com.zhangshu.chat.demo.vo.LoginVo;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.validation.Valid;
|
@Slf4j
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/event")
|
@RequestMapping("/event")
|
||||||
@Api(value = "EventController", tags = "事件回调")
|
@Api(value = "EventController", tags = "事件回调")
|
||||||
|
|
@ -25,6 +24,7 @@ public class EventController {
|
||||||
@PostMapping("/agora")
|
@PostMapping("/agora")
|
||||||
@ApiOperation(value = "agora")
|
@ApiOperation(value = "agora")
|
||||||
public CommonResult<LoginVo> agora(@RequestBody AgoraEventDto dto) {
|
public CommonResult<LoginVo> agora(@RequestBody AgoraEventDto dto) {
|
||||||
|
log.info("事件回调:{}", dto);
|
||||||
eventService.agora(dto);
|
eventService.agora(dto);
|
||||||
return CommonResult.success();
|
return CommonResult.success();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue