2424import io .swagger .v3 .oas .annotations .tags .Tag ;
2525import org .springframework .beans .factory .annotation .Autowired ;
2626import org .springframework .validation .annotation .Validated ;
27+ import org .springframework .web .bind .annotation .DeleteMapping ;
2728import org .springframework .web .bind .annotation .GetMapping ;
2829import org .springframework .web .bind .annotation .PathVariable ;
2930import org .springframework .web .bind .annotation .PostMapping ;
@@ -143,6 +144,23 @@ public Result<Platform> updatePlatform(@PathVariable Integer id, @RequestBody Pl
143144 * @param id the id
144145 * @return platform信息 result
145146 */
147+ @ Operation (summary = "删除platform信息,与js同路由" ,
148+ description = "删除platform信息,与js同路由" ,
149+ parameters = {
150+ @ Parameter (name = "id" , description = "Platform主键id" )
151+ },
152+ responses = {
153+ @ ApiResponse (responseCode = "200" , description = "返回信息" ,
154+ content = @ Content (mediaType = "application/json" ,
155+ schema = @ Schema (implementation = Platform .class ))),
156+ @ ApiResponse (responseCode = "400" , description = "请求失败" )}
157+ )
158+ @ SystemControllerLog (description = "删除platform信息,与js同路由" )
159+ @ GetMapping ("/platform/delete/{id}" )
160+ public Result <Platform > delete (@ PathVariable Integer id ) {
161+ return platformService .deletePlatformById (id );
162+ }
163+
146164 @ Operation (summary = "删除platform信息" ,
147165 description = "删除platform信息" ,
148166 parameters = {
@@ -155,7 +173,7 @@ public Result<Platform> updatePlatform(@PathVariable Integer id, @RequestBody Pl
155173 @ ApiResponse (responseCode = "400" , description = "请求失败" )}
156174 )
157175 @ SystemControllerLog (description = "删除platform信息" )
158- @ GetMapping ("/platform/delete/{id}" )
176+ @ DeleteMapping ("/platform/delete/{id}" )
159177 public Result <Platform > deletePlatform (@ PathVariable Integer id ) {
160178 return platformService .deletePlatformById (id );
161179 }
0 commit comments