feat: 更改字段类型
This commit is contained in:
@@ -13,5 +13,5 @@ public interface SchisandraAuthFeignService {
|
||||
Boolean wechatRegister(@RequestParam(name = "appId") String appId, @RequestParam(name = "openId") String openId, @RequestParam("clientId") String clientId);
|
||||
|
||||
@GetMapping("/auth/user/getUserInfo")
|
||||
Result<SchisandraAuthUserDTO> getUserInfo(@RequestParam("userId") Long userId);
|
||||
Result<SchisandraAuthUserDTO> getUserInfo(@RequestParam("userId") String userId);
|
||||
}
|
||||
|
@@ -128,7 +128,7 @@ public class SchisandraAuthPermissionController {
|
||||
* @date: 2024/7/8 下午4:09
|
||||
*/
|
||||
@GetMapping("selectUserPermission")
|
||||
public Result<Object> selectUserPermission(@RequestParam("userId") Long userId) {
|
||||
public Result<Object> selectUserPermission(@RequestParam("userId") String userId) {
|
||||
if (userId == null) {
|
||||
return Result.fail("userId不能为空");
|
||||
}
|
||||
|
@@ -1,118 +1,118 @@
|
||||
package com.schisandra.auth.application.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.schisandra.auth.application.convert.SchisandraAuthRoleDTOConverter;
|
||||
import com.schisandra.auth.application.dto.SchisandraAuthRoleDTO;
|
||||
import com.schisandra.auth.common.entity.Result;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleController
|
||||
* Package:com.schisandra.auth.application.controller
|
||||
* Description:AuthRoleController层
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/4 - 20:47
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/role/")
|
||||
@Slf4j
|
||||
public class SchisandraAuthRoleController {
|
||||
@Resource
|
||||
private SchisandraAuthRoleDomainService schisandraAuthRoleDomainService;
|
||||
|
||||
/**
|
||||
* @description 更新角色信息
|
||||
* @param schisandraAuthRoleDTO
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:05
|
||||
*/
|
||||
@PostMapping("update")
|
||||
public Object update(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
||||
try {
|
||||
if (log.isInfoEnabled()) {
|
||||
log.info("RoleController.update.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||
}
|
||||
checkRoleInfo(schisandraAuthRoleDTO);
|
||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.update.error:{}", e.getMessage(), e);
|
||||
return Result.fail("更新角色信息失败");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description 查询角色信息
|
||||
* @param schisandraAuthRoleDTO
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:05
|
||||
*/
|
||||
@PostMapping("query")
|
||||
public Result query(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
||||
try{
|
||||
if(log.isInfoEnabled()){
|
||||
log.info("RoleController.select.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||
}
|
||||
checkRoleInfo(schisandraAuthRoleDTO);
|
||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||
return Result.ok(schisandraAuthRoleDomainService.select(authRoleBO));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.select.error:{}", e.getMessage(), e);
|
||||
return Result.fail("查询角色信息失败");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description 添加角色信息
|
||||
* @param schisandraAuthRoleDTO
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:12
|
||||
*/
|
||||
@PostMapping("insert")
|
||||
public Result insert(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
||||
try{
|
||||
if(log.isInfoEnabled()){
|
||||
log.info("RoleController.insert.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||
}
|
||||
checkRoleInfo(schisandraAuthRoleDTO);
|
||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
||||
return Result.fail("添加角色信息失败");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description 删除角色信息
|
||||
* @param id
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:12
|
||||
*/
|
||||
@GetMapping("delete/{id}")
|
||||
public Result delete(@PathVariable Long id){
|
||||
try{
|
||||
if(log.isInfoEnabled()){
|
||||
log.info("RoleController.insert.dto:{}",id);
|
||||
}
|
||||
return Result.ok(schisandraAuthRoleDomainService.delete(id));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
||||
return Result.fail("删除角色信息失败");
|
||||
}
|
||||
}
|
||||
private void checkRoleInfo(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
||||
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleName()), "角色名不能为空");
|
||||
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleKey()), "角色key值不能为空");
|
||||
}
|
||||
}
|
||||
package com.schisandra.auth.application.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.schisandra.auth.application.convert.SchisandraAuthRoleDTOConverter;
|
||||
import com.schisandra.auth.application.dto.SchisandraAuthRoleDTO;
|
||||
import com.schisandra.auth.common.entity.Result;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleController
|
||||
* Package:com.schisandra.auth.application.controller
|
||||
* Description:AuthRoleController层
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/4 - 20:47
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/role/")
|
||||
@Slf4j
|
||||
public class SchisandraAuthRoleController {
|
||||
@Resource
|
||||
private SchisandraAuthRoleDomainService schisandraAuthRoleDomainService;
|
||||
|
||||
/**
|
||||
* @description 更新角色信息
|
||||
* @param schisandraAuthRoleDTO
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:05
|
||||
*/
|
||||
@PostMapping("update")
|
||||
public Object update(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
||||
try {
|
||||
if (log.isInfoEnabled()) {
|
||||
log.info("RoleController.update.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||
}
|
||||
checkRoleInfo(schisandraAuthRoleDTO);
|
||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.update.error:{}", e.getMessage(), e);
|
||||
return Result.fail("更新角色信息失败");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description 查询角色信息
|
||||
* @param schisandraAuthRoleDTO
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:05
|
||||
*/
|
||||
@PostMapping("query")
|
||||
public Result query(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
||||
try{
|
||||
if(log.isInfoEnabled()){
|
||||
log.info("RoleController.select.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||
}
|
||||
checkRoleInfo(schisandraAuthRoleDTO);
|
||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||
return Result.ok(schisandraAuthRoleDomainService.select(authRoleBO));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.select.error:{}", e.getMessage(), e);
|
||||
return Result.fail("查询角色信息失败");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description 添加角色信息
|
||||
* @param schisandraAuthRoleDTO
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:12
|
||||
*/
|
||||
@PostMapping("insert")
|
||||
public Result insert(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
||||
try{
|
||||
if(log.isInfoEnabled()){
|
||||
log.info("RoleController.insert.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||
}
|
||||
checkRoleInfo(schisandraAuthRoleDTO);
|
||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
||||
return Result.fail("添加角色信息失败");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @description 删除角色信息
|
||||
* @param id
|
||||
* @return
|
||||
* @author fanyang
|
||||
* @date 2024/4/3 22:12
|
||||
*/
|
||||
@GetMapping("delete/{id}")
|
||||
public Result delete(@PathVariable String id){
|
||||
try{
|
||||
if(log.isInfoEnabled()){
|
||||
log.info("RoleController.insert.dto:{}",id);
|
||||
}
|
||||
return Result.ok(schisandraAuthRoleDomainService.delete(id));
|
||||
} catch (Exception e) {
|
||||
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
||||
return Result.fail("删除角色信息失败");
|
||||
}
|
||||
}
|
||||
private void checkRoleInfo(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
||||
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleName()), "角色名不能为空");
|
||||
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleKey()), "角色key值不能为空");
|
||||
}
|
||||
}
|
||||
|
@@ -249,9 +249,9 @@ public class SchisandraAuthUserController {
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/2 0:37
|
||||
*/
|
||||
private void userInfoPersistence(Long authUserId) {
|
||||
private void userInfoPersistence(String authUserId) {
|
||||
// 查询用户角色并存入redis
|
||||
SchisandraAuthRole schisandraAuthRole = schisandraAuthRoleDomainService.queryByRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
SchisandraAuthRole schisandraAuthRole = schisandraAuthRoleDomainService.queryByRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
String roleKey = redisUtil.buildKey(AUTH_ROLE_PREFIX, String.valueOf(authUserId));
|
||||
List<SchisandraAuthRole> roleList = new LinkedList<>();
|
||||
roleList.add(schisandraAuthRole);
|
||||
@@ -259,10 +259,10 @@ public class SchisandraAuthUserController {
|
||||
|
||||
// 查询用户权限并存入redis
|
||||
SchisandraAuthRolePermissionDTO schisandraAuthRolePermission = new SchisandraAuthRolePermissionDTO();
|
||||
schisandraAuthRolePermission.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
schisandraAuthRolePermission.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO = SchisandraAuthRolePermissionDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRolePermission);
|
||||
List<SchisandraAuthRolePermissionBO> rolePermissionList = schisandraAuthRolePermissionDomainService.queryByRoleId(schisandraAuthRolePermissionBO);
|
||||
List<Long> permissionIdList = rolePermissionList.stream()
|
||||
List<String> permissionIdList = rolePermissionList.stream()
|
||||
.map(SchisandraAuthRolePermissionBO::getPermissionId).collect(Collectors.toList());
|
||||
List<SchisandraAuthPermission> permissionList = schisandraAuthPermissionDomainService.queryListByIds(permissionIdList);
|
||||
String permissionKey = redisUtil.buildKey(AUTH_PERMISSION_PREFIX, String.valueOf(authUserId));
|
||||
@@ -382,7 +382,7 @@ public class SchisandraAuthUserController {
|
||||
* @date: 2024/7/11 9:39
|
||||
*/
|
||||
@GetMapping("getUserInfo")
|
||||
public Result<SchisandraAuthUserDTO> getUserInfo(@RequestParam("userId") Long userId) {
|
||||
public Result<SchisandraAuthUserDTO> getUserInfo(@RequestParam("userId") String userId) {
|
||||
SchisandraAuthUserDTO schisandraAuthUserDTO = SchisandraAuthUserDTOConverter.INSTANCE.convertBOToDTO(schisandraAuthUserDomainService.queryById(userId));
|
||||
if ( schisandraAuthUserDTO== null) {
|
||||
return Result.fail("该用户不存在");
|
||||
|
@@ -16,7 +16,7 @@ public class SchisandraAuthPermissionDTO implements Serializable {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
private String id;
|
||||
/**
|
||||
* 权限名称
|
||||
*/
|
||||
@@ -24,7 +24,7 @@ public class SchisandraAuthPermissionDTO implements Serializable {
|
||||
/**
|
||||
* 权限父id
|
||||
*/
|
||||
private Long parentId;
|
||||
private String parentId;
|
||||
/**
|
||||
* 权限类型
|
||||
*/
|
||||
|
@@ -1,59 +1,59 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDTO
|
||||
* Package:com.schisandra.auth.application.dto
|
||||
* Description:角色DTO
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/4 - 21:34
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRoleDTO implements Serializable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* 角色关键字
|
||||
*/
|
||||
private String roleKey;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
}
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDTO
|
||||
* Package:com.schisandra.auth.application.dto
|
||||
* Description:角色DTO
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/4 - 21:34
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRoleDTO implements Serializable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* 角色关键字
|
||||
*/
|
||||
private String roleKey;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
}
|
||||
|
@@ -1,58 +1,58 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRolePermissionDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 权限id
|
||||
*/
|
||||
private Long permissionId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除 0-未删除 1-已删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRolePermissionDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
* 权限id
|
||||
*/
|
||||
private String permissionId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除 0-未删除 1-已删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,131 +1,131 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-05-23 20:00:28
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 介绍
|
||||
*/
|
||||
private String introduce;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
* 博客
|
||||
*/
|
||||
private String blog;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
private String location;
|
||||
|
||||
/**
|
||||
* 公司
|
||||
*/
|
||||
private String company;
|
||||
|
||||
/**
|
||||
* 激活码
|
||||
*/
|
||||
private String activeCode;
|
||||
/**
|
||||
* 确认密码
|
||||
*/
|
||||
private String confirmPassword;
|
||||
|
||||
/**
|
||||
* 旋转图片验证token
|
||||
*/
|
||||
private String token;
|
||||
|
||||
/**
|
||||
* 旋转图片验证的旋转角度
|
||||
*/
|
||||
private Double deg;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-05-23 20:00:28
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 介绍
|
||||
*/
|
||||
private String introduce;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
* 博客
|
||||
*/
|
||||
private String blog;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
private String location;
|
||||
|
||||
/**
|
||||
* 公司
|
||||
*/
|
||||
private String company;
|
||||
|
||||
/**
|
||||
* 激活码
|
||||
*/
|
||||
private String activeCode;
|
||||
/**
|
||||
* 确认密码
|
||||
*/
|
||||
private String confirmPassword;
|
||||
|
||||
/**
|
||||
* 旋转图片验证token
|
||||
*/
|
||||
private String token;
|
||||
|
||||
/**
|
||||
* 旋转图片验证的旋转角度
|
||||
*/
|
||||
private Double deg;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,58 +1,58 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserRoleDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserRoleDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,58 +1,58 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserAuthDTO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long socialUserId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserAuthDTO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String socialUserId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,143 +1,143 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserDTO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 第三方系统的唯一ID
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户的授权令牌
|
||||
*/
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的授权令牌的有效期
|
||||
*/
|
||||
private Integer expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的 open id
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 第三方用户的 ID
|
||||
*/
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String accessCode;
|
||||
|
||||
/**
|
||||
* 第三方用户的 union id
|
||||
*/
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 第三方用户授予的权限
|
||||
*/
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String tokenType;
|
||||
|
||||
/**
|
||||
* id token
|
||||
*/
|
||||
private String idToken;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macAlgorithm;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macKey;
|
||||
|
||||
/**
|
||||
* 用户的授权code
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthToken;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserDTO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 第三方系统的唯一ID
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户的授权令牌
|
||||
*/
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的授权令牌的有效期
|
||||
*/
|
||||
private Integer expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的 open id
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 第三方用户的 ID
|
||||
*/
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String accessCode;
|
||||
|
||||
/**
|
||||
* 第三方用户的 union id
|
||||
*/
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 第三方用户授予的权限
|
||||
*/
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String tokenType;
|
||||
|
||||
/**
|
||||
* id token
|
||||
*/
|
||||
private String idToken;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macAlgorithm;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macKey;
|
||||
|
||||
/**
|
||||
* 用户的授权code
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthToken;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -18,11 +18,11 @@ SchisandraAuthPermissionBO implements Serializable {
|
||||
|
||||
|
||||
|
||||
private Long id;
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Long parentId;
|
||||
private String parentId;
|
||||
|
||||
private Integer type;
|
||||
|
||||
|
@@ -1,61 +1,61 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleBO
|
||||
* Package:com.schisandra.auth.domain.bo
|
||||
* Description:(SchisandraAuthRoleBO)实体类
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/1 - 0:20
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRoleBO implements Serializable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* 角色关键字
|
||||
*/
|
||||
private String roleKey;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
}
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleBO
|
||||
* Package:com.schisandra.auth.domain.bo
|
||||
* Description:(SchisandraAuthRoleBO)实体类
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/1 - 0:20
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRoleBO implements Serializable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* 角色关键字
|
||||
*/
|
||||
private String roleKey;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
}
|
||||
|
@@ -1,58 +1,58 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRolePermissionBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long permissionId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthRolePermissionBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String permissionId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,112 +1,112 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-05-23 20:00:28
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String introduce;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String blog;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String location;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String company;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-05-23 20:00:28
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String introduce;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String blog;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String location;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String company;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,58 +1,58 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserRoleBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthUserRoleBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,57 +1,57 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserAuthBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long socialUserId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserAuthBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String socialUserId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,142 +1,142 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 第三方系统的唯一ID
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户的授权令牌
|
||||
*/
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的授权令牌的有效期
|
||||
*/
|
||||
private Integer expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的 open id
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 第三方用户的 ID
|
||||
*/
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String accessCode;
|
||||
|
||||
/**
|
||||
* 第三方用户的 union id
|
||||
*/
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 第三方用户授予的权限
|
||||
*/
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String tokenType;
|
||||
|
||||
/**
|
||||
* id token
|
||||
*/
|
||||
private String idToken;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macAlgorithm;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macKey;
|
||||
|
||||
/**
|
||||
* 用户的授权code
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthToken;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
/**
|
||||
* bo
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraSocialUserBO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 第三方系统的唯一ID
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户的授权令牌
|
||||
*/
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的授权令牌的有效期
|
||||
*/
|
||||
private Integer expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的 open id
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 第三方用户的 ID
|
||||
*/
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String accessCode;
|
||||
|
||||
/**
|
||||
* 第三方用户的 union id
|
||||
*/
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 第三方用户授予的权限
|
||||
*/
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
private String tokenType;
|
||||
|
||||
/**
|
||||
* id token
|
||||
*/
|
||||
private String idToken;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macAlgorithm;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
private String macKey;
|
||||
|
||||
/**
|
||||
* 用户的授权code
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthToken;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,21 +1,21 @@
|
||||
package com.schisandra.auth.domain.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.schisandra.auth.common.entity.Result;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface SchisandraAuthPermissionDomainService {
|
||||
|
||||
Result<Object> selectUserPermissionTree(Long userId);
|
||||
int update(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
Object insert(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
SchisandraAuthPermissionBO select(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
|
||||
List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList);
|
||||
}
|
||||
package com.schisandra.auth.domain.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.schisandra.auth.common.entity.Result;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface SchisandraAuthPermissionDomainService {
|
||||
|
||||
Result<Object> selectUserPermissionTree(String userId);
|
||||
int update(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
Object insert(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
SchisandraAuthPermissionBO select(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||
|
||||
List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList);
|
||||
}
|
||||
|
@@ -1,56 +1,56 @@
|
||||
package com.schisandra.auth.domain.service;
|
||||
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDomainService
|
||||
* Package:com.schisandra.auth.domain.service
|
||||
* Description:角色领域Service
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/4 - 20:56
|
||||
* @Version: v1.0
|
||||
*/
|
||||
|
||||
public interface SchisandraAuthRoleDomainService {
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 更新角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:02
|
||||
*/
|
||||
Object update(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 删除角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
Object delete(Long id);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 新增角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
|
||||
int insert(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 查询角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:04
|
||||
*/
|
||||
|
||||
Object select(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
SchisandraAuthRole queryByRoleId(Long code);
|
||||
}
|
||||
package com.schisandra.auth.domain.service;
|
||||
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDomainService
|
||||
* Package:com.schisandra.auth.domain.service
|
||||
* Description:角色领域Service
|
||||
*
|
||||
* @Author:fanyang
|
||||
* @Create:2024/4/4 - 20:56
|
||||
* @Version: v1.0
|
||||
*/
|
||||
|
||||
public interface SchisandraAuthRoleDomainService {
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 更新角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:02
|
||||
*/
|
||||
Object update(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 删除角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
Object delete(String id);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 新增角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
|
||||
int insert(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 查询角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:04
|
||||
*/
|
||||
|
||||
Object select(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
SchisandraAuthRole queryByRoleId(String code);
|
||||
}
|
||||
|
@@ -85,7 +85,7 @@ public interface SchisandraAuthUserDomainService {
|
||||
* @date: 2024/5/26 17:27
|
||||
*/
|
||||
@Cacheable(value = "userInfo", key = "#userId")
|
||||
SchisandraAuthUserBO queryById(Long userId);
|
||||
SchisandraAuthUserBO queryById(String userId);
|
||||
|
||||
/**
|
||||
* @param schisandraAuthUserBO
|
||||
@@ -102,7 +102,7 @@ public interface SchisandraAuthUserDomainService {
|
||||
* @author msz
|
||||
*/
|
||||
@CacheEvict(value = "userInfo",key = "id")
|
||||
Object deleteById(Long id);
|
||||
Object deleteById(String id);
|
||||
|
||||
SchisandraAuthUser queryByPhone(String phone);
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package com.schisandra.auth.domain.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.schisandra.auth.common.entity.Result;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
||||
import com.schisandra.auth.domain.convert.SchisandraAuthPermissionBOConverter;
|
||||
@@ -15,7 +14,9 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
@@ -27,20 +28,19 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
||||
@Resource
|
||||
SchisandraAuthRolePermissionService schisandraAuthRolePermissionService;
|
||||
|
||||
public List<Object> selectTree(List<SchisandraAuthPermissionBO> schisandraAuthPermissions,List<SchisandraAuthPermissionBO> schisandraAuthPermissionsParent) {
|
||||
public List<Object> selectTree(List<SchisandraAuthPermissionBO> schisandraAuthPermissions, List<SchisandraAuthPermissionBO> schisandraAuthPermissionsParent) {
|
||||
List<Object> selectTreeList1 = new ArrayList<>();
|
||||
schisandraAuthPermissionsParent.forEach(e -> {
|
||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissions1 = new ArrayList<>();
|
||||
schisandraAuthPermissions.forEach(e1 -> {
|
||||
if (e1.getParentId()==e.getId()){
|
||||
if (e1.getParentId() == e.getId()) {
|
||||
schisandraAuthPermissions1.add(e1);
|
||||
}
|
||||
});
|
||||
if (schisandraAuthPermissions1.size()==0){
|
||||
if (schisandraAuthPermissions1.size() == 0) {
|
||||
selectTreeList1.add(e);
|
||||
}
|
||||
else {
|
||||
List<Object> list1 = selectTree(schisandraAuthPermissions,schisandraAuthPermissions1);
|
||||
} else {
|
||||
List<Object> list1 = selectTree(schisandraAuthPermissions, schisandraAuthPermissions1);
|
||||
e.setRoutes(list1);
|
||||
selectTreeList1.add(e);
|
||||
}
|
||||
@@ -49,29 +49,29 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Object> selectUserPermissionTree(Long userId) {
|
||||
public Result<Object> selectUserPermissionTree(String userId) {
|
||||
SchisandraAuthUserRole schisandraAuthRole = schisandraAuthUserRoleService.queryById(userId);
|
||||
if (schisandraAuthRole == null||schisandraAuthRole.getRoleId()==null) {
|
||||
if (schisandraAuthRole == null || schisandraAuthRole.getRoleId() == null) {
|
||||
return Result.fail("用户没有角色");
|
||||
}
|
||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRole.getRoleId());
|
||||
if (schisandraAuthRolePermissions.size()==0){
|
||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(Long.valueOf(schisandraAuthRole.getRoleId()));
|
||||
if (schisandraAuthRolePermissions.size() == 0) {
|
||||
return Result.fail("当前角色用户没有权限");
|
||||
}
|
||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissions =new ArrayList<>();
|
||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissions = new ArrayList<>();
|
||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissionParents = new ArrayList<>();
|
||||
schisandraAuthRolePermissions.forEach(e -> {
|
||||
schisandraAuthPermissions.add(SchisandraAuthPermissionBOConverter.INSTANCE.convertEntityToBO(schisandraAuthPermissionService.queryById(e.getPermissionId())));
|
||||
});
|
||||
|
||||
schisandraAuthPermissions.forEach(e -> {
|
||||
if (e.getParentId()==0){
|
||||
if (Long.parseLong(e.getParentId()) == 0) {
|
||||
schisandraAuthPermissionParents.add(e);
|
||||
}
|
||||
});
|
||||
HashMap<Object,Object>map=new HashMap<>();
|
||||
map.put("path","/");
|
||||
map.put("routes",selectTree(schisandraAuthPermissions,schisandraAuthPermissionParents));
|
||||
HashMap<Object, Object> map = new HashMap<>();
|
||||
map.put("path", "/");
|
||||
map.put("routes", selectTree(schisandraAuthPermissions, schisandraAuthPermissionParents));
|
||||
return Result.ok(map);
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
||||
@Override
|
||||
public Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO) {
|
||||
SchisandraAuthPermission schisandraAuthPermission = SchisandraAuthPermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthPermissionBO);
|
||||
boolean schisandraAuthPermission1 = schisandraAuthPermissionService.deleteById(schisandraAuthPermission.getId());
|
||||
boolean schisandraAuthPermission1 = schisandraAuthPermissionService.deleteById(Long.valueOf(schisandraAuthPermission.getId()));
|
||||
return schisandraAuthPermission1;
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList) {
|
||||
public List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList) {
|
||||
return schisandraAuthPermissionService.queryListByIds(permissionIdList);
|
||||
}
|
||||
}
|
||||
|
@@ -1,61 +1,61 @@
|
||||
package com.schisandra.auth.domain.service.impl;
|
||||
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.domain.convert.SchisandraAuthRoleBOConverter;
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDomainServiceImpl
|
||||
* Package:com.schisandra.auth.domain.service.impl
|
||||
* Description:角色信息的增删改查
|
||||
*
|
||||
* @Author:
|
||||
* @Create:2024/4/4 - 21:05
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SchisandraAuthRoleDomainServiceImpl implements SchisandraAuthRoleDomainService {
|
||||
@Resource
|
||||
private SchisandraAuthRoleService schisandraAuthRoleService;
|
||||
|
||||
@Override
|
||||
public Object update(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||
SchisandraAuthRole update = schisandraAuthRoleService.update(schisandraAuthRole);
|
||||
return update;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object delete(Long id) {
|
||||
boolean isDeleted = schisandraAuthRoleService.deleteById(id);
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||
return schisandraAuthRoleService.insert(schisandraAuthRole);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object select(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||
if (schisandraAuthRoleBO.getId() != null) {
|
||||
SchisandraAuthRole schisandraAuthRole1 = schisandraAuthRoleService.queryById(schisandraAuthRoleBO.getId());
|
||||
return schisandraAuthRole1;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchisandraAuthRole queryByRoleId(Long code) {
|
||||
return schisandraAuthRoleService.queryByRoleId(code);
|
||||
}
|
||||
}
|
||||
package com.schisandra.auth.domain.service.impl;
|
||||
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.domain.convert.SchisandraAuthRoleBOConverter;
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDomainServiceImpl
|
||||
* Package:com.schisandra.auth.domain.service.impl
|
||||
* Description:角色信息的增删改查
|
||||
*
|
||||
* @Author:
|
||||
* @Create:2024/4/4 - 21:05
|
||||
* @Version: v1.0
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SchisandraAuthRoleDomainServiceImpl implements SchisandraAuthRoleDomainService {
|
||||
@Resource
|
||||
private SchisandraAuthRoleService schisandraAuthRoleService;
|
||||
|
||||
@Override
|
||||
public Object update(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||
SchisandraAuthRole update = schisandraAuthRoleService.update(schisandraAuthRole);
|
||||
return update;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object delete(String id) {
|
||||
boolean isDeleted = schisandraAuthRoleService.deleteById(id);
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||
return schisandraAuthRoleService.insert(schisandraAuthRole);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object select(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||
if (schisandraAuthRoleBO.getId() != null) {
|
||||
SchisandraAuthRole schisandraAuthRole1 = schisandraAuthRoleService.queryById(schisandraAuthRoleBO.getId());
|
||||
return schisandraAuthRole1;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchisandraAuthRole queryByRoleId(String code) {
|
||||
return schisandraAuthRoleService.queryByRoleId(code);
|
||||
}
|
||||
}
|
||||
|
@@ -1,58 +1,58 @@
|
||||
package com.schisandra.auth.domain.service.impl;
|
||||
|
||||
|
||||
import com.schisandra.auth.common.enums.IsDeletedFlagEnum;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRolePermissionBO;
|
||||
import com.schisandra.auth.domain.convert.SchisandraAuthRolePermissionBOConverter;
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthRolePermissionDomainService;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 领域service实现了
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SchisandraAuthRolePermissionDomainServiceImpl implements SchisandraAuthRolePermissionDomainService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthRolePermissionService schisandraAuthRolePermissionService;
|
||||
|
||||
@Override
|
||||
public Boolean add(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||
return schisandraAuthRolePermissionService.insert(schisandraAuthRolePermission) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean delete(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
||||
schisandraAuthRolePermission.setId(schisandraAuthRolePermissionBO.getId());
|
||||
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.DELETED.getCode());
|
||||
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthRolePermissionBO> queryByRoleId(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRolePermission.getRoleId());
|
||||
List<SchisandraAuthRolePermissionBO> schisandraAuthRolePermissionBOS = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertEntityToBOList(schisandraAuthRolePermissions);
|
||||
return schisandraAuthRolePermissionBOS;
|
||||
}
|
||||
|
||||
}
|
||||
package com.schisandra.auth.domain.service.impl;
|
||||
|
||||
|
||||
import com.schisandra.auth.common.enums.IsDeletedFlagEnum;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRolePermissionBO;
|
||||
import com.schisandra.auth.domain.convert.SchisandraAuthRolePermissionBOConverter;
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthRolePermissionDomainService;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 领域service实现了
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SchisandraAuthRolePermissionDomainServiceImpl implements SchisandraAuthRolePermissionDomainService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthRolePermissionService schisandraAuthRolePermissionService;
|
||||
|
||||
@Override
|
||||
public Boolean add(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||
return schisandraAuthRolePermissionService.insert(schisandraAuthRolePermission) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean delete(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
||||
schisandraAuthRolePermission.setId(schisandraAuthRolePermissionBO.getId());
|
||||
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.DELETED.getCode());
|
||||
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthRolePermissionBO> queryByRoleId(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(Long.valueOf(schisandraAuthRolePermission.getRoleId()));
|
||||
List<SchisandraAuthRolePermissionBO> schisandraAuthRolePermissionBOS = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertEntityToBOList(schisandraAuthRolePermissions);
|
||||
return schisandraAuthRolePermissionBOS;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -99,7 +99,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
if (insert) {
|
||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||
schisandraAuthUserRoleBO.setUserId(authUser.getId());
|
||||
schisandraAuthUserRoleBO.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
schisandraAuthUserRoleBO.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
||||
return schisandraAuthUserRoleService.insert(schisandraAuthUserRole) > 0;
|
||||
} else {
|
||||
@@ -174,7 +174,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
* @date 2024/4/3 22:10
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthUserBO queryById(Long userId) {
|
||||
public SchisandraAuthUserBO queryById(String userId) {
|
||||
SchisandraAuthUser schisandraAuthUser = schisandraAuthUserService.queryById(userId);
|
||||
SchisandraAuthUserBO schisandraAuthUserBO1 = SchisandraAuthUserBOConverter.INSTANCE.convertEntityToBO(schisandraAuthUser);
|
||||
return schisandraAuthUserBO1;
|
||||
@@ -201,7 +201,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
* @date 2024/4/3 22:30
|
||||
*/
|
||||
@Override
|
||||
public Object deleteById(Long id) {
|
||||
public Object deleteById(String id) {
|
||||
return schisandraAuthUserService.deleteById(id);
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
public Boolean wechatRegister(String appId, String openId,String clientId) {
|
||||
SchisandraSocialUser socialUser = schisandraSocialUserService.selectByOpenId(openId);
|
||||
if (ObjectUtils.isNotEmpty(socialUser)) {
|
||||
Long userId = socialUser.getId();
|
||||
String userId = socialUser.getId();
|
||||
// redis存储用户角色与权限信息
|
||||
userInfoPersistence(userId);
|
||||
StpUtil.login(userId);
|
||||
@@ -260,12 +260,12 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Long authUserId = schisandraAuthUser.getId();
|
||||
Long socialUserId = schisandraSocialUser.getId();
|
||||
String authUserId = schisandraAuthUser.getId();
|
||||
String socialUserId = schisandraSocialUser.getId();
|
||||
// 建立社会用户与用户信息映射
|
||||
SchisandraSocialUserAuthBO socialUserAuthBO = new SchisandraSocialUserAuthBO();
|
||||
socialUserAuthBO.setUserId(authUserId);
|
||||
socialUserAuthBO.setSocialUserId(socialUserId);
|
||||
socialUserAuthBO.setUserId(String.valueOf(authUserId));
|
||||
socialUserAuthBO.setSocialUserId(String.valueOf(socialUserId));
|
||||
SchisandraSocialUserAuth schisandraSocialUserAuth = SchisandraSocialUserAuthBOConverter.INSTANCE.convertBOToEntity(socialUserAuthBO);
|
||||
int insertMapper = schisandraSocialUserAuthService.insert(schisandraSocialUserAuth);
|
||||
if (insertMapper <= 0) {
|
||||
@@ -276,8 +276,8 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
}
|
||||
// 建立用户与角色映射关系
|
||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||
schisandraAuthUserRoleBO.setUserId(authUserId);
|
||||
schisandraAuthUserRoleBO.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
schisandraAuthUserRoleBO.setUserId(String.valueOf(authUserId));
|
||||
schisandraAuthUserRoleBO.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
schisandraAuthUserRoleBO.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
||||
int insert = schisandraAuthUserRoleService.insert(schisandraAuthUserRole);
|
||||
@@ -338,7 +338,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
}
|
||||
return Result.fail("Social User update fail");
|
||||
}
|
||||
Long userId = socialUser.getId();
|
||||
String userId = socialUser.getId();
|
||||
// redis存储用户角色与权限信息
|
||||
userInfoPersistence(userId);
|
||||
StpUtil.login(userId, SaLoginConfig.setToken(token.getAccessToken()));
|
||||
@@ -388,13 +388,13 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
}
|
||||
return Result.fail("insertAuthUser fail");
|
||||
}
|
||||
Long authUserId = schisandraAuthUser.getId();
|
||||
Long socialUserId = schisandraSocialUser.getId();
|
||||
String authUserId = schisandraAuthUser.getId();
|
||||
String socialUserId = schisandraSocialUser.getId();
|
||||
|
||||
// 建立社会用户与用户信息映射
|
||||
SchisandraSocialUserAuthBO socialUserAuthBO = new SchisandraSocialUserAuthBO();
|
||||
socialUserAuthBO.setUserId(authUserId);
|
||||
socialUserAuthBO.setSocialUserId(socialUserId);
|
||||
socialUserAuthBO.setUserId(String.valueOf(authUserId));
|
||||
socialUserAuthBO.setSocialUserId(String.valueOf(socialUserId));
|
||||
SchisandraSocialUserAuth schisandraSocialUserAuth = SchisandraSocialUserAuthBOConverter.INSTANCE.convertBOToEntity(socialUserAuthBO);
|
||||
int insertMapper = schisandraSocialUserAuthService.insert(schisandraSocialUserAuth);
|
||||
if (insertMapper <= 0) {
|
||||
@@ -406,8 +406,8 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
|
||||
// 建立用户与角色映射关系
|
||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||
schisandraAuthUserRoleBO.setUserId(authUserId);
|
||||
schisandraAuthUserRoleBO.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
schisandraAuthUserRoleBO.setUserId(String.valueOf(authUserId));
|
||||
schisandraAuthUserRoleBO.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
schisandraAuthUserRoleBO.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
||||
int insert = schisandraAuthUserRoleService.insert(schisandraAuthUserRole);
|
||||
@@ -432,9 +432,9 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/2 0:37
|
||||
*/
|
||||
private void userInfoPersistence(Long authUserId) {
|
||||
private void userInfoPersistence(String authUserId) {
|
||||
// 查询用户角色并存入redis
|
||||
SchisandraAuthRole schisandraAuthRole = schisandraAuthRoleService.queryByRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
SchisandraAuthRole schisandraAuthRole = schisandraAuthRoleService.queryByRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
String roleKey = redisUtil.buildKey(AUTH_ROLE_PREFIX, String.valueOf(authUserId));
|
||||
List<SchisandraAuthRole> roleList = new LinkedList<>();
|
||||
roleList.add(schisandraAuthRole);
|
||||
@@ -442,9 +442,9 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
|
||||
// 查询用户权限并存入redis
|
||||
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
||||
schisandraAuthRolePermission.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
||||
List<SchisandraAuthRolePermission> rolePermissionList = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRolePermission.getRoleId());
|
||||
List<Long> permissionIdList = rolePermissionList.stream()
|
||||
schisandraAuthRolePermission.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||
List<SchisandraAuthRolePermission> rolePermissionList = schisandraAuthRolePermissionService.queryByRoleId(Long.valueOf(schisandraAuthRolePermission.getRoleId()));
|
||||
List<String> permissionIdList = rolePermissionList.stream()
|
||||
.map(SchisandraAuthRolePermission::getPermissionId).collect(Collectors.toList());
|
||||
List<SchisandraAuthPermission> permissionList = schisandraAuthPermissionService.queryListByIds(permissionIdList);
|
||||
String permissionKey = redisUtil.buildKey(AUTH_PERMISSION_PREFIX, String.valueOf(authUserId));
|
||||
|
@@ -21,7 +21,7 @@ import java.util.Date;
|
||||
public class SchisandraAuthPermission implements Serializable {
|
||||
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
|
@@ -1,70 +1,70 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthRole)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-22 21:35:31
|
||||
*/
|
||||
@Data
|
||||
@Table(value = "schisandra_auth_role")
|
||||
public class SchisandraAuthRole implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* 角色关键字
|
||||
*/
|
||||
private String roleKey;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthRole)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-22 21:35:31
|
||||
*/
|
||||
@Data
|
||||
@Table(value = "schisandra_auth_role")
|
||||
public class SchisandraAuthRole implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* 角色关键字
|
||||
*/
|
||||
private String roleKey;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@Column(isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,72 +1,72 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_auth_role_permission")
|
||||
public class SchisandraAuthRolePermission implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("role_id")
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("permission_id")
|
||||
private Long permissionId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_auth_role_permission")
|
||||
public class SchisandraAuthRolePermission implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("role_id")
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("permission_id")
|
||||
private String permissionId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,137 +1,137 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
|
||||
import com.mybatisflex.annotation.*;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import com.mybatisflex.core.mask.Masks;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-05-23 20:00:28
|
||||
*/
|
||||
@Data
|
||||
@Table(value = "schisandra_auth_user")
|
||||
public class SchisandraAuthUser implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
@Column(value = "user_name")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
@Column("nick_name")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("email")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("phone")
|
||||
@ColumnMask(Masks.FIXED_PHONE)
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "password")
|
||||
@ColumnMask(Masks.PASSWORD)
|
||||
private String password;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("gender")
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("avatar")
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("status")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("introduce")
|
||||
private String introduce;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("ext_json")
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("blog")
|
||||
private String blog;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("location")
|
||||
private String location;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("company")
|
||||
private String company;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
|
||||
import com.mybatisflex.annotation.*;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import com.mybatisflex.core.mask.Masks;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-05-23 20:00:28
|
||||
*/
|
||||
@Data
|
||||
@Table(value = "schisandra_auth_user")
|
||||
public class SchisandraAuthUser implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private String id;
|
||||
|
||||
@Column(value = "user_name")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
@Column("nick_name")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("email")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("phone")
|
||||
@ColumnMask(Masks.FIXED_PHONE)
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "password")
|
||||
@ColumnMask(Masks.PASSWORD)
|
||||
private String password;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("gender")
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("avatar")
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("status")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("introduce")
|
||||
private String introduce;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("ext_json")
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("blog")
|
||||
private String blog;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("location")
|
||||
private String location;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("company")
|
||||
private String company;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,73 +1,73 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_auth_user_role")
|
||||
public class SchisandraAuthUserRole implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("user_id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("role_id")
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_auth_user_role")
|
||||
public class SchisandraAuthUserRole implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("user_id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("role_id")
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(value = "created_time",onInsertValue = "now()")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(value = "update_time",onUpdateValue = "now()")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,174 +1,174 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_social_user")
|
||||
public class SchisandraSocialUser implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 第三方系统的唯一ID
|
||||
*/
|
||||
@Column("uuid")
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
@Column("source")
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户的授权令牌
|
||||
*/
|
||||
@Column("access_token")
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的授权令牌的有效期
|
||||
*/
|
||||
@Column("expire_in")
|
||||
private Integer expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
@Column("refresh_token")
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的 open id
|
||||
*/
|
||||
@Column("open_id")
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 第三方用户的 ID
|
||||
*/
|
||||
@Column("uid")
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
@Column("access_code")
|
||||
private String accessCode;
|
||||
|
||||
/**
|
||||
* 第三方用户的 union id
|
||||
*/
|
||||
@Column("union_id")
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 第三方用户授予的权限
|
||||
*/
|
||||
@Column("scope")
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
@Column("token_type")
|
||||
private String tokenType;
|
||||
|
||||
/**
|
||||
* id token
|
||||
*/
|
||||
@Column("id_token")
|
||||
private String idToken;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
@Column("mac_algorithm")
|
||||
private String macAlgorithm;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
@Column("mac_key")
|
||||
private String macKey;
|
||||
|
||||
/**
|
||||
* 用户的授权code
|
||||
*/
|
||||
@Column("code")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
@Column("oauth_token")
|
||||
private String oauthToken;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
@Column("oauth_token_secret")
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Column("status")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("ext_json")
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_social_user")
|
||||
public class SchisandraSocialUser implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 第三方系统的唯一ID
|
||||
*/
|
||||
@Column("uuid")
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
@Column("source")
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户的授权令牌
|
||||
*/
|
||||
@Column("access_token")
|
||||
private String accessToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的授权令牌的有效期
|
||||
*/
|
||||
@Column("expire_in")
|
||||
private Integer expireIn;
|
||||
|
||||
/**
|
||||
* 刷新令牌
|
||||
*/
|
||||
@Column("refresh_token")
|
||||
private String refreshToken;
|
||||
|
||||
/**
|
||||
* 第三方用户的 open id
|
||||
*/
|
||||
@Column("open_id")
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 第三方用户的 ID
|
||||
*/
|
||||
@Column("uid")
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
@Column("access_code")
|
||||
private String accessCode;
|
||||
|
||||
/**
|
||||
* 第三方用户的 union id
|
||||
*/
|
||||
@Column("union_id")
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 第三方用户授予的权限
|
||||
*/
|
||||
@Column("scope")
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 个别平台的授权信息
|
||||
*/
|
||||
@Column("token_type")
|
||||
private String tokenType;
|
||||
|
||||
/**
|
||||
* id token
|
||||
*/
|
||||
@Column("id_token")
|
||||
private String idToken;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
@Column("mac_algorithm")
|
||||
private String macAlgorithm;
|
||||
|
||||
/**
|
||||
* 小米平台用户的附带属性
|
||||
*/
|
||||
@Column("mac_key")
|
||||
private String macKey;
|
||||
|
||||
/**
|
||||
* 用户的授权code
|
||||
*/
|
||||
@Column("code")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
@Column("oauth_token")
|
||||
private String oauthToken;
|
||||
|
||||
/**
|
||||
* Twitter平台用户的附带属性
|
||||
*/
|
||||
@Column("oauth_token_secret")
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Column("status")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("ext_json")
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,72 +1,72 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_social_user_auth")
|
||||
public class SchisandraSocialUserAuth implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("user_id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("social_user_id")
|
||||
private Long socialUserId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Data
|
||||
@Table("schisandra_social_user_auth")
|
||||
public class SchisandraSocialUserAuth implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("user_id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column("social_user_id")
|
||||
private String socialUserId;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Column("created_by")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column("created_time")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Column("update_by")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column("update_time")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "is_deleted",isLogicDelete = true)
|
||||
private Integer isDeleted;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,51 +1,49 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthPermission)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-04-11 13:00:10
|
||||
*/
|
||||
public interface SchisandraAuthPermissionService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthPermission queryById(Long id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return int
|
||||
*/
|
||||
int update(SchisandraAuthPermission schisandraAuthPermission);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList);
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthPermission)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-04-11 13:00:10
|
||||
*/
|
||||
public interface SchisandraAuthPermissionService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthPermission queryById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return int
|
||||
*/
|
||||
int update(SchisandraAuthPermission schisandraAuthPermission);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList);
|
||||
}
|
||||
|
@@ -1,49 +1,49 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
public interface SchisandraAuthRolePermissionService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthRolePermission queryById(Long id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
|
||||
List<SchisandraAuthRolePermission> queryByRoleId(Long roleId);
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
public interface SchisandraAuthRolePermissionService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthRolePermission queryById(String id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
|
||||
List<SchisandraAuthRolePermission> queryByRoleId(Long roleId);
|
||||
}
|
||||
|
@@ -1,49 +1,49 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthRole)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-22 21:35:31
|
||||
*/
|
||||
public interface SchisandraAuthRoleService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthRole queryById(Long id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraAuthRole schisandraAuthRole);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
SchisandraAuthRole queryByRoleId(Long code);
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthRole)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-22 21:35:31
|
||||
*/
|
||||
public interface SchisandraAuthRoleService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthRole queryById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraAuthRole schisandraAuthRole);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(String id);
|
||||
|
||||
SchisandraAuthRole queryByRoleId(String code);
|
||||
}
|
||||
|
@@ -1,48 +1,48 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
public interface SchisandraAuthUserRoleService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthUserRole queryById(Long id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraAuthUserRole schisandraAuthUserRole);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraAuthUserRole schisandraAuthUserRole);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
public interface SchisandraAuthUserRoleService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthUserRole queryById(String id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraAuthUserRole schisandraAuthUserRole);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraAuthUserRole schisandraAuthUserRole);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(String id);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,57 +1,57 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthUser)表服务接口
|
||||
*
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:44
|
||||
*/
|
||||
public interface SchisandraAuthUserService {
|
||||
|
||||
|
||||
|
||||
SchisandraAuthUser queryByEmail(String email);
|
||||
SchisandraAuthUser queryByPhone(String phone);
|
||||
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthUser queryById(Long id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
Boolean insert(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
|
||||
int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthUser)表服务接口
|
||||
*
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:44
|
||||
*/
|
||||
public interface SchisandraAuthUserService {
|
||||
|
||||
|
||||
|
||||
SchisandraAuthUser queryByEmail(String email);
|
||||
SchisandraAuthUser queryByPhone(String phone);
|
||||
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraAuthUser queryById(String id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
Boolean insert(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(String id);
|
||||
|
||||
|
||||
int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser);
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,46 +1,46 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
public interface SchisandraSocialUserAuthService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraSocialUserAuth queryById(Long id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
public interface SchisandraSocialUserAuthService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraSocialUserAuth queryById(String id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(String id);
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,53 +1,53 @@
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
public interface SchisandraSocialUserService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraSocialUser queryById(Long id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Long id);
|
||||
|
||||
|
||||
SchisandraSocialUser selectByUuidAndType(String uuid, String type);
|
||||
|
||||
int updateById(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
int insertSocialUser(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
SchisandraSocialUser selectByOpenId(String openId);
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
||||
|
||||
/**
|
||||
* 表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
public interface SchisandraSocialUserService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
SchisandraSocialUser queryById(String id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(String id);
|
||||
|
||||
|
||||
SchisandraSocialUser selectByUuidAndType(String uuid, String type);
|
||||
|
||||
int updateById(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
int insertSocialUser(SchisandraSocialUser schisandraSocialUser);
|
||||
|
||||
SchisandraSocialUser selectByOpenId(String openId);
|
||||
}
|
||||
|
@@ -1,77 +1,77 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.CacheableServiceImpl;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthPermissionService;
|
||||
import org.springframework.cache.annotation.CacheConfig;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthPermission)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-04-11 13:00:10
|
||||
*/
|
||||
@Service("schisandraAuthPermissionService")
|
||||
@CacheConfig(cacheNames = "AuthPermission")
|
||||
public class SchisandraAuthPermissionServiceImpl extends CacheableServiceImpl<SchisandraAuthPermissionDao,SchisandraAuthPermission> implements SchisandraAuthPermissionService {
|
||||
@Resource
|
||||
private SchisandraAuthPermissionDao schisandraAuthPermissionDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
@Cacheable(key = "#id")
|
||||
public SchisandraAuthPermission queryById(Long id) {
|
||||
return this.schisandraAuthPermissionDao.selectOneById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission) {
|
||||
this.schisandraAuthPermissionDao.insert(schisandraAuthPermission,true);
|
||||
return schisandraAuthPermission;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthPermission schisandraAuthPermission) {
|
||||
return this.schisandraAuthPermissionDao.update(schisandraAuthPermission,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthPermissionDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList) {
|
||||
return schisandraAuthPermissionDao.selectListByIds(permissionIdList);
|
||||
}
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.CacheableServiceImpl;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthPermissionService;
|
||||
import org.springframework.cache.annotation.CacheConfig;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthPermission)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-04-11 13:00:10
|
||||
*/
|
||||
@Service("schisandraAuthPermissionService")
|
||||
@CacheConfig(cacheNames = "AuthPermission")
|
||||
public class SchisandraAuthPermissionServiceImpl extends CacheableServiceImpl<SchisandraAuthPermissionDao,SchisandraAuthPermission> implements SchisandraAuthPermissionService {
|
||||
@Resource
|
||||
private SchisandraAuthPermissionDao schisandraAuthPermissionDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
@Cacheable(key = "#id")
|
||||
public SchisandraAuthPermission queryById(String id) {
|
||||
return this.schisandraAuthPermissionDao.selectOneById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission) {
|
||||
this.schisandraAuthPermissionDao.insert(schisandraAuthPermission,true);
|
||||
return schisandraAuthPermission;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthPermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthPermission schisandraAuthPermission) {
|
||||
return this.schisandraAuthPermissionDao.update(schisandraAuthPermission,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthPermissionDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList) {
|
||||
return schisandraAuthPermissionDao.selectListByIds(permissionIdList);
|
||||
}
|
||||
}
|
||||
|
@@ -1,75 +1,75 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRolePermissionTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Service("SchisandraAuthRolePermissionService")
|
||||
public class SchisandraAuthRolePermissionServiceImpl implements SchisandraAuthRolePermissionService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthRolePermissionDao schisandraAuthRolePermissionDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthRolePermission queryById(Long id) {
|
||||
return this.schisandraAuthRolePermissionDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
||||
return this.schisandraAuthRolePermissionDao.insert(schisandraAuthRolePermission, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
||||
return this.schisandraAuthRolePermissionDao.update(schisandraAuthRolePermission, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthRolePermissionDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthRolePermission> queryByRoleId(Long roleId) {
|
||||
return schisandraAuthRolePermissionDao.selectListByCondition(SchisandraAuthRolePermissionTableDef.SCHISANDRA_AUTH_ROLE_PERMISSION.ROLE_ID.eq(roleId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRolePermissionTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-02 00:14:38
|
||||
*/
|
||||
@Service("SchisandraAuthRolePermissionService")
|
||||
public class SchisandraAuthRolePermissionServiceImpl implements SchisandraAuthRolePermissionService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthRolePermissionDao schisandraAuthRolePermissionDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthRolePermission queryById(String id) {
|
||||
return this.schisandraAuthRolePermissionDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
||||
return this.schisandraAuthRolePermissionDao.insert(schisandraAuthRolePermission, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRolePermission 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
||||
return this.schisandraAuthRolePermissionDao.update(schisandraAuthRolePermission, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthRolePermissionDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SchisandraAuthRolePermission> queryByRoleId(Long roleId) {
|
||||
return schisandraAuthRolePermissionDao.selectListByCondition(SchisandraAuthRolePermissionTableDef.SCHISANDRA_AUTH_ROLE_PERMISSION.ROLE_ID.eq(roleId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,75 +1,75 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRoleTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthRole)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-22 21:35:31
|
||||
*/
|
||||
|
||||
|
||||
@Service("schisandraAuthRoleService")
|
||||
public class SchisandraAuthRoleServiceImpl implements SchisandraAuthRoleService {
|
||||
@Resource
|
||||
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthRole queryById(Long id) {
|
||||
return this.schisandraAuthRoleDao.selectOneById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return int
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraAuthRole schisandraAuthRole) {
|
||||
return this.schisandraAuthRoleDao.insert(schisandraAuthRole,true);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole) {
|
||||
this.schisandraAuthRoleDao.update(schisandraAuthRole,true);
|
||||
return this.queryById(schisandraAuthRole.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthRoleDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchisandraAuthRole queryByRoleId(Long code) {
|
||||
return schisandraAuthRoleDao.selectOneByCondition(SchisandraAuthRoleTableDef.SCHISANDRA_AUTH_ROLE.ID.eq(code));
|
||||
}
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRoleTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthRole)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-03-22 21:35:31
|
||||
*/
|
||||
|
||||
|
||||
@Service("schisandraAuthRoleService")
|
||||
public class SchisandraAuthRoleServiceImpl implements SchisandraAuthRoleService {
|
||||
@Resource
|
||||
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthRole queryById(String id) {
|
||||
return this.schisandraAuthRoleDao.selectOneById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return int
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraAuthRole schisandraAuthRole) {
|
||||
return this.schisandraAuthRoleDao.insert(schisandraAuthRole,true);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole) {
|
||||
this.schisandraAuthRoleDao.update(schisandraAuthRole,true);
|
||||
return this.queryById(schisandraAuthRole.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(String id) {
|
||||
return this.schisandraAuthRoleDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchisandraAuthRole queryByRoleId(String code) {
|
||||
return schisandraAuthRoleDao.selectOneByCondition(SchisandraAuthRoleTableDef.SCHISANDRA_AUTH_ROLE.ID.eq(code));
|
||||
}
|
||||
}
|
||||
|
@@ -1,79 +1,79 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRoleTableDef;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserRoleTableDef;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserRoleService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Service("SchisandraAuthUserRoleService")
|
||||
public class SchisandraAuthUserRoleServiceImpl implements SchisandraAuthUserRoleService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthUserRoleDao schisandraAuthUserRoleDao;
|
||||
@Resource
|
||||
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
||||
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthUserRole queryById(Long id) {
|
||||
return this.schisandraAuthUserRoleDao.selectOneByCondition(SchisandraAuthUserRoleTableDef.SCHISANDRA_AUTH_USER_ROLE.USER_ID.eq(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraAuthUserRole schisandraAuthUserRole) {
|
||||
return this.schisandraAuthUserRoleDao.insert(schisandraAuthUserRole,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthUserRole schisandraAuthUserRole) {
|
||||
return this.schisandraAuthUserRoleDao.update(schisandraAuthUserRole,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthUserRoleDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRoleTableDef;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserRoleTableDef;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserRoleService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author zlg
|
||||
* @since 2024-05-25 18:05:40
|
||||
*/
|
||||
@Service("SchisandraAuthUserRoleService")
|
||||
public class SchisandraAuthUserRoleServiceImpl implements SchisandraAuthUserRoleService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthUserRoleDao schisandraAuthUserRoleDao;
|
||||
@Resource
|
||||
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
||||
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthUserRole queryById(String id) {
|
||||
return this.schisandraAuthUserRoleDao.selectOneByCondition(SchisandraAuthUserRoleTableDef.SCHISANDRA_AUTH_USER_ROLE.USER_ID.eq(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraAuthUserRole schisandraAuthUserRole) {
|
||||
return this.schisandraAuthUserRoleDao.insert(schisandraAuthUserRole,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraAuthUserRole 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthUserRole schisandraAuthUserRole) {
|
||||
return this.schisandraAuthUserRoleDao.update(schisandraAuthUserRole,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(String id) {
|
||||
return this.schisandraAuthUserRoleDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,98 +1,98 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
|
||||
import com.mybatisflex.core.update.UpdateChain;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthUser)表服务实现类
|
||||
*
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:44
|
||||
*/
|
||||
@Service("SchisandraAuthUserService")
|
||||
public class SchisandraAuthUserServiceImpl implements SchisandraAuthUserService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthUserDao schisandraAuthUserDao;
|
||||
|
||||
@Override
|
||||
public SchisandraAuthUser queryByEmail(String email) {
|
||||
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.EMAIL.eq(email)
|
||||
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchisandraAuthUser queryByPhone(String phone) {
|
||||
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.PHONE.eq(phone)
|
||||
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthUser queryById(Long id) {
|
||||
return this.schisandraAuthUserDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public Boolean insert(SchisandraAuthUser schisandraAuthUser) {
|
||||
|
||||
return this.schisandraAuthUserDao.insert(schisandraAuthUser, true) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键修改数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthUser schisandraAuthUser) {
|
||||
return this.schisandraAuthUserDao.update(schisandraAuthUser, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraAuthUserDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser) {
|
||||
return schisandraAuthUserDao.insertSelective(schisandraAuthUser);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser) {
|
||||
return UpdateChain.of(SchisandraAuthUser.class)
|
||||
.set(SchisandraAuthUser::getPassword, schisandraAuthUser.getPassword())
|
||||
.where(SchisandraAuthUser::getPhone).eq(schisandraAuthUser.getPhone())
|
||||
.update();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
|
||||
import com.mybatisflex.core.update.UpdateChain;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* (SchisandraAuthUser)表服务实现类
|
||||
*
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:44
|
||||
*/
|
||||
@Service("SchisandraAuthUserService")
|
||||
public class SchisandraAuthUserServiceImpl implements SchisandraAuthUserService {
|
||||
|
||||
@Resource
|
||||
private SchisandraAuthUserDao schisandraAuthUserDao;
|
||||
|
||||
@Override
|
||||
public SchisandraAuthUser queryByEmail(String email) {
|
||||
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.EMAIL.eq(email)
|
||||
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchisandraAuthUser queryByPhone(String phone) {
|
||||
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.PHONE.eq(phone)
|
||||
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraAuthUser queryById(String id) {
|
||||
return this.schisandraAuthUserDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public Boolean insert(SchisandraAuthUser schisandraAuthUser) {
|
||||
|
||||
return this.schisandraAuthUserDao.insert(schisandraAuthUser, true) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主键修改数据
|
||||
*
|
||||
* @param schisandraAuthUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraAuthUser schisandraAuthUser) {
|
||||
return this.schisandraAuthUserDao.update(schisandraAuthUser, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(String id) {
|
||||
return this.schisandraAuthUserDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser) {
|
||||
return schisandraAuthUserDao.insertSelective(schisandraAuthUser);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser) {
|
||||
return UpdateChain.of(SchisandraAuthUser.class)
|
||||
.set(SchisandraAuthUser::getPassword, schisandraAuthUser.getPassword())
|
||||
.where(SchisandraAuthUser::getPhone).eq(schisandraAuthUser.getPhone())
|
||||
.update();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,67 +1,67 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserAuthService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Service("SchisandraSocialUserAuthService")
|
||||
public class SchisandraSocialUserAuthServiceImpl implements SchisandraSocialUserAuthService {
|
||||
|
||||
@Resource
|
||||
private SchisandraSocialUserAuthDao schisandraSocialUserAuthDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUserAuth queryById(Long id) {
|
||||
return this.schisandraSocialUserAuthDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
||||
return this.schisandraSocialUserAuthDao.insertSelective(schisandraSocialUserAuth);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
||||
return this.schisandraSocialUserAuthDao.update(schisandraSocialUserAuth,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraSocialUserAuthDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserAuthService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:10:08
|
||||
*/
|
||||
@Service("SchisandraSocialUserAuthService")
|
||||
public class SchisandraSocialUserAuthServiceImpl implements SchisandraSocialUserAuthService {
|
||||
|
||||
@Resource
|
||||
private SchisandraSocialUserAuthDao schisandraSocialUserAuthDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUserAuth queryById(String id) {
|
||||
return this.schisandraSocialUserAuthDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
||||
return this.schisandraSocialUserAuthDao.insertSelective(schisandraSocialUserAuth);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUserAuth 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
||||
return this.schisandraSocialUserAuthDao.update(schisandraSocialUserAuth,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(String id) {
|
||||
return this.schisandraSocialUserAuthDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,117 +1,117 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraSocialUserTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Service("SchisandraSocialUserService")
|
||||
public class SchisandraSocialUserServiceImpl implements SchisandraSocialUserService {
|
||||
|
||||
@Resource
|
||||
private SchisandraSocialUserDao schisandraSocialUserDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUser queryById(Long id) {
|
||||
return this.schisandraSocialUserDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraSocialUser schisandraSocialUser) {
|
||||
return this.schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraSocialUser schisandraSocialUser) {
|
||||
return this.schisandraSocialUserDao.update(schisandraSocialUser, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Long id) {
|
||||
return this.schisandraSocialUserDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据uuid和type查询用户
|
||||
* @param: [uuid, type]
|
||||
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/24 上午11:17
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUser selectByUuidAndType(String uuid, String type) {
|
||||
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.UUID.eq(uuid)
|
||||
.and(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.SOURCE.eq(type)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据id更新社会用户信息
|
||||
* @param: [schisandraSocialUser]
|
||||
* @return: int
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/24 上午11:23
|
||||
*/
|
||||
@Override
|
||||
public int updateById(SchisandraSocialUser schisandraSocialUser) {
|
||||
return schisandraSocialUserDao.update(schisandraSocialUser, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 插入社会用户信息
|
||||
* @param: [schisandraSocialUser]
|
||||
* @return: int
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/27 下午3:05
|
||||
*/
|
||||
@Override
|
||||
public int insertSocialUser(SchisandraSocialUser schisandraSocialUser) {
|
||||
return schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据openId查询用户
|
||||
* @param: [appId, openId]
|
||||
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/27 下午3:05
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUser selectByOpenId(String openId) {
|
||||
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.OPEN_ID.eq(openId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraSocialUserTableDef;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-24 11:07:49
|
||||
*/
|
||||
@Service("SchisandraSocialUserService")
|
||||
public class SchisandraSocialUserServiceImpl implements SchisandraSocialUserService {
|
||||
|
||||
@Resource
|
||||
private SchisandraSocialUserDao schisandraSocialUserDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUser queryById(String id) {
|
||||
return this.schisandraSocialUserDao.selectOneById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int insert(SchisandraSocialUser schisandraSocialUser) {
|
||||
return this.schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param schisandraSocialUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public int update(SchisandraSocialUser schisandraSocialUser) {
|
||||
return this.schisandraSocialUserDao.update(schisandraSocialUser, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(String id) {
|
||||
return this.schisandraSocialUserDao.deleteById(id) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据uuid和type查询用户
|
||||
* @param: [uuid, type]
|
||||
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/24 上午11:17
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUser selectByUuidAndType(String uuid, String type) {
|
||||
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.UUID.eq(uuid)
|
||||
.and(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.SOURCE.eq(type)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据id更新社会用户信息
|
||||
* @param: [schisandraSocialUser]
|
||||
* @return: int
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/24 上午11:23
|
||||
*/
|
||||
@Override
|
||||
public int updateById(SchisandraSocialUser schisandraSocialUser) {
|
||||
return schisandraSocialUserDao.update(schisandraSocialUser, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 插入社会用户信息
|
||||
* @param: [schisandraSocialUser]
|
||||
* @return: int
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/27 下午3:05
|
||||
*/
|
||||
@Override
|
||||
public int insertSocialUser(SchisandraSocialUser schisandraSocialUser) {
|
||||
return schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据openId查询用户
|
||||
* @param: [appId, openId]
|
||||
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
||||
* @author: landaiqing
|
||||
* @date: 2024/6/27 下午3:05
|
||||
*/
|
||||
@Override
|
||||
public SchisandraSocialUser selectByOpenId(String openId) {
|
||||
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.OPEN_ID.eq(openId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -1,207 +1,207 @@
|
||||
package com.schisandra.auth.infra.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信配置信息表 dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-19 22:20:47
|
||||
*/
|
||||
@Data
|
||||
public class SmsConfigInfo implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 配置id
|
||||
*/
|
||||
private String configId;
|
||||
|
||||
/**
|
||||
* 请求地址
|
||||
*/
|
||||
private String requestUrl;
|
||||
|
||||
/**
|
||||
* 模板变量名称
|
||||
*/
|
||||
private String templateName;
|
||||
|
||||
/**
|
||||
* 接口名称
|
||||
*/
|
||||
private String action;
|
||||
|
||||
/**
|
||||
* 地域信息
|
||||
*/
|
||||
private String region;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String accessKeyId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String accessKeySecret;
|
||||
|
||||
/**
|
||||
* 厂商名称标识
|
||||
*/
|
||||
private String supplier;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*/
|
||||
private String signature;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String sdkAppId;
|
||||
|
||||
/**
|
||||
* 模板ID
|
||||
*/
|
||||
private String templateId;
|
||||
|
||||
/**
|
||||
* 权重
|
||||
*/
|
||||
private Integer weight;
|
||||
|
||||
/**
|
||||
* 短信重试次数,默认0次不重试
|
||||
*/
|
||||
private Integer retryInterval;
|
||||
|
||||
/**
|
||||
* 短信重试次数,默认0次不重试
|
||||
*/
|
||||
private Integer maxRetries;
|
||||
|
||||
/**
|
||||
* 厂商的发送数量上限,默认不设置上限
|
||||
*/
|
||||
private Long maximum;
|
||||
|
||||
/**
|
||||
* REST API Base URL
|
||||
*/
|
||||
private String baseUrl;
|
||||
|
||||
/**
|
||||
* 请求域名
|
||||
*/
|
||||
private String serverIp;
|
||||
|
||||
/**
|
||||
* 请求端口
|
||||
*/
|
||||
private Integer serverPort;
|
||||
|
||||
/**
|
||||
* 国内短信签名通道号
|
||||
*/
|
||||
private String sender;
|
||||
|
||||
/**
|
||||
* 短信状态报告接收地
|
||||
*/
|
||||
private String statusCallBack;
|
||||
|
||||
/**
|
||||
* APP接入地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 模板短信请求地址
|
||||
*/
|
||||
private String templateUrl;
|
||||
|
||||
/**
|
||||
* 验证码短信请求地址
|
||||
*/
|
||||
private String codeUrl;
|
||||
|
||||
/**
|
||||
* 验证码验证请求地址
|
||||
*/
|
||||
private String verifyUrl;
|
||||
|
||||
/**
|
||||
* 是否需要支持短信上行。true:需要,false:不需要false
|
||||
*/
|
||||
private String needUp;
|
||||
|
||||
/**
|
||||
* 请求超时时间
|
||||
*/
|
||||
private Integer connTimeout;
|
||||
|
||||
/**
|
||||
* 是否为简易模式
|
||||
*/
|
||||
private String isSimple;
|
||||
|
||||
/**
|
||||
* 短信发送后将向这个地址推送(运营商返回的)发送报告
|
||||
*/
|
||||
private String callbackUrl;
|
||||
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
private Integer mchId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String appKey;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer appId;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 单发链接
|
||||
*/
|
||||
private String singleMsgUrl;
|
||||
|
||||
/**
|
||||
* 群发链接
|
||||
*/
|
||||
private String massMsgUrl;
|
||||
|
||||
/**
|
||||
* 签名ID
|
||||
*/
|
||||
private String signatureId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extraJson;
|
||||
|
||||
/**
|
||||
* 服务名
|
||||
*/
|
||||
private String service;
|
||||
|
||||
}
|
||||
|
||||
package com.schisandra.auth.infra.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 短信配置信息表 dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-06-19 22:20:47
|
||||
*/
|
||||
@Data
|
||||
public class SmsConfigInfo implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 配置id
|
||||
*/
|
||||
private String configId;
|
||||
|
||||
/**
|
||||
* 请求地址
|
||||
*/
|
||||
private String requestUrl;
|
||||
|
||||
/**
|
||||
* 模板变量名称
|
||||
*/
|
||||
private String templateName;
|
||||
|
||||
/**
|
||||
* 接口名称
|
||||
*/
|
||||
private String action;
|
||||
|
||||
/**
|
||||
* 地域信息
|
||||
*/
|
||||
private String region;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String accessKeyId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String accessKeySecret;
|
||||
|
||||
/**
|
||||
* 厂商名称标识
|
||||
*/
|
||||
private String supplier;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*/
|
||||
private String signature;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String sdkAppId;
|
||||
|
||||
/**
|
||||
* 模板ID
|
||||
*/
|
||||
private String templateId;
|
||||
|
||||
/**
|
||||
* 权重
|
||||
*/
|
||||
private Integer weight;
|
||||
|
||||
/**
|
||||
* 短信重试次数,默认0次不重试
|
||||
*/
|
||||
private Integer retryInterval;
|
||||
|
||||
/**
|
||||
* 短信重试次数,默认0次不重试
|
||||
*/
|
||||
private Integer maxRetries;
|
||||
|
||||
/**
|
||||
* 厂商的发送数量上限,默认不设置上限
|
||||
*/
|
||||
private Long maximum;
|
||||
|
||||
/**
|
||||
* REST API Base URL
|
||||
*/
|
||||
private String baseUrl;
|
||||
|
||||
/**
|
||||
* 请求域名
|
||||
*/
|
||||
private String serverIp;
|
||||
|
||||
/**
|
||||
* 请求端口
|
||||
*/
|
||||
private Integer serverPort;
|
||||
|
||||
/**
|
||||
* 国内短信签名通道号
|
||||
*/
|
||||
private String sender;
|
||||
|
||||
/**
|
||||
* 短信状态报告接收地
|
||||
*/
|
||||
private String statusCallBack;
|
||||
|
||||
/**
|
||||
* APP接入地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 模板短信请求地址
|
||||
*/
|
||||
private String templateUrl;
|
||||
|
||||
/**
|
||||
* 验证码短信请求地址
|
||||
*/
|
||||
private String codeUrl;
|
||||
|
||||
/**
|
||||
* 验证码验证请求地址
|
||||
*/
|
||||
private String verifyUrl;
|
||||
|
||||
/**
|
||||
* 是否需要支持短信上行。true:需要,false:不需要false
|
||||
*/
|
||||
private String needUp;
|
||||
|
||||
/**
|
||||
* 请求超时时间
|
||||
*/
|
||||
private Integer connTimeout;
|
||||
|
||||
/**
|
||||
* 是否为简易模式
|
||||
*/
|
||||
private String isSimple;
|
||||
|
||||
/**
|
||||
* 短信发送后将向这个地址推送(运营商返回的)发送报告
|
||||
*/
|
||||
private String callbackUrl;
|
||||
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
private Integer mchId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String appKey;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer appId;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 单发链接
|
||||
*/
|
||||
private String singleMsgUrl;
|
||||
|
||||
/**
|
||||
* 群发链接
|
||||
*/
|
||||
private String massMsgUrl;
|
||||
|
||||
/**
|
||||
* 签名ID
|
||||
*/
|
||||
private String signatureId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extraJson;
|
||||
|
||||
/**
|
||||
* 服务名
|
||||
*/
|
||||
private String service;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -3,9 +3,9 @@
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao">
|
||||
|
||||
<resultMap type="com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission" id="SchisandraAuthPermissionMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="INTEGER"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="INTEGER"/>
|
||||
<result property="path" column="path" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||
|
@@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao">
|
||||
|
||||
<resultMap type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRole" id="SchisandraAuthRoleMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
|
||||
<result property="roleKey" column="role_key" jdbcType="VARCHAR"/>
|
||||
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
|
||||
<result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao">
|
||||
|
||||
<resultMap type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRole" id="SchisandraAuthRoleMap">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
|
||||
<result property="roleKey" column="role_key" jdbcType="VARCHAR"/>
|
||||
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
|
||||
<result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="role_id" jdbcType="BIGINT" property="roleId"/>
|
||||
<result column="permission_id" jdbcType="BIGINT" property="permissionId"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission">
|
||||
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||
<result column="role_id" jdbcType="VARCHAR" property="roleId"/>
|
||||
<result column="permission_id" jdbcType="VARCHAR" property="permissionId"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
@@ -1,29 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUser">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="user_name" jdbcType="VARCHAR" property="userName"/>
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||
<result column="nick_name" jdbcType="VARCHAR" property="nickName"/>
|
||||
<result column="email" jdbcType="VARCHAR" property="email"/>
|
||||
<result column="phone" jdbcType="VARCHAR" property="phone"/>
|
||||
<result column="password" jdbcType="VARCHAR" property="password"/>
|
||||
<result column="gender" jdbcType="VARCHAR" property="gender"/>
|
||||
<result column="avatar" jdbcType="VARCHAR" property="avatar"/>
|
||||
<result column="status" jdbcType="TINYINT" property="status"/>
|
||||
<result column="introduce" jdbcType="VARCHAR" property="introduce"/>
|
||||
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
<result column="blog" jdbcType="VARCHAR" property="blog"/>
|
||||
<result column="location" jdbcType="VARCHAR" property="location"/>
|
||||
<result column="company" jdbcType="VARCHAR" property="company"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUser">
|
||||
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||
<result column="user_name" jdbcType="VARCHAR" property="userName"/>
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||
<result column="nick_name" jdbcType="VARCHAR" property="nickName"/>
|
||||
<result column="email" jdbcType="VARCHAR" property="email"/>
|
||||
<result column="phone" jdbcType="VARCHAR" property="phone"/>
|
||||
<result column="password" jdbcType="VARCHAR" property="password"/>
|
||||
<result column="gender" jdbcType="VARCHAR" property="gender"/>
|
||||
<result column="avatar" jdbcType="VARCHAR" property="avatar"/>
|
||||
<result column="status" jdbcType="TINYINT" property="status"/>
|
||||
<result column="introduce" jdbcType="VARCHAR" property="introduce"/>
|
||||
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
<result column="blog" jdbcType="VARCHAR" property="blog"/>
|
||||
<result column="location" jdbcType="VARCHAR" property="location"/>
|
||||
<result column="company" jdbcType="VARCHAR" property="company"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="user_id" jdbcType="BIGINT" property="userId"/>
|
||||
<result column="role_id" jdbcType="BIGINT" property="roleId"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole">
|
||||
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
||||
<result column="role_id" jdbcType="VARCHAR" property="roleId"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="user_id" jdbcType="BIGINT" property="userId"/>
|
||||
<result column="social_user_id" jdbcType="BIGINT" property="socialUserId"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth">
|
||||
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
||||
<result column="social_user_id" jdbcType="VARCHAR" property="socialUserId"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
@@ -1,33 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUser">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||
<result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
|
||||
<result column="expire_in" jdbcType="INTEGER" property="expireIn"/>
|
||||
<result column="refresh_token" jdbcType="VARCHAR" property="refreshToken"/>
|
||||
<result column="open_id" jdbcType="VARCHAR" property="openId"/>
|
||||
<result column="uid" jdbcType="VARCHAR" property="uid"/>
|
||||
<result column="access_code" jdbcType="VARCHAR" property="accessCode"/>
|
||||
<result column="union_id" jdbcType="VARCHAR" property="unionId"/>
|
||||
<result column="scope" jdbcType="VARCHAR" property="scope"/>
|
||||
<result column="token_type" jdbcType="VARCHAR" property="tokenType"/>
|
||||
<result column="id_token" jdbcType="VARCHAR" property="idToken"/>
|
||||
<result column="mac_algorithm" jdbcType="VARCHAR" property="macAlgorithm"/>
|
||||
<result column="mac_key" jdbcType="VARCHAR" property="macKey"/>
|
||||
<result column="code" jdbcType="VARCHAR" property="code"/>
|
||||
<result column="oauth_token" jdbcType="VARCHAR" property="oauthToken"/>
|
||||
<result column="oauth_token_secret" jdbcType="VARCHAR" property="oauthTokenSecret"/>
|
||||
<result column="status" jdbcType="VARCHAR" property="status"/>
|
||||
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUser">
|
||||
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||
<result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
|
||||
<result column="expire_in" jdbcType="INTEGER" property="expireIn"/>
|
||||
<result column="refresh_token" jdbcType="VARCHAR" property="refreshToken"/>
|
||||
<result column="open_id" jdbcType="VARCHAR" property="openId"/>
|
||||
<result column="uid" jdbcType="VARCHAR" property="uid"/>
|
||||
<result column="access_code" jdbcType="VARCHAR" property="accessCode"/>
|
||||
<result column="union_id" jdbcType="VARCHAR" property="unionId"/>
|
||||
<result column="scope" jdbcType="VARCHAR" property="scope"/>
|
||||
<result column="token_type" jdbcType="VARCHAR" property="tokenType"/>
|
||||
<result column="id_token" jdbcType="VARCHAR" property="idToken"/>
|
||||
<result column="mac_algorithm" jdbcType="VARCHAR" property="macAlgorithm"/>
|
||||
<result column="mac_key" jdbcType="VARCHAR" property="macKey"/>
|
||||
<result column="code" jdbcType="VARCHAR" property="code"/>
|
||||
<result column="oauth_token" jdbcType="VARCHAR" property="oauthToken"/>
|
||||
<result column="oauth_token_secret" jdbcType="VARCHAR" property="oauthTokenSecret"/>
|
||||
<result column="status" jdbcType="VARCHAR" property="status"/>
|
||||
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user