fix:修复接口500的问题,调整接口路径
This commit is contained in:
parent
acc087cd72
commit
f9babad49d
|
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||
* @date 2026-01-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/airline/file")
|
||||
@RequestMapping("/file")
|
||||
@Tag(name = "航线管理")
|
||||
public class AirlineFileController extends BaseController {
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import java.util.List;
|
|||
* @author 拓恒
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/airline/fileGroup")
|
||||
@RequestMapping("/fileGroup")
|
||||
@Tag(name = "航线分组管理")
|
||||
public class AirlineFileGroupController extends BaseController {
|
||||
|
||||
|
|
@ -98,9 +98,9 @@ public class AirlineFileGroupController extends BaseController {
|
|||
*/
|
||||
// @RequiresPermissions("airline:group:remove")
|
||||
@Log(title = "删除分组", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{groupId}")
|
||||
@DeleteMapping
|
||||
@Operation(summary = "删除分组")
|
||||
public AjaxResult remove(@PathVariable("groupId") Long groupId) {
|
||||
public AjaxResult removeByQueryParam(@RequestParam("groupId") Long groupId) {
|
||||
return toAjax(iAirlineFileGroupService.deletegroupById(SecurityUtils.getUserId(), groupId));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import java.util.List;
|
|||
* @author 拓恒
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/airline/fileGroupInfo")
|
||||
@RequestMapping("/fileGroupInfo")
|
||||
@Tag(name = "分组航线管理")
|
||||
public class AirlineFileGroupInfoController extends BaseController {
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ public class AirlineFileGroupInfoController extends BaseController {
|
|||
* @param vo 实体对象
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
@PostMapping()
|
||||
@Operation(summary = "在当前分组下添加初始航线,必须上传分组ID")
|
||||
public AjaxResult add(@RequestBody AirlineFileGroupInfoVO vo) throws IOException {
|
||||
if (vo.getGroupId() == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue