|
@@ -1,153 +1,153 @@
|
|
|
-package cn.lttc.modules.controller;
|
|
|
-
|
|
|
-import cn.lttc.modules.dto.*;
|
|
|
-import cn.lttc.modules.dto.queryParamsDTO.AppUserInfoQueryParamsDTO;
|
|
|
-import cn.lttc.modules.entity.EditEnvInfoEntity;
|
|
|
-import cn.lttc.modules.entity.EditUserInfoEntity;
|
|
|
-import cn.lttc.modules.service.AppmanageService;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.jeecg.common.api.vo.Result;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-/**
|
|
|
- * 功能描述
|
|
|
- * @author: scott
|
|
|
- * @date: 2024年07月31日 AM 8:29
|
|
|
- */
|
|
|
-
|
|
|
-//@Slf4j
|
|
|
-//@Api(tags = "应用管理")
|
|
|
-//@RestController
|
|
|
-//@RequestMapping("/applicationInfo")
|
|
|
-public class AppmanageController {
|
|
|
-
|
|
|
-// @Autowired
|
|
|
-// private AppmanageService appInfoService;
|
|
|
-//
|
|
|
-// @ApiOperation("注册应用信息")
|
|
|
-// @PostMapping("/add")
|
|
|
-// public Result<String> addAppInfo(@RequestBody AppInfoDTO appInfo) throws Exception {
|
|
|
-// System.out.println(appInfo.toString());
|
|
|
-// String message = appInfoService.addAppInfo(appInfo);
|
|
|
-// return Result.OK(message);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("删除应用信息")
|
|
|
-// @PostMapping("/delete")
|
|
|
-// public Result<String> deleteAppInfo(@RequestBody String[] infos){
|
|
|
-// System.out.println("来到删除信息:"+ Arrays.toString(infos));
|
|
|
-// String message = appInfoService.deleteAppInfo(infos);
|
|
|
-// return Result.ok(message);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("修改应用基础信息")
|
|
|
-// @PostMapping("/editBaseInfo")
|
|
|
-// public Result<Boolean> editBaseInfo(@RequestBody AppBaseInfoDTO baseInfoDTO) throws Exception {
|
|
|
-// return Result.ok(appInfoService.editBaseInfo(baseInfoDTO));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("修改应用环境信息")
|
|
|
-// @PostMapping("/editEnvInfo")
|
|
|
-// public Result<Boolean> editEnvInfo(@RequestBody EditEnvInfoEntity editEnvInfoEntity){
|
|
|
-// System.out.println("看看能不能拿到appid:"+editEnvInfoEntity.getAppid());
|
|
|
-// return Result.ok(appInfoService.editEnvInfo(editEnvInfoEntity));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("修改应用文档信息")
|
|
|
-// @PostMapping("/editDocInfo")
|
|
|
-// public Result<Boolean> editDocInfo(@RequestBody AppDocInfoDTO docInfoDTO){
|
|
|
-// return Result.ok(appInfoService.editDocInfo(docInfoDTO));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("修改应用用户信息")
|
|
|
-// @PostMapping("/editUserInfo")
|
|
|
-// public Result<Boolean> editUserInfo(@RequestBody UpdataUserInfoDTO updataUserInfoDTO){
|
|
|
-// Boolean tag = appInfoService.editUserInfo(updataUserInfoDTO);
|
|
|
-// return Result.ok(tag);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("查询应用信息列表")
|
|
|
-// @GetMapping("/query")
|
|
|
-// public Result<List<AppBaseInfoDTO>> queryAppInfoList(
|
|
|
-// @RequestParam(name = "appname", required = false) String appname,
|
|
|
-// @RequestParam(name = "apptype", required = false) String apptype,
|
|
|
-// @RequestParam(name = "appstatus", required = false) String appstatus,
|
|
|
-// @RequestParam(name = "user", required = false) String userid){
|
|
|
-// List<AppBaseInfoDTO> appbaseInfos = appInfoService.queryBaseInfo(appname, apptype, appstatus, userid);
|
|
|
-// return Result.ok(appbaseInfos);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("查询应用基础信息")
|
|
|
-// @GetMapping("/queryBaseInfoById")
|
|
|
-// public Result<AppBaseInfoDTO> queryBaseInfoById(String id){
|
|
|
-// AppBaseInfoDTO appbaseInfo = appInfoService.queryBaseInfoById(id);
|
|
|
-// return Result.ok(appbaseInfo);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("查询应用环境信息")
|
|
|
-// @GetMapping("/queryEnvInfoById")
|
|
|
-// public Result<List<AppEnvInfoDTO>> queryEnvInfoById(String appid){
|
|
|
-// List<AppEnvInfoDTO> appenvInfos = appInfoService.queryEnvInfoByAppId(appid);
|
|
|
-// return Result.ok(appenvInfos);
|
|
|
-// }
|
|
|
-//
|
|
|
-// // 查看应用文档信息
|
|
|
-// @GetMapping("/queryDocInfoById")
|
|
|
-// public Result<AppDocInfoDTO> queryDocInfoById(String id){
|
|
|
-// AppDocInfoDTO appdocInfo = appInfoService.queryDocInfoById(id);
|
|
|
-// return Result.ok(appdocInfo);
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * @return 用户集合
|
|
|
-// */
|
|
|
-// @ApiOperation("查询应用用户列表")
|
|
|
-// @PostMapping("/user/query")
|
|
|
-// public Result<EditUserInfoEntity> queryAppUser(@RequestBody AppUserInfoQueryParamsDTO queryParams) {
|
|
|
-// System.out.println("查询应用用户列表:"+queryParams.getPageNo());
|
|
|
-// if (queryParams.getPageNo() == null) queryParams.setPageNo(1);
|
|
|
-// return Result.ok(appInfoService.queryAppUser(queryParams));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @GetMapping("/queryAppInfoDetail")
|
|
|
-// public Result<AppInfoDetailDTO> queryAppInfoDetail(String appid){
|
|
|
-// AppInfoDetailDTO appDetailInfoDTO = appInfoService.queryAppInfodetail(appid);
|
|
|
-// return Result.ok(appDetailInfoDTO);
|
|
|
-// }
|
|
|
-//
|
|
|
-// // 反审核
|
|
|
-// @GetMapping("/getLock")
|
|
|
-// public Result<Boolean> checkLock(String key){
|
|
|
-// System.out.println("访问到了:"+key);
|
|
|
-// return Result.ok(appInfoService.checkLock(key));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @GetMapping("/getAppuserids")
|
|
|
-// public Result<List<String>> getAppUserids(String appid){
|
|
|
-// return Result.ok(appInfoService.getAppuserids(appid));
|
|
|
-// }
|
|
|
-//
|
|
|
-// @GetMapping("/test")
|
|
|
-// public String test(){
|
|
|
-// return "应用管理测试接口";
|
|
|
-// }
|
|
|
-//
|
|
|
-// // 解除反审核
|
|
|
-// @GetMapping("/unLock")
|
|
|
-// public Result<Boolean> uncheckLock(String key){
|
|
|
-// return Result.ok(appInfoService.uncheckLock(key));
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// // 判断当前登录用户是否为信息部用户
|
|
|
-// @GetMapping("/isInfoUser")
|
|
|
-// public Result<Boolean> isInfoUser(){
|
|
|
-// return Result.ok(appInfoService.isInfoUser());
|
|
|
-// }
|
|
|
-}
|
|
|
+//package cn.lttc.modules.controller;
|
|
|
+//
|
|
|
+//import cn.lttc.modules.dto.*;
|
|
|
+//import cn.lttc.modules.dto.queryParamsDTO.AppUserInfoQueryParamsDTO;
|
|
|
+//import cn.lttc.modules.entity.EditEnvInfoEntity;
|
|
|
+//import cn.lttc.modules.entity.EditUserInfoEntity;
|
|
|
+//import cn.lttc.modules.service.AppmanageService;
|
|
|
+//import io.swagger.annotations.Api;
|
|
|
+//import io.swagger.annotations.ApiOperation;
|
|
|
+//import lombok.extern.slf4j.Slf4j;
|
|
|
+//import org.jeecg.common.api.vo.Result;
|
|
|
+//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+//import org.springframework.web.bind.annotation.*;
|
|
|
+//import java.util.Arrays;
|
|
|
+//import java.util.List;
|
|
|
+//import java.util.Map;
|
|
|
+//
|
|
|
+///**
|
|
|
+// * 功能描述
|
|
|
+// * @author: scott
|
|
|
+// * @date: 2024年07月31日 AM 8:29
|
|
|
+// */
|
|
|
+//
|
|
|
+////@Slf4j
|
|
|
+////@Api(tags = "应用管理")
|
|
|
+////@RestController
|
|
|
+////@RequestMapping("/applicationInfo")
|
|
|
+//public class AppmanageController {
|
|
|
+//
|
|
|
+//// @Autowired
|
|
|
+//// private AppmanageService appInfoService;
|
|
|
+////
|
|
|
+//// @ApiOperation("注册应用信息")
|
|
|
+//// @PostMapping("/add")
|
|
|
+//// public Result<String> addAppInfo(@RequestBody AppInfoDTO appInfo) throws Exception {
|
|
|
+//// System.out.println(appInfo.toString());
|
|
|
+//// String message = appInfoService.addAppInfo(appInfo);
|
|
|
+//// return Result.OK(message);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("删除应用信息")
|
|
|
+//// @PostMapping("/delete")
|
|
|
+//// public Result<String> deleteAppInfo(@RequestBody String[] infos){
|
|
|
+//// System.out.println("来到删除信息:"+ Arrays.toString(infos));
|
|
|
+//// String message = appInfoService.deleteAppInfo(infos);
|
|
|
+//// return Result.ok(message);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("修改应用基础信息")
|
|
|
+//// @PostMapping("/editBaseInfo")
|
|
|
+//// public Result<Boolean> editBaseInfo(@RequestBody AppBaseInfoDTO baseInfoDTO) throws Exception {
|
|
|
+//// return Result.ok(appInfoService.editBaseInfo(baseInfoDTO));
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("修改应用环境信息")
|
|
|
+//// @PostMapping("/editEnvInfo")
|
|
|
+//// public Result<Boolean> editEnvInfo(@RequestBody EditEnvInfoEntity editEnvInfoEntity){
|
|
|
+//// System.out.println("看看能不能拿到appid:"+editEnvInfoEntity.getAppid());
|
|
|
+//// return Result.ok(appInfoService.editEnvInfo(editEnvInfoEntity));
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("修改应用文档信息")
|
|
|
+//// @PostMapping("/editDocInfo")
|
|
|
+//// public Result<Boolean> editDocInfo(@RequestBody AppDocInfoDTO docInfoDTO){
|
|
|
+//// return Result.ok(appInfoService.editDocInfo(docInfoDTO));
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("修改应用用户信息")
|
|
|
+//// @PostMapping("/editUserInfo")
|
|
|
+//// public Result<Boolean> editUserInfo(@RequestBody UpdataUserInfoDTO updataUserInfoDTO){
|
|
|
+//// Boolean tag = appInfoService.editUserInfo(updataUserInfoDTO);
|
|
|
+//// return Result.ok(tag);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("查询应用信息列表")
|
|
|
+//// @GetMapping("/query")
|
|
|
+//// public Result<List<AppBaseInfoDTO>> queryAppInfoList(
|
|
|
+//// @RequestParam(name = "appname", required = false) String appname,
|
|
|
+//// @RequestParam(name = "apptype", required = false) String apptype,
|
|
|
+//// @RequestParam(name = "appstatus", required = false) String appstatus,
|
|
|
+//// @RequestParam(name = "user", required = false) String userid){
|
|
|
+//// List<AppBaseInfoDTO> appbaseInfos = appInfoService.queryBaseInfo(appname, apptype, appstatus, userid);
|
|
|
+//// return Result.ok(appbaseInfos);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("查询应用基础信息")
|
|
|
+//// @GetMapping("/queryBaseInfoById")
|
|
|
+//// public Result<AppBaseInfoDTO> queryBaseInfoById(String id){
|
|
|
+//// AppBaseInfoDTO appbaseInfo = appInfoService.queryBaseInfoById(id);
|
|
|
+//// return Result.ok(appbaseInfo);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @ApiOperation("查询应用环境信息")
|
|
|
+//// @GetMapping("/queryEnvInfoById")
|
|
|
+//// public Result<List<AppEnvInfoDTO>> queryEnvInfoById(String appid){
|
|
|
+//// List<AppEnvInfoDTO> appenvInfos = appInfoService.queryEnvInfoByAppId(appid);
|
|
|
+//// return Result.ok(appenvInfos);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// // 查看应用文档信息
|
|
|
+//// @GetMapping("/queryDocInfoById")
|
|
|
+//// public Result<AppDocInfoDTO> queryDocInfoById(String id){
|
|
|
+//// AppDocInfoDTO appdocInfo = appInfoService.queryDocInfoById(id);
|
|
|
+//// return Result.ok(appdocInfo);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// /**
|
|
|
+//// * @return 用户集合
|
|
|
+//// */
|
|
|
+//// @ApiOperation("查询应用用户列表")
|
|
|
+//// @PostMapping("/user/query")
|
|
|
+//// public Result<EditUserInfoEntity> queryAppUser(@RequestBody AppUserInfoQueryParamsDTO queryParams) {
|
|
|
+//// System.out.println("查询应用用户列表:"+queryParams.getPageNo());
|
|
|
+//// if (queryParams.getPageNo() == null) queryParams.setPageNo(1);
|
|
|
+//// return Result.ok(appInfoService.queryAppUser(queryParams));
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @GetMapping("/queryAppInfoDetail")
|
|
|
+//// public Result<AppInfoDetailDTO> queryAppInfoDetail(String appid){
|
|
|
+//// AppInfoDetailDTO appDetailInfoDTO = appInfoService.queryAppInfodetail(appid);
|
|
|
+//// return Result.ok(appDetailInfoDTO);
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// // 反审核
|
|
|
+//// @GetMapping("/getLock")
|
|
|
+//// public Result<Boolean> checkLock(String key){
|
|
|
+//// System.out.println("访问到了:"+key);
|
|
|
+//// return Result.ok(appInfoService.checkLock(key));
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @GetMapping("/getAppuserids")
|
|
|
+//// public Result<List<String>> getAppUserids(String appid){
|
|
|
+//// return Result.ok(appInfoService.getAppuserids(appid));
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// @GetMapping("/test")
|
|
|
+//// public String test(){
|
|
|
+//// return "应用管理测试接口";
|
|
|
+//// }
|
|
|
+////
|
|
|
+//// // 解除反审核
|
|
|
+//// @GetMapping("/unLock")
|
|
|
+//// public Result<Boolean> uncheckLock(String key){
|
|
|
+//// return Result.ok(appInfoService.uncheckLock(key));
|
|
|
+//// }
|
|
|
+////
|
|
|
+////
|
|
|
+//// // 判断当前登录用户是否为信息部用户
|
|
|
+//// @GetMapping("/isInfoUser")
|
|
|
+//// public Result<Boolean> isInfoUser(){
|
|
|
+//// return Result.ok(appInfoService.isInfoUser());
|
|
|
+//// }
|
|
|
+//}
|