| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.BadBatt_mon_flagService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("badBattMonFlag") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "badBattMonFlag接口") |
| | | public class BadBatt_mon_flagController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //往标识表中插入一笔数据 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="往标识表中插入一笔数据") |
| | | public ServiceModel add(@RequestBody BadBatt_mon_flag monFlag) { |
| | | // BadBatt_mon_flag monflag = getGson().fromJson(json, BadBatt_mon_flag.class); |
| | | ServiceModel model = service.add(monFlag); |