package org.hsweb.web.controller.role; import org.hsweb.web.core.logger.annotation.AccessLogger; import org.hsweb.web.core.authorize.annotation.Authorize; import org.hsweb.web.bean.common.QueryParam; import org.hsweb.web.bean.po.role.Role; import org.hsweb.web.controller.GenericController; import org.hsweb.web.core.message.ResponseMessage; import org.springframework.web.bind.annotation.RestController; import org.hsweb.web.service.role.RoleService; import org.springframework.web.bind.annotation.RequestMapping; import javax.annotation.Resource; /** * 后台管理角色控制器,继承自GenericController,使用rest+json * Created by generator 2015-8-26 10:57:38 */ @RestController @RequestMapping(value = "/role") @AccessLogger("角色管理") @Authorize(module = "role") public class RoleController extends GenericController<Role, String> { //默认服务类 @Resource private RoleService roleService; @Override public RoleService getService() { return this.roleService; } @Override public ResponseMessage list(QueryParam param) { return super.list(param).exclude(Role.class, "modules"); } }