@RestController
@RequestMapping(value="${hsweb.web.mappings.user:user}")
@Authorize(permission="user",
description="\u7528\u6237\u7ba1\u7406")
public class UserController
extends Object
implements QueryController<UserEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>, CreateController<BindRoleUserEntity,String,BindRoleUserEntity>
| 构造器和说明 |
|---|
UserController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseMessage<String> |
add(BindRoleUserEntity data) |
ResponseMessage<Boolean> |
disable(String id) |
ResponseMessage<Boolean> |
enable(String id) |
ResponseMessage<UserEntity> |
getByPrimaryKey(String id) |
UserService |
getService() |
ResponseMessage<org.hswebframework.web.authorization.Authentication> |
getUserAuthentication(String id) |
ResponseMessage<org.hswebframework.web.commons.entity.PagerResult<UserEntity>> |
list(org.hswebframework.web.commons.entity.param.QueryParamEntity param) |
BindRoleUserEntity |
modelToEntity(BindRoleUserEntity model,
BindRoleUserEntity entity) |
ResponseMessage<Void> |
updateByPasswordPrimaryKey(String id,
String password,
String oldPassword) |
ResponseMessage<Void> |
updateByPrimaryKey(String id,
BindRoleUserEntity userModel) |
ResponseMessage<Void> |
updateLoginUserPassword(String password,
String oldPassword) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassertNotNull, count, getByPrimaryKey, listNoPagingpublic UserService getService()
getService 在接口中 CreateController<BindRoleUserEntity,String,BindRoleUserEntity>getService 在接口中 QueryController<UserEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>public ResponseMessage<org.hswebframework.web.commons.entity.PagerResult<UserEntity>> list(org.hswebframework.web.commons.entity.param.QueryParamEntity param)
list 在接口中 QueryController<UserEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>public ResponseMessage<UserEntity> getByPrimaryKey(@PathVariable String id)
getByPrimaryKey 在接口中 QueryController<UserEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>@Authorize(action="update")
@PutMapping(path="/{id:.+}")
public ResponseMessage<Void> updateByPrimaryKey(@PathVariable
String id,
@RequestBody
BindRoleUserEntity userModel)
@Authorize(action="get")
@GetMapping(path="/{id:.+}/authentication")
public ResponseMessage<org.hswebframework.web.authorization.Authentication> getUserAuthentication(@PathVariable
String id)
@Authorize(merge=false) @PutMapping(path="/password") public ResponseMessage<Void> updateLoginUserPassword(@RequestParam String password, @RequestParam String oldPassword)
@Authorize(action="update")
@PutMapping(path="/password/{id:.+}")
public ResponseMessage<Void> updateByPasswordPrimaryKey(@PathVariable
String id,
@RequestParam
String password,
@RequestParam
String oldPassword)
public ResponseMessage<String> add(@RequestBody BindRoleUserEntity data)
@Authorize(action="enable")
@PutMapping(path="/{id}/enable")
public ResponseMessage<Boolean> enable(@PathVariable
String id)
@Authorize(action="disable")
@PutMapping(path="/{id}/disable")
public ResponseMessage<Boolean> disable(@PathVariable
String id)
public BindRoleUserEntity modelToEntity(BindRoleUserEntity model, BindRoleUserEntity entity)
Copyright © 2016–2019. All rights reserved.