PermissionController.java
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//package com.uccc.admin.controller;
//
//import com.alibaba.fastjson.JSONArray;
//import com.uccc.admin.service.PermissionService;
//import com.uccc.pretty.common.Result;
//import com.uccc.pretty.common.User;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * Created by bert on 2021-09-14 11:33
// */
//
//@RestController
//@RequestMapping("/permission/")
//public class PermissionController {
//
// @Autowired
// private PermissionService permissionService;
// /**
// * permission tree struct
// * @param user
// * @param ip
// * @return
// * @throws NullPointerException
// */
// @RequestMapping(value = "tree",method = RequestMethod.POST)
// public Result permissionTree(@RequestBody User user, @RequestParam String ip) throws NullPointerException{
// Result result = new Result();
// //only admin can watch tree struct
// JSONArray jsonArray = permissionService.getTotalPermissionList();
//
// return result;
// }
//
// /**
// * create role and config role_permission
// * @param user
// * @param ip
// * @return
// * @throws NullPointerException
// */
// @RequestMapping(value = "tree",method = RequestMethod.POST)
// public Result createRole(@RequestBody User user, @RequestParam String ip) throws NullPointerException{
// Result result = new Result();
//
// return result;
// }
//}