mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-09 04:57:11 +08:00
删除:删除系统管理/岗位管理(过于偏向行政业务向)
This commit is contained in:
@@ -38,13 +38,10 @@ import top.charles7c.cnadmin.common.model.vo.R;
|
||||
import top.charles7c.cnadmin.monitor.annotation.Log;
|
||||
import top.charles7c.cnadmin.system.model.query.DeptQuery;
|
||||
import top.charles7c.cnadmin.system.model.query.MenuQuery;
|
||||
import top.charles7c.cnadmin.system.model.query.PostQuery;
|
||||
import top.charles7c.cnadmin.system.model.query.RoleQuery;
|
||||
import top.charles7c.cnadmin.system.model.vo.PostVO;
|
||||
import top.charles7c.cnadmin.system.model.vo.RoleVO;
|
||||
import top.charles7c.cnadmin.system.service.DeptService;
|
||||
import top.charles7c.cnadmin.system.service.MenuService;
|
||||
import top.charles7c.cnadmin.system.service.PostService;
|
||||
import top.charles7c.cnadmin.system.service.RoleService;
|
||||
|
||||
/**
|
||||
@@ -64,7 +61,6 @@ public class CommonController {
|
||||
private final DeptService deptService;
|
||||
private final MenuService menuService;
|
||||
private final RoleService roleService;
|
||||
private final PostService postService;
|
||||
private final ContiNewAdminProperties properties;
|
||||
|
||||
@Operation(summary = "查询部门树", description = "查询树结构的部门列表")
|
||||
@@ -89,14 +85,6 @@ public class CommonController {
|
||||
return R.ok(dictList);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询岗位字典", description = "查询岗位字典列表")
|
||||
@GetMapping("/dict/post")
|
||||
public R<List<LabelValueVO<Long>>> listPostDict(@Validated PostQuery query, @Validated SortQuery sortQuery) {
|
||||
List<PostVO> list = postService.list(query, sortQuery);
|
||||
List<LabelValueVO<Long>> dictList = postService.buildDict(list);
|
||||
return R.ok(dictList);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询枚举字典", description = "查询枚举字典列表")
|
||||
@GetMapping("/dict/enum/{enumTypeName}")
|
||||
public R<List<LabelValueVO>> listEnumDict(@PathVariable String enumTypeName) {
|
||||
|
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package top.charles7c.cnadmin.webapi.controller.system;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import top.charles7c.cnadmin.common.annotation.CrudRequestMapping;
|
||||
import top.charles7c.cnadmin.common.base.BaseController;
|
||||
import top.charles7c.cnadmin.system.model.query.PostQuery;
|
||||
import top.charles7c.cnadmin.system.model.request.PostRequest;
|
||||
import top.charles7c.cnadmin.system.model.vo.PostDetailVO;
|
||||
import top.charles7c.cnadmin.system.model.vo.PostVO;
|
||||
import top.charles7c.cnadmin.system.service.PostService;
|
||||
|
||||
/**
|
||||
* 岗位管理 API
|
||||
*
|
||||
* @author Charles7c
|
||||
* @since 2023/2/25 22:54
|
||||
*/
|
||||
@Tag(name = "岗位管理 API")
|
||||
@RestController
|
||||
@CrudRequestMapping("/system/post")
|
||||
public class PostController extends BaseController<PostService, PostVO, PostDetailVO, PostQuery, PostRequest> {}
|
Reference in New Issue
Block a user