类 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
  • 构造器详细资料

    • 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 - 数据库操作或其他业务逻辑错误时抛出。