ModuleController.java
973 Bytes
package com.bsth.controller;
import java.util.List;
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 com.bsth.entity.sys.Module;
import com.bsth.service.ModuleService;
@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();
}
}