|
|
@@ -1,6 +1,5 @@
|
|
|
package vip.xiaonuo.disk.controller;
|
|
|
|
|
|
-import com.qiwenshare.common.result.RestResult;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -8,6 +7,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import vip.xiaonuo.common.pojo.CommonResult;
|
|
|
import vip.xiaonuo.disk.service.FileStasticService;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -26,9 +26,9 @@ public class FileStasticController {
|
|
|
@Operation(summary = "资源概览存储空间统计接口", description = "资源概览存储空间统计接口")
|
|
|
@RequestMapping(value = "/queryList", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
- public RestResult<Map<String, Object>> queryList() {
|
|
|
+ public CommonResult<Map<String, Object>> queryList() {
|
|
|
Map<String, Object> map= fileStasticService.queryList();
|
|
|
- return RestResult.success().data(map);
|
|
|
+ return CommonResult.data(map);
|
|
|
}
|
|
|
|
|
|
|