|
@ -46,7 +46,7 @@ public class IotInterfaceController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = IotRequestMapping.Platform.addInterface)
|
|
@PostMapping(value = IotRequestMapping.Platform.addInterface)
|
|
@ApiOperation(value = "新增共享接口",notes = "新增共享接口")
|
|
@ApiOperation(value = "新增共享接口",notes = "新增共享接口")
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> addInterface(@ApiParam(name = "JSON",value = "接口JSON串") @RequestParam(value = "JSON",required = true)String json){
|
|
|
|
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> addInterface(@ApiParam(name = "jsonData",value = "接口JSON串") @RequestParam(value = "jsonData",required = true)String json){
|
|
|
|
|
|
try {
|
|
try {
|
|
iotShareInterfaceService.addInterface(json);
|
|
iotShareInterfaceService.addInterface(json);
|
|
@ -60,7 +60,7 @@ public class IotInterfaceController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = IotRequestMapping.Platform.editInterface)
|
|
@PostMapping(value = IotRequestMapping.Platform.editInterface)
|
|
@ApiOperation(value = "编辑共享接口",notes = "编辑共享接口")
|
|
@ApiOperation(value = "编辑共享接口",notes = "编辑共享接口")
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> editInterface(@ApiParam(name = "JSON",value = "接口JSON串") @RequestParam(value = "JSON",required = true)String json){
|
|
|
|
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> editInterface(@ApiParam(name = "jsonData",value = "接口JSON串") @RequestParam(value = "jsonData",required = true)String json){
|
|
|
|
|
|
try {
|
|
try {
|
|
iotShareInterfaceService.editInterface(json);
|
|
iotShareInterfaceService.editInterface(json);
|
|
@ -254,7 +254,7 @@ public class IotInterfaceController extends EnvelopRestEndpoint {
|
|
public MixEnvelop<IotCompanyAppInterfaceDO, IotCompanyAppInterfaceDO> allotInterface(@ApiParam(name = "jsonData", value = "json", defaultValue = "")
|
|
public MixEnvelop<IotCompanyAppInterfaceDO, IotCompanyAppInterfaceDO> allotInterface(@ApiParam(name = "jsonData", value = "json", defaultValue = "")
|
|
@RequestParam(value = "jsonData", required = true)String jsonData,
|
|
@RequestParam(value = "jsonData", required = true)String jsonData,
|
|
@ApiParam(name = "ids", value = "IDS", defaultValue = "")
|
|
@ApiParam(name = "ids", value = "IDS", defaultValue = "")
|
|
@RequestBody List<String> ids) {
|
|
|
|
|
|
@RequestParam(value = "ids",required = true) String ids) {
|
|
|
|
|
|
try {
|
|
try {
|
|
iotCompanyAppInterfaceService.allotInterface(jsonData,ids);
|
|
iotCompanyAppInterfaceService.allotInterface(jsonData,ids);
|