package com.fs.watch.controller;

import com.fs.common.core.controller.BaseController;
import com.fs.common.core.domain.AjaxResult;
import com.fs.watch.domain.WatchAudioMsgLog;
import com.fs.watch.service.WatchAudioMsgLogService;
import org.springframework.beans.factory.annotation.Autowired;
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;



/**
 * 设备语音表控制层
 *
 * @author makejava
 * @since 2024-08-12 14:54:03
 */
@RestController
@RequestMapping("/watch/audio")
public class WatchAudioDataController extends BaseController {
    /**
     * 服务对象
     */
    @Autowired
    private WatchAudioMsgLogService watchAudioMsgLogService;

    @PostMapping("/insert")
    public AjaxResult insertAudioData(@RequestBody WatchAudioMsgLog data){
        return AjaxResult.success(watchAudioMsgLogService.insert(data));
    }

}

