|  |  |  | 
|---|
|  |  |  | @DeleteMapping(value = "/del") | 
|---|
|  |  |  | @ResponseBody | 
|---|
|  |  |  | public Object del(@RequestBody GbStreamParam gbStreamParam){ | 
|---|
|  |  |  | if (gbStreamService.delPlatformInfo(gbStreamParam.getGbStreams())) { | 
|---|
|  |  |  | if (gbStreamService.delPlatformInfo(gbStreamParam.getPlatformId(), gbStreamParam.getGbStreams())) { | 
|---|
|  |  |  | return "success"; | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | return "fail"; | 
|---|
|  |  |  | 
|---|
|  |  |  | @PostMapping(value = "/add") | 
|---|
|  |  |  | @ResponseBody | 
|---|
|  |  |  | public Object add(@RequestBody GbStreamParam gbStreamParam){ | 
|---|
|  |  |  | if (gbStreamService.addPlatformInfo(gbStreamParam.getGbStreams(), gbStreamParam.getPlatformId())) { | 
|---|
|  |  |  | if (gbStreamService.addPlatformInfo(gbStreamParam.getGbStreams(), gbStreamParam.getPlatformId(), gbStreamParam.getCatalogId())) { | 
|---|
|  |  |  | return "success"; | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | return "fail"; | 
|---|