|
@@ -5,6 +5,7 @@ import com.zy.bms.common.ServerResponse;
|
|
|
import com.zy.bms.entity.Group;
|
|
|
import com.zy.bms.pojo.io.GroupIO;
|
|
|
import com.zy.bms.service.IGroupService;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -18,7 +19,7 @@ import javax.annotation.Resource;
|
|
|
* @since 2021-06-03
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/bms/group")
|
|
|
+@RequestMapping("/bms/api/operate/group")
|
|
|
public class GroupController {
|
|
|
@Resource
|
|
|
private IGroupService groupService;
|
|
@@ -26,7 +27,7 @@ public class GroupController {
|
|
|
/**
|
|
|
* 分页查询所有项目组
|
|
|
*/
|
|
|
- @PostMapping("listPage.do")
|
|
|
+ @GetMapping("listPage.do")
|
|
|
public ServerResponse listPage(GroupIO io) {
|
|
|
return ServerResponse.success(groupService.listPage(io));
|
|
|
}
|
|
@@ -47,7 +48,7 @@ public class GroupController {
|
|
|
/**
|
|
|
* 禁用项目组
|
|
|
*/
|
|
|
- @PostMapping("forbidden.do")
|
|
|
+ @GetMapping("forbidden.do")
|
|
|
public ServerResponse forbidden(String id) {
|
|
|
groupService.update(new UpdateWrapper<Group>().set("status", 0).eq("id", id));
|
|
|
return ServerResponse.success();
|
|
@@ -56,7 +57,7 @@ public class GroupController {
|
|
|
/**
|
|
|
* 启用项目组
|
|
|
*/
|
|
|
- @PostMapping("permit.do")
|
|
|
+ @GetMapping("permit.do")
|
|
|
public ServerResponse permit(String id) {
|
|
|
groupService.update(new UpdateWrapper<Group>().set("status", 1).eq("id", id));
|
|
|
return ServerResponse.success();
|