package com.newfiber.api.pc.controller; import com.newfiber.api.core.commons.ResultObj; import com.newfiber.api.pc.service.IpVoiceHistoryService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; /** * @description: Ip语音呼叫控制层 * @author: 张鸿志 * @date: 2021/1/13 13:53 * @version: v1.0 */ @RestController @RequestMapping("/ipcall") @Api(value = "IpVoiceHistoryController",tags = "Ip语音呼叫控制层") public class IpVoiceHistoryController { @Autowired private IpVoiceHistoryService ipVoiceHistoryService; @PostMapping("/call") @ApiOperation("呼叫方法") public ResultObj call(@RequestParam("userNo")String userNo){ ipVoiceHistoryService.callByUserNo(userNo); return ResultObj.ok(); } }