@RestController(value="engine-web-user-select")
@RequestMapping(value="/engine/web/user")
@ConditionalOnExpression(value="${sohelp-boot.engine.enabled:true} && ${sohelp-boot.engine.service.enabled:true}")
public class UserController
extends BaseController
request, response| 构造器和说明 |
|---|
UserController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResult<String> |
avatar(String id)
获取用户头像
根据用户ID获取用户的头像图片,并将图片数据写入响应流中
|
ApiResult<List<Map<String,Object>>> |
list(String orgId)
获取用户列表接口
根据租户ID和部门ID获取用户列表,如果部门ID为空,则返回该租户下所有用户
|
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, success, success, success, success, validateToken@GetMapping(value="/avatar") @Permission(value="") public ApiResult<String> avatar(@RequestParam String id) throws SQLException, IOException
id - 用户IDSQLException - 如果数据库查询出现异常IOException - 如果文件读写出现异常@GetMapping(value="/list") @Permission(value="") public ApiResult<List<Map<String,Object>>> list(@RequestParam(required=false) String orgId) throws TokenAuthenticationException, SQLException
orgId - 部门ID,可选参数,如果提供则只返回该部门下的用户TokenAuthenticationException - 如果令牌认证失败,则抛出此异常SQLException - 如果数据库查询出现异常,则抛出此异常Copyright © 2025. All rights reserved.