|
@@ -73,4 +73,11 @@ public class NewsController {
|
|
|
public Result upload(MultipartFile file, @PathVariable String type) {
|
|
|
return entityService.upload(file, type);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "排序", notes = "sort: 序号")
|
|
|
+ @GetMapping(value = "sort/{id}/{sort}")
|
|
|
+ public Result sort(@PathVariable Integer sort, @PathVariable Long id) {
|
|
|
+ entityService.setSort(id, sort);
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
}
|