| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_lithium_ram_db.DevInf; |
| | | import com.whyc.service.DevInfService; |
| | | import com.whyc.service.UserInfService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @Api(tags = "设备") |
| | | @RequestMapping("devInf") |
| | | public class DevInfController { |
| | | @Autowired |
| | | private DevInfService service; |
| | | |
| | | @ApiOperation(value = "添加设备") |
| | | @PostMapping("addDev") |
| | | public Response addDev(@RequestBody DevInf devInf){ |
| | | return service.addDev(devInf); |
| | | } |
| | | } |