lyh
3 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.lxzn.api.ucenter;
 
import com.lxzn.framework.domain.ucenter.User;
import com.lxzn.framework.domain.ucenter.ext.UserDepartExt;
import com.lxzn.framework.domain.ucenter.request.UserPasswordRequest;
import com.lxzn.framework.domain.ucenter.request.UserRequest;
import com.lxzn.framework.model.response.DataResponseResult;
import com.lxzn.framework.model.response.QueryListResponseResult;
import com.lxzn.framework.model.response.QueryPageResponseResult;
import com.lxzn.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
 
@Api(value = "用户管理",description = "用户管理")
public interface UserControllerApi {
 
    @ApiOperation("新增用户")
    ResponseResult addUser(User user);
 
    @ApiOperation("编辑用户")
    ResponseResult editUser(String id, User user);
 
    @ApiOperation("根据id获取用户信息")
    DataResponseResult<User> findUserById(String id);
 
    @ApiOperation("分页查询用户列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
    })
    QueryPageResponseResult<UserDepartExt> findUserPageList(int page, int size, UserRequest userRequest);
 
    @ApiOperation("删除用户")
    ResponseResult deleteUser(String id);
 
    @ApiOperation("修改密码")
    ResponseResult setPassword(UserPasswordRequest userPassword);
 
    @ApiOperation("指定用户的角色")
    ResponseResult assignAddRoles(String userId, String[] roleIds);
 
    @ApiOperation("移除用户的角色")
    ResponseResult assignRemoveRoles(String userId, String[] roleIds);
 
    @ApiOperation("指定用户所属部门")
    ResponseResult assignAddDeparts(String userId, String[] departIds);
 
    @ApiOperation("指定用户所属部门")
    ResponseResult assignRemoveDeparts(String userId, String[] departIds);
 
    @ApiOperation("获取用户列表")
    QueryListResponseResult<UserDepartExt> findAll();
}