@RestController
@RequestMapping(value="${hsweb.web.mappings.role:role}")
@Authorize(permission="role",
description="\u89d2\u8272\u7ba1\u7406")
public class RoleController
extends Object
implements SimpleGenericEntityController<RoleEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>
| 构造器和说明 |
|---|
RoleController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseMessage |
disable(String id) |
ResponseMessage |
enable(String id) |
RoleService |
getService() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodelToEntityassertNotNull, count, getByPrimaryKey, getByPrimaryKey, list, listNoPagingsaveOrUpdate, updateByPrimaryKeyadddeleteByPrimaryKeypublic RoleService getService()
getService 在接口中 CreateController<RoleEntity,String,RoleEntity>getService 在接口中 DeleteController<RoleEntity,String>getService 在接口中 QueryController<RoleEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleCrudController<RoleEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleGenericEntityController<RoleEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 UpdateController<RoleEntity,String,RoleEntity>@PutMapping(value="/disable/{id:.+}")
@Authorize(action="disable")
public ResponseMessage disable(@PathVariable
String id)
@PutMapping(value="/enable/{id}")
@Authorize(action="enable")
public ResponseMessage enable(@PathVariable
String id)
Copyright © 2016–2019. All rights reserved.