|
@ -46,10 +46,10 @@ public class IotInterfaceController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = IotRequestMapping.Platform.addInterface)
|
|
|
@ApiOperation(value = "新增共享接口",notes = "新增共享接口")
|
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> addInterface(@ApiParam(name = "jsonData",value = "接口JSON串") @RequestParam(value = "jsonData",required = true)String json){
|
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> addInterface(@ApiParam(name = "jsonData",value = "接口JSON串") @RequestParam(value = "jsonData",required = true)String jsonData){
|
|
|
|
|
|
try {
|
|
|
iotShareInterfaceService.addInterface(json);
|
|
|
iotShareInterfaceService.addInterface(jsonData);
|
|
|
return MixEnvelop.getSuccess(IotRequestMapping.Platform.message_success_add);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -60,10 +60,10 @@ public class IotInterfaceController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = IotRequestMapping.Platform.editInterface)
|
|
|
@ApiOperation(value = "编辑共享接口",notes = "编辑共享接口")
|
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> editInterface(@ApiParam(name = "jsonData",value = "接口JSON串") @RequestParam(value = "jsonData",required = true)String json){
|
|
|
public MixEnvelop<IotShareInterfaceDO,IotShareInterfaceDO> editInterface(@ApiParam(name = "jsonData",value = "接口JSON串") @RequestParam(value = "jsonData",required = true)String jsonData){
|
|
|
|
|
|
try {
|
|
|
iotShareInterfaceService.editInterface(json);
|
|
|
iotShareInterfaceService.editInterface(jsonData);
|
|
|
return MixEnvelop.getSuccess(IotRequestMapping.Platform.message_success_edit);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -251,7 +251,7 @@ public class IotInterfaceController extends EnvelopRestEndpoint {
|
|
|
|
|
|
@PostMapping(value = IotRequestMapping.Platform.allotInterface)
|
|
|
@ApiOperation(value = "分配接口", notes = "分配接口")
|
|
|
public MixEnvelop<IotCompanyAppInterfaceDO, IotCompanyAppInterfaceDO> allotInterface(@ApiParam(name = "jsonData", value = "json", defaultValue = "")
|
|
|
public MixEnvelop<IotCompanyAppInterfaceDO, IotCompanyAppInterfaceDO> allotInterface(@ApiParam(name = "jsonData", value = "jsonData", defaultValue = "")
|
|
|
@RequestParam(value = "jsonData", required = true)String jsonData,
|
|
|
@ApiParam(name = "ids", value = "IDS", defaultValue = "")
|
|
|
@RequestParam(value = "ids",required = true) String ids) {
|