dji-cloud-api module add
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.central.device;
|
||||
|
||||
import com.central.common.lb.annotation.EnableFeignInterceptor;
|
||||
import com.central.search.annotation.EnableSearchClient;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
/**
|
||||
* @author 作者 lsl E-mail: 1272745473@qq.com
|
||||
*/
|
||||
@EnableDiscoveryClient
|
||||
@EnableSearchClient
|
||||
@EnableTransactionManagement
|
||||
@EnableFeignInterceptor
|
||||
@SpringBootApplication
|
||||
public class DeviceCenterApp {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(DeviceCenterApp.class, args);
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDevice;
|
||||
import com.central.device.service.IAgeDeviceService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Device information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:47
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/age")
|
||||
@Tag(name = "Device information")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeDeviceController {
|
||||
private final IAgeDeviceService ageDeviceService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageDeviceService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeDevice model = ageDeviceService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeDevice ageDevice) {
|
||||
ageDeviceService.saveOrUpdate(ageDevice);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageDeviceService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDeviceFirmware;
|
||||
import com.central.device.service.IAgeDeviceFirmwareService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Firmware file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:54
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/firmware")
|
||||
@Tag(name = "Firmware file information")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeDeviceFirmwareController {
|
||||
private final IAgeDeviceFirmwareService ageDeviceFirmwareService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageDeviceFirmwareService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeDeviceFirmware model = ageDeviceFirmwareService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeDeviceFirmware ageDeviceFirmware) {
|
||||
ageDeviceFirmwareService.saveOrUpdate(ageDeviceFirmware);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageDeviceFirmwareService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDeviceHms;
|
||||
import com.central.device.service.IAgeDeviceHmsService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Device's hms information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:01
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/hms")
|
||||
@Tag(name = "Device's hms information")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeDeviceHmsController {
|
||||
private final IAgeDeviceHmsService ageDeviceHmsService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageDeviceHmsService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeDeviceHms model = ageDeviceHmsService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeDeviceHms ageDeviceHms) {
|
||||
ageDeviceHmsService.saveOrUpdate(ageDeviceHms);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageDeviceHmsService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDeviceLogs;
|
||||
import com.central.device.service.IAgeDeviceLogsService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Log for uploading logs
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:03
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/logs")
|
||||
@Tag(name = "Log for uploading logs")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeDeviceLogsController {
|
||||
private final IAgeDeviceLogsService ageDeviceLogsService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageDeviceLogsService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeDeviceLogs model = ageDeviceLogsService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeDeviceLogs ageDeviceLogs) {
|
||||
ageDeviceLogsService.saveOrUpdate(ageDeviceLogs);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageDeviceLogsService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDevicePayload;
|
||||
import com.central.device.service.IAgeDevicePayloadService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* The payload information of the device.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:19
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/payload")
|
||||
@Tag(name = "The payload information of the device.")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeDevicePayloadController {
|
||||
private final IAgeDevicePayloadService ageDevicePayloadService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageDevicePayloadService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeDevicePayload model = ageDevicePayloadService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeDevicePayload ageDevicePayload) {
|
||||
ageDevicePayloadService.saveOrUpdate(ageDevicePayload);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageDevicePayloadService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeFirmwareModel;
|
||||
import com.central.device.service.IAgeFirmwareModelService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:20
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/firmware/model")
|
||||
@Tag(name = "")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeFirmwareModelController {
|
||||
private final IAgeFirmwareModelService ageFirmwareModelService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageFirmwareModelService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeFirmwareModel model = ageFirmwareModelService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeFirmwareModel ageFirmwareModel) {
|
||||
ageFirmwareModelService.saveOrUpdate(ageFirmwareModel);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageFirmwareModelService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeWorkspace;
|
||||
import com.central.device.service.IAgeWorkspaceService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:26
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/workspace")
|
||||
@Tag(name = "")
|
||||
@RequiredArgsConstructor
|
||||
public class AgeWorkspaceController {
|
||||
private final IAgeWorkspaceService ageWorkspaceService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return ageWorkspaceService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
AgeWorkspace model = ageWorkspaceService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody AgeWorkspace ageWorkspace) {
|
||||
ageWorkspaceService.saveOrUpdate(ageWorkspace);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
ageWorkspaceService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.IaFile;
|
||||
import com.central.device.service.IIaFileService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Media file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:18
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/file")
|
||||
@Tag(name = "Media file information")
|
||||
@RequiredArgsConstructor
|
||||
public class IaFileController {
|
||||
private final IIaFileService iaFileService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return iaFileService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
IaFile model = iaFileService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody IaFile iaFile) {
|
||||
iaFileService.saveOrUpdate(iaFile);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
iaFileService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.LineFile;
|
||||
import com.central.device.service.ILineFileService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Wayline file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:52
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/wayline")
|
||||
@Tag(name = "Wayline file information")
|
||||
@RequiredArgsConstructor
|
||||
public class LineFileController {
|
||||
private final ILineFileService lineFileService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return lineFileService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
LineFile model = lineFileService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody LineFile lineFile) {
|
||||
lineFileService.saveOrUpdate(lineFile);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
lineFileService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.LineJob;
|
||||
import com.central.device.service.ILineJobService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Wayline mission information of the dock.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:53
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/linejob")
|
||||
@Tag(name = "Wayline mission information of the dock.")
|
||||
@RequiredArgsConstructor
|
||||
public class LineJobController {
|
||||
private final ILineJobService lineJobService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return lineJobService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
LineJob model = lineJobService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody LineJob lineJob) {
|
||||
lineJobService.saveOrUpdate(lineJob);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
lineJobService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.SFile;
|
||||
import com.central.device.service.ISFileService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* Logs file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:36
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/sfile")
|
||||
@Tag(name = "Logs file information")
|
||||
@RequiredArgsConstructor
|
||||
public class SFileController {
|
||||
private final ISFileService sFileService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return sFileService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
SFile model = sFileService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody SFile sFile) {
|
||||
sFileService.saveOrUpdate(sFile);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
sFileService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.SFileIndex;
|
||||
import com.central.device.service.ISFileIndexService;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.model.Result;
|
||||
|
||||
/**
|
||||
* The boot index table corresponding to the logs file.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:23
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/sfile/index")
|
||||
@Tag(name = "The boot index table corresponding to the logs file.")
|
||||
@RequiredArgsConstructor
|
||||
public class SFileIndexController {
|
||||
private final ISFileIndexService sFileIndexService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@Operation(summary = "查询列表")
|
||||
@Parameters({
|
||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
||||
})
|
||||
@GetMapping
|
||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
||||
return sFileIndexService.findList(params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/{id}")
|
||||
public Result findUserById(@PathVariable Long id) {
|
||||
SFileIndex model = sFileIndexService.getById(id);
|
||||
return Result.succeed(model, "查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增or更新
|
||||
*/
|
||||
@Operation(summary = "保存")
|
||||
@PostMapping
|
||||
public Result save(@RequestBody SFileIndex sFileIndex) {
|
||||
sFileIndexService.saveOrUpdate(sFileIndex);
|
||||
return Result.succeed("保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Operation(summary = "删除")
|
||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
||||
@DeleteMapping("/{id}")
|
||||
public Result delete(@PathVariable Long id) {
|
||||
sFileIndexService.removeById(id);
|
||||
return Result.succeed("删除成功");
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeDeviceFirmware;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Firmware file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:54
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeDeviceFirmwareMapper extends SuperMapper<AgeDeviceFirmware> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeDeviceFirmware> findList(Page<AgeDeviceFirmware> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeDeviceHms;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Device's hms information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeDeviceHmsMapper extends SuperMapper<AgeDeviceHms> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeDeviceHms> findList(Page<AgeDeviceHms> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeDeviceLogs;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Log for uploading logs
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:03
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeDeviceLogsMapper extends SuperMapper<AgeDeviceLogs> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeDeviceLogs> findList(Page<AgeDeviceLogs> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeDevice;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Device information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:47
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeDeviceMapper extends SuperMapper<AgeDevice> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeDevice> findList(Page<AgeDevice> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeDevicePayload;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* The payload information of the device.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:19
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeDevicePayloadMapper extends SuperMapper<AgeDevicePayload> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeDevicePayload> findList(Page<AgeDevicePayload> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeFirmwareModel;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:20
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeFirmwareModelMapper extends SuperMapper<AgeFirmwareModel> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeFirmwareModel> findList(Page<AgeFirmwareModel> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.AgeWorkspace;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:26
|
||||
*/
|
||||
@Mapper
|
||||
public interface AgeWorkspaceMapper extends SuperMapper<AgeWorkspace> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<AgeWorkspace> findList(Page<AgeWorkspace> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.IaFile;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Media file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:18
|
||||
*/
|
||||
@Mapper
|
||||
public interface IaFileMapper extends SuperMapper<IaFile> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<IaFile> findList(Page<IaFile> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.LineFile;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Wayline file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:52
|
||||
*/
|
||||
@Mapper
|
||||
public interface LineFileMapper extends SuperMapper<LineFile> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<LineFile> findList(Page<LineFile> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.LineJob;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Wayline mission information of the dock.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:53
|
||||
*/
|
||||
@Mapper
|
||||
public interface LineJobMapper extends SuperMapper<LineJob> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<LineJob> findList(Page<LineJob> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.SFileIndex;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* The boot index table corresponding to the logs file.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:23
|
||||
*/
|
||||
@Mapper
|
||||
public interface SFileIndexMapper extends SuperMapper<SFileIndex> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<SFileIndex> findList(Page<SFileIndex> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.central.device.mapper;
|
||||
|
||||
import com.central.device.model.SFile;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Logs file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:36
|
||||
*/
|
||||
@Mapper
|
||||
public interface SFileMapper extends SuperMapper<SFile> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<SFile> findList(Page<SFile> page, @Param("p") Map<String, Object> params);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Device information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:47
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_device")
|
||||
public class AgeDevice extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String deviceSn;
|
||||
private String deviceName;
|
||||
private String userId;
|
||||
private String nickname;
|
||||
private String workspaceId;
|
||||
private Integer deviceType;
|
||||
private Integer subType;
|
||||
private Integer domain;
|
||||
private String firmwareVersion;
|
||||
private Integer compatibleStatus;
|
||||
private String version;
|
||||
private String deviceIndex;
|
||||
private String childSn;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
private Long boundTime;
|
||||
private Integer boundStatus;
|
||||
private Long loginTime;
|
||||
private String deviceDesc;
|
||||
private String urlNormal;
|
||||
private String urlSelect;
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Firmware file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:54
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_device_firmware")
|
||||
public class AgeDeviceFirmware extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String firmwareId;
|
||||
private String fileName;
|
||||
private String firmwareVersion;
|
||||
private String objectKey;
|
||||
private Long fileSize;
|
||||
private String fileMd5;
|
||||
private String workspaceId;
|
||||
private String releaseNote;
|
||||
private Long releaseDate;
|
||||
private String userName;
|
||||
private Integer status;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Device's hms information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:01
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_device_hms")
|
||||
public class AgeDeviceHms extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String hmsId;
|
||||
private String tid;
|
||||
private String bid;
|
||||
private String sn;
|
||||
private Integer level;
|
||||
private Integer module;
|
||||
private String hmsKey;
|
||||
private String messageZh;
|
||||
private String messageEn;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Log for uploading logs
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:03
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_device_logs")
|
||||
public class AgeDeviceLogs extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String logsId;
|
||||
private String username;
|
||||
private String deviceSn;
|
||||
private String logsInfo;
|
||||
private Long happenTime;
|
||||
private Integer status;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* The payload information of the device.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:19
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_device_payload")
|
||||
public class AgeDevicePayload extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String payloadSn;
|
||||
private String payloadName;
|
||||
private Integer payloadType;
|
||||
private Integer subType;
|
||||
private String firmwareVersion;
|
||||
private Integer payloadIndex;
|
||||
private String deviceSn;
|
||||
private String payloadDesc;
|
||||
private String controlSource;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:20
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_firmware_model")
|
||||
public class AgeFirmwareModel extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String firmwareId;
|
||||
private String deviceName;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:26
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("manage_workspace")
|
||||
public class AgeWorkspace extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String workspaceId;
|
||||
private String workspaceName;
|
||||
private String workspaceDesc;
|
||||
private String platformName;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
private String bindCode;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Media file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:18
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("media_file")
|
||||
public class IaFile extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String fileId;
|
||||
private String fileName;
|
||||
private String filePath;
|
||||
private String workspaceId;
|
||||
private String fingerprint;
|
||||
private String tinnyFingerprint;
|
||||
private String objectKey;
|
||||
private Integer subFileType;
|
||||
private Integer isOriginal;
|
||||
private String drone;
|
||||
private String payload;
|
||||
private String jobId;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Wayline file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:52
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("wayline_file")
|
||||
public class LineFile extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String name;
|
||||
private String waylineId;
|
||||
private String droneModelKey;
|
||||
private String payloadModelKeys;
|
||||
private String workspaceId;
|
||||
private String sign;
|
||||
private Integer favorited;
|
||||
private String templateTypes;
|
||||
private String objectKey;
|
||||
private String userName;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Wayline mission information of the dock.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:53
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("wayline_job")
|
||||
public class LineJob extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String jobId;
|
||||
private String name;
|
||||
private String fileId;
|
||||
private String dockSn;
|
||||
private String workspaceId;
|
||||
private Integer taskType;
|
||||
private Integer waylineType;
|
||||
private Long executeTime;
|
||||
private Long completedTime;
|
||||
private String username;
|
||||
private Long beginTime;
|
||||
private Long endTime;
|
||||
private Integer errorCode;
|
||||
private Integer status;
|
||||
private Integer rthAltitude;
|
||||
private Integer outOfControl;
|
||||
private Integer mediaCount;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
private String parentId;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Logs file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:36
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("logs_file")
|
||||
public class SFile extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String fileId;
|
||||
private String name;
|
||||
private Long size;
|
||||
private String logsId;
|
||||
private String deviceSn;
|
||||
private String fingerprint;
|
||||
private String objectKey;
|
||||
private Integer status;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.central.device.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.central.common.model.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* The boot index table corresponding to the logs file.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:23
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("logs_file_index")
|
||||
public class SFileIndex extends SuperEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private Integer bootIndex;
|
||||
private String fileId;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
private Long size;
|
||||
private String deviceSn;
|
||||
private Integer domain;
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeDeviceFirmware;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Firmware file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:54
|
||||
*/
|
||||
public interface IAgeDeviceFirmwareService extends ISuperService<AgeDeviceFirmware> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeDeviceFirmware> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeDeviceHms;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Device's hms information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:01
|
||||
*/
|
||||
public interface IAgeDeviceHmsService extends ISuperService<AgeDeviceHms> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeDeviceHms> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeDeviceLogs;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Log for uploading logs
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:03
|
||||
*/
|
||||
public interface IAgeDeviceLogsService extends ISuperService<AgeDeviceLogs> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeDeviceLogs> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeDevicePayload;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* The payload information of the device.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:19
|
||||
*/
|
||||
public interface IAgeDevicePayloadService extends ISuperService<AgeDevicePayload> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeDevicePayload> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeDevice;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Device information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:47
|
||||
*/
|
||||
public interface IAgeDeviceService extends ISuperService<AgeDevice> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeDevice> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeFirmwareModel;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:20
|
||||
*/
|
||||
public interface IAgeFirmwareModelService extends ISuperService<AgeFirmwareModel> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeFirmwareModel> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.AgeWorkspace;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:26
|
||||
*/
|
||||
public interface IAgeWorkspaceService extends ISuperService<AgeWorkspace> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<AgeWorkspace> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.IaFile;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Media file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:18
|
||||
*/
|
||||
public interface IIaFileService extends ISuperService<IaFile> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<IaFile> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.LineFile;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Wayline file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:52
|
||||
*/
|
||||
public interface ILineFileService extends ISuperService<LineFile> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<LineFile> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.LineJob;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Wayline mission information of the dock.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:53
|
||||
*/
|
||||
public interface ILineJobService extends ISuperService<LineJob> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<LineJob> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.SFileIndex;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* The boot index table corresponding to the logs file.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:23
|
||||
*/
|
||||
public interface ISFileIndexService extends ISuperService<SFileIndex> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<SFileIndex> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.device.service;
|
||||
|
||||
import com.central.device.model.SFile;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.central.common.service.ISuperService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Logs file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:36
|
||||
*/
|
||||
public interface ISFileService extends ISuperService<SFile> {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
PageResult<SFile> findList(Map<String, Object> params);
|
||||
}
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDeviceFirmware;
|
||||
import com.central.device.mapper.AgeDeviceFirmwareMapper;
|
||||
import com.central.device.service.IAgeDeviceFirmwareService;
|
||||
|
||||
/**
|
||||
* Firmware file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:54
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeDeviceFirmwareServiceImpl extends SuperServiceImpl<AgeDeviceFirmwareMapper, AgeDeviceFirmware> implements IAgeDeviceFirmwareService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeDeviceFirmware> findList(Map<String, Object> params){
|
||||
Page<AgeDeviceFirmware> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeDeviceFirmware> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeDeviceFirmware>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDeviceHms;
|
||||
import com.central.device.mapper.AgeDeviceHmsMapper;
|
||||
import com.central.device.service.IAgeDeviceHmsService;
|
||||
|
||||
/**
|
||||
* Device's hms information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:01
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeDeviceHmsServiceImpl extends SuperServiceImpl<AgeDeviceHmsMapper, AgeDeviceHms> implements IAgeDeviceHmsService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeDeviceHms> findList(Map<String, Object> params){
|
||||
Page<AgeDeviceHms> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeDeviceHms> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeDeviceHms>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDeviceLogs;
|
||||
import com.central.device.mapper.AgeDeviceLogsMapper;
|
||||
import com.central.device.service.IAgeDeviceLogsService;
|
||||
|
||||
/**
|
||||
* Log for uploading logs
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:03
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeDeviceLogsServiceImpl extends SuperServiceImpl<AgeDeviceLogsMapper, AgeDeviceLogs> implements IAgeDeviceLogsService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeDeviceLogs> findList(Map<String, Object> params){
|
||||
Page<AgeDeviceLogs> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeDeviceLogs> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeDeviceLogs>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDevicePayload;
|
||||
import com.central.device.mapper.AgeDevicePayloadMapper;
|
||||
import com.central.device.service.IAgeDevicePayloadService;
|
||||
|
||||
/**
|
||||
* The payload information of the device.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:19
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeDevicePayloadServiceImpl extends SuperServiceImpl<AgeDevicePayloadMapper, AgeDevicePayload> implements IAgeDevicePayloadService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeDevicePayload> findList(Map<String, Object> params){
|
||||
Page<AgeDevicePayload> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeDevicePayload> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeDevicePayload>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeDevice;
|
||||
import com.central.device.mapper.AgeDeviceMapper;
|
||||
import com.central.device.service.IAgeDeviceService;
|
||||
|
||||
/**
|
||||
* Device information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:47
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeDeviceServiceImpl extends SuperServiceImpl<AgeDeviceMapper, AgeDevice> implements IAgeDeviceService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeDevice> findList(Map<String, Object> params){
|
||||
Page<AgeDevice> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeDevice> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeDevice>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeFirmwareModel;
|
||||
import com.central.device.mapper.AgeFirmwareModelMapper;
|
||||
import com.central.device.service.IAgeFirmwareModelService;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:20
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeFirmwareModelServiceImpl extends SuperServiceImpl<AgeFirmwareModelMapper, AgeFirmwareModel> implements IAgeFirmwareModelService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeFirmwareModel> findList(Map<String, Object> params){
|
||||
Page<AgeFirmwareModel> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeFirmwareModel> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeFirmwareModel>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.AgeWorkspace;
|
||||
import com.central.device.mapper.AgeWorkspaceMapper;
|
||||
import com.central.device.service.IAgeWorkspaceService;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:26
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AgeWorkspaceServiceImpl extends SuperServiceImpl<AgeWorkspaceMapper, AgeWorkspace> implements IAgeWorkspaceService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<AgeWorkspace> findList(Map<String, Object> params){
|
||||
Page<AgeWorkspace> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<AgeWorkspace> list = baseMapper.findList(page, params);
|
||||
return PageResult.<AgeWorkspace>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.IaFile;
|
||||
import com.central.device.mapper.IaFileMapper;
|
||||
import com.central.device.service.IIaFileService;
|
||||
|
||||
/**
|
||||
* Media file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:52:18
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class IaFileServiceImpl extends SuperServiceImpl<IaFileMapper, IaFile> implements IIaFileService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<IaFile> findList(Map<String, Object> params){
|
||||
Page<IaFile> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<IaFile> list = baseMapper.findList(page, params);
|
||||
return PageResult.<IaFile>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.LineFile;
|
||||
import com.central.device.mapper.LineFileMapper;
|
||||
import com.central.device.service.ILineFileService;
|
||||
|
||||
/**
|
||||
* Wayline file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:52
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class LineFileServiceImpl extends SuperServiceImpl<LineFileMapper, LineFile> implements ILineFileService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<LineFile> findList(Map<String, Object> params){
|
||||
Page<LineFile> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<LineFile> list = baseMapper.findList(page, params);
|
||||
return PageResult.<LineFile>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.LineJob;
|
||||
import com.central.device.mapper.LineJobMapper;
|
||||
import com.central.device.service.ILineJobService;
|
||||
|
||||
/**
|
||||
* Wayline mission information of the dock.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:51:53
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class LineJobServiceImpl extends SuperServiceImpl<LineJobMapper, LineJob> implements ILineJobService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<LineJob> findList(Map<String, Object> params){
|
||||
Page<LineJob> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<LineJob> list = baseMapper.findList(page, params);
|
||||
return PageResult.<LineJob>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.SFileIndex;
|
||||
import com.central.device.mapper.SFileIndexMapper;
|
||||
import com.central.device.service.ISFileIndexService;
|
||||
|
||||
/**
|
||||
* The boot index table corresponding to the logs file.
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:23
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class SFileIndexServiceImpl extends SuperServiceImpl<SFileIndexMapper, SFileIndex> implements ISFileIndexService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<SFileIndex> findList(Map<String, Object> params){
|
||||
Page<SFileIndex> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<SFileIndex> list = baseMapper.findList(page, params);
|
||||
return PageResult.<SFileIndex>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.central.device.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.central.common.model.PageResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.common.service.impl.SuperServiceImpl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import com.central.device.model.SFile;
|
||||
import com.central.device.mapper.SFileMapper;
|
||||
import com.central.device.service.ISFileService;
|
||||
|
||||
/**
|
||||
* Logs file information
|
||||
*
|
||||
* @author lsl
|
||||
* @date 2024-12-19 17:53:36
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class SFileServiceImpl extends SuperServiceImpl<SFileMapper, SFile> implements ISFileService {
|
||||
/**
|
||||
* 列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResult<SFile> findList(Map<String, Object> params){
|
||||
Page<SFile> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
List<SFile> list = baseMapper.findList(page, params);
|
||||
return PageResult.<SFile>builder().data(list).code(0).count(page.getTotal()).build();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user