类 UserThirdpartController
java.lang.Object
net.sohelp.boot.admin.core.base.BaseController
net.sohelp.boot.demo.web.user.UserThirdpartController
@RestController("admin-user-thirdpart")
@RequestMapping("/admin/user/thirdpart")
public class UserThirdpartController
extends BaseController
第三方登录配置控制器,用于管理用户绑定的第三方账号信息。
- 从以下版本开始:
- 2024/12/7 12:46
- 作者:
- AaronFung
-
字段概要
从类继承的字段 net.sohelp.boot.admin.core.base.BaseController
request, response -
构造器概要
构造器 -
方法概要
从类继承的方法 net.sohelp.boot.admin.core.base.BaseController
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, response, responseStream, success, success, success, success, validateToken
-
构造器详细资料
-
UserThirdpartController
public UserThirdpartController()
-
-
方法详细资料
-
getThirdpartConfig
@GetMapping("/getThirdpartConfig") @Permission("system.user.thirdpart") public ApiResult<List<Map<String,Object>>> getThirdpartConfig() throws Exception获取当前用户的第三方登录配置列表。- 返回:
- 返回包含所有已启用并绑定的第三方平台信息的列表。
- 抛出:
Exception- 当数据库查询或系统缓存访问出错时抛出异常。
-
saveThirdpartConfig
@PostMapping("/saveThirdpartConfig") @Transactional(rollbackFor=java.lang.Exception.class) @Permission("") public ApiResult<String> saveThirdpartConfig(@RequestBody Map<String, Object> paramMap) throws Exception保存用户的第三方平台绑定信息。支持手机号和邮箱类型的验证码校验。 若存在 id 字段则更新,否则插入新记录。- 参数:
paramMap- 包含要保存的数据(如 open_id、type、code 等)。- 返回:
- 操作结果提示信息。
- 抛出:
Exception- 数据库操作或其他业务逻辑错误时抛出。
-