saddfaasdvc

This commit is contained in:
2022-02-11 09:06:19 +08:00
parent bb41afa86c
commit 9db8142a1a
12 changed files with 898 additions and 13 deletions

View File

@ -0,0 +1,29 @@
package com.xkrs.controller;
import com.xkrs.service.FireService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @Author: XinYi Song
* @Date: 2022/2/11 9:03
*/
@RestController
public class FireController {
@Resource
private FireService fireService;
/**
* 根据设备编号获取火情信息
* @param code
* @return
*/
@GetMapping("/getFireInformation")
public String getFireInformation(@RequestParam("code") String code){
return fireService.getFireInformation(code);
}
}