From 08ef63eb44102f05c21e5370fd096a7f0cfee20c Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 27 二月 2026 10:05:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 46 insertions(+), 10 deletions(-)
diff --git a/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java b/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java
index 3929bf2..3c2ecde 100644
--- a/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java
+++ b/xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserController.java
@@ -21,7 +21,9 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
@@ -53,24 +55,28 @@
/**
* 根据ID列表批量查询运维用户信息
+ *
* @param ids 用户ID列表
* @return 用户列表
*/
@PostMapping("/inner/xpOperationsUser/listByIds")
- public R<List<XpOperationsUser>> listByIds(@RequestBody List<Long> ids){
+ public R<List<XpOperationsUser>> listByIds(@RequestBody List<Long> ids) {
return R.ok(xpOperationsUserService.listByIds(ids));
}
+
/**
* 根据ID查询运维用户信息
+ *
* @return 用户列表
*/
@GetMapping("/inner/xpOperationsUser/queryById")
- R<XpOperationsUser> queryById(@RequestParam Long id){
+ R<XpOperationsUser> queryById(@RequestParam Long id) {
return R.ok(xpOperationsUserService.getById(id));
}
/**
* 根据昵称查询运维用户信息
+ *
* @param nickName 昵称
* @return 运维用户列表
*/
@@ -81,6 +87,7 @@
/**
* 根据用户ID列表批量查询用户及角色信息(内部接口)
+ *
* @param ids 用户ID列表
* @return 用户及角色信息列表
*/
@@ -96,6 +103,7 @@
/**
* 根据条件查询用户及角色信息(内部接口)
+ *
* @param dto 查询条件
* @return 用户及角色信息列表
*/
@@ -112,6 +120,7 @@
/**
* 根据条件查询用户及角色信息
+ *
* @param query 查询条件
* @return 用户及角色信息列表
*/
@@ -140,57 +149,84 @@
/**
* 运维APP-个人中心-证件上传
+ *
* @param dto
* @return
*/
@ApiOperation(value = "个人中心-证件上传", tags = {"运维APP-个人中心"})
@PostMapping("/api/v1/saveCertificate")
- public R<?> saveCertificate(@Valid @RequestBody XpOperationsUserDTO dto){
+ public R<?> saveCertificate(@Valid @RequestBody XpOperationsUserDTO dto) {
xpOperationsUserService.saveCertificate(dto);
return R.ok();
}
@ApiOperation(value = "运维人员管理分页列表", tags = {"管理后台-运维执行"})
@PostMapping("/api/v1/operationsUser/pageList")
- public R<PageInfo<XpOperationsUserVO>> pageList(@RequestBody XpOperationsUserQuery query){
+ public R<PageInfo<XpOperationsUserVO>> pageList(@RequestBody XpOperationsUserQuery query) {
PageInfo<XpOperationsUserVO> pageList = xpOperationsUserService.pageList(query);
return R.ok(pageList);
}
@ApiOperation(value = "运维人员管理新增", tags = {"管理后台-运维执行"})
@PostMapping("/api/v1/operationsUser/add")
- public R<String> add(@RequestBody XpOperationsUserAddDTO dto){
+ public R<String> add(@RequestBody XpOperationsUserAddDTO dto) {
return xpOperationsUserService.addOperationsUser(dto);
}
@ApiOperation(value = "运维人员管理编辑", tags = {"管理后台-运维执行"})
@PostMapping("/api/v1/operationsUser/edit")
- public R<String> edit(@RequestBody XpOperationsUserAddDTO dto){
+ public R<String> edit(@RequestBody XpOperationsUserAddDTO dto) {
return xpOperationsUserService.editOperationsUser(dto);
}
+
@ApiOperation(value = "运维人员管理启用禁用", tags = {"管理后台-运维执行"})
@PostMapping("/api/v1/operationsUser/enableDisableById")
- public R<String> enableDisableById(@RequestBody EnableDisableDTO dto){
+ public R<String> enableDisableById(@RequestBody EnableDisableDTO dto) {
xpOperationsUserService.enableDisableById(dto);
return R.ok();
}
+
@ApiOperation(value = "运维人员管理删除", tags = {"管理后台-运维执行"})
@DeleteMapping("/api/v1/operationsUser/deleteById")
- public R<String> deleteById(@RequestParam Long id){
+ public R<String> deleteById(@RequestParam Long id) {
xpOperationsUserService.removeById(id);
return R.ok();
}
+
@ApiOperation(value = "运维人员管理重置密码", tags = {"管理后台-运维执行"})
@DeleteMapping("/api/v1/operationsUser/rePassword")
- public R<String> rePassword(@RequestBody RePasswordDTO dto){
+ public R<String> rePassword(@RequestBody RePasswordDTO dto) {
xpOperationsUserService.rePassword(dto);
return R.ok();
}
@ApiOperation(value = "运维人员管理详情", tags = {"管理后台-运维执行"})
@GetMapping("/api/v1/operationsUser/detailById")
- public R<XpOperationsUserVO> detailById(@RequestParam Long id){
+ public R<XpOperationsUserVO> detailById(@RequestParam Long id) {
XpOperationsUserVO xpOperationsUserVO = xpOperationsUserService.detailById(id);
return R.ok(xpOperationsUserVO);
}
+
+
+ @ApiOperation(value = "运维人员管理导出列表", tags = {"管理后台-运维执行"})
+ @GetMapping("/api/v1/operationsUser/exportOperationsUser")
+ public void exportOperationsUser(@RequestBody XpOperationsUserQuery query, HttpServletResponse response){
+ xpOperationsUserService.exportOperationsUser(query, response);
+ }
+
+
+ @ApiOperation(value = "运维人员管理导出模板", tags = {"管理后台-运维执行"})
+ @GetMapping("/api/v1/operationsUser/exportTemplate")
+ public void exportTemplate(HttpServletResponse response){
+ xpOperationsUserService.exportTemplate(response);
+ }
+
+
+
+ @ApiOperation(value = "运维人员管理导入数据", tags = {"管理后台-运维执行"})
+ @PostMapping("/api/v1/operationsUser/importOperationsUser")
+ public void importOperationsUser(@RequestPart("file") MultipartFile file){
+ xpOperationsUserService.importOperationsUser(file);
+ }
+
}
--
Gitblit v1.7.1