package com.fgkj.controller;
|
|
import com.fgkj.util.*;
|
|
import com.fgkj.dto.BadBatt_mon_flag;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.BadBatt_mon_flagService;
|
import io.swagger.annotations.Api;
|
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;
|
|
@RequestMapping("BadBattMonFlag")
|
@RestController
|
@Api
|
public class BadBatt_mon_flagController{
|
|
@Autowired
|
private BadBatt_mon_flagService service;
|
|
//往标识表中插入一笔数据
|
@PostMapping("/")
|
public ServiceModel add(@RequestBody BadBatt_mon_flag monflag) {
|
// BadBatt_mon_flag monflag = getGson().fromJson(json, BadBatt_mon_flag.class);
|
ServiceModel model = service.add(monflag);
|
return model;
|
}
|
|
|
|
|
}
|