package com.fgkj.controller.Ld9;
|
|
import com.fgkj.controller.ActionUtil;
|
import com.fgkj.dto.BadLd9_mon_flag;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Ld9.BadLd9_mon_flagService;
|
import io.swagger.annotations.Api;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
@RequestMapping("BadLd9MonFlag")
|
@RestController
|
@Api
|
public class BadLd9_mon_flagController{
|
|
@Autowired
|
private BadLd9_mon_flagService service;
|
|
//往标识表中插入一笔数据
|
@PostMapping("")
|
public ServiceModel add(@RequestBody BadLd9_mon_flag monflag) {
|
// BadLd9_mon_flag monflag = getGson().fromJson(json, BadLd9_mon_flag.class);
|
ServiceModel model = service.add(monflag);
|
return model;
|
}
|
|
}
|