package com.hxzkmonitor.controller;
|
|
|
import com.hxzkmonitor.service.TbEquipmentService;
|
import com.hxzkmonitor.service.TbVoicetipService;
|
import com.hxzkmonitor.util.R;
|
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;
|
|
/**
|
* <p>
|
* 前端控制器
|
* </p>
|
*
|
* @author wangfei
|
* @since 2024-08-22
|
*/
|
@RestController
|
@RequestMapping("/")
|
public class TbVoicetipController {
|
@Autowired
|
TbVoicetipService tbVoicetipService;
|
|
@GetMapping("/api/getVoicetip")
|
public R getVoicetip(Integer type) {
|
return R.ok(tbVoicetipService.getVoicetip());
|
}
|
|
}
|