| | |
| | | |
| | | |
| | | @ApiOperation(value = "车型分页列表", tags = "管理后台-资产-车型管理") |
| | | @PostMapping("/logan/inner/xpVehicleModel/pageList") |
| | | @PostMapping("/api/v1/xpVehicleModel/pageList") |
| | | public R<PageInfo<XpVehicleModel>> pageList(@RequestBody XpVehicleModelPageQuery query) { |
| | | PageInfo<XpVehicleModel> pageInfo = xpVehicleModelService.pageList(query); |
| | | return R.ok(pageInfo); |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "车型根据ID查询", tags = "管理后台-资产-车型管理") |
| | | @GetMapping("/logan/inner/xpVehicleModel/getById") |
| | | @GetMapping("/api/v1/xpVehicleModel/getById") |
| | | public R<XpVehicleModel> getById(@RequestParam String id) { |
| | | if (id == null || id.isEmpty()) { |
| | | return R.fail("参数错误"); |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "车型新增", tags = "管理后台-资产-车型管理") |
| | | @PostMapping("/logan/inner/xpVehicleModel/add") |
| | | @PostMapping("/api/v1/xpVehicleModel/add") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.VEHICLE_MODEL_MANAGEMENT, |
| | | operationType = AdminOperationType.ADD, |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "车型编辑", tags = "管理后台-资产-车型管理") |
| | | @PostMapping("/logan/inner/xpVehicleModel/edit") |
| | | @PostMapping("/api/v1/xpVehicleModel/edit") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.VEHICLE_MODEL_MANAGEMENT, |
| | | operationType = AdminOperationType.EDIT, |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "车型删除", tags = "管理后台-资产-车型管理") |
| | | @DeleteMapping("/logan/inner/xpVehicleModel/deleteById") |
| | | @DeleteMapping("/api/v1/xpVehicleModel/deleteById") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.VEHICLE_MODEL_MANAGEMENT, |
| | | operationType = AdminOperationType.DELETE, |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "车型全列表查询", tags = "管理后台-车型全列表查询") |
| | | @PostMapping("/logan/inner/xpVehicleModel/list") |
| | | @PostMapping("/api/v1/xpVehicleModel/list") |
| | | public R<List<XpVehicleModel>> list() { |
| | | List<XpVehicleModel> list = xpVehicleModelService.queryList(); |
| | | return R.ok(list); |