fix:文件上传优化
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
package org.nl.module.device.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
@@ -47,6 +48,7 @@ public class BaseDataDeviceController {
|
||||
*/
|
||||
@Operation(summary = "获取设备列表")
|
||||
@GetMapping("/list")
|
||||
@SaIgnore
|
||||
public CommonResult list(BaseDeviceQuery query,PageQuery page) {
|
||||
Page<BaseDataDevice> result = baseDataDeviceService.page(page.build(), query.build());
|
||||
return CommonResult.data(result);
|
||||
@@ -83,6 +85,7 @@ public class BaseDataDeviceController {
|
||||
}
|
||||
@Operation(summary = "设备组件列表")
|
||||
@GetMapping("compentList")
|
||||
@SaIgnore
|
||||
public CommonResult<List> compentList() {
|
||||
return CommonResult.data(baseDataDeviceService.list());
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ public class BaseDataDevice implements Serializable {
|
||||
@Schema(description = "图标地址")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "图标路径地址")
|
||||
private String path;
|
||||
@Schema(description = "图标文件ID")
|
||||
private String fileId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
Reference in New Issue
Block a user