mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 09:25:54 +08:00
[功能]:1、添加http通用接口forest 2、引入justoauth 处理第三方登录 3、大致完成qq登录代码 4、前端界面修改适配第三方登录逻辑
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.SocialPlatform;
|
||||
|
||||
/**
|
||||
* 第三方登录平台控制Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-11
|
||||
*/
|
||||
public interface SocialPlatformMapper
|
||||
{
|
||||
/**
|
||||
* 查询第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatformId 第三方登录平台控制主键
|
||||
* @return 第三方登录平台控制
|
||||
*/
|
||||
public SocialPlatform selectSocialPlatformBySocialPlatformId(Long socialPlatformId);
|
||||
|
||||
/**
|
||||
* 查询第三方登录平台控制
|
||||
*
|
||||
* @param platform 第三方登录平台名称
|
||||
* @return 第三方登录平台控制
|
||||
*/
|
||||
public SocialPlatform selectSocialPlatformByPlatform(String platform);
|
||||
|
||||
/**
|
||||
* 查询第三方登录平台控制列表
|
||||
*
|
||||
* @param socialPlatform 第三方登录平台控制
|
||||
* @return 第三方登录平台控制集合
|
||||
*/
|
||||
public List<SocialPlatform> selectSocialPlatformList(SocialPlatform socialPlatform);
|
||||
|
||||
/**
|
||||
* 新增第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatform 第三方登录平台控制
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSocialPlatform(SocialPlatform socialPlatform);
|
||||
|
||||
/**
|
||||
* 修改第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatform 第三方登录平台控制
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSocialPlatform(SocialPlatform socialPlatform);
|
||||
|
||||
/**
|
||||
* 删除第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatformId 第三方登录平台控制主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialPlatformBySocialPlatformId(Long socialPlatformId);
|
||||
|
||||
/**
|
||||
* 批量删除第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatformIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialPlatformBySocialPlatformIds(Long[] socialPlatformIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.iot.domain.SocialUser;
|
||||
|
||||
/**
|
||||
* 用户第三方用户信息Mapper接口
|
||||
*
|
||||
* @author json
|
||||
* @date 2022-04-18
|
||||
*/
|
||||
public interface SocialUserMapper
|
||||
{
|
||||
/**
|
||||
* 查询用户第三方用户信息
|
||||
*
|
||||
* @param socialUserId 用户第三方用户信息主键
|
||||
* @return 用户第三方用户信息
|
||||
*/
|
||||
public SocialUser selectSocialUserBySocialUserId(Long socialUserId);
|
||||
|
||||
/**
|
||||
* 查询用户第三方用户信息列表
|
||||
*
|
||||
* @param socialUser 用户第三方用户信息
|
||||
* @return 用户第三方用户信息集合
|
||||
*/
|
||||
public List<SocialUser> selectSocialUserList(SocialUser socialUser);
|
||||
|
||||
/**
|
||||
* 新增用户第三方用户信息
|
||||
*
|
||||
* @param socialUser 用户第三方用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSocialUser(SocialUser socialUser);
|
||||
|
||||
/**
|
||||
* 修改用户第三方用户信息
|
||||
*
|
||||
* @param socialUser 用户第三方用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSocialUser(SocialUser socialUser);
|
||||
|
||||
/**
|
||||
* 删除用户第三方用户信息
|
||||
*
|
||||
* @param socialUserId 用户第三方用户信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialUserBySocialUserId(Long socialUserId);
|
||||
|
||||
/**
|
||||
* 批量删除用户第三方用户信息
|
||||
*
|
||||
* @param socialUserIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialUserBySocialUserIds(Long[] socialUserIds);
|
||||
}
|
||||
Reference in New Issue
Block a user