ModuleController.java
1.13 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
package com.bsth.controller.sys;
import com.bsth.controller.BaseController;
import com.bsth.entity.sys.Module;
import com.bsth.service.sys.ModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("module")
public class ModuleController extends BaseController<Module, Integer>{
@Autowired
ModuleService moduleService;
@RequestMapping(value = "/findByGroupType")
public List<Module> findByGroupType(@RequestParam String group){
return moduleService.findByGroupType(group);
}
/**
*
* @Title: findByRoleId
* @Description: TODO(根据角色获取功能模块)
* @param @param roleId
* @throws
*/
@RequestMapping(value = "/findByCurrentUser")
public List<Module> findByCurrentUser(){
return moduleService.findByCurrentUser();
}
@RequestMapping(value = "/all_distinct")
public List<Module> findAll_distinct(){
return moduleService.findAll_distinct();
}
}