2021与蓝度共同重构项目,服务端
liuhaonan
2022-05-18 f03159b37465b246141abaa2fb2f1f725f398278
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.sandu.ximon.admin.controller;
 
import com.sandu.common.domain.ResponseVO;
import com.sandu.common.util.ResponseUtil;
import com.sandu.ximon.admin.param.InterphoneEventParam;
import com.sandu.ximon.admin.service.InterphoneEventService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@AllArgsConstructor
@RequestMapping("/v1/interphoneEvent")
public class InterphoneEventController {
 
    private final InterphoneEventService interphoneEventService;
 
    /**
     * 通话回调
     *
     * @param param
     * @return
     */
    @PostMapping("/callBack")
    public ResponseVO<Object> add(@RequestBody InterphoneEventParam param) {
        return ResponseUtil.success(interphoneEventService.insert(param));
    }
}