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);
|
Boolean wechatRegister(@RequestParam(name = "appId") String appId, @RequestParam(name = "openId") String openId, @RequestParam("clientId") String clientId);
|
||||||
|
|
||||||
@GetMapping("/auth/user/getUserInfo")
|
@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
|
* @date: 2024/7/8 下午4:09
|
||||||
*/
|
*/
|
||||||
@GetMapping("selectUserPermission")
|
@GetMapping("selectUserPermission")
|
||||||
public Result<Object> selectUserPermission(@RequestParam("userId") Long userId) {
|
public Result<Object> selectUserPermission(@RequestParam("userId") String userId) {
|
||||||
if (userId == null) {
|
if (userId == null) {
|
||||||
return Result.fail("userId不能为空");
|
return Result.fail("userId不能为空");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,118 +1,118 @@
|
|||||||
package com.schisandra.auth.application.controller;
|
package com.schisandra.auth.application.controller;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.schisandra.auth.application.convert.SchisandraAuthRoleDTOConverter;
|
import com.schisandra.auth.application.convert.SchisandraAuthRoleDTOConverter;
|
||||||
import com.schisandra.auth.application.dto.SchisandraAuthRoleDTO;
|
import com.schisandra.auth.application.dto.SchisandraAuthRoleDTO;
|
||||||
import com.schisandra.auth.common.entity.Result;
|
import com.schisandra.auth.common.entity.Result;
|
||||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||||
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClassName:SchisandraAuthRoleController
|
* ClassName:SchisandraAuthRoleController
|
||||||
* Package:com.schisandra.auth.application.controller
|
* Package:com.schisandra.auth.application.controller
|
||||||
* Description:AuthRoleController层
|
* Description:AuthRoleController层
|
||||||
*
|
*
|
||||||
* @Author:fanyang
|
* @Author:fanyang
|
||||||
* @Create:2024/4/4 - 20:47
|
* @Create:2024/4/4 - 20:47
|
||||||
* @Version: v1.0
|
* @Version: v1.0
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/role/")
|
@RequestMapping("/role/")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SchisandraAuthRoleController {
|
public class SchisandraAuthRoleController {
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthRoleDomainService schisandraAuthRoleDomainService;
|
private SchisandraAuthRoleDomainService schisandraAuthRoleDomainService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 更新角色信息
|
* @description 更新角色信息
|
||||||
* @param schisandraAuthRoleDTO
|
* @param schisandraAuthRoleDTO
|
||||||
* @return
|
* @return
|
||||||
* @author fanyang
|
* @author fanyang
|
||||||
* @date 2024/4/3 22:05
|
* @date 2024/4/3 22:05
|
||||||
*/
|
*/
|
||||||
@PostMapping("update")
|
@PostMapping("update")
|
||||||
public Object update(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
public Object update(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
||||||
try {
|
try {
|
||||||
if (log.isInfoEnabled()) {
|
if (log.isInfoEnabled()) {
|
||||||
log.info("RoleController.update.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
log.info("RoleController.update.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||||
}
|
}
|
||||||
checkRoleInfo(schisandraAuthRoleDTO);
|
checkRoleInfo(schisandraAuthRoleDTO);
|
||||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||||
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("RoleController.update.error:{}", e.getMessage(), e);
|
log.error("RoleController.update.error:{}", e.getMessage(), e);
|
||||||
return Result.fail("更新角色信息失败");
|
return Result.fail("更新角色信息失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @description 查询角色信息
|
* @description 查询角色信息
|
||||||
* @param schisandraAuthRoleDTO
|
* @param schisandraAuthRoleDTO
|
||||||
* @return
|
* @return
|
||||||
* @author fanyang
|
* @author fanyang
|
||||||
* @date 2024/4/3 22:05
|
* @date 2024/4/3 22:05
|
||||||
*/
|
*/
|
||||||
@PostMapping("query")
|
@PostMapping("query")
|
||||||
public Result query(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
public Result query(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
||||||
try{
|
try{
|
||||||
if(log.isInfoEnabled()){
|
if(log.isInfoEnabled()){
|
||||||
log.info("RoleController.select.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
log.info("RoleController.select.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||||
}
|
}
|
||||||
checkRoleInfo(schisandraAuthRoleDTO);
|
checkRoleInfo(schisandraAuthRoleDTO);
|
||||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||||
return Result.ok(schisandraAuthRoleDomainService.select(authRoleBO));
|
return Result.ok(schisandraAuthRoleDomainService.select(authRoleBO));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("RoleController.select.error:{}", e.getMessage(), e);
|
log.error("RoleController.select.error:{}", e.getMessage(), e);
|
||||||
return Result.fail("查询角色信息失败");
|
return Result.fail("查询角色信息失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @description 添加角色信息
|
* @description 添加角色信息
|
||||||
* @param schisandraAuthRoleDTO
|
* @param schisandraAuthRoleDTO
|
||||||
* @return
|
* @return
|
||||||
* @author fanyang
|
* @author fanyang
|
||||||
* @date 2024/4/3 22:12
|
* @date 2024/4/3 22:12
|
||||||
*/
|
*/
|
||||||
@PostMapping("insert")
|
@PostMapping("insert")
|
||||||
public Result insert(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
public Result insert(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO){
|
||||||
try{
|
try{
|
||||||
if(log.isInfoEnabled()){
|
if(log.isInfoEnabled()){
|
||||||
log.info("RoleController.insert.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
log.info("RoleController.insert.dto:{}", JSON.toJSONString(schisandraAuthRoleDTO));
|
||||||
}
|
}
|
||||||
checkRoleInfo(schisandraAuthRoleDTO);
|
checkRoleInfo(schisandraAuthRoleDTO);
|
||||||
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
SchisandraAuthRoleBO authRoleBO = SchisandraAuthRoleDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRoleDTO);
|
||||||
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
return Result.ok(schisandraAuthRoleDomainService.update(authRoleBO));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
||||||
return Result.fail("添加角色信息失败");
|
return Result.fail("添加角色信息失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @description 删除角色信息
|
* @description 删除角色信息
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
* @author fanyang
|
* @author fanyang
|
||||||
* @date 2024/4/3 22:12
|
* @date 2024/4/3 22:12
|
||||||
*/
|
*/
|
||||||
@GetMapping("delete/{id}")
|
@GetMapping("delete/{id}")
|
||||||
public Result delete(@PathVariable Long id){
|
public Result delete(@PathVariable String id){
|
||||||
try{
|
try{
|
||||||
if(log.isInfoEnabled()){
|
if(log.isInfoEnabled()){
|
||||||
log.info("RoleController.insert.dto:{}",id);
|
log.info("RoleController.insert.dto:{}",id);
|
||||||
}
|
}
|
||||||
return Result.ok(schisandraAuthRoleDomainService.delete(id));
|
return Result.ok(schisandraAuthRoleDomainService.delete(id));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
log.error("RoleController.insert.error:{}", e.getMessage(), e);
|
||||||
return Result.fail("删除角色信息失败");
|
return Result.fail("删除角色信息失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void checkRoleInfo(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
private void checkRoleInfo(@RequestBody SchisandraAuthRoleDTO schisandraAuthRoleDTO) {
|
||||||
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleName()), "角色名不能为空");
|
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleName()), "角色名不能为空");
|
||||||
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleKey()), "角色key值不能为空");
|
Preconditions.checkArgument(!StringUtils.isBlank(schisandraAuthRoleDTO.getRoleKey()), "角色key值不能为空");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -249,9 +249,9 @@ public class SchisandraAuthUserController {
|
|||||||
* @author: landaiqing
|
* @author: landaiqing
|
||||||
* @date: 2024/6/2 0:37
|
* @date: 2024/6/2 0:37
|
||||||
*/
|
*/
|
||||||
private void userInfoPersistence(Long authUserId) {
|
private void userInfoPersistence(String authUserId) {
|
||||||
// 查询用户角色并存入redis
|
// 查询用户角色并存入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));
|
String roleKey = redisUtil.buildKey(AUTH_ROLE_PREFIX, String.valueOf(authUserId));
|
||||||
List<SchisandraAuthRole> roleList = new LinkedList<>();
|
List<SchisandraAuthRole> roleList = new LinkedList<>();
|
||||||
roleList.add(schisandraAuthRole);
|
roleList.add(schisandraAuthRole);
|
||||||
@@ -259,10 +259,10 @@ public class SchisandraAuthUserController {
|
|||||||
|
|
||||||
// 查询用户权限并存入redis
|
// 查询用户权限并存入redis
|
||||||
SchisandraAuthRolePermissionDTO schisandraAuthRolePermission = new SchisandraAuthRolePermissionDTO();
|
SchisandraAuthRolePermissionDTO schisandraAuthRolePermission = new SchisandraAuthRolePermissionDTO();
|
||||||
schisandraAuthRolePermission.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
schisandraAuthRolePermission.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||||
SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO = SchisandraAuthRolePermissionDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRolePermission);
|
SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO = SchisandraAuthRolePermissionDTOConverter.INSTANCE.convertDTOToBO(schisandraAuthRolePermission);
|
||||||
List<SchisandraAuthRolePermissionBO> rolePermissionList = schisandraAuthRolePermissionDomainService.queryByRoleId(schisandraAuthRolePermissionBO);
|
List<SchisandraAuthRolePermissionBO> rolePermissionList = schisandraAuthRolePermissionDomainService.queryByRoleId(schisandraAuthRolePermissionBO);
|
||||||
List<Long> permissionIdList = rolePermissionList.stream()
|
List<String> permissionIdList = rolePermissionList.stream()
|
||||||
.map(SchisandraAuthRolePermissionBO::getPermissionId).collect(Collectors.toList());
|
.map(SchisandraAuthRolePermissionBO::getPermissionId).collect(Collectors.toList());
|
||||||
List<SchisandraAuthPermission> permissionList = schisandraAuthPermissionDomainService.queryListByIds(permissionIdList);
|
List<SchisandraAuthPermission> permissionList = schisandraAuthPermissionDomainService.queryListByIds(permissionIdList);
|
||||||
String permissionKey = redisUtil.buildKey(AUTH_PERMISSION_PREFIX, String.valueOf(authUserId));
|
String permissionKey = redisUtil.buildKey(AUTH_PERMISSION_PREFIX, String.valueOf(authUserId));
|
||||||
@@ -382,7 +382,7 @@ public class SchisandraAuthUserController {
|
|||||||
* @date: 2024/7/11 9:39
|
* @date: 2024/7/11 9:39
|
||||||
*/
|
*/
|
||||||
@GetMapping("getUserInfo")
|
@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));
|
SchisandraAuthUserDTO schisandraAuthUserDTO = SchisandraAuthUserDTOConverter.INSTANCE.convertBOToDTO(schisandraAuthUserDomainService.queryById(userId));
|
||||||
if ( schisandraAuthUserDTO== null) {
|
if ( schisandraAuthUserDTO== null) {
|
||||||
return Result.fail("该用户不存在");
|
return Result.fail("该用户不存在");
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public class SchisandraAuthPermissionDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 主键id
|
* 主键id
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
/**
|
/**
|
||||||
* 权限名称
|
* 权限名称
|
||||||
*/
|
*/
|
||||||
@@ -24,7 +24,7 @@ public class SchisandraAuthPermissionDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 权限父id
|
* 权限父id
|
||||||
*/
|
*/
|
||||||
private Long parentId;
|
private String parentId;
|
||||||
/**
|
/**
|
||||||
* 权限类型
|
* 权限类型
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,59 +1,59 @@
|
|||||||
package com.schisandra.auth.application.dto;
|
package com.schisandra.auth.application.dto;
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClassName:SchisandraAuthRoleDTO
|
* ClassName:SchisandraAuthRoleDTO
|
||||||
* Package:com.schisandra.auth.application.dto
|
* Package:com.schisandra.auth.application.dto
|
||||||
* Description:角色DTO
|
* Description:角色DTO
|
||||||
*
|
*
|
||||||
* @Author:fanyang
|
* @Author:fanyang
|
||||||
* @Create:2024/4/4 - 21:34
|
* @Create:2024/4/4 - 21:34
|
||||||
* @Version: v1.0
|
* @Version: v1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthRoleDTO implements Serializable {
|
public class SchisandraAuthRoleDTO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色名称
|
* 角色名称
|
||||||
*/
|
*/
|
||||||
private String roleName;
|
private String roleName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色关键字
|
* 角色关键字
|
||||||
*/
|
*/
|
||||||
private String roleKey;
|
private String roleKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除
|
* 是否删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
package com.schisandra.auth.application.dto;
|
package com.schisandra.auth.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto
|
* dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 00:14:38
|
* @since 2024-06-02 00:14:38
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthRolePermissionDTO implements Serializable {
|
public class SchisandraAuthRolePermissionDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色id
|
* 角色id
|
||||||
*/
|
*/
|
||||||
private Long roleId;
|
private String roleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限id
|
* 权限id
|
||||||
*/
|
*/
|
||||||
private Long permissionId;
|
private String permissionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0-未删除 1-已删除
|
* 是否删除 0-未删除 1-已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,131 +1,131 @@
|
|||||||
package com.schisandra.auth.application.dto;
|
package com.schisandra.auth.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto
|
* dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-05-23 20:00:28
|
* @since 2024-05-23 20:00:28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthUserDTO implements Serializable {
|
public class SchisandraAuthUserDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
/**
|
/**
|
||||||
* 用户名
|
* 用户名
|
||||||
*/
|
*/
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 昵称
|
* 昵称
|
||||||
*/
|
*/
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 邮箱
|
* 邮箱
|
||||||
*/
|
*/
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 手机号
|
* 手机号
|
||||||
*/
|
*/
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 密码
|
* 密码
|
||||||
*/
|
*/
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 性别
|
* 性别
|
||||||
*/
|
*/
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 头像
|
* 头像
|
||||||
*/
|
*/
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 介绍
|
* 介绍
|
||||||
*/
|
*/
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 扩展字段
|
* 扩展字段
|
||||||
*/
|
*/
|
||||||
private String extJson;
|
private String extJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除
|
* 是否删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 博客
|
* 博客
|
||||||
*/
|
*/
|
||||||
private String blog;
|
private String blog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 城市
|
* 城市
|
||||||
*/
|
*/
|
||||||
private String location;
|
private String location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公司
|
* 公司
|
||||||
*/
|
*/
|
||||||
private String company;
|
private String company;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 激活码
|
* 激活码
|
||||||
*/
|
*/
|
||||||
private String activeCode;
|
private String activeCode;
|
||||||
/**
|
/**
|
||||||
* 确认密码
|
* 确认密码
|
||||||
*/
|
*/
|
||||||
private String confirmPassword;
|
private String confirmPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 旋转图片验证token
|
* 旋转图片验证token
|
||||||
*/
|
*/
|
||||||
private String token;
|
private String token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 旋转图片验证的旋转角度
|
* 旋转图片验证的旋转角度
|
||||||
*/
|
*/
|
||||||
private Double deg;
|
private Double deg;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
package com.schisandra.auth.application.dto;
|
package com.schisandra.auth.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto
|
* dto
|
||||||
*
|
*
|
||||||
* @author zlg
|
* @author zlg
|
||||||
* @since 2024-05-25 18:05:40
|
* @since 2024-05-25 18:05:40
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthUserRoleDTO implements Serializable {
|
public class SchisandraAuthUserRoleDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户id
|
* 用户id
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色id
|
* 角色id
|
||||||
*/
|
*/
|
||||||
private Long roleId;
|
private String roleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除
|
* 是否删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
package com.schisandra.auth.application.dto;
|
package com.schisandra.auth.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto
|
* dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:10:08
|
* @since 2024-06-24 11:10:08
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraSocialUserAuthDTO implements Serializable {
|
public class SchisandraSocialUserAuthDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long socialUserId;
|
private String socialUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,143 +1,143 @@
|
|||||||
package com.schisandra.auth.application.dto;
|
package com.schisandra.auth.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto
|
* dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:07:49
|
* @since 2024-06-24 11:07:49
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraSocialUserDTO implements Serializable {
|
public class SchisandraSocialUserDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方系统的唯一ID
|
* 第三方系统的唯一ID
|
||||||
*/
|
*/
|
||||||
private String uuid;
|
private String uuid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户来源
|
* 第三方用户来源
|
||||||
*/
|
*/
|
||||||
private String source;
|
private String source;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户的授权令牌
|
* 用户的授权令牌
|
||||||
*/
|
*/
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的授权令牌的有效期
|
* 第三方用户的授权令牌的有效期
|
||||||
*/
|
*/
|
||||||
private Integer expireIn;
|
private Integer expireIn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 刷新令牌
|
* 刷新令牌
|
||||||
*/
|
*/
|
||||||
private String refreshToken;
|
private String refreshToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 open id
|
* 第三方用户的 open id
|
||||||
*/
|
*/
|
||||||
private String openId;
|
private String openId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 ID
|
* 第三方用户的 ID
|
||||||
*/
|
*/
|
||||||
private String uid;
|
private String uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个别平台的授权信息
|
* 个别平台的授权信息
|
||||||
*/
|
*/
|
||||||
private String accessCode;
|
private String accessCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 union id
|
* 第三方用户的 union id
|
||||||
*/
|
*/
|
||||||
private String unionId;
|
private String unionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户授予的权限
|
* 第三方用户授予的权限
|
||||||
*/
|
*/
|
||||||
private String scope;
|
private String scope;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个别平台的授权信息
|
* 个别平台的授权信息
|
||||||
*/
|
*/
|
||||||
private String tokenType;
|
private String tokenType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id token
|
* id token
|
||||||
*/
|
*/
|
||||||
private String idToken;
|
private String idToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小米平台用户的附带属性
|
* 小米平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String macAlgorithm;
|
private String macAlgorithm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小米平台用户的附带属性
|
* 小米平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String macKey;
|
private String macKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户的授权code
|
* 用户的授权code
|
||||||
*/
|
*/
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter平台用户的附带属性
|
* Twitter平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String oauthToken;
|
private String oauthToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter平台用户的附带属性
|
* Twitter平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String oauthTokenSecret;
|
private String oauthTokenSecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String extJson;
|
private String extJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ SchisandraAuthPermissionBO implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
private Long parentId;
|
private String parentId;
|
||||||
|
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
|||||||
@@ -1,61 +1,61 @@
|
|||||||
package com.schisandra.auth.domain.bo;
|
package com.schisandra.auth.domain.bo;
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClassName:SchisandraAuthRoleBO
|
* ClassName:SchisandraAuthRoleBO
|
||||||
* Package:com.schisandra.auth.domain.bo
|
* Package:com.schisandra.auth.domain.bo
|
||||||
* Description:(SchisandraAuthRoleBO)实体类
|
* Description:(SchisandraAuthRoleBO)实体类
|
||||||
*
|
*
|
||||||
* @Author:fanyang
|
* @Author:fanyang
|
||||||
* @Create:2024/4/1 - 0:20
|
* @Create:2024/4/1 - 0:20
|
||||||
* @Version: v1.0
|
* @Version: v1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthRoleBO implements Serializable {
|
public class SchisandraAuthRoleBO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色名称
|
* 角色名称
|
||||||
*/
|
*/
|
||||||
private String roleName;
|
private String roleName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色关键字
|
* 角色关键字
|
||||||
*/
|
*/
|
||||||
private String roleKey;
|
private String roleKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除
|
* 是否删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
package com.schisandra.auth.domain.bo;
|
package com.schisandra.auth.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 00:14:38
|
* @since 2024-06-02 00:14:38
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthRolePermissionBO implements Serializable {
|
public class SchisandraAuthRolePermissionBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long roleId;
|
private String roleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long permissionId;
|
private String permissionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,112 +1,112 @@
|
|||||||
package com.schisandra.auth.domain.bo;
|
package com.schisandra.auth.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-05-23 20:00:28
|
* @since 2024-05-23 20:00:28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthUserBO implements Serializable {
|
public class SchisandraAuthUserBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String extJson;
|
private String extJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String blog;
|
private String blog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String location;
|
private String location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String company;
|
private String company;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
package com.schisandra.auth.domain.bo;
|
package com.schisandra.auth.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author zlg
|
* @author zlg
|
||||||
* @since 2024-05-25 18:05:40
|
* @since 2024-05-25 18:05:40
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraAuthUserRoleBO implements Serializable {
|
public class SchisandraAuthUserRoleBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long roleId;
|
private String roleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +1,57 @@
|
|||||||
package com.schisandra.auth.domain.bo;
|
package com.schisandra.auth.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:10:08
|
* @since 2024-06-24 11:10:08
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraSocialUserAuthBO implements Serializable {
|
public class SchisandraSocialUserAuthBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long socialUserId;
|
private String socialUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,142 +1,142 @@
|
|||||||
package com.schisandra.auth.domain.bo;
|
package com.schisandra.auth.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:07:49
|
* @since 2024-06-24 11:07:49
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraSocialUserBO implements Serializable {
|
public class SchisandraSocialUserBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方系统的唯一ID
|
* 第三方系统的唯一ID
|
||||||
*/
|
*/
|
||||||
private String uuid;
|
private String uuid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户来源
|
* 第三方用户来源
|
||||||
*/
|
*/
|
||||||
private String source;
|
private String source;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户的授权令牌
|
* 用户的授权令牌
|
||||||
*/
|
*/
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的授权令牌的有效期
|
* 第三方用户的授权令牌的有效期
|
||||||
*/
|
*/
|
||||||
private Integer expireIn;
|
private Integer expireIn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 刷新令牌
|
* 刷新令牌
|
||||||
*/
|
*/
|
||||||
private String refreshToken;
|
private String refreshToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 open id
|
* 第三方用户的 open id
|
||||||
*/
|
*/
|
||||||
private String openId;
|
private String openId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 ID
|
* 第三方用户的 ID
|
||||||
*/
|
*/
|
||||||
private String uid;
|
private String uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个别平台的授权信息
|
* 个别平台的授权信息
|
||||||
*/
|
*/
|
||||||
private String accessCode;
|
private String accessCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 union id
|
* 第三方用户的 union id
|
||||||
*/
|
*/
|
||||||
private String unionId;
|
private String unionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户授予的权限
|
* 第三方用户授予的权限
|
||||||
*/
|
*/
|
||||||
private String scope;
|
private String scope;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个别平台的授权信息
|
* 个别平台的授权信息
|
||||||
*/
|
*/
|
||||||
private String tokenType;
|
private String tokenType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id token
|
* id token
|
||||||
*/
|
*/
|
||||||
private String idToken;
|
private String idToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小米平台用户的附带属性
|
* 小米平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String macAlgorithm;
|
private String macAlgorithm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小米平台用户的附带属性
|
* 小米平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String macKey;
|
private String macKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户的授权code
|
* 用户的授权code
|
||||||
*/
|
*/
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter平台用户的附带属性
|
* Twitter平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String oauthToken;
|
private String oauthToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter平台用户的附带属性
|
* Twitter平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
private String oauthTokenSecret;
|
private String oauthTokenSecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String extJson;
|
private String extJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
package com.schisandra.auth.domain.service;
|
package com.schisandra.auth.domain.service;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.schisandra.auth.common.entity.Result;
|
import com.schisandra.auth.common.entity.Result;
|
||||||
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
public interface SchisandraAuthPermissionDomainService {
|
public interface SchisandraAuthPermissionDomainService {
|
||||||
|
|
||||||
Result<Object> selectUserPermissionTree(Long userId);
|
Result<Object> selectUserPermissionTree(String userId);
|
||||||
int update(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
int update(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||||
Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||||
Object insert(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
Object insert(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||||
SchisandraAuthPermissionBO select(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
SchisandraAuthPermissionBO select(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
|
||||||
|
|
||||||
List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList);
|
List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,56 +1,56 @@
|
|||||||
package com.schisandra.auth.domain.service;
|
package com.schisandra.auth.domain.service;
|
||||||
|
|
||||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClassName:SchisandraAuthRoleDomainService
|
* ClassName:SchisandraAuthRoleDomainService
|
||||||
* Package:com.schisandra.auth.domain.service
|
* Package:com.schisandra.auth.domain.service
|
||||||
* Description:角色领域Service
|
* Description:角色领域Service
|
||||||
*
|
*
|
||||||
* @Author:fanyang
|
* @Author:fanyang
|
||||||
* @Create:2024/4/4 - 20:56
|
* @Create:2024/4/4 - 20:56
|
||||||
* @Version: v1.0
|
* @Version: v1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public interface SchisandraAuthRoleDomainService {
|
public interface SchisandraAuthRoleDomainService {
|
||||||
/***
|
/***
|
||||||
*@ClassName: SchisandraAuthRoleDomainService
|
*@ClassName: SchisandraAuthRoleDomainService
|
||||||
*@Description 更新角色信息
|
*@Description 更新角色信息
|
||||||
*@Author Fanyang
|
*@Author Fanyang
|
||||||
*@Date 2024/4/4
|
*@Date 2024/4/4
|
||||||
*@Time 21:02
|
*@Time 21:02
|
||||||
*/
|
*/
|
||||||
Object update(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
Object update(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*@ClassName: SchisandraAuthRoleDomainService
|
*@ClassName: SchisandraAuthRoleDomainService
|
||||||
*@Description 删除角色信息
|
*@Description 删除角色信息
|
||||||
*@Author Fanyang
|
*@Author Fanyang
|
||||||
*@Date 2024/4/4
|
*@Date 2024/4/4
|
||||||
*@Time 21:03
|
*@Time 21:03
|
||||||
*/
|
*/
|
||||||
Object delete(Long id);
|
Object delete(String id);
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*@ClassName: SchisandraAuthRoleDomainService
|
*@ClassName: SchisandraAuthRoleDomainService
|
||||||
*@Description 新增角色信息
|
*@Description 新增角色信息
|
||||||
*@Author Fanyang
|
*@Author Fanyang
|
||||||
*@Date 2024/4/4
|
*@Date 2024/4/4
|
||||||
*@Time 21:03
|
*@Time 21:03
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int insert(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
int insert(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*@ClassName: SchisandraAuthRoleDomainService
|
*@ClassName: SchisandraAuthRoleDomainService
|
||||||
*@Description 查询角色信息
|
*@Description 查询角色信息
|
||||||
*@Author Fanyang
|
*@Author Fanyang
|
||||||
*@Date 2024/4/4
|
*@Date 2024/4/4
|
||||||
*@Time 21:04
|
*@Time 21:04
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Object select(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
Object select(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||||
|
|
||||||
SchisandraAuthRole queryByRoleId(Long code);
|
SchisandraAuthRole queryByRoleId(String code);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public interface SchisandraAuthUserDomainService {
|
|||||||
* @date: 2024/5/26 17:27
|
* @date: 2024/5/26 17:27
|
||||||
*/
|
*/
|
||||||
@Cacheable(value = "userInfo", key = "#userId")
|
@Cacheable(value = "userInfo", key = "#userId")
|
||||||
SchisandraAuthUserBO queryById(Long userId);
|
SchisandraAuthUserBO queryById(String userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param schisandraAuthUserBO
|
* @param schisandraAuthUserBO
|
||||||
@@ -102,7 +102,7 @@ public interface SchisandraAuthUserDomainService {
|
|||||||
* @author msz
|
* @author msz
|
||||||
*/
|
*/
|
||||||
@CacheEvict(value = "userInfo",key = "id")
|
@CacheEvict(value = "userInfo",key = "id")
|
||||||
Object deleteById(Long id);
|
Object deleteById(String id);
|
||||||
|
|
||||||
SchisandraAuthUser queryByPhone(String phone);
|
SchisandraAuthUser queryByPhone(String phone);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.schisandra.auth.domain.service.impl;
|
package com.schisandra.auth.domain.service.impl;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.schisandra.auth.common.entity.Result;
|
import com.schisandra.auth.common.entity.Result;
|
||||||
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
|
||||||
import com.schisandra.auth.domain.convert.SchisandraAuthPermissionBOConverter;
|
import com.schisandra.auth.domain.convert.SchisandraAuthPermissionBOConverter;
|
||||||
@@ -15,7 +14,9 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -27,20 +28,19 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
|||||||
@Resource
|
@Resource
|
||||||
SchisandraAuthRolePermissionService schisandraAuthRolePermissionService;
|
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<>();
|
List<Object> selectTreeList1 = new ArrayList<>();
|
||||||
schisandraAuthPermissionsParent.forEach(e -> {
|
schisandraAuthPermissionsParent.forEach(e -> {
|
||||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissions1 = new ArrayList<>();
|
List<SchisandraAuthPermissionBO> schisandraAuthPermissions1 = new ArrayList<>();
|
||||||
schisandraAuthPermissions.forEach(e1 -> {
|
schisandraAuthPermissions.forEach(e1 -> {
|
||||||
if (e1.getParentId()==e.getId()){
|
if (e1.getParentId() == e.getId()) {
|
||||||
schisandraAuthPermissions1.add(e1);
|
schisandraAuthPermissions1.add(e1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (schisandraAuthPermissions1.size()==0){
|
if (schisandraAuthPermissions1.size() == 0) {
|
||||||
selectTreeList1.add(e);
|
selectTreeList1.add(e);
|
||||||
}
|
} else {
|
||||||
else {
|
List<Object> list1 = selectTree(schisandraAuthPermissions, schisandraAuthPermissions1);
|
||||||
List<Object> list1 = selectTree(schisandraAuthPermissions,schisandraAuthPermissions1);
|
|
||||||
e.setRoutes(list1);
|
e.setRoutes(list1);
|
||||||
selectTreeList1.add(e);
|
selectTreeList1.add(e);
|
||||||
}
|
}
|
||||||
@@ -49,29 +49,29 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result<Object> selectUserPermissionTree(Long userId) {
|
public Result<Object> selectUserPermissionTree(String userId) {
|
||||||
SchisandraAuthUserRole schisandraAuthRole = schisandraAuthUserRoleService.queryById(userId);
|
SchisandraAuthUserRole schisandraAuthRole = schisandraAuthUserRoleService.queryById(userId);
|
||||||
if (schisandraAuthRole == null||schisandraAuthRole.getRoleId()==null) {
|
if (schisandraAuthRole == null || schisandraAuthRole.getRoleId() == null) {
|
||||||
return Result.fail("用户没有角色");
|
return Result.fail("用户没有角色");
|
||||||
}
|
}
|
||||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRole.getRoleId());
|
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(Long.valueOf(schisandraAuthRole.getRoleId()));
|
||||||
if (schisandraAuthRolePermissions.size()==0){
|
if (schisandraAuthRolePermissions.size() == 0) {
|
||||||
return Result.fail("当前角色用户没有权限");
|
return Result.fail("当前角色用户没有权限");
|
||||||
}
|
}
|
||||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissions =new ArrayList<>();
|
List<SchisandraAuthPermissionBO> schisandraAuthPermissions = new ArrayList<>();
|
||||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissionParents = new ArrayList<>();
|
List<SchisandraAuthPermissionBO> schisandraAuthPermissionParents = new ArrayList<>();
|
||||||
schisandraAuthRolePermissions.forEach(e -> {
|
schisandraAuthRolePermissions.forEach(e -> {
|
||||||
schisandraAuthPermissions.add(SchisandraAuthPermissionBOConverter.INSTANCE.convertEntityToBO(schisandraAuthPermissionService.queryById(e.getPermissionId())));
|
schisandraAuthPermissions.add(SchisandraAuthPermissionBOConverter.INSTANCE.convertEntityToBO(schisandraAuthPermissionService.queryById(e.getPermissionId())));
|
||||||
});
|
});
|
||||||
|
|
||||||
schisandraAuthPermissions.forEach(e -> {
|
schisandraAuthPermissions.forEach(e -> {
|
||||||
if (e.getParentId()==0){
|
if (Long.parseLong(e.getParentId()) == 0) {
|
||||||
schisandraAuthPermissionParents.add(e);
|
schisandraAuthPermissionParents.add(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
HashMap<Object,Object>map=new HashMap<>();
|
HashMap<Object, Object> map = new HashMap<>();
|
||||||
map.put("path","/");
|
map.put("path", "/");
|
||||||
map.put("routes",selectTree(schisandraAuthPermissions,schisandraAuthPermissionParents));
|
map.put("routes", selectTree(schisandraAuthPermissions, schisandraAuthPermissionParents));
|
||||||
return Result.ok(map);
|
return Result.ok(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
|||||||
@Override
|
@Override
|
||||||
public Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO) {
|
public Object delete(SchisandraAuthPermissionBO schisandraAuthPermissionBO) {
|
||||||
SchisandraAuthPermission schisandraAuthPermission = SchisandraAuthPermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthPermissionBO);
|
SchisandraAuthPermission schisandraAuthPermission = SchisandraAuthPermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthPermissionBO);
|
||||||
boolean schisandraAuthPermission1 = schisandraAuthPermissionService.deleteById(schisandraAuthPermission.getId());
|
boolean schisandraAuthPermission1 = schisandraAuthPermissionService.deleteById(Long.valueOf(schisandraAuthPermission.getId()));
|
||||||
return schisandraAuthPermission1;
|
return schisandraAuthPermission1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList) {
|
public List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList) {
|
||||||
return schisandraAuthPermissionService.queryListByIds(permissionIdList);
|
return schisandraAuthPermissionService.queryListByIds(permissionIdList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,61 +1,61 @@
|
|||||||
package com.schisandra.auth.domain.service.impl;
|
package com.schisandra.auth.domain.service.impl;
|
||||||
|
|
||||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||||
import com.schisandra.auth.domain.convert.SchisandraAuthRoleBOConverter;
|
import com.schisandra.auth.domain.convert.SchisandraAuthRoleBOConverter;
|
||||||
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
import com.schisandra.auth.domain.service.SchisandraAuthRoleDomainService;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClassName:SchisandraAuthRoleDomainServiceImpl
|
* ClassName:SchisandraAuthRoleDomainServiceImpl
|
||||||
* Package:com.schisandra.auth.domain.service.impl
|
* Package:com.schisandra.auth.domain.service.impl
|
||||||
* Description:角色信息的增删改查
|
* Description:角色信息的增删改查
|
||||||
*
|
*
|
||||||
* @Author:
|
* @Author:
|
||||||
* @Create:2024/4/4 - 21:05
|
* @Create:2024/4/4 - 21:05
|
||||||
* @Version: v1.0
|
* @Version: v1.0
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SchisandraAuthRoleDomainServiceImpl implements SchisandraAuthRoleDomainService {
|
public class SchisandraAuthRoleDomainServiceImpl implements SchisandraAuthRoleDomainService {
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthRoleService schisandraAuthRoleService;
|
private SchisandraAuthRoleService schisandraAuthRoleService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object update(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
public Object update(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||||
SchisandraAuthRole update = schisandraAuthRoleService.update(schisandraAuthRole);
|
SchisandraAuthRole update = schisandraAuthRoleService.update(schisandraAuthRole);
|
||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object delete(Long id) {
|
public Object delete(String id) {
|
||||||
boolean isDeleted = schisandraAuthRoleService.deleteById(id);
|
boolean isDeleted = schisandraAuthRoleService.deleteById(id);
|
||||||
return isDeleted;
|
return isDeleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int insert(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
public int insert(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||||
return schisandraAuthRoleService.insert(schisandraAuthRole);
|
return schisandraAuthRoleService.insert(schisandraAuthRole);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object select(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
public Object select(SchisandraAuthRoleBO schisandraAuthRoleBO) {
|
||||||
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
SchisandraAuthRole schisandraAuthRole = SchisandraAuthRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRoleBO);
|
||||||
if (schisandraAuthRoleBO.getId() != null) {
|
if (schisandraAuthRoleBO.getId() != null) {
|
||||||
SchisandraAuthRole schisandraAuthRole1 = schisandraAuthRoleService.queryById(schisandraAuthRoleBO.getId());
|
SchisandraAuthRole schisandraAuthRole1 = schisandraAuthRoleService.queryById(schisandraAuthRoleBO.getId());
|
||||||
return schisandraAuthRole1;
|
return schisandraAuthRole1;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthRole queryByRoleId(Long code) {
|
public SchisandraAuthRole queryByRoleId(String code) {
|
||||||
return schisandraAuthRoleService.queryByRoleId(code);
|
return schisandraAuthRoleService.queryByRoleId(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
package com.schisandra.auth.domain.service.impl;
|
package com.schisandra.auth.domain.service.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.schisandra.auth.common.enums.IsDeletedFlagEnum;
|
import com.schisandra.auth.common.enums.IsDeletedFlagEnum;
|
||||||
import com.schisandra.auth.domain.bo.SchisandraAuthRolePermissionBO;
|
import com.schisandra.auth.domain.bo.SchisandraAuthRolePermissionBO;
|
||||||
import com.schisandra.auth.domain.convert.SchisandraAuthRolePermissionBOConverter;
|
import com.schisandra.auth.domain.convert.SchisandraAuthRolePermissionBOConverter;
|
||||||
import com.schisandra.auth.domain.service.SchisandraAuthRolePermissionDomainService;
|
import com.schisandra.auth.domain.service.SchisandraAuthRolePermissionDomainService;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 领域service实现了
|
* 领域service实现了
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 00:14:38
|
* @since 2024-06-02 00:14:38
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SchisandraAuthRolePermissionDomainServiceImpl implements SchisandraAuthRolePermissionDomainService {
|
public class SchisandraAuthRolePermissionDomainServiceImpl implements SchisandraAuthRolePermissionDomainService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthRolePermissionService schisandraAuthRolePermissionService;
|
private SchisandraAuthRolePermissionService schisandraAuthRolePermissionService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean add(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
public Boolean add(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||||
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||||
return schisandraAuthRolePermissionService.insert(schisandraAuthRolePermission) > 0;
|
return schisandraAuthRolePermissionService.insert(schisandraAuthRolePermission) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean update(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
public Boolean update(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||||
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean delete(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
public Boolean delete(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||||
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
||||||
schisandraAuthRolePermission.setId(schisandraAuthRolePermissionBO.getId());
|
schisandraAuthRolePermission.setId(schisandraAuthRolePermissionBO.getId());
|
||||||
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.DELETED.getCode());
|
schisandraAuthRolePermission.setIsDeleted(IsDeletedFlagEnum.DELETED.getCode());
|
||||||
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
return schisandraAuthRolePermissionService.update(schisandraAuthRolePermission) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SchisandraAuthRolePermissionBO> queryByRoleId(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
public List<SchisandraAuthRolePermissionBO> queryByRoleId(SchisandraAuthRolePermissionBO schisandraAuthRolePermissionBO) {
|
||||||
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
SchisandraAuthRolePermission schisandraAuthRolePermission = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertBOToEntity(schisandraAuthRolePermissionBO);
|
||||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRolePermission.getRoleId());
|
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(Long.valueOf(schisandraAuthRolePermission.getRoleId()));
|
||||||
List<SchisandraAuthRolePermissionBO> schisandraAuthRolePermissionBOS = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertEntityToBOList(schisandraAuthRolePermissions);
|
List<SchisandraAuthRolePermissionBO> schisandraAuthRolePermissionBOS = SchisandraAuthRolePermissionBOConverter.INSTANCE.convertEntityToBOList(schisandraAuthRolePermissions);
|
||||||
return schisandraAuthRolePermissionBOS;
|
return schisandraAuthRolePermissionBOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
if (insert) {
|
if (insert) {
|
||||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||||
schisandraAuthUserRoleBO.setUserId(authUser.getId());
|
schisandraAuthUserRoleBO.setUserId(authUser.getId());
|
||||||
schisandraAuthUserRoleBO.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
schisandraAuthUserRoleBO.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||||
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
||||||
return schisandraAuthUserRoleService.insert(schisandraAuthUserRole) > 0;
|
return schisandraAuthUserRoleService.insert(schisandraAuthUserRole) > 0;
|
||||||
} else {
|
} else {
|
||||||
@@ -174,7 +174,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
* @date 2024/4/3 22:10
|
* @date 2024/4/3 22:10
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthUserBO queryById(Long userId) {
|
public SchisandraAuthUserBO queryById(String userId) {
|
||||||
SchisandraAuthUser schisandraAuthUser = schisandraAuthUserService.queryById(userId);
|
SchisandraAuthUser schisandraAuthUser = schisandraAuthUserService.queryById(userId);
|
||||||
SchisandraAuthUserBO schisandraAuthUserBO1 = SchisandraAuthUserBOConverter.INSTANCE.convertEntityToBO(schisandraAuthUser);
|
SchisandraAuthUserBO schisandraAuthUserBO1 = SchisandraAuthUserBOConverter.INSTANCE.convertEntityToBO(schisandraAuthUser);
|
||||||
return schisandraAuthUserBO1;
|
return schisandraAuthUserBO1;
|
||||||
@@ -201,7 +201,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
* @date 2024/4/3 22:30
|
* @date 2024/4/3 22:30
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Object deleteById(Long id) {
|
public Object deleteById(String id) {
|
||||||
return schisandraAuthUserService.deleteById(id);
|
return schisandraAuthUserService.deleteById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
public Boolean wechatRegister(String appId, String openId,String clientId) {
|
public Boolean wechatRegister(String appId, String openId,String clientId) {
|
||||||
SchisandraSocialUser socialUser = schisandraSocialUserService.selectByOpenId(openId);
|
SchisandraSocialUser socialUser = schisandraSocialUserService.selectByOpenId(openId);
|
||||||
if (ObjectUtils.isNotEmpty(socialUser)) {
|
if (ObjectUtils.isNotEmpty(socialUser)) {
|
||||||
Long userId = socialUser.getId();
|
String userId = socialUser.getId();
|
||||||
// redis存储用户角色与权限信息
|
// redis存储用户角色与权限信息
|
||||||
userInfoPersistence(userId);
|
userInfoPersistence(userId);
|
||||||
StpUtil.login(userId);
|
StpUtil.login(userId);
|
||||||
@@ -260,12 +260,12 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Long authUserId = schisandraAuthUser.getId();
|
String authUserId = schisandraAuthUser.getId();
|
||||||
Long socialUserId = schisandraSocialUser.getId();
|
String socialUserId = schisandraSocialUser.getId();
|
||||||
// 建立社会用户与用户信息映射
|
// 建立社会用户与用户信息映射
|
||||||
SchisandraSocialUserAuthBO socialUserAuthBO = new SchisandraSocialUserAuthBO();
|
SchisandraSocialUserAuthBO socialUserAuthBO = new SchisandraSocialUserAuthBO();
|
||||||
socialUserAuthBO.setUserId(authUserId);
|
socialUserAuthBO.setUserId(String.valueOf(authUserId));
|
||||||
socialUserAuthBO.setSocialUserId(socialUserId);
|
socialUserAuthBO.setSocialUserId(String.valueOf(socialUserId));
|
||||||
SchisandraSocialUserAuth schisandraSocialUserAuth = SchisandraSocialUserAuthBOConverter.INSTANCE.convertBOToEntity(socialUserAuthBO);
|
SchisandraSocialUserAuth schisandraSocialUserAuth = SchisandraSocialUserAuthBOConverter.INSTANCE.convertBOToEntity(socialUserAuthBO);
|
||||||
int insertMapper = schisandraSocialUserAuthService.insert(schisandraSocialUserAuth);
|
int insertMapper = schisandraSocialUserAuthService.insert(schisandraSocialUserAuth);
|
||||||
if (insertMapper <= 0) {
|
if (insertMapper <= 0) {
|
||||||
@@ -276,8 +276,8 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
}
|
}
|
||||||
// 建立用户与角色映射关系
|
// 建立用户与角色映射关系
|
||||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||||
schisandraAuthUserRoleBO.setUserId(authUserId);
|
schisandraAuthUserRoleBO.setUserId(String.valueOf(authUserId));
|
||||||
schisandraAuthUserRoleBO.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
schisandraAuthUserRoleBO.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||||
schisandraAuthUserRoleBO.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
schisandraAuthUserRoleBO.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||||
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
||||||
int insert = schisandraAuthUserRoleService.insert(schisandraAuthUserRole);
|
int insert = schisandraAuthUserRoleService.insert(schisandraAuthUserRole);
|
||||||
@@ -338,7 +338,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
}
|
}
|
||||||
return Result.fail("Social User update fail");
|
return Result.fail("Social User update fail");
|
||||||
}
|
}
|
||||||
Long userId = socialUser.getId();
|
String userId = socialUser.getId();
|
||||||
// redis存储用户角色与权限信息
|
// redis存储用户角色与权限信息
|
||||||
userInfoPersistence(userId);
|
userInfoPersistence(userId);
|
||||||
StpUtil.login(userId, SaLoginConfig.setToken(token.getAccessToken()));
|
StpUtil.login(userId, SaLoginConfig.setToken(token.getAccessToken()));
|
||||||
@@ -388,13 +388,13 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
}
|
}
|
||||||
return Result.fail("insertAuthUser fail");
|
return Result.fail("insertAuthUser fail");
|
||||||
}
|
}
|
||||||
Long authUserId = schisandraAuthUser.getId();
|
String authUserId = schisandraAuthUser.getId();
|
||||||
Long socialUserId = schisandraSocialUser.getId();
|
String socialUserId = schisandraSocialUser.getId();
|
||||||
|
|
||||||
// 建立社会用户与用户信息映射
|
// 建立社会用户与用户信息映射
|
||||||
SchisandraSocialUserAuthBO socialUserAuthBO = new SchisandraSocialUserAuthBO();
|
SchisandraSocialUserAuthBO socialUserAuthBO = new SchisandraSocialUserAuthBO();
|
||||||
socialUserAuthBO.setUserId(authUserId);
|
socialUserAuthBO.setUserId(String.valueOf(authUserId));
|
||||||
socialUserAuthBO.setSocialUserId(socialUserId);
|
socialUserAuthBO.setSocialUserId(String.valueOf(socialUserId));
|
||||||
SchisandraSocialUserAuth schisandraSocialUserAuth = SchisandraSocialUserAuthBOConverter.INSTANCE.convertBOToEntity(socialUserAuthBO);
|
SchisandraSocialUserAuth schisandraSocialUserAuth = SchisandraSocialUserAuthBOConverter.INSTANCE.convertBOToEntity(socialUserAuthBO);
|
||||||
int insertMapper = schisandraSocialUserAuthService.insert(schisandraSocialUserAuth);
|
int insertMapper = schisandraSocialUserAuthService.insert(schisandraSocialUserAuth);
|
||||||
if (insertMapper <= 0) {
|
if (insertMapper <= 0) {
|
||||||
@@ -406,8 +406,8 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
|
|
||||||
// 建立用户与角色映射关系
|
// 建立用户与角色映射关系
|
||||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||||
schisandraAuthUserRoleBO.setUserId(authUserId);
|
schisandraAuthUserRoleBO.setUserId(String.valueOf(authUserId));
|
||||||
schisandraAuthUserRoleBO.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
schisandraAuthUserRoleBO.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||||
schisandraAuthUserRoleBO.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
schisandraAuthUserRoleBO.setIsDeleted(IsDeletedFlagEnum.UN_DELETED.getCode());
|
||||||
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
SchisandraAuthUserRole schisandraAuthUserRole = SchisandraAuthUserRoleBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserRoleBO);
|
||||||
int insert = schisandraAuthUserRoleService.insert(schisandraAuthUserRole);
|
int insert = schisandraAuthUserRoleService.insert(schisandraAuthUserRole);
|
||||||
@@ -432,9 +432,9 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
* @author: landaiqing
|
* @author: landaiqing
|
||||||
* @date: 2024/6/2 0:37
|
* @date: 2024/6/2 0:37
|
||||||
*/
|
*/
|
||||||
private void userInfoPersistence(Long authUserId) {
|
private void userInfoPersistence(String authUserId) {
|
||||||
// 查询用户角色并存入redis
|
// 查询用户角色并存入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));
|
String roleKey = redisUtil.buildKey(AUTH_ROLE_PREFIX, String.valueOf(authUserId));
|
||||||
List<SchisandraAuthRole> roleList = new LinkedList<>();
|
List<SchisandraAuthRole> roleList = new LinkedList<>();
|
||||||
roleList.add(schisandraAuthRole);
|
roleList.add(schisandraAuthRole);
|
||||||
@@ -442,9 +442,9 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
|||||||
|
|
||||||
// 查询用户权限并存入redis
|
// 查询用户权限并存入redis
|
||||||
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
SchisandraAuthRolePermission schisandraAuthRolePermission = new SchisandraAuthRolePermission();
|
||||||
schisandraAuthRolePermission.setRoleId(UserRoleEnum.NORMAL_USER.getCode());
|
schisandraAuthRolePermission.setRoleId(String.valueOf(UserRoleEnum.NORMAL_USER.getCode()));
|
||||||
List<SchisandraAuthRolePermission> rolePermissionList = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRolePermission.getRoleId());
|
List<SchisandraAuthRolePermission> rolePermissionList = schisandraAuthRolePermissionService.queryByRoleId(Long.valueOf(schisandraAuthRolePermission.getRoleId()));
|
||||||
List<Long> permissionIdList = rolePermissionList.stream()
|
List<String> permissionIdList = rolePermissionList.stream()
|
||||||
.map(SchisandraAuthRolePermission::getPermissionId).collect(Collectors.toList());
|
.map(SchisandraAuthRolePermission::getPermissionId).collect(Collectors.toList());
|
||||||
List<SchisandraAuthPermission> permissionList = schisandraAuthPermissionService.queryListByIds(permissionIdList);
|
List<SchisandraAuthPermission> permissionList = schisandraAuthPermissionService.queryListByIds(permissionIdList);
|
||||||
String permissionKey = redisUtil.buildKey(AUTH_PERMISSION_PREFIX, String.valueOf(authUserId));
|
String permissionKey = redisUtil.buildKey(AUTH_PERMISSION_PREFIX, String.valueOf(authUserId));
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.util.Date;
|
|||||||
public class SchisandraAuthPermission implements Serializable {
|
public class SchisandraAuthPermission implements Serializable {
|
||||||
|
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
|||||||
@@ -1,70 +1,70 @@
|
|||||||
package com.schisandra.auth.infra.basic.entity;
|
package com.schisandra.auth.infra.basic.entity;
|
||||||
|
|
||||||
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Column;
|
||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (SchisandraAuthRole)实体类
|
* (SchisandraAuthRole)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2024-03-22 21:35:31
|
* @since 2024-03-22 21:35:31
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Table(value = "schisandra_auth_role")
|
@Table(value = "schisandra_auth_role")
|
||||||
public class SchisandraAuthRole implements Serializable {
|
public class SchisandraAuthRole implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色名称
|
* 角色名称
|
||||||
*/
|
*/
|
||||||
private String roleName;
|
private String roleName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色关键字
|
* 角色关键字
|
||||||
*/
|
*/
|
||||||
private String roleKey;
|
private String roleKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "created_time",onInsertValue = "now()")
|
@Column(value = "created_time",onInsertValue = "now()")
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
@Column("update_by")
|
@Column("update_by")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "update_time",onUpdateValue = "now()")
|
@Column(value = "update_time",onUpdateValue = "now()")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除
|
* 是否删除
|
||||||
*/
|
*/
|
||||||
@Column(isLogicDelete = true)
|
@Column(isLogicDelete = true)
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,72 +1,72 @@
|
|||||||
package com.schisandra.auth.infra.basic.entity;
|
package com.schisandra.auth.infra.basic.entity;
|
||||||
|
|
||||||
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Column;
|
||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实体类
|
* 实体类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 00:14:38
|
* @since 2024-06-02 00:14:38
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Table("schisandra_auth_role_permission")
|
@Table("schisandra_auth_role_permission")
|
||||||
public class SchisandraAuthRolePermission implements Serializable {
|
public class SchisandraAuthRolePermission implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("role_id")
|
@Column("role_id")
|
||||||
private Long roleId;
|
private String roleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("permission_id")
|
@Column("permission_id")
|
||||||
private Long permissionId;
|
private String permissionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
@Column("created_by")
|
@Column("created_by")
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "created_time",onInsertValue = "now()")
|
@Column(value = "created_time",onInsertValue = "now()")
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
@Column("update_by")
|
@Column("update_by")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "update_time",onUpdateValue = "now()")
|
@Column(value = "update_time",onUpdateValue = "now()")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column(value = "is_deleted",isLogicDelete = true)
|
@Column(value = "is_deleted",isLogicDelete = true)
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,137 +1,137 @@
|
|||||||
package com.schisandra.auth.infra.basic.entity;
|
package com.schisandra.auth.infra.basic.entity;
|
||||||
|
|
||||||
|
|
||||||
import com.mybatisflex.annotation.*;
|
import com.mybatisflex.annotation.*;
|
||||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import com.mybatisflex.core.mask.Masks;
|
import com.mybatisflex.core.mask.Masks;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实体类
|
* 实体类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-05-23 20:00:28
|
* @since 2024-05-23 20:00:28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Table(value = "schisandra_auth_user")
|
@Table(value = "schisandra_auth_user")
|
||||||
public class SchisandraAuthUser implements Serializable {
|
public class SchisandraAuthUser implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
@Column(value = "user_name")
|
@Column(value = "user_name")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Column("nick_name")
|
@Column("nick_name")
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("email")
|
@Column("email")
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("phone")
|
@Column("phone")
|
||||||
@ColumnMask(Masks.FIXED_PHONE)
|
@ColumnMask(Masks.FIXED_PHONE)
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column(value = "password")
|
@Column(value = "password")
|
||||||
@ColumnMask(Masks.PASSWORD)
|
@ColumnMask(Masks.PASSWORD)
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("gender")
|
@Column("gender")
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("avatar")
|
@Column("avatar")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("status")
|
@Column("status")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("introduce")
|
@Column("introduce")
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("ext_json")
|
@Column("ext_json")
|
||||||
private String extJson;
|
private String extJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
@Column("created_by")
|
@Column("created_by")
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "created_time",onInsertValue = "now()")
|
@Column(value = "created_time",onInsertValue = "now()")
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
@Column("update_by")
|
@Column("update_by")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "update_time",onUpdateValue = "now()")
|
@Column(value = "update_time",onUpdateValue = "now()")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column(value = "is_deleted",isLogicDelete = true)
|
@Column(value = "is_deleted",isLogicDelete = true)
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("blog")
|
@Column("blog")
|
||||||
private String blog;
|
private String blog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("location")
|
@Column("location")
|
||||||
private String location;
|
private String location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("company")
|
@Column("company")
|
||||||
private String company;
|
private String company;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,73 +1,73 @@
|
|||||||
package com.schisandra.auth.infra.basic.entity;
|
package com.schisandra.auth.infra.basic.entity;
|
||||||
|
|
||||||
|
|
||||||
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Column;
|
||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实体类
|
* 实体类
|
||||||
*
|
*
|
||||||
* @author zlg
|
* @author zlg
|
||||||
* @since 2024-05-25 18:05:40
|
* @since 2024-05-25 18:05:40
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Table("schisandra_auth_user_role")
|
@Table("schisandra_auth_user_role")
|
||||||
public class SchisandraAuthUserRole implements Serializable {
|
public class SchisandraAuthUserRole implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("user_id")
|
@Column("user_id")
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("role_id")
|
@Column("role_id")
|
||||||
private Long roleId;
|
private String roleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
@Column("created_by")
|
@Column("created_by")
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "created_time",onInsertValue = "now()")
|
@Column(value = "created_time",onInsertValue = "now()")
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
@Column("update_by")
|
@Column("update_by")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
@Column(value = "update_time",onUpdateValue = "now()")
|
@Column(value = "update_time",onUpdateValue = "now()")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column(value = "is_deleted",isLogicDelete = true)
|
@Column(value = "is_deleted",isLogicDelete = true)
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,174 +1,174 @@
|
|||||||
package com.schisandra.auth.infra.basic.entity;
|
package com.schisandra.auth.infra.basic.entity;
|
||||||
|
|
||||||
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Column;
|
||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实体类
|
* 实体类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:07:49
|
* @since 2024-06-24 11:07:49
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Table("schisandra_social_user")
|
@Table("schisandra_social_user")
|
||||||
public class SchisandraSocialUser implements Serializable {
|
public class SchisandraSocialUser implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方系统的唯一ID
|
* 第三方系统的唯一ID
|
||||||
*/
|
*/
|
||||||
@Column("uuid")
|
@Column("uuid")
|
||||||
private String uuid;
|
private String uuid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户来源
|
* 第三方用户来源
|
||||||
*/
|
*/
|
||||||
@Column("source")
|
@Column("source")
|
||||||
private String source;
|
private String source;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户的授权令牌
|
* 用户的授权令牌
|
||||||
*/
|
*/
|
||||||
@Column("access_token")
|
@Column("access_token")
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的授权令牌的有效期
|
* 第三方用户的授权令牌的有效期
|
||||||
*/
|
*/
|
||||||
@Column("expire_in")
|
@Column("expire_in")
|
||||||
private Integer expireIn;
|
private Integer expireIn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 刷新令牌
|
* 刷新令牌
|
||||||
*/
|
*/
|
||||||
@Column("refresh_token")
|
@Column("refresh_token")
|
||||||
private String refreshToken;
|
private String refreshToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 open id
|
* 第三方用户的 open id
|
||||||
*/
|
*/
|
||||||
@Column("open_id")
|
@Column("open_id")
|
||||||
private String openId;
|
private String openId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 ID
|
* 第三方用户的 ID
|
||||||
*/
|
*/
|
||||||
@Column("uid")
|
@Column("uid")
|
||||||
private String uid;
|
private String uid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个别平台的授权信息
|
* 个别平台的授权信息
|
||||||
*/
|
*/
|
||||||
@Column("access_code")
|
@Column("access_code")
|
||||||
private String accessCode;
|
private String accessCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户的 union id
|
* 第三方用户的 union id
|
||||||
*/
|
*/
|
||||||
@Column("union_id")
|
@Column("union_id")
|
||||||
private String unionId;
|
private String unionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方用户授予的权限
|
* 第三方用户授予的权限
|
||||||
*/
|
*/
|
||||||
@Column("scope")
|
@Column("scope")
|
||||||
private String scope;
|
private String scope;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个别平台的授权信息
|
* 个别平台的授权信息
|
||||||
*/
|
*/
|
||||||
@Column("token_type")
|
@Column("token_type")
|
||||||
private String tokenType;
|
private String tokenType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id token
|
* id token
|
||||||
*/
|
*/
|
||||||
@Column("id_token")
|
@Column("id_token")
|
||||||
private String idToken;
|
private String idToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小米平台用户的附带属性
|
* 小米平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
@Column("mac_algorithm")
|
@Column("mac_algorithm")
|
||||||
private String macAlgorithm;
|
private String macAlgorithm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 小米平台用户的附带属性
|
* 小米平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
@Column("mac_key")
|
@Column("mac_key")
|
||||||
private String macKey;
|
private String macKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户的授权code
|
* 用户的授权code
|
||||||
*/
|
*/
|
||||||
@Column("code")
|
@Column("code")
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter平台用户的附带属性
|
* Twitter平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
@Column("oauth_token")
|
@Column("oauth_token")
|
||||||
private String oauthToken;
|
private String oauthToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter平台用户的附带属性
|
* Twitter平台用户的附带属性
|
||||||
*/
|
*/
|
||||||
@Column("oauth_token_secret")
|
@Column("oauth_token_secret")
|
||||||
private String oauthTokenSecret;
|
private String oauthTokenSecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
@Column("status")
|
@Column("status")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("ext_json")
|
@Column("ext_json")
|
||||||
private String extJson;
|
private String extJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
@Column("created_by")
|
@Column("created_by")
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Column("created_time")
|
@Column("created_time")
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
@Column("update_by")
|
@Column("update_by")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
@Column("update_time")
|
@Column("update_time")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column(value = "is_deleted",isLogicDelete = true)
|
@Column(value = "is_deleted",isLogicDelete = true)
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,72 +1,72 @@
|
|||||||
package com.schisandra.auth.infra.basic.entity;
|
package com.schisandra.auth.infra.basic.entity;
|
||||||
|
|
||||||
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Column;
|
||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实体类
|
* 实体类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:10:08
|
* @since 2024-06-24 11:10:08
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Table("schisandra_social_user_auth")
|
@Table("schisandra_social_user_auth")
|
||||||
public class SchisandraSocialUserAuth implements Serializable {
|
public class SchisandraSocialUserAuth implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("user_id")
|
@Column("user_id")
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column("social_user_id")
|
@Column("social_user_id")
|
||||||
private Long socialUserId;
|
private String socialUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
@Column("created_by")
|
@Column("created_by")
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Column("created_time")
|
@Column("created_time")
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
@Column("update_by")
|
@Column("update_by")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
@Column("update_time")
|
@Column("update_time")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Column(value = "is_deleted",isLogicDelete = true)
|
@Column(value = "is_deleted",isLogicDelete = true)
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,49 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.PageRequest;
|
import java.util.List;
|
||||||
|
|
||||||
import java.util.List;
|
/**
|
||||||
|
* (SchisandraAuthPermission)表服务接口
|
||||||
/**
|
*
|
||||||
* (SchisandraAuthPermission)表服务接口
|
* @author makejava
|
||||||
*
|
* @since 2024-04-11 13:00:10
|
||||||
* @author makejava
|
*/
|
||||||
* @since 2024-04-11 13:00:10
|
public interface SchisandraAuthPermissionService {
|
||||||
*/
|
|
||||||
public interface SchisandraAuthPermissionService {
|
/**
|
||||||
|
* 通过ID查询单条数据
|
||||||
/**
|
*
|
||||||
* 通过ID查询单条数据
|
* @param id 主键
|
||||||
*
|
* @return 实例对象
|
||||||
* @param id 主键
|
*/
|
||||||
* @return 实例对象
|
SchisandraAuthPermission queryById(String id);
|
||||||
*/
|
|
||||||
SchisandraAuthPermission queryById(Long id);
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
/**
|
*
|
||||||
* 新增数据
|
* @param schisandraAuthPermission 实例对象
|
||||||
*
|
* @return 实例对象
|
||||||
* @param schisandraAuthPermission 实例对象
|
*/
|
||||||
* @return 实例对象
|
SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission);
|
||||||
*/
|
|
||||||
SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission);
|
/**
|
||||||
|
* 修改数据
|
||||||
/**
|
*
|
||||||
* 修改数据
|
* @param schisandraAuthPermission 实例对象
|
||||||
*
|
* @return int
|
||||||
* @param schisandraAuthPermission 实例对象
|
*/
|
||||||
* @return int
|
int update(SchisandraAuthPermission schisandraAuthPermission);
|
||||||
*/
|
|
||||||
int update(SchisandraAuthPermission schisandraAuthPermission);
|
/**
|
||||||
|
* 通过主键删除数据
|
||||||
/**
|
*
|
||||||
* 通过主键删除数据
|
* @param id 主键
|
||||||
*
|
* @return 是否成功
|
||||||
* @param id 主键
|
*/
|
||||||
* @return 是否成功
|
boolean deleteById(Long id);
|
||||||
*/
|
|
||||||
boolean deleteById(Long id);
|
List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList);
|
||||||
|
}
|
||||||
List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,49 +1,49 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务接口
|
* 表服务接口
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 00:14:38
|
* @since 2024-06-02 00:14:38
|
||||||
*/
|
*/
|
||||||
public interface SchisandraAuthRolePermissionService {
|
public interface SchisandraAuthRolePermissionService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraAuthRolePermission queryById(Long id);
|
SchisandraAuthRolePermission queryById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRolePermission 实例对象
|
* @param schisandraAuthRolePermission 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int insert(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
int insert(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRolePermission 实例对象
|
* @param schisandraAuthRolePermission 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int update(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
int update(SchisandraAuthRolePermission schisandraAuthRolePermission);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
boolean deleteById(Long id);
|
boolean deleteById(Long id);
|
||||||
|
|
||||||
|
|
||||||
List<SchisandraAuthRolePermission> queryByRoleId(Long roleId);
|
List<SchisandraAuthRolePermission> queryByRoleId(Long roleId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +1,49 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (SchisandraAuthRole)表服务接口
|
* (SchisandraAuthRole)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2024-03-22 21:35:31
|
* @since 2024-03-22 21:35:31
|
||||||
*/
|
*/
|
||||||
public interface SchisandraAuthRoleService {
|
public interface SchisandraAuthRoleService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraAuthRole queryById(Long id);
|
SchisandraAuthRole queryById(String id);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRole 实例对象
|
* @param schisandraAuthRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int insert(SchisandraAuthRole schisandraAuthRole);
|
int insert(SchisandraAuthRole schisandraAuthRole);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRole 实例对象
|
* @param schisandraAuthRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole);
|
SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
boolean deleteById(Long id);
|
boolean deleteById(String id);
|
||||||
|
|
||||||
SchisandraAuthRole queryByRoleId(Long code);
|
SchisandraAuthRole queryByRoleId(String code);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,48 +1,48 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务接口
|
* 表服务接口
|
||||||
*
|
*
|
||||||
* @author zlg
|
* @author zlg
|
||||||
* @since 2024-05-25 18:05:40
|
* @since 2024-05-25 18:05:40
|
||||||
*/
|
*/
|
||||||
public interface SchisandraAuthUserRoleService {
|
public interface SchisandraAuthUserRoleService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraAuthUserRole queryById(Long id);
|
SchisandraAuthUserRole queryById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUserRole 实例对象
|
* @param schisandraAuthUserRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int insert(SchisandraAuthUserRole schisandraAuthUserRole);
|
int insert(SchisandraAuthUserRole schisandraAuthUserRole);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUserRole 实例对象
|
* @param schisandraAuthUserRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int update(SchisandraAuthUserRole schisandraAuthUserRole);
|
int update(SchisandraAuthUserRole schisandraAuthUserRole);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
boolean deleteById(Long id);
|
boolean deleteById(String id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,57 +1,57 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (SchisandraAuthUser)表服务接口
|
* (SchisandraAuthUser)表服务接口
|
||||||
*
|
*
|
||||||
* @author schisandra
|
* @author schisandra
|
||||||
* @since 2024-03-21 20:15:44
|
* @since 2024-03-21 20:15:44
|
||||||
*/
|
*/
|
||||||
public interface SchisandraAuthUserService {
|
public interface SchisandraAuthUserService {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SchisandraAuthUser queryByEmail(String email);
|
SchisandraAuthUser queryByEmail(String email);
|
||||||
SchisandraAuthUser queryByPhone(String phone);
|
SchisandraAuthUser queryByPhone(String phone);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraAuthUser queryById(Long id);
|
SchisandraAuthUser queryById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUser 实例对象
|
* @param schisandraAuthUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
Boolean insert(SchisandraAuthUser schisandraAuthUser);
|
Boolean insert(SchisandraAuthUser schisandraAuthUser);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUser 实例对象
|
* @param schisandraAuthUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int update(SchisandraAuthUser schisandraAuthUser);
|
int update(SchisandraAuthUser schisandraAuthUser);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
boolean deleteById(Long id);
|
boolean deleteById(String id);
|
||||||
|
|
||||||
|
|
||||||
int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser);
|
int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser);
|
||||||
|
|
||||||
boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser);
|
boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,46 +1,46 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务接口
|
* 表服务接口
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:10:08
|
* @since 2024-06-24 11:10:08
|
||||||
*/
|
*/
|
||||||
public interface SchisandraSocialUserAuthService {
|
public interface SchisandraSocialUserAuthService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraSocialUserAuth queryById(Long id);
|
SchisandraSocialUserAuth queryById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUserAuth 实例对象
|
* @param schisandraSocialUserAuth 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int insert(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
int insert(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUserAuth 实例对象
|
* @param schisandraSocialUserAuth 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int update(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
int update(SchisandraSocialUserAuth schisandraSocialUserAuth);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
boolean deleteById(Long id);
|
boolean deleteById(String id);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,53 +1,53 @@
|
|||||||
package com.schisandra.auth.infra.basic.service;
|
package com.schisandra.auth.infra.basic.service;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务接口
|
* 表服务接口
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:07:49
|
* @since 2024-06-24 11:07:49
|
||||||
*/
|
*/
|
||||||
public interface SchisandraSocialUserService {
|
public interface SchisandraSocialUserService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
SchisandraSocialUser queryById(Long id);
|
SchisandraSocialUser queryById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUser 实例对象
|
* @param schisandraSocialUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int insert(SchisandraSocialUser schisandraSocialUser);
|
int insert(SchisandraSocialUser schisandraSocialUser);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUser 实例对象
|
* @param schisandraSocialUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
int update(SchisandraSocialUser schisandraSocialUser);
|
int update(SchisandraSocialUser schisandraSocialUser);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
boolean deleteById(Long id);
|
boolean deleteById(String id);
|
||||||
|
|
||||||
|
|
||||||
SchisandraSocialUser selectByUuidAndType(String uuid, String type);
|
SchisandraSocialUser selectByUuidAndType(String uuid, String type);
|
||||||
|
|
||||||
int updateById(SchisandraSocialUser schisandraSocialUser);
|
int updateById(SchisandraSocialUser schisandraSocialUser);
|
||||||
|
|
||||||
int insertSocialUser(SchisandraSocialUser schisandraSocialUser);
|
int insertSocialUser(SchisandraSocialUser schisandraSocialUser);
|
||||||
|
|
||||||
SchisandraSocialUser selectByOpenId(String openId);
|
SchisandraSocialUser selectByOpenId(String openId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,77 +1,77 @@
|
|||||||
package com.schisandra.auth.infra.basic.service.impl;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
import com.mybatisflex.spring.service.impl.CacheableServiceImpl;
|
import com.mybatisflex.spring.service.impl.CacheableServiceImpl;
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthPermissionService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthPermissionService;
|
||||||
import org.springframework.cache.annotation.CacheConfig;
|
import org.springframework.cache.annotation.CacheConfig;
|
||||||
import org.springframework.cache.annotation.Cacheable;
|
import org.springframework.cache.annotation.Cacheable;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (SchisandraAuthPermission)表服务实现类
|
* (SchisandraAuthPermission)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2024-04-11 13:00:10
|
* @since 2024-04-11 13:00:10
|
||||||
*/
|
*/
|
||||||
@Service("schisandraAuthPermissionService")
|
@Service("schisandraAuthPermissionService")
|
||||||
@CacheConfig(cacheNames = "AuthPermission")
|
@CacheConfig(cacheNames = "AuthPermission")
|
||||||
public class SchisandraAuthPermissionServiceImpl extends CacheableServiceImpl<SchisandraAuthPermissionDao,SchisandraAuthPermission> implements SchisandraAuthPermissionService {
|
public class SchisandraAuthPermissionServiceImpl extends CacheableServiceImpl<SchisandraAuthPermissionDao,SchisandraAuthPermission> implements SchisandraAuthPermissionService {
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthPermissionDao schisandraAuthPermissionDao;
|
private SchisandraAuthPermissionDao schisandraAuthPermissionDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(key = "#id")
|
@Cacheable(key = "#id")
|
||||||
public SchisandraAuthPermission queryById(Long id) {
|
public SchisandraAuthPermission queryById(String id) {
|
||||||
return this.schisandraAuthPermissionDao.selectOneById(id);
|
return this.schisandraAuthPermissionDao.selectOneById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthPermission 实例对象
|
* @param schisandraAuthPermission 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission) {
|
public SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission) {
|
||||||
this.schisandraAuthPermissionDao.insert(schisandraAuthPermission,true);
|
this.schisandraAuthPermissionDao.insert(schisandraAuthPermission,true);
|
||||||
return schisandraAuthPermission;
|
return schisandraAuthPermission;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthPermission 实例对象
|
* @param schisandraAuthPermission 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(SchisandraAuthPermission schisandraAuthPermission) {
|
public int update(SchisandraAuthPermission schisandraAuthPermission) {
|
||||||
return this.schisandraAuthPermissionDao.update(schisandraAuthPermission,true);
|
return this.schisandraAuthPermissionDao.update(schisandraAuthPermission,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(Long id) {
|
||||||
return this.schisandraAuthPermissionDao.deleteById(id) > 0;
|
return this.schisandraAuthPermissionDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList) {
|
public List<SchisandraAuthPermission> queryListByIds(List<String> permissionIdList) {
|
||||||
return schisandraAuthPermissionDao.selectListByIds(permissionIdList);
|
return schisandraAuthPermissionDao.selectListByIds(permissionIdList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,75 +1,75 @@
|
|||||||
package com.schisandra.auth.infra.basic.service.impl;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRolePermissionTableDef;
|
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRolePermissionTableDef;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务实现类
|
* 表服务实现类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 00:14:38
|
* @since 2024-06-02 00:14:38
|
||||||
*/
|
*/
|
||||||
@Service("SchisandraAuthRolePermissionService")
|
@Service("SchisandraAuthRolePermissionService")
|
||||||
public class SchisandraAuthRolePermissionServiceImpl implements SchisandraAuthRolePermissionService {
|
public class SchisandraAuthRolePermissionServiceImpl implements SchisandraAuthRolePermissionService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthRolePermissionDao schisandraAuthRolePermissionDao;
|
private SchisandraAuthRolePermissionDao schisandraAuthRolePermissionDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthRolePermission queryById(Long id) {
|
public SchisandraAuthRolePermission queryById(String id) {
|
||||||
return this.schisandraAuthRolePermissionDao.selectOneById(id);
|
return this.schisandraAuthRolePermissionDao.selectOneById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRolePermission 实例对象
|
* @param schisandraAuthRolePermission 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insert(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
public int insert(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
||||||
return this.schisandraAuthRolePermissionDao.insert(schisandraAuthRolePermission, true);
|
return this.schisandraAuthRolePermissionDao.insert(schisandraAuthRolePermission, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRolePermission 实例对象
|
* @param schisandraAuthRolePermission 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
public int update(SchisandraAuthRolePermission schisandraAuthRolePermission) {
|
||||||
return this.schisandraAuthRolePermissionDao.update(schisandraAuthRolePermission, true);
|
return this.schisandraAuthRolePermissionDao.update(schisandraAuthRolePermission, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(Long id) {
|
||||||
return this.schisandraAuthRolePermissionDao.deleteById(id) > 0;
|
return this.schisandraAuthRolePermissionDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SchisandraAuthRolePermission> queryByRoleId(Long roleId) {
|
public List<SchisandraAuthRolePermission> queryByRoleId(Long roleId) {
|
||||||
return schisandraAuthRolePermissionDao.selectListByCondition(SchisandraAuthRolePermissionTableDef.SCHISANDRA_AUTH_ROLE_PERMISSION.ROLE_ID.eq(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;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRoleTableDef;
|
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthRoleTableDef;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthRoleService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (SchisandraAuthRole)表服务实现类
|
* (SchisandraAuthRole)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2024-03-22 21:35:31
|
* @since 2024-03-22 21:35:31
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@Service("schisandraAuthRoleService")
|
@Service("schisandraAuthRoleService")
|
||||||
public class SchisandraAuthRoleServiceImpl implements SchisandraAuthRoleService {
|
public class SchisandraAuthRoleServiceImpl implements SchisandraAuthRoleService {
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthRole queryById(Long id) {
|
public SchisandraAuthRole queryById(String id) {
|
||||||
return this.schisandraAuthRoleDao.selectOneById(id);
|
return this.schisandraAuthRoleDao.selectOneById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRole 实例对象
|
* @param schisandraAuthRole 实例对象
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insert(SchisandraAuthRole schisandraAuthRole) {
|
public int insert(SchisandraAuthRole schisandraAuthRole) {
|
||||||
return this.schisandraAuthRoleDao.insert(schisandraAuthRole,true);
|
return this.schisandraAuthRoleDao.insert(schisandraAuthRole,true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthRole 实例对象
|
* @param schisandraAuthRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole) {
|
public SchisandraAuthRole update(SchisandraAuthRole schisandraAuthRole) {
|
||||||
this.schisandraAuthRoleDao.update(schisandraAuthRole,true);
|
this.schisandraAuthRoleDao.update(schisandraAuthRole,true);
|
||||||
return this.queryById(schisandraAuthRole.getId());
|
return this.queryById(schisandraAuthRole.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(String id) {
|
||||||
return this.schisandraAuthRoleDao.deleteById(id) > 0;
|
return this.schisandraAuthRoleDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthRole queryByRoleId(Long code) {
|
public SchisandraAuthRole queryByRoleId(String code) {
|
||||||
return schisandraAuthRoleDao.selectOneByCondition(SchisandraAuthRoleTableDef.SCHISANDRA_AUTH_ROLE.ID.eq(code));
|
return schisandraAuthRoleDao.selectOneByCondition(SchisandraAuthRoleTableDef.SCHISANDRA_AUTH_ROLE.ID.eq(code));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,79 +1,79 @@
|
|||||||
package com.schisandra.auth.infra.basic.service.impl;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.mybatisflex.core.query.QueryWrapper;
|
import com.mybatisflex.core.query.QueryWrapper;
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao;
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole;
|
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.SchisandraAuthRoleTableDef;
|
||||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserRoleTableDef;
|
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserRoleTableDef;
|
||||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserRoleService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserRoleService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务实现类
|
* 表服务实现类
|
||||||
*
|
*
|
||||||
* @author zlg
|
* @author zlg
|
||||||
* @since 2024-05-25 18:05:40
|
* @since 2024-05-25 18:05:40
|
||||||
*/
|
*/
|
||||||
@Service("SchisandraAuthUserRoleService")
|
@Service("SchisandraAuthUserRoleService")
|
||||||
public class SchisandraAuthUserRoleServiceImpl implements SchisandraAuthUserRoleService {
|
public class SchisandraAuthUserRoleServiceImpl implements SchisandraAuthUserRoleService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthUserRoleDao schisandraAuthUserRoleDao;
|
private SchisandraAuthUserRoleDao schisandraAuthUserRoleDao;
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
private SchisandraAuthRoleDao schisandraAuthRoleDao;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthUserRole queryById(Long id) {
|
public SchisandraAuthUserRole queryById(String id) {
|
||||||
return this.schisandraAuthUserRoleDao.selectOneByCondition(SchisandraAuthUserRoleTableDef.SCHISANDRA_AUTH_USER_ROLE.USER_ID.eq(id));
|
return this.schisandraAuthUserRoleDao.selectOneByCondition(SchisandraAuthUserRoleTableDef.SCHISANDRA_AUTH_USER_ROLE.USER_ID.eq(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUserRole 实例对象
|
* @param schisandraAuthUserRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insert(SchisandraAuthUserRole schisandraAuthUserRole) {
|
public int insert(SchisandraAuthUserRole schisandraAuthUserRole) {
|
||||||
return this.schisandraAuthUserRoleDao.insert(schisandraAuthUserRole,true);
|
return this.schisandraAuthUserRoleDao.insert(schisandraAuthUserRole,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUserRole 实例对象
|
* @param schisandraAuthUserRole 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(SchisandraAuthUserRole schisandraAuthUserRole) {
|
public int update(SchisandraAuthUserRole schisandraAuthUserRole) {
|
||||||
return this.schisandraAuthUserRoleDao.update(schisandraAuthUserRole,true);
|
return this.schisandraAuthUserRoleDao.update(schisandraAuthUserRole,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(String id) {
|
||||||
return this.schisandraAuthUserRoleDao.deleteById(id) > 0;
|
return this.schisandraAuthUserRoleDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,98 +1,98 @@
|
|||||||
package com.schisandra.auth.infra.basic.service.impl;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.mybatisflex.core.update.UpdateChain;
|
import com.mybatisflex.core.update.UpdateChain;
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
import com.schisandra.auth.infra.basic.entity.table.SchisandraAuthUserTableDef;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserService;
|
import com.schisandra.auth.infra.basic.service.SchisandraAuthUserService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (SchisandraAuthUser)表服务实现类
|
* (SchisandraAuthUser)表服务实现类
|
||||||
*
|
*
|
||||||
* @author schisandra
|
* @author schisandra
|
||||||
* @since 2024-03-21 20:15:44
|
* @since 2024-03-21 20:15:44
|
||||||
*/
|
*/
|
||||||
@Service("SchisandraAuthUserService")
|
@Service("SchisandraAuthUserService")
|
||||||
public class SchisandraAuthUserServiceImpl implements SchisandraAuthUserService {
|
public class SchisandraAuthUserServiceImpl implements SchisandraAuthUserService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraAuthUserDao schisandraAuthUserDao;
|
private SchisandraAuthUserDao schisandraAuthUserDao;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthUser queryByEmail(String email) {
|
public SchisandraAuthUser queryByEmail(String email) {
|
||||||
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.EMAIL.eq(email)
|
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.EMAIL.eq(email)
|
||||||
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthUser queryByPhone(String phone) {
|
public SchisandraAuthUser queryByPhone(String phone) {
|
||||||
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.PHONE.eq(phone)
|
return schisandraAuthUserDao.selectOneByCondition(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.PHONE.eq(phone)
|
||||||
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
.and(SchisandraAuthUserTableDef.SCHISANDRA_AUTH_USER.IS_DELETED.eq(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraAuthUser queryById(Long id) {
|
public SchisandraAuthUser queryById(String id) {
|
||||||
return this.schisandraAuthUserDao.selectOneById(id);
|
return this.schisandraAuthUserDao.selectOneById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUser 实例对象
|
* @param schisandraAuthUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Boolean insert(SchisandraAuthUser schisandraAuthUser) {
|
public Boolean insert(SchisandraAuthUser schisandraAuthUser) {
|
||||||
|
|
||||||
return this.schisandraAuthUserDao.insert(schisandraAuthUser, true) > 0;
|
return this.schisandraAuthUserDao.insert(schisandraAuthUser, true) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据主键修改数据
|
* 根据主键修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraAuthUser 实例对象
|
* @param schisandraAuthUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(SchisandraAuthUser schisandraAuthUser) {
|
public int update(SchisandraAuthUser schisandraAuthUser) {
|
||||||
return this.schisandraAuthUserDao.update(schisandraAuthUser, true);
|
return this.schisandraAuthUserDao.update(schisandraAuthUser, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(String id) {
|
||||||
return this.schisandraAuthUserDao.deleteById(id) > 0;
|
return this.schisandraAuthUserDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser) {
|
public int insertAuthUserByOauth(SchisandraAuthUser schisandraAuthUser) {
|
||||||
return schisandraAuthUserDao.insertSelective(schisandraAuthUser);
|
return schisandraAuthUserDao.insertSelective(schisandraAuthUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser) {
|
public boolean updateUserPasswordByPhone(SchisandraAuthUser schisandraAuthUser) {
|
||||||
return UpdateChain.of(SchisandraAuthUser.class)
|
return UpdateChain.of(SchisandraAuthUser.class)
|
||||||
.set(SchisandraAuthUser::getPassword, schisandraAuthUser.getPassword())
|
.set(SchisandraAuthUser::getPassword, schisandraAuthUser.getPassword())
|
||||||
.where(SchisandraAuthUser::getPhone).eq(schisandraAuthUser.getPhone())
|
.where(SchisandraAuthUser::getPhone).eq(schisandraAuthUser.getPhone())
|
||||||
.update();
|
.update();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,67 +1,67 @@
|
|||||||
package com.schisandra.auth.infra.basic.service.impl;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth;
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserAuthService;
|
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserAuthService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务实现类
|
* 表服务实现类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:10:08
|
* @since 2024-06-24 11:10:08
|
||||||
*/
|
*/
|
||||||
@Service("SchisandraSocialUserAuthService")
|
@Service("SchisandraSocialUserAuthService")
|
||||||
public class SchisandraSocialUserAuthServiceImpl implements SchisandraSocialUserAuthService {
|
public class SchisandraSocialUserAuthServiceImpl implements SchisandraSocialUserAuthService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraSocialUserAuthDao schisandraSocialUserAuthDao;
|
private SchisandraSocialUserAuthDao schisandraSocialUserAuthDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraSocialUserAuth queryById(Long id) {
|
public SchisandraSocialUserAuth queryById(String id) {
|
||||||
return this.schisandraSocialUserAuthDao.selectOneById(id);
|
return this.schisandraSocialUserAuthDao.selectOneById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUserAuth 实例对象
|
* @param schisandraSocialUserAuth 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insert(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
public int insert(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
||||||
return this.schisandraSocialUserAuthDao.insertSelective(schisandraSocialUserAuth);
|
return this.schisandraSocialUserAuthDao.insertSelective(schisandraSocialUserAuth);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUserAuth 实例对象
|
* @param schisandraSocialUserAuth 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
public int update(SchisandraSocialUserAuth schisandraSocialUserAuth) {
|
||||||
return this.schisandraSocialUserAuthDao.update(schisandraSocialUserAuth,true);
|
return this.schisandraSocialUserAuthDao.update(schisandraSocialUserAuth,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(String id) {
|
||||||
return this.schisandraSocialUserAuthDao.deleteById(id) > 0;
|
return this.schisandraSocialUserAuthDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,117 +1,117 @@
|
|||||||
package com.schisandra.auth.infra.basic.service.impl;
|
package com.schisandra.auth.infra.basic.service.impl;
|
||||||
|
|
||||||
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao;
|
import com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao;
|
||||||
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
import com.schisandra.auth.infra.basic.entity.SchisandraSocialUser;
|
||||||
import com.schisandra.auth.infra.basic.entity.table.SchisandraSocialUserTableDef;
|
import com.schisandra.auth.infra.basic.entity.table.SchisandraSocialUserTableDef;
|
||||||
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserService;
|
import com.schisandra.auth.infra.basic.service.SchisandraSocialUserService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表服务实现类
|
* 表服务实现类
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-24 11:07:49
|
* @since 2024-06-24 11:07:49
|
||||||
*/
|
*/
|
||||||
@Service("SchisandraSocialUserService")
|
@Service("SchisandraSocialUserService")
|
||||||
public class SchisandraSocialUserServiceImpl implements SchisandraSocialUserService {
|
public class SchisandraSocialUserServiceImpl implements SchisandraSocialUserService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraSocialUserDao schisandraSocialUserDao;
|
private SchisandraSocialUserDao schisandraSocialUserDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过ID查询单条数据
|
* 通过ID查询单条数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraSocialUser queryById(Long id) {
|
public SchisandraSocialUser queryById(String id) {
|
||||||
return this.schisandraSocialUserDao.selectOneById(id);
|
return this.schisandraSocialUserDao.selectOneById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增数据
|
* 新增数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUser 实例对象
|
* @param schisandraSocialUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insert(SchisandraSocialUser schisandraSocialUser) {
|
public int insert(SchisandraSocialUser schisandraSocialUser) {
|
||||||
return this.schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
return this.schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
* @param schisandraSocialUser 实例对象
|
* @param schisandraSocialUser 实例对象
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(SchisandraSocialUser schisandraSocialUser) {
|
public int update(SchisandraSocialUser schisandraSocialUser) {
|
||||||
return this.schisandraSocialUserDao.update(schisandraSocialUser, true);
|
return this.schisandraSocialUserDao.update(schisandraSocialUser, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过主键删除数据
|
* 通过主键删除数据
|
||||||
*
|
*
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteById(Long id) {
|
public boolean deleteById(String id) {
|
||||||
return this.schisandraSocialUserDao.deleteById(id) > 0;
|
return this.schisandraSocialUserDao.deleteById(id) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 根据uuid和type查询用户
|
* @description: 根据uuid和type查询用户
|
||||||
* @param: [uuid, type]
|
* @param: [uuid, type]
|
||||||
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
||||||
* @author: landaiqing
|
* @author: landaiqing
|
||||||
* @date: 2024/6/24 上午11:17
|
* @date: 2024/6/24 上午11:17
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraSocialUser selectByUuidAndType(String uuid, String type) {
|
public SchisandraSocialUser selectByUuidAndType(String uuid, String type) {
|
||||||
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.UUID.eq(uuid)
|
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.UUID.eq(uuid)
|
||||||
.and(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.SOURCE.eq(type)));
|
.and(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.SOURCE.eq(type)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 根据id更新社会用户信息
|
* @description: 根据id更新社会用户信息
|
||||||
* @param: [schisandraSocialUser]
|
* @param: [schisandraSocialUser]
|
||||||
* @return: int
|
* @return: int
|
||||||
* @author: landaiqing
|
* @author: landaiqing
|
||||||
* @date: 2024/6/24 上午11:23
|
* @date: 2024/6/24 上午11:23
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int updateById(SchisandraSocialUser schisandraSocialUser) {
|
public int updateById(SchisandraSocialUser schisandraSocialUser) {
|
||||||
return schisandraSocialUserDao.update(schisandraSocialUser, true);
|
return schisandraSocialUserDao.update(schisandraSocialUser, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 插入社会用户信息
|
* @description: 插入社会用户信息
|
||||||
* @param: [schisandraSocialUser]
|
* @param: [schisandraSocialUser]
|
||||||
* @return: int
|
* @return: int
|
||||||
* @author: landaiqing
|
* @author: landaiqing
|
||||||
* @date: 2024/6/27 下午3:05
|
* @date: 2024/6/27 下午3:05
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insertSocialUser(SchisandraSocialUser schisandraSocialUser) {
|
public int insertSocialUser(SchisandraSocialUser schisandraSocialUser) {
|
||||||
return schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
return schisandraSocialUserDao.insertSelective(schisandraSocialUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 根据openId查询用户
|
* @description: 根据openId查询用户
|
||||||
* @param: [appId, openId]
|
* @param: [appId, openId]
|
||||||
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
* @return: com.schisandra.auth.infra.basic.entity.SchisandraSocialUser
|
||||||
* @author: landaiqing
|
* @author: landaiqing
|
||||||
* @date: 2024/6/27 下午3:05
|
* @date: 2024/6/27 下午3:05
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SchisandraSocialUser selectByOpenId(String openId) {
|
public SchisandraSocialUser selectByOpenId(String openId) {
|
||||||
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.OPEN_ID.eq(openId));
|
return schisandraSocialUserDao.selectOneByCondition(SchisandraSocialUserTableDef.SCHISANDRA_SOCIAL_USER.OPEN_ID.eq(openId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,207 +1,207 @@
|
|||||||
package com.schisandra.auth.infra.entity;
|
package com.schisandra.auth.infra.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信配置信息表 dto
|
* 短信配置信息表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-19 22:20:47
|
* @since 2024-06-19 22:20:47
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SmsConfigInfo implements Serializable {
|
public class SmsConfigInfo implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
*/
|
*/
|
||||||
private Integer id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 配置id
|
* 配置id
|
||||||
*/
|
*/
|
||||||
private String configId;
|
private String configId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求地址
|
* 请求地址
|
||||||
*/
|
*/
|
||||||
private String requestUrl;
|
private String requestUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模板变量名称
|
* 模板变量名称
|
||||||
*/
|
*/
|
||||||
private String templateName;
|
private String templateName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接口名称
|
* 接口名称
|
||||||
*/
|
*/
|
||||||
private String action;
|
private String action;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 地域信息
|
* 地域信息
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeySecret;
|
private String accessKeySecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厂商名称标识
|
* 厂商名称标识
|
||||||
*/
|
*/
|
||||||
private String supplier;
|
private String supplier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信签名
|
* 短信签名
|
||||||
*/
|
*/
|
||||||
private String signature;
|
private String signature;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String sdkAppId;
|
private String sdkAppId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模板ID
|
* 模板ID
|
||||||
*/
|
*/
|
||||||
private String templateId;
|
private String templateId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权重
|
* 权重
|
||||||
*/
|
*/
|
||||||
private Integer weight;
|
private Integer weight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信重试次数,默认0次不重试
|
* 短信重试次数,默认0次不重试
|
||||||
*/
|
*/
|
||||||
private Integer retryInterval;
|
private Integer retryInterval;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信重试次数,默认0次不重试
|
* 短信重试次数,默认0次不重试
|
||||||
*/
|
*/
|
||||||
private Integer maxRetries;
|
private Integer maxRetries;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厂商的发送数量上限,默认不设置上限
|
* 厂商的发送数量上限,默认不设置上限
|
||||||
*/
|
*/
|
||||||
private Long maximum;
|
private Long maximum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* REST API Base URL
|
* REST API Base URL
|
||||||
*/
|
*/
|
||||||
private String baseUrl;
|
private String baseUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求域名
|
* 请求域名
|
||||||
*/
|
*/
|
||||||
private String serverIp;
|
private String serverIp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求端口
|
* 请求端口
|
||||||
*/
|
*/
|
||||||
private Integer serverPort;
|
private Integer serverPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 国内短信签名通道号
|
* 国内短信签名通道号
|
||||||
*/
|
*/
|
||||||
private String sender;
|
private String sender;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信状态报告接收地
|
* 短信状态报告接收地
|
||||||
*/
|
*/
|
||||||
private String statusCallBack;
|
private String statusCallBack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APP接入地址
|
* APP接入地址
|
||||||
*/
|
*/
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模板短信请求地址
|
* 模板短信请求地址
|
||||||
*/
|
*/
|
||||||
private String templateUrl;
|
private String templateUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码短信请求地址
|
* 验证码短信请求地址
|
||||||
*/
|
*/
|
||||||
private String codeUrl;
|
private String codeUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码验证请求地址
|
* 验证码验证请求地址
|
||||||
*/
|
*/
|
||||||
private String verifyUrl;
|
private String verifyUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否需要支持短信上行。true:需要,false:不需要false
|
* 是否需要支持短信上行。true:需要,false:不需要false
|
||||||
*/
|
*/
|
||||||
private String needUp;
|
private String needUp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求超时时间
|
* 请求超时时间
|
||||||
*/
|
*/
|
||||||
private Integer connTimeout;
|
private Integer connTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否为简易模式
|
* 是否为简易模式
|
||||||
*/
|
*/
|
||||||
private String isSimple;
|
private String isSimple;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 短信发送后将向这个地址推送(运营商返回的)发送报告
|
* 短信发送后将向这个地址推送(运营商返回的)发送报告
|
||||||
*/
|
*/
|
||||||
private String callbackUrl;
|
private String callbackUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 企业ID
|
* 企业ID
|
||||||
*/
|
*/
|
||||||
private Integer mchId;
|
private Integer mchId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String appKey;
|
private String appKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer appId;
|
private Integer appId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 版本号
|
* 版本号
|
||||||
*/
|
*/
|
||||||
private String version;
|
private String version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单发链接
|
* 单发链接
|
||||||
*/
|
*/
|
||||||
private String singleMsgUrl;
|
private String singleMsgUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 群发链接
|
* 群发链接
|
||||||
*/
|
*/
|
||||||
private String massMsgUrl;
|
private String massMsgUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签名ID
|
* 签名ID
|
||||||
*/
|
*/
|
||||||
private String signatureId;
|
private String signatureId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务名
|
* 服务名
|
||||||
*/
|
*/
|
||||||
private String service;
|
private String service;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao">
|
||||||
|
|
||||||
<resultMap type="com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission" id="SchisandraAuthPermissionMap">
|
<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="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="type" column="type" jdbcType="INTEGER"/>
|
||||||
<result property="path" column="path" jdbcType="VARCHAR"/>
|
<result property="path" column="path" jdbcType="VARCHAR"/>
|
||||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthRoleDao">
|
||||||
|
|
||||||
<resultMap type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRole" id="SchisandraAuthRoleMap">
|
<resultMap type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRole" id="SchisandraAuthRoleMap">
|
||||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
|
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
|
||||||
<result property="roleKey" column="role_key" jdbcType="VARCHAR"/>
|
<result property="roleKey" column="role_key" jdbcType="VARCHAR"/>
|
||||||
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
|
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
|
||||||
<result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
<result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
|
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao">
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission">
|
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission">
|
||||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||||
<result column="role_id" jdbcType="BIGINT" property="roleId"/>
|
<result column="role_id" jdbcType="VARCHAR" property="roleId"/>
|
||||||
<result column="permission_id" jdbcType="BIGINT" property="permissionId"/>
|
<result column="permission_id" jdbcType="VARCHAR" property="permissionId"/>
|
||||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthUserDao">
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUser">
|
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUser">
|
||||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||||
<result column="user_name" jdbcType="VARCHAR" property="userName"/>
|
<result column="user_name" jdbcType="VARCHAR" property="userName"/>
|
||||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||||
<result column="nick_name" jdbcType="VARCHAR" property="nickName"/>
|
<result column="nick_name" jdbcType="VARCHAR" property="nickName"/>
|
||||||
<result column="email" jdbcType="VARCHAR" property="email"/>
|
<result column="email" jdbcType="VARCHAR" property="email"/>
|
||||||
<result column="phone" jdbcType="VARCHAR" property="phone"/>
|
<result column="phone" jdbcType="VARCHAR" property="phone"/>
|
||||||
<result column="password" jdbcType="VARCHAR" property="password"/>
|
<result column="password" jdbcType="VARCHAR" property="password"/>
|
||||||
<result column="gender" jdbcType="VARCHAR" property="gender"/>
|
<result column="gender" jdbcType="VARCHAR" property="gender"/>
|
||||||
<result column="avatar" jdbcType="VARCHAR" property="avatar"/>
|
<result column="avatar" jdbcType="VARCHAR" property="avatar"/>
|
||||||
<result column="status" jdbcType="TINYINT" property="status"/>
|
<result column="status" jdbcType="TINYINT" property="status"/>
|
||||||
<result column="introduce" jdbcType="VARCHAR" property="introduce"/>
|
<result column="introduce" jdbcType="VARCHAR" property="introduce"/>
|
||||||
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
||||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||||
<result column="blog" jdbcType="VARCHAR" property="blog"/>
|
<result column="blog" jdbcType="VARCHAR" property="blog"/>
|
||||||
<result column="location" jdbcType="VARCHAR" property="location"/>
|
<result column="location" jdbcType="VARCHAR" property="location"/>
|
||||||
<result column="company" jdbcType="VARCHAR" property="company"/>
|
<result column="company" jdbcType="VARCHAR" property="company"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraAuthUserRoleDao">
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole">
|
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraAuthUserRole">
|
||||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||||
<result column="user_id" jdbcType="BIGINT" property="userId"/>
|
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
||||||
<result column="role_id" jdbcType="BIGINT" property="roleId"/>
|
<result column="role_id" jdbcType="VARCHAR" property="roleId"/>
|
||||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraSocialUserAuthDao">
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth">
|
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUserAuth">
|
||||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||||
<result column="user_id" jdbcType="BIGINT" property="userId"/>
|
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
||||||
<result column="social_user_id" jdbcType="BIGINT" property="socialUserId"/>
|
<result column="social_user_id" jdbcType="VARCHAR" property="socialUserId"/>
|
||||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.schisandra.auth.infra.basic.dao.SchisandraSocialUserDao">
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUser">
|
<resultMap id="BaseResultMap" type="com.schisandra.auth.infra.basic.entity.SchisandraSocialUser">
|
||||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||||
<result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
|
<result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
|
||||||
<result column="expire_in" jdbcType="INTEGER" property="expireIn"/>
|
<result column="expire_in" jdbcType="INTEGER" property="expireIn"/>
|
||||||
<result column="refresh_token" jdbcType="VARCHAR" property="refreshToken"/>
|
<result column="refresh_token" jdbcType="VARCHAR" property="refreshToken"/>
|
||||||
<result column="open_id" jdbcType="VARCHAR" property="openId"/>
|
<result column="open_id" jdbcType="VARCHAR" property="openId"/>
|
||||||
<result column="uid" jdbcType="VARCHAR" property="uid"/>
|
<result column="uid" jdbcType="VARCHAR" property="uid"/>
|
||||||
<result column="access_code" jdbcType="VARCHAR" property="accessCode"/>
|
<result column="access_code" jdbcType="VARCHAR" property="accessCode"/>
|
||||||
<result column="union_id" jdbcType="VARCHAR" property="unionId"/>
|
<result column="union_id" jdbcType="VARCHAR" property="unionId"/>
|
||||||
<result column="scope" jdbcType="VARCHAR" property="scope"/>
|
<result column="scope" jdbcType="VARCHAR" property="scope"/>
|
||||||
<result column="token_type" jdbcType="VARCHAR" property="tokenType"/>
|
<result column="token_type" jdbcType="VARCHAR" property="tokenType"/>
|
||||||
<result column="id_token" jdbcType="VARCHAR" property="idToken"/>
|
<result column="id_token" jdbcType="VARCHAR" property="idToken"/>
|
||||||
<result column="mac_algorithm" jdbcType="VARCHAR" property="macAlgorithm"/>
|
<result column="mac_algorithm" jdbcType="VARCHAR" property="macAlgorithm"/>
|
||||||
<result column="mac_key" jdbcType="VARCHAR" property="macKey"/>
|
<result column="mac_key" jdbcType="VARCHAR" property="macKey"/>
|
||||||
<result column="code" jdbcType="VARCHAR" property="code"/>
|
<result column="code" jdbcType="VARCHAR" property="code"/>
|
||||||
<result column="oauth_token" jdbcType="VARCHAR" property="oauthToken"/>
|
<result column="oauth_token" jdbcType="VARCHAR" property="oauthToken"/>
|
||||||
<result column="oauth_token_secret" jdbcType="VARCHAR" property="oauthTokenSecret"/>
|
<result column="oauth_token_secret" jdbcType="VARCHAR" property="oauthTokenSecret"/>
|
||||||
<result column="status" jdbcType="VARCHAR" property="status"/>
|
<result column="status" jdbcType="VARCHAR" property="status"/>
|
||||||
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
<result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
|
||||||
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
|
||||||
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
|
||||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
package com.schisandra.oss.application.config;
|
package com.schisandra.oss.application.config;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.http.converter.HttpMessageConverter;
|
import org.springframework.http.converter.HttpMessageConverter;
|
||||||
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
||||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Classname GlobalConfig
|
* @Classname GlobalConfig
|
||||||
* @BelongsProject: schisandra-cloud-storage
|
* @BelongsProject: schisandra-cloud-storage
|
||||||
* @BelongsPackage: com.schisandra.auth.application.common
|
* @BelongsPackage: com.schisandra.auth.application.common
|
||||||
* @Author: schisandra
|
* @Author: schisandra
|
||||||
* @CreateTime: 2024-02-16 15:57
|
* @CreateTime: 2024-02-16 15:57
|
||||||
* @Description: MVC全局处理
|
* @Description: MVC全局处理
|
||||||
* @Version: 1.0
|
* @Version: 1.0
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
public class GlobalConfig extends WebMvcConfigurationSupport {
|
public class GlobalConfig extends WebMvcConfigurationSupport {
|
||||||
@Override
|
@Override
|
||||||
protected void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
|
protected void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
|
||||||
super.configureMessageConverters(converters);
|
super.configureMessageConverters(converters);
|
||||||
converters.add(mappingJackson2HttpMessageConverter());
|
converters.add(mappingJackson2HttpMessageConverter());
|
||||||
}
|
}
|
||||||
|
|
||||||
private MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter() {
|
private MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter() {
|
||||||
ObjectMapper objectMapper = new ObjectMapper();
|
ObjectMapper objectMapper = new ObjectMapper();
|
||||||
objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
|
objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
|
||||||
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||||
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(objectMapper);
|
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(objectMapper);
|
||||||
return converter;
|
return converter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import cn.hutool.extra.spring.SpringUtil;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.schisandra.oss.application.convert.SchisandraOssAliDTOConverter;
|
import com.schisandra.oss.application.convert.SchisandraOssAliDTOConverter;
|
||||||
import com.schisandra.oss.application.convert.SchisandraOssMinioDTOConverter;
|
|
||||||
import com.schisandra.oss.application.dto.SchisandraOssAliDTO;
|
import com.schisandra.oss.application.dto.SchisandraOssAliDTO;
|
||||||
import com.schisandra.oss.application.oss.constant.OssConstant;
|
import com.schisandra.oss.application.oss.constant.OssConstant;
|
||||||
import com.schisandra.oss.application.oss.core.ali.AliOssClient;
|
import com.schisandra.oss.application.oss.core.ali.AliOssClient;
|
||||||
@@ -13,11 +12,9 @@ import com.schisandra.oss.application.oss.core.ali.AliOssConfiguration;
|
|||||||
import com.schisandra.oss.application.oss.model.OssInfo;
|
import com.schisandra.oss.application.oss.model.OssInfo;
|
||||||
import com.schisandra.oss.common.entity.Result;
|
import com.schisandra.oss.common.entity.Result;
|
||||||
import com.schisandra.oss.domain.bo.SchisandraOssAliBO;
|
import com.schisandra.oss.domain.bo.SchisandraOssAliBO;
|
||||||
import com.schisandra.oss.domain.bo.SchisandraOssMinioBO;
|
|
||||||
import com.schisandra.oss.domain.redis.RedisUtil;
|
import com.schisandra.oss.domain.redis.RedisUtil;
|
||||||
import com.schisandra.oss.domain.service.SchisandraOssAliDomainService;
|
import com.schisandra.oss.domain.service.SchisandraOssAliDomainService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.context.ApplicationContext;
|
|
||||||
import org.springframework.util.StreamUtils;
|
import org.springframework.util.StreamUtils;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
@@ -28,10 +25,8 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -62,13 +57,14 @@ public class SchisandraOssAliController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 返回当前用户ali表所有数据
|
* 返回当前用户ali表所有数据
|
||||||
|
*
|
||||||
* @param userId
|
* @param userId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("return_online")
|
@GetMapping("return_online")
|
||||||
public Result returnOnline(Long userId) {
|
public Result returnOnline(String userId) {
|
||||||
List<SchisandraOssAliBO> list = schisandraOssAliDomainService.selectAllPresent(userId);
|
List<SchisandraOssAliBO> list = schisandraOssAliDomainService.selectAllPresent(userId);
|
||||||
if(list.isEmpty()){
|
if (list.isEmpty()) {
|
||||||
return Result.fail();
|
return Result.fail();
|
||||||
}
|
}
|
||||||
return Result.ok(SchisandraOssAliDTOConverter.INSTANCE.convertBOToDTOList(list));
|
return Result.ok(SchisandraOssAliDTOConverter.INSTANCE.convertBOToDTOList(list));
|
||||||
@@ -83,7 +79,7 @@ public class SchisandraOssAliController {
|
|||||||
@GetMapping("returnAll")
|
@GetMapping("returnAll")
|
||||||
public Result returnAll() {
|
public Result returnAll() {
|
||||||
List<SchisandraOssAliBO> list = schisandraOssAliDomainService.selectAll();
|
List<SchisandraOssAliBO> list = schisandraOssAliDomainService.selectAll();
|
||||||
if(list.isEmpty()){
|
if (list.isEmpty()) {
|
||||||
return Result.fail();
|
return Result.fail();
|
||||||
}
|
}
|
||||||
return Result.ok(SchisandraOssAliDTOConverter.INSTANCE.convertBOToDTOList(list));
|
return Result.ok(SchisandraOssAliDTOConverter.INSTANCE.convertBOToDTOList(list));
|
||||||
@@ -91,35 +87,35 @@ public class SchisandraOssAliController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("init")
|
@GetMapping("init")
|
||||||
public Result init(@RequestParam String userId,@RequestParam String Id) {
|
public Result init(@RequestParam String userId, @RequestParam String Id) {
|
||||||
if (log.isInfoEnabled()) {
|
if (log.isInfoEnabled()) {
|
||||||
log.info("SchisandraOssAliController.init.userId:{}", userId);
|
log.info("SchisandraOssAliController.init.userId:{}", userId);
|
||||||
}
|
}
|
||||||
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
||||||
SchisandraOssAliBO bo = new SchisandraOssAliBO();
|
SchisandraOssAliBO bo = new SchisandraOssAliBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(true));
|
bo.setStatus(String.valueOf(true));
|
||||||
if(schisandraOssAliDomainService.update(bo)){
|
if (schisandraOssAliDomainService.update(bo)) {
|
||||||
return aliOssConfiguration.aliOssClient(userId);
|
return aliOssConfiguration.aliOssClient(userId);
|
||||||
}else{
|
} else {
|
||||||
return Result.fail("初始化失败");
|
return Result.fail("初始化失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("shutdown")
|
@PostMapping("shutdown")
|
||||||
public Result shutdownAli(@RequestParam String userId,@RequestParam String Id){
|
public Result shutdownAli(@RequestParam String userId, @RequestParam String Id) {
|
||||||
if (log.isInfoEnabled()) {
|
if (log.isInfoEnabled()) {
|
||||||
log.info("SchisandraOssAliController.shutdown.userId:{}", JSON.toJSONString(userId));
|
log.info("SchisandraOssAliController.shutdown.userId:{}", JSON.toJSONString(userId));
|
||||||
}
|
}
|
||||||
SchisandraOssAliBO bo = new SchisandraOssAliBO();
|
SchisandraOssAliBO bo = new SchisandraOssAliBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(false));
|
bo.setStatus(String.valueOf(false));
|
||||||
if(schisandraOssAliDomainService.update(bo)){
|
if (schisandraOssAliDomainService.update(bo)) {
|
||||||
SpringUtil.unregisterBean(OssConstant.OssType.ALI+ userId);
|
SpringUtil.unregisterBean(OssConstant.OssType.ALI + userId);
|
||||||
return Result.ok("关闭成功");
|
return Result.ok("关闭成功");
|
||||||
}else{
|
} else {
|
||||||
return Result.fail("关闭失败");
|
return Result.fail("关闭失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,7 +169,7 @@ public class SchisandraOssAliController {
|
|||||||
if (log.isInfoEnabled()) {
|
if (log.isInfoEnabled()) {
|
||||||
log.info("SchisandraOssAliController.delete.dto:{}", JSON.toJSONString(schisandraOssAliDTO));
|
log.info("SchisandraOssAliController.delete.dto:{}", JSON.toJSONString(schisandraOssAliDTO));
|
||||||
}
|
}
|
||||||
parameterCheck(schisandraOssAliDTO);
|
Preconditions.checkNotNull(schisandraOssAliDTO.getId(), "ID不能为空");
|
||||||
SchisandraOssAliBO schisandraOssAliBO = SchisandraOssAliDTOConverter.INSTANCE.convertDTOToBO(schisandraOssAliDTO);
|
SchisandraOssAliBO schisandraOssAliBO = SchisandraOssAliDTOConverter.INSTANCE.convertDTOToBO(schisandraOssAliDTO);
|
||||||
return Result.ok(schisandraOssAliDomainService.delete(schisandraOssAliBO));
|
return Result.ok(schisandraOssAliDomainService.delete(schisandraOssAliBO));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -191,13 +187,13 @@ public class SchisandraOssAliController {
|
|||||||
@GetMapping("listDir")
|
@GetMapping("listDir")
|
||||||
public Result<String> listAliDir(@RequestParam String userId, @RequestParam String bucket, @RequestParam String prefix) throws Exception {
|
public Result<String> listAliDir(@RequestParam String userId, @RequestParam String bucket, @RequestParam String prefix) throws Exception {
|
||||||
Preconditions.checkNotNull(userId, "不能为空");
|
Preconditions.checkNotNull(userId, "不能为空");
|
||||||
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI+ userId);
|
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
||||||
bean.getAliOssConfig().setBucketName(bucket);
|
bean.getAliOssConfig().setBucketName(bucket);
|
||||||
if (prefix == null)
|
if (prefix == null)
|
||||||
prefix = "";
|
prefix = "";
|
||||||
if(bean.listAliInfo(bucket, prefix) != null){
|
if (bean.listAliInfo(bucket, prefix) != null) {
|
||||||
return Result.ok(bean.listAliInfo(bucket, prefix));
|
return Result.ok(bean.listAliInfo(bucket, prefix));
|
||||||
}else{
|
} else {
|
||||||
return Result.fail("获取文件目录信息失败");
|
return Result.fail("获取文件目录信息失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,10 +208,10 @@ public class SchisandraOssAliController {
|
|||||||
@PostMapping("seleteBucket")
|
@PostMapping("seleteBucket")
|
||||||
public Result seleteBucket(@RequestParam String userId) {
|
public Result seleteBucket(@RequestParam String userId) {
|
||||||
Preconditions.checkNotNull(userId, "不能为空");
|
Preconditions.checkNotNull(userId, "不能为空");
|
||||||
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI+ userId);
|
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
||||||
if(bean.selectAllBucket() != null){
|
if (bean.selectAllBucket() != null) {
|
||||||
return Result.ok(bean.selectAllBucket());
|
return Result.ok(bean.selectAllBucket());
|
||||||
}else{
|
} else {
|
||||||
return Result.fail("查询失败");
|
return Result.fail("查询失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,11 +228,11 @@ public class SchisandraOssAliController {
|
|||||||
public Result<String> createBucket(@RequestParam String userId, @RequestParam String bucket) {
|
public Result<String> createBucket(@RequestParam String userId, @RequestParam String bucket) {
|
||||||
Preconditions.checkNotNull(userId, "不能为空");
|
Preconditions.checkNotNull(userId, "不能为空");
|
||||||
Preconditions.checkNotNull(bucket, "不能为空");
|
Preconditions.checkNotNull(bucket, "不能为空");
|
||||||
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI+ userId);
|
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
||||||
bean.getAliOssConfig().setBucketName(bucket);
|
bean.getAliOssConfig().setBucketName(bucket);
|
||||||
if(bean.createBucket(bucket).equals(bucket)){
|
if (bean.createBucket(bucket).equals(bucket)) {
|
||||||
return Result.ok(bean.createBucket(bucket));
|
return Result.ok(bean.createBucket(bucket));
|
||||||
}else{
|
} else {
|
||||||
return Result.fail("创建失败");
|
return Result.fail("创建失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -254,9 +250,9 @@ public class SchisandraOssAliController {
|
|||||||
Preconditions.checkNotNull(bucket, "不能为空");
|
Preconditions.checkNotNull(bucket, "不能为空");
|
||||||
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
||||||
bean.getAliOssConfig().setBucketName(bucket);
|
bean.getAliOssConfig().setBucketName(bucket);
|
||||||
if(bean.deleteBucket(bucket).equals("yes")){
|
if (bean.deleteBucket(bucket).equals("yes")) {
|
||||||
return Result.ok(bean.deleteBucket(bucket));
|
return Result.ok(bean.deleteBucket(bucket));
|
||||||
}else{
|
} else {
|
||||||
return Result.fail("删除失败,或许桶已经不存在");
|
return Result.fail("删除失败,或许桶已经不存在");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -290,16 +286,15 @@ public class SchisandraOssAliController {
|
|||||||
InputStream is = file.getInputStream();
|
InputStream is = file.getInputStream();
|
||||||
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
AliOssClient bean = SpringUtil.getBean(OssConstant.OssType.ALI + userId);
|
||||||
bean.getAliOssConfig().setBucketName(bucket);
|
bean.getAliOssConfig().setBucketName(bucket);
|
||||||
if(bean.upLoad(is, fileName, true) != null){
|
if (bean.upLoad(is, fileName, true) != null) {
|
||||||
return Result.ok(bean.upLoad(is, fileName, true));
|
return Result.ok(bean.upLoad(is, fileName, true));
|
||||||
}else{
|
} else {
|
||||||
return Result.fail();
|
return Result.fail();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 下载文件
|
* @description: 下载文件
|
||||||
* @param: [schisandraOssAliDTO]
|
* @param: [schisandraOssAliDTO]
|
||||||
@@ -317,7 +312,7 @@ public class SchisandraOssAliController {
|
|||||||
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("下载.zip", "UTF-8"));
|
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("下载.zip", "UTF-8"));
|
||||||
response.setContentType("application/octet-stream");
|
response.setContentType("application/octet-stream");
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
HashMap<String,InputStream> list=bean.downLoadMany(filePath);
|
HashMap<String, InputStream> list = bean.downLoadMany(filePath);
|
||||||
String[] path = new String[list.size()];
|
String[] path = new String[list.size()];
|
||||||
InputStream[] inputStreams = new InputStream[list.size()];
|
InputStream[] inputStreams = new InputStream[list.size()];
|
||||||
path = list.keySet().toArray(path);
|
path = list.keySet().toArray(path);
|
||||||
@@ -328,14 +323,14 @@ public class SchisandraOssAliController {
|
|||||||
String formattedDate = dateFormat.format(date);
|
String formattedDate = dateFormat.format(date);
|
||||||
AtomicInteger count = new AtomicInteger(0);
|
AtomicInteger count = new AtomicInteger(0);
|
||||||
InputStream[] inputStream2 = new InputStream[list.size()];
|
InputStream[] inputStream2 = new InputStream[list.size()];
|
||||||
list.keySet().forEach( name -> {
|
list.keySet().forEach(name -> {
|
||||||
try {
|
try {
|
||||||
byte[] bytes = StreamUtils.copyToByteArray(list.get(name));
|
byte[] bytes = StreamUtils.copyToByteArray(list.get(name));
|
||||||
inputStream2[count.get()] = new ByteArrayInputStream(bytes);
|
inputStream2[count.get()] = new ByteArrayInputStream(bytes);
|
||||||
String key = redisUtil.buildKey(USER_OSS_PREFIX, "download", formattedDate, userId, name);
|
String key = redisUtil.buildKey(USER_OSS_PREFIX, "download", formattedDate, userId, name);
|
||||||
HashMap<Object, Object> map = new HashMap<>();
|
HashMap<Object, Object> map = new HashMap<>();
|
||||||
map.put("size", bytes.length);
|
map.put("size", bytes.length);
|
||||||
map.put("time",formattedDate);
|
map.put("time", formattedDate);
|
||||||
redisUtil.setNx(key, map, 30L, TimeUnit.DAYS);
|
redisUtil.setNx(key, map, 30L, TimeUnit.DAYS);
|
||||||
count.incrementAndGet();
|
count.incrementAndGet();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ import java.util.concurrent.TimeUnit;
|
|||||||
@RequestMapping("/oss/minio/")
|
@RequestMapping("/oss/minio/")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SchisandraOssMinioController {
|
public class SchisandraOssMinioController {
|
||||||
@Resource
|
|
||||||
MinioOssClient minioOssClient;
|
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SchisandraOssMinioDomainService schisandraOssMinioDomainService;
|
private SchisandraOssMinioDomainService schisandraOssMinioDomainService;
|
||||||
@@ -65,7 +63,7 @@ public class SchisandraOssMinioController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("return_online")
|
@GetMapping("return_online")
|
||||||
public Result returnOnline(Long userId) {
|
public Result returnOnline(String userId) {
|
||||||
List<SchisandraOssMinioBO> list = schisandraOssMinioDomainService.selectAllPresent(userId);
|
List<SchisandraOssMinioBO> list = schisandraOssMinioDomainService.selectAllPresent(userId);
|
||||||
if(list.isEmpty()){
|
if(list.isEmpty()){
|
||||||
return Result.fail();
|
return Result.fail();
|
||||||
@@ -102,14 +100,14 @@ public class SchisandraOssMinioController {
|
|||||||
log.info("SchisandraOssMinioController.init.userId:{}", userId);
|
log.info("SchisandraOssMinioController.init.userId:{}", userId);
|
||||||
}
|
}
|
||||||
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
||||||
List<SchisandraOssMinioBO> list = schisandraOssMinioDomainService.getAllMinioInfoByUserId(Long.valueOf(userId));
|
List<SchisandraOssMinioBO> list = schisandraOssMinioDomainService.getAllMinioInfoByUserId(userId);
|
||||||
if (list.size() != 0) {
|
if (list.size() != 0) {
|
||||||
return Result.fail(list);
|
return Result.fail(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
SchisandraOssMinioBO bo = new SchisandraOssMinioBO();
|
SchisandraOssMinioBO bo = new SchisandraOssMinioBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(true));
|
bo.setStatus(String.valueOf(true));
|
||||||
if (schisandraOssMinioDomainService.update(bo)) {
|
if (schisandraOssMinioDomainService.update(bo)) {
|
||||||
return minioOssConfiguration.minioOssClient(userId);
|
return minioOssConfiguration.minioOssClient(userId);
|
||||||
@@ -124,8 +122,8 @@ public class SchisandraOssMinioController {
|
|||||||
log.info("SchisandraOssMinioController.shutdown.userId:{}", userId);
|
log.info("SchisandraOssMinioController.shutdown.userId:{}", userId);
|
||||||
}
|
}
|
||||||
SchisandraOssMinioBO bo = new SchisandraOssMinioBO();
|
SchisandraOssMinioBO bo = new SchisandraOssMinioBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(false));
|
bo.setStatus(String.valueOf(false));
|
||||||
if (schisandraOssMinioDomainService.update(bo)) {
|
if (schisandraOssMinioDomainService.update(bo)) {
|
||||||
SpringUtil.unregisterBean(OssConstant.OssType.MINIO + userId);
|
SpringUtil.unregisterBean(OssConstant.OssType.MINIO + userId);
|
||||||
@@ -413,7 +411,7 @@ public class SchisandraOssMinioController {
|
|||||||
|
|
||||||
@PostMapping("get")
|
@PostMapping("get")
|
||||||
public SchisandraOssMinioDTO getMinioOss(@RequestParam String userId) {
|
public SchisandraOssMinioDTO getMinioOss(@RequestParam String userId) {
|
||||||
return SchisandraOssMinioDTOConverter.INSTANCE.convertBOToDTO(schisandraOssMinioDomainService.getMinioConfig(Long.valueOf(userId)));
|
return SchisandraOssMinioDTOConverter.INSTANCE.convertBOToDTO(schisandraOssMinioDomainService.getMinioConfig(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public class SchisandraOssQiniuController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("return_online")
|
@GetMapping("return_online")
|
||||||
public Result returnOnline(Long userId) {
|
public Result returnOnline(String userId) {
|
||||||
List<SchisandraOssQiniuBO> list = schisandraOssQiniuDomainService.selectAllPresent(userId);
|
List<SchisandraOssQiniuBO> list = schisandraOssQiniuDomainService.selectAllPresent(userId);
|
||||||
if(list.isEmpty()){
|
if(list.isEmpty()){
|
||||||
return Result.fail();
|
return Result.fail();
|
||||||
@@ -163,7 +163,7 @@ public class SchisandraOssQiniuController {
|
|||||||
public Result download_open(@RequestParam String userId, @RequestParam String bucket, @RequestParam List<String> listObjectsArgs, HttpServletResponse response) throws IOException {
|
public Result download_open(@RequestParam String userId, @RequestParam String bucket, @RequestParam List<String> listObjectsArgs, HttpServletResponse response) throws IOException {
|
||||||
QiNiuOssClient bean = SpringUtil.getBean(OssConstant.OssType.QINIU + userId);
|
QiNiuOssClient bean = SpringUtil.getBean(OssConstant.OssType.QINIU + userId);
|
||||||
ServletOutputStream output = response.getOutputStream();
|
ServletOutputStream output = response.getOutputStream();
|
||||||
SchisandraOssQiniuBO schisandraOssQiniuBO = schisandraOssQiniuDomainService.getEndpointByuserIdAndBucket(Long.valueOf(userId), bucket);
|
SchisandraOssQiniuBO schisandraOssQiniuBO = schisandraOssQiniuDomainService.getEndpointByuserIdAndBucket(userId, bucket);
|
||||||
if (schisandraOssQiniuBO.getEndpoint() == null) {
|
if (schisandraOssQiniuBO.getEndpoint() == null) {
|
||||||
return Result.fail("请配置该存储桶的相关配置:endpoint");
|
return Result.fail("请配置该存储桶的相关配置:endpoint");
|
||||||
}
|
}
|
||||||
@@ -332,8 +332,8 @@ public class SchisandraOssQiniuController {
|
|||||||
}
|
}
|
||||||
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
||||||
SchisandraOssQiniuBO bo = new SchisandraOssQiniuBO();
|
SchisandraOssQiniuBO bo = new SchisandraOssQiniuBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(true));
|
bo.setStatus(String.valueOf(true));
|
||||||
if (schisandraOssQiniuDomainService.update(bo)) {
|
if (schisandraOssQiniuDomainService.update(bo)) {
|
||||||
return qiNiuOssConfiguration.qiNiuOssClient(userId);
|
return qiNiuOssConfiguration.qiNiuOssClient(userId);
|
||||||
@@ -348,8 +348,8 @@ public class SchisandraOssQiniuController {
|
|||||||
log.info("SchisandraOssQiniuController.shutdown.userId:{}", JSON.toJSONString(userId));
|
log.info("SchisandraOssQiniuController.shutdown.userId:{}", JSON.toJSONString(userId));
|
||||||
}
|
}
|
||||||
SchisandraOssQiniuBO bo = new SchisandraOssQiniuBO();
|
SchisandraOssQiniuBO bo = new SchisandraOssQiniuBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(false));
|
bo.setStatus(String.valueOf(false));
|
||||||
if (schisandraOssQiniuDomainService.update(bo)) {
|
if (schisandraOssQiniuDomainService.update(bo)) {
|
||||||
SpringUtil.unregisterBean(OssConstant.OssType.QINIU + userId);
|
SpringUtil.unregisterBean(OssConstant.OssType.QINIU + userId);
|
||||||
|
|||||||
@@ -192,8 +192,8 @@ public class SchisandraOssSftpController {
|
|||||||
}
|
}
|
||||||
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
||||||
SchisandraOssSftpBO bo = new SchisandraOssSftpBO();
|
SchisandraOssSftpBO bo = new SchisandraOssSftpBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(true));
|
bo.setStatus(String.valueOf(true));
|
||||||
if(schisandraOssSftpDomainService.update(bo)){
|
if(schisandraOssSftpDomainService.update(bo)){
|
||||||
return sftpOssConfiguration.sftpOssClient(userId);
|
return sftpOssConfiguration.sftpOssClient(userId);
|
||||||
@@ -208,8 +208,8 @@ public class SchisandraOssSftpController {
|
|||||||
log.info("SchisandraOssSftpController.shutdown.userId:{}", JSON.toJSONString(userId));
|
log.info("SchisandraOssSftpController.shutdown.userId:{}", JSON.toJSONString(userId));
|
||||||
}
|
}
|
||||||
SchisandraOssSftpBO bo = new SchisandraOssSftpBO();
|
SchisandraOssSftpBO bo = new SchisandraOssSftpBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(false));
|
bo.setStatus(String.valueOf(false));
|
||||||
if(schisandraOssSftpDomainService.update(bo)){
|
if(schisandraOssSftpDomainService.update(bo)){
|
||||||
SpringUtil.unregisterBean(OssConstant.OssType.SFTP+ userId);
|
SpringUtil.unregisterBean(OssConstant.OssType.SFTP+ userId);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class SchisandraOssTencentController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("return_online")
|
@GetMapping("return_online")
|
||||||
public Result returnOnline(Long userId) {
|
public Result returnOnline(String userId) {
|
||||||
List<SchisandraOssTencentBO> list = schisandraOssTencentDomainService.selectAllPresent(userId);
|
List<SchisandraOssTencentBO> list = schisandraOssTencentDomainService.selectAllPresent(userId);
|
||||||
if(list.isEmpty()){
|
if(list.isEmpty()){
|
||||||
return Result.fail();
|
return Result.fail();
|
||||||
@@ -97,8 +97,8 @@ public class SchisandraOssTencentController {
|
|||||||
}
|
}
|
||||||
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
||||||
SchisandraOssTencentBO bo = new SchisandraOssTencentBO();
|
SchisandraOssTencentBO bo = new SchisandraOssTencentBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(true));
|
bo.setStatus(String.valueOf(true));
|
||||||
if (schisandraOssTencentDomainService.update(bo)) {
|
if (schisandraOssTencentDomainService.update(bo)) {
|
||||||
return tencentOssConfiguration.tencentOssClient(userId);
|
return tencentOssConfiguration.tencentOssClient(userId);
|
||||||
@@ -113,8 +113,8 @@ public class SchisandraOssTencentController {
|
|||||||
log.info("SchisandraOssTencentController.shutdown.userId:{}", JSON.toJSONString(userId));
|
log.info("SchisandraOssTencentController.shutdown.userId:{}", JSON.toJSONString(userId));
|
||||||
}
|
}
|
||||||
SchisandraOssTencentBO bo = new SchisandraOssTencentBO();
|
SchisandraOssTencentBO bo = new SchisandraOssTencentBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(false));
|
bo.setStatus(String.valueOf(false));
|
||||||
if (schisandraOssTencentDomainService.update(bo)) {
|
if (schisandraOssTencentDomainService.update(bo)) {
|
||||||
SpringUtil.unregisterBean(OssConstant.OssType.TENCENT + userId);
|
SpringUtil.unregisterBean(OssConstant.OssType.TENCENT + userId);
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ public class SchisandraOssUpController {
|
|||||||
}
|
}
|
||||||
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
Preconditions.checkNotNull(userId, "用户id不能为空!");
|
||||||
SchisandraOssUpBO bo = new SchisandraOssUpBO();
|
SchisandraOssUpBO bo = new SchisandraOssUpBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(true));
|
bo.setStatus(String.valueOf(true));
|
||||||
if(schisandraOssUpDomainService.update(bo)){
|
if(schisandraOssUpDomainService.update(bo)){
|
||||||
return upOssConfiguration.upOssClient(userId);
|
return upOssConfiguration.upOssClient(userId);
|
||||||
@@ -84,8 +84,8 @@ public class SchisandraOssUpController {
|
|||||||
log.info("SchisandraOssUpController.shutdown.userId:{}", JSON.toJSONString(userId));
|
log.info("SchisandraOssUpController.shutdown.userId:{}", JSON.toJSONString(userId));
|
||||||
}
|
}
|
||||||
SchisandraOssUpBO bo = new SchisandraOssUpBO();
|
SchisandraOssUpBO bo = new SchisandraOssUpBO();
|
||||||
bo.setId(Long.valueOf(Id));
|
bo.setId(Id);
|
||||||
bo.setUserId(Long.valueOf(userId));
|
bo.setUserId(userId);
|
||||||
bo.setStatus(String.valueOf(false));
|
bo.setStatus(String.valueOf(false));
|
||||||
if(schisandraOssUpDomainService.update(bo)){
|
if(schisandraOssUpDomainService.update(bo)){
|
||||||
SpringUtil.unregisterBean(OssConstant.OssType.UP+ userId);
|
SpringUtil.unregisterBean(OssConstant.OssType.UP+ userId);
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public class SchisandraUserOssController {
|
|||||||
* @date: 2024/7/11 14:41
|
* @date: 2024/7/11 14:41
|
||||||
*/
|
*/
|
||||||
@GetMapping("selectUserOSSType")
|
@GetMapping("selectUserOSSType")
|
||||||
public Result<Object> selectUserOSSType(Long userId) {
|
public Result<Object> selectUserOSSType(String userId) {
|
||||||
Preconditions.checkNotNull(userId, "不能为空");
|
Preconditions.checkNotNull(userId, "不能为空");
|
||||||
List<SchisandraUserOssDTO> SchisandraUserOssDTOList = SchisandraUserOssDTOConverter.INSTANCE.convertBOListToDTOList(schisandraUserOssDomainService.queryOSSByUserId(userId));
|
List<SchisandraUserOssDTO> SchisandraUserOssDTOList = SchisandraUserOssDTOConverter.INSTANCE.convertBOListToDTOList(schisandraUserOssDomainService.queryOSSByUserId(userId));
|
||||||
if (SchisandraUserOssDTOList.isEmpty()) {
|
if (SchisandraUserOssDTOList.isEmpty()) {
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ public class SchisandraFileHeatmapDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import java.io.Serializable;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto
|
* dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-05-14 20:45:32
|
* @since 2024-05-14 20:45:32
|
||||||
@@ -16,12 +16,12 @@ import java.util.Date;
|
|||||||
public class SchisandraOssAliDTO implements Serializable {
|
public class SchisandraOssAliDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ public class SchisandraOssAliDTO implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启HTTP重定向。
|
* 是否开启HTTP重定向。
|
||||||
说明: Java SDK 3.10.1及以上版本支持设置是否开启HTTP重定向,默认开启。
|
* 说明: Java SDK 3.10.1及以上版本支持设置是否开启HTTP重定向,默认开启。
|
||||||
*/
|
*/
|
||||||
private String redirectEnable;
|
private String redirectEnable;
|
||||||
|
|
||||||
|
|||||||
@@ -1,158 +1,158 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 亚马逊对象存储配置表 dto
|
* 亚马逊对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 21:48:16
|
* @since 2024-06-02 21:48:16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssAwsDTO implements Serializable {
|
public class SchisandraOssAwsDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据存储路径
|
* 数据存储路径
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bucket名称
|
* Bucket名称
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretAccessKey;
|
private String secretAccessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String mode;
|
private String mode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accelerateModeEnabled;
|
private String accelerateModeEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String checksumValidationEnabled;
|
private String checksumValidationEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String multiRegionEnabled;
|
private String multiRegionEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String chunkedEncodingEnabled;
|
private String chunkedEncodingEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String pathStyleAccessEnabled;
|
private String pathStyleAccessEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String useArnRegionEnabled;
|
private String useArnRegionEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String fipsEnabled;
|
private String fipsEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String dualstackEnabled;
|
private String dualstackEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,218 +1,218 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 百度云对象存储配置表 dto
|
* 百度云对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:02:15
|
* @since 2024-06-02 22:02:15
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssBaiduDTO implements Serializable {
|
public class SchisandraOssBaiduDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretAccessKey;
|
private String secretAccessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 使用cname访问BOS资源
|
* 使用cname访问BOS资源
|
||||||
*/
|
*/
|
||||||
private String cnameEnabled;
|
private String cnameEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步put
|
* 异步put
|
||||||
*/
|
*/
|
||||||
private String enableHttpAsyncPut;
|
private String enableHttpAsyncPut;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建立连接的超时时间(单位:毫秒)
|
* 建立连接的超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeoutInMillis;
|
private Integer connectionTimeoutInMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许打开的最大HTTP连接数
|
* 允许打开的最大HTTP连接数
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接协议类型
|
* 连接协议类型
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问NTLM验证的代理服务器的Windows域名
|
* 访问NTLM验证的代理服务器的Windows域名
|
||||||
*/
|
*/
|
||||||
private String proxyDomain;
|
private String proxyDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器主机地址
|
* 代理服务器主机地址
|
||||||
*/
|
*/
|
||||||
private String proxyHost;
|
private String proxyHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的密码
|
* 代理服务器验证的密码
|
||||||
*/
|
*/
|
||||||
private String proxyPassword;
|
private String proxyPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器端口
|
* 代理服务器端口
|
||||||
*/
|
*/
|
||||||
private Integer proxyPort;
|
private Integer proxyPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的用户名
|
* 代理服务器验证的用户名
|
||||||
*/
|
*/
|
||||||
private String proxyUsername;
|
private String proxyUsername;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NTLM代理服务器的Windows工作站名称
|
* NTLM代理服务器的Windows工作站名称
|
||||||
*/
|
*/
|
||||||
private String proxyWorkstation;
|
private String proxyWorkstation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否设置用户代理认证
|
* 是否设置用户代理认证
|
||||||
*/
|
*/
|
||||||
private String proxyPreemptiveAuthenticationEnable;
|
private String proxyPreemptiveAuthenticationEnable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过打开的连接传输数据的超时时间(单位:毫秒)
|
* 通过打开的连接传输数据的超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeoutInMillis;
|
private Integer socketTimeoutInMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket缓冲区大小
|
* Socket缓冲区大小
|
||||||
*/
|
*/
|
||||||
private Integer socketBufferSizeInBytes;
|
private Integer socketBufferSizeInBytes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问域名
|
* 访问域名
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 地域
|
* 地域
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启HTTP重定向。默认开启
|
* 是否开启HTTP重定向。默认开启
|
||||||
*/
|
*/
|
||||||
private String redirectsEnabled;
|
private String redirectsEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地地址
|
* 本地地址
|
||||||
*/
|
*/
|
||||||
private String localAddress;
|
private String localAddress;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败最大重试次数
|
* 请求失败最大重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxErrorRetry;
|
private Integer maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 最大延迟时间,单位:毫秒
|
* 最大延迟时间,单位:毫秒
|
||||||
*/
|
*/
|
||||||
private Integer maxDelayInMillis;
|
private Integer maxDelayInMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流文件缓冲区大小
|
* 流文件缓冲区大小
|
||||||
*/
|
*/
|
||||||
private Double streamBufferSize;
|
private Double streamBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户代理,指HTTP的User-Agent头
|
* 用户代理,指HTTP的User-Agent头
|
||||||
*/
|
*/
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,138 +1,138 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ftp存储配置表 dto
|
* ftp存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 21:54:20
|
* @since 2024-06-02 21:54:20
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssFtpDTO implements Serializable {
|
public class SchisandraOssFtpDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主机
|
* 主机
|
||||||
*/
|
*/
|
||||||
private String host;
|
private String host;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 端口
|
* 端口
|
||||||
*/
|
*/
|
||||||
private Integer port;
|
private Integer port;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户名
|
* 用户名
|
||||||
*/
|
*/
|
||||||
private String user;
|
private String user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 密码
|
* 密码
|
||||||
*/
|
*/
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编码
|
* 编码
|
||||||
*/
|
*/
|
||||||
private String charset;
|
private String charset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FTP连接模式,默认被动
|
* FTP连接模式,默认被动
|
||||||
*/
|
*/
|
||||||
private String mode;
|
private String mode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置执行完操作是否返回当前目录,默认false
|
* 设置执行完操作是否返回当前目录,默认false
|
||||||
*/
|
*/
|
||||||
private String backToPwd;
|
private String backToPwd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接超时时长,单位毫秒
|
* 连接超时时长,单位毫秒
|
||||||
*/
|
*/
|
||||||
private Long connectionTimeout;
|
private Long connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket连接超时时长,单位毫秒
|
* Socket连接超时时长,单位毫秒
|
||||||
*/
|
*/
|
||||||
private Long soTimeout;
|
private Long soTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置服务器语言
|
* 设置服务器语言
|
||||||
*/
|
*/
|
||||||
private String serverLanguageCode;
|
private String serverLanguageCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置服务器系统关键词
|
* 设置服务器系统关键词
|
||||||
*/
|
*/
|
||||||
private String systemKey;
|
private String systemKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,253 +1,253 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 华为云对象存储配置表 dto
|
* 华为云对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 21:59:56
|
* @since 2024-06-02 21:59:56
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssHuaweiDTO implements Serializable {
|
public class SchisandraOssHuaweiDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endPoint;
|
private String endPoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建立HTTP/HTTPS连接的超时时间(单位:毫秒)。默认为60000毫秒。
|
* 建立HTTP/HTTPS连接的超时时间(单位:毫秒)。默认为60000毫秒。
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeout;
|
private Integer connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 如果空闲时间超过此参数的设定值,则关闭连接(单位:毫秒)。默认为30000毫秒。
|
* 如果空闲时间超过此参数的设定值,则关闭连接(单位:毫秒)。默认为30000毫秒。
|
||||||
*/
|
*/
|
||||||
private Integer idleConnectionTime;
|
private Integer idleConnectionTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接池中最大空闲连接数,默认值:1000。
|
* 连接池中最大空闲连接数,默认值:1000。
|
||||||
*/
|
*/
|
||||||
private Integer maxIdleConnections;
|
private Integer maxIdleConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 最大允许的HTTP并发请求数。默认为1000。
|
* 最大允许的HTTP并发请求数。默认为1000。
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败(请求异常、服务端报500或503错误等)后最大的重试次数。默认3次。
|
* 请求失败(请求异常、服务端报500或503错误等)后最大的重试次数。默认3次。
|
||||||
*/
|
*/
|
||||||
private Integer maxErrorRetry;
|
private Integer maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket层传输数据的超时时间(单位:毫秒)。默认为60000毫秒。
|
* Socket层传输数据的超时时间(单位:毫秒)。默认为60000毫秒。
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeout;
|
private Integer socketTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置HTTP请求的端口号 (默认为80)。
|
* 设置HTTP请求的端口号 (默认为80)。
|
||||||
*/
|
*/
|
||||||
private Integer endpointHttpPort;
|
private Integer endpointHttpPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
||||||
*/
|
*/
|
||||||
private String endpointHttpsPort;
|
private String endpointHttpsPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
||||||
*/
|
*/
|
||||||
private String httpsOnly;
|
private String httpsOnly;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定是否启用对OBS的路径样式访问。“true” 表示启用了路径样式的访问,而 “false” (默认) 表示启用了虚拟托管样式的访问。注意: 如果启用了路径样式访问,则不支持OBS 3.0的新bucket功能。
|
* 指定是否启用对OBS的路径样式访问。“true” 表示启用了路径样式的访问,而 “false” (默认) 表示启用了虚拟托管样式的访问。注意: 如果启用了路径样式访问,则不支持OBS 3.0的新bucket功能。
|
||||||
*/
|
*/
|
||||||
private String pathStyle;
|
private String pathStyle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HTTP代理配置。默认为空。
|
* HTTP代理配置。默认为空。
|
||||||
*/
|
*/
|
||||||
private String httpProxy;
|
private String httpProxy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上传流对象时使用的缓存大小(单位:字节)。默认为512KB。
|
* 上传流对象时使用的缓存大小(单位:字节)。默认为512KB。
|
||||||
*/
|
*/
|
||||||
private Integer uploadStreamRetryBufferSize;
|
private Integer uploadStreamRetryBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否验证服务端证书。默认为false。
|
* 是否验证服务端证书。默认为false。
|
||||||
*/
|
*/
|
||||||
private String validateCertificate;
|
private String validateCertificate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否验证响应头信息的ContentType。默认为true。
|
* 是否验证响应头信息的ContentType。默认为true。
|
||||||
*/
|
*/
|
||||||
private String verifyResponseContentType;
|
private String verifyResponseContentType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 从Socket流下载对象的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
* 从Socket流下载对象的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
||||||
*/
|
*/
|
||||||
private Integer readBufferSize;
|
private Integer readBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上传对象到Socket流时的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
* 上传对象到Socket流时的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
||||||
*/
|
*/
|
||||||
private Double writeBufferSize;
|
private Double writeBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否严格验证服务端主机名。默认为false。
|
* 是否严格验证服务端主机名。默认为false。
|
||||||
*/
|
*/
|
||||||
private String isStrictHostnameVerification;
|
private String isStrictHostnameVerification;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置身份验证类型。
|
* 设置身份验证类型。
|
||||||
*/
|
*/
|
||||||
private String authType;
|
private String authType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket发送缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_SNDBUF参数。默认为-1表示不设置。
|
* Socket发送缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_SNDBUF参数。默认为-1表示不设置。
|
||||||
*/
|
*/
|
||||||
private Integer socketWriteBufferSize;
|
private Integer socketWriteBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket接收缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_RCVBUF参数。默认为-1表示不设置。
|
* Socket接收缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_RCVBUF参数。默认为-1表示不设置。
|
||||||
*/
|
*/
|
||||||
private Integer socketReadBufferSize;
|
private Integer socketReadBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用长连接访问OBS服务。默认为true。
|
* 是否使用长连接访问OBS服务。默认为true。
|
||||||
*/
|
*/
|
||||||
private String keepAlive;
|
private String keepAlive;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定是否使用协议协商。
|
* 指定是否使用协议协商。
|
||||||
*/
|
*/
|
||||||
private String authTypeNegotiation;
|
private String authTypeNegotiation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否通过自定义域名访问OBS服务。默认为false。
|
* 是否通过自定义域名访问OBS服务。默认为false。
|
||||||
*/
|
*/
|
||||||
private String cname;
|
private String cname;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将文件夹隔离器设置为斜线。
|
* 将文件夹隔离器设置为斜线。
|
||||||
*/
|
*/
|
||||||
private String delimiter;
|
private String delimiter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SSLContext的Provider,默认使用JDK提供的SSLContext。
|
* SSLContext的Provider,默认使用JDK提供的SSLContext。
|
||||||
*/
|
*/
|
||||||
private String sslProvider;
|
private String sslProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问OBS服务端时使用的HTTP协议类型。默认为HTTP1.1协议。
|
* 访问OBS服务端时使用的HTTP协议类型。默认为HTTP1.1协议。
|
||||||
*/
|
*/
|
||||||
private String httpProtocolType;
|
private String httpProtocolType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启Okhttp中的连接失败重试,默认关闭
|
* 是否开启Okhttp中的连接失败重试,默认关闭
|
||||||
*/
|
*/
|
||||||
private String retryOnConnectionFailureInOkhttp;
|
private String retryOnConnectionFailureInOkhttp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发生异常时最大重试次数
|
* 发生异常时最大重试次数
|
||||||
*/
|
*/
|
||||||
private String maxRetryOnUnexpectedEndException;
|
private String maxRetryOnUnexpectedEndException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,293 +1,293 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 京东云对象存储配置表 dto
|
* 京东云对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:07:10
|
* @since 2024-06-02 22:07:10
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdDTO implements Serializable {
|
public class SchisandraOssJdDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建立连接的超时时间(单位:毫秒)。默认为50000毫秒
|
* 建立连接的超时时间(单位:毫秒)。默认为50000毫秒
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeout;
|
private Integer connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许打开的最大HTTP连接数。默认为1024
|
* 允许打开的最大HTTP连接数。默认为1024
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败后最大的重试次数
|
* 请求失败后最大的重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxErrorRetry;
|
private Integer maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否限制重试的默认值。
|
* 是否限制重试的默认值。
|
||||||
*/
|
*/
|
||||||
private String throttleRetries;
|
private String throttleRetries;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接协议类型
|
* 连接协议类型
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接到HTTP代理时要使用的协议。
|
* 连接到HTTP代理时要使用的协议。
|
||||||
*/
|
*/
|
||||||
private String proxyProtocol;
|
private String proxyProtocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问NTLM验证的代理服务器的Windows域名
|
* 访问NTLM验证的代理服务器的Windows域名
|
||||||
*/
|
*/
|
||||||
private String proxyDomain;
|
private String proxyDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器主机地址
|
* 代理服务器主机地址
|
||||||
*/
|
*/
|
||||||
private String proxyHost;
|
private String proxyHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的密码
|
* 代理服务器验证的密码
|
||||||
*/
|
*/
|
||||||
private String proxyPassword;
|
private String proxyPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器端口
|
* 代理服务器端口
|
||||||
*/
|
*/
|
||||||
private String proxyPort;
|
private String proxyPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的用户名
|
* 代理服务器验证的用户名
|
||||||
*/
|
*/
|
||||||
private String proxyUsername;
|
private String proxyUsername;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NTLM代理服务器的Windows工作站名称
|
* NTLM代理服务器的Windows工作站名称
|
||||||
*/
|
*/
|
||||||
private String proxyWorkstation;
|
private String proxyWorkstation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定不通过代理应访问的主机。
|
* 指定不通过代理应访问的主机。
|
||||||
*/
|
*/
|
||||||
private String nonProxyHosts;
|
private String nonProxyHosts;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否禁用Socket代理
|
* 是否禁用Socket代理
|
||||||
*/
|
*/
|
||||||
private String disableSocketProxy;
|
private String disableSocketProxy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用基本身份验证对代理服务器进行抢先身份验证
|
* 是否使用基本身份验证对代理服务器进行抢先身份验证
|
||||||
*/
|
*/
|
||||||
private String preemptiveBasicProxyAuth;
|
private String preemptiveBasicProxyAuth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒
|
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeout;
|
private Integer socketTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求的默认超时时间。默认为0,禁用的。
|
* 请求的默认超时时间。默认为0,禁用的。
|
||||||
*/
|
*/
|
||||||
private Integer requestTimeout;
|
private Integer requestTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求的默认超时时间。默认为0,禁用的。
|
* 请求的默认超时时间。默认为0,禁用的。
|
||||||
*/
|
*/
|
||||||
private Integer clientExecutionTimeout;
|
private Integer clientExecutionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公共HTTP请求头前缀。
|
* 公共HTTP请求头前缀。
|
||||||
*/
|
*/
|
||||||
private String userAgentPrefix;
|
private String userAgentPrefix;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用com.amazonaws.http.IdleConnectionReaper管理旧连接
|
* 是否使用com.amazonaws.http.IdleConnectionReaper管理旧连接
|
||||||
*/
|
*/
|
||||||
private String useReaper;
|
private String useReaper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用gzip解压缩
|
* 是否使用gzip解压缩
|
||||||
*/
|
*/
|
||||||
private String useGzip;
|
private String useGzip;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket发送缓冲区的大小提示(以字节为单位)。
|
* Socket发送缓冲区的大小提示(以字节为单位)。
|
||||||
*/
|
*/
|
||||||
private Integer socketSendBufferSizeHint;
|
private Integer socketSendBufferSizeHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket接收缓冲区的大小提示(以字节为单位)。
|
* Socket接收缓冲区的大小提示(以字节为单位)。
|
||||||
*/
|
*/
|
||||||
private Integer socketReceiveBufferSizeHint;
|
private Integer socketReceiveBufferSizeHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置签名算法对请求进行签名。如果未明确设置,客户端将通过提取SDK中的配置文件来确定要使用的算法
|
* 设置签名算法对请求进行签名。如果未明确设置,客户端将通过提取SDK中的配置文件来确定要使用的算法
|
||||||
*/
|
*/
|
||||||
private String signerOverride;
|
private String signerOverride;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 响应元数据缓存大小
|
* 响应元数据缓存大小
|
||||||
*/
|
*/
|
||||||
private Integer responseMetadataCacheSize;
|
private Integer responseMetadataCacheSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用USE_EXPECT_CONTINUE作为期望值
|
* 是否使用USE_EXPECT_CONTINUE作为期望值
|
||||||
*/
|
*/
|
||||||
private String useExpectContinue;
|
private String useExpectContinue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否缓存响应元数据
|
* 是否缓存响应元数据
|
||||||
*/
|
*/
|
||||||
private String cacheResponseMetadata;
|
private String cacheResponseMetadata;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接TTL (生存时间)。Http连接由连接管理器用TTL缓存。
|
* 连接TTL (生存时间)。Http连接由连接管理器用TTL缓存。
|
||||||
*/
|
*/
|
||||||
private Long connectionTTL;
|
private Long connectionTTL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接池中连接的最大空闲时间 (以毫秒为单位)。
|
* 连接池中连接的最大空闲时间 (以毫秒为单位)。
|
||||||
*/
|
*/
|
||||||
private Long connectionMaxIdleMillis;
|
private Long connectionMaxIdleMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在必须验证连接是否仍处于打开状态之前,连接可以在连接池中处于空闲状态。
|
* 在必须验证连接是否仍处于打开状态之前,连接可以在连接池中处于空闲状态。
|
||||||
*/
|
*/
|
||||||
private Integer validateAfterInActivityMillis;
|
private Integer validateAfterInActivityMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用TCP KeepAlive的默认值。
|
* 是否使用TCP KeepAlive的默认值。
|
||||||
*/
|
*/
|
||||||
private String tcpKeepAlive;
|
private String tcpKeepAlive;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所有请求的公共请求头
|
* 所有请求的公共请求头
|
||||||
*/
|
*/
|
||||||
private String headers;
|
private String headers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败最大重试次数
|
* 请求失败最大重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxConsecutiveRetriesBeforeThrottling;
|
private Integer maxConsecutiveRetriesBeforeThrottling;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否禁用主机前缀
|
* 是否禁用主机前缀
|
||||||
*/
|
*/
|
||||||
private String disableHostPrefixInjection;
|
private String disableHostPrefixInjection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重试模式
|
* 重试模式
|
||||||
*/
|
*/
|
||||||
private String retryMode;
|
private String retryMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,93 +1,93 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* jdbc存储配置表 dto
|
* jdbc存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:08:16
|
* @since 2024-06-02 22:08:16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdbcDTO implements Serializable {
|
public class SchisandraOssJdbcDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统数据源Bean名称(适用于系统多数据源配置)
|
* 系统数据源Bean名称(适用于系统多数据源配置)
|
||||||
*/
|
*/
|
||||||
private String dataSourceName;
|
private String dataSourceName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对象存储数据源
|
* 对象存储数据源
|
||||||
*/
|
*/
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String driver;
|
private String driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,63 +1,63 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* jdbc存储数据表 dto
|
* jdbc存储数据表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:08:55
|
* @since 2024-06-02 22:08:55
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdbcDataDTO implements Serializable {
|
public class SchisandraOssJdbcDataDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据
|
* 数据
|
||||||
*/
|
*/
|
||||||
private byte[] data;
|
private byte[] data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,88 +1,88 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* jdbc存储信息表 dto
|
* jdbc存储信息表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:11:22
|
* @since 2024-06-02 22:11:22
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdbcStoreDTO implements Serializable {
|
public class SchisandraOssJdbcStoreDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件/目录名
|
* 文件/目录名
|
||||||
*/
|
*/
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路径
|
* 路径
|
||||||
*/
|
*/
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件大小
|
* 文件大小
|
||||||
*/
|
*/
|
||||||
private Double size;
|
private Double size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 父级目录ID
|
* 父级目录ID
|
||||||
*/
|
*/
|
||||||
private Integer parentId;
|
private Integer parentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型(D:目录;F:文件)
|
* 类型(D:目录;F:文件)
|
||||||
*/
|
*/
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据ID
|
* 数据ID
|
||||||
*/
|
*/
|
||||||
private String dataId;
|
private String dataId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,170 +1,170 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 金山云对象存储配置表 dto
|
* 金山云对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:13:26
|
* @since 2024-06-02 22:13:26
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJinshanDTO implements Serializable {
|
public class SchisandraOssJinshanDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 主键
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeySecret;
|
private String accessKeySecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务地址,参考 http://ks3.ksyun.com/doc/api/index.html Doc
|
* 服务地址,参考 http://ks3.ksyun.com/doc/api/index.html Doc
|
||||||
* 中国(杭州):kss.ksyun.com
|
* 中国(杭州):kss.ksyun.com
|
||||||
* 中国(杭州)cdn:kssws.ks-cdn.com
|
* 中国(杭州)cdn:kssws.ks-cdn.com
|
||||||
* 美国(圣克拉拉):ks3-us-west-1.ksyun.com
|
* 美国(圣克拉拉):ks3-us-west-1.ksyun.com
|
||||||
* 中国(北京):ks3-cn-beijing.ksyun.com
|
* 中国(北京):ks3-cn-beijing.ksyun.com
|
||||||
* 中国(香港):ks3-cn-hk-1.ksyun.com
|
* 中国(香港):ks3-cn-hk-1.ksyun.com
|
||||||
* 中国(上海):ks3-cn-shanghai.ksyun.com
|
* 中国(上海):ks3-cn-shanghai.ksyun.com
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String securityToken;
|
private String securityToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* http或者https
|
* http或者https
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签名版本
|
* 签名版本
|
||||||
*/
|
*/
|
||||||
private String version;
|
private String version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用path style access方式访问
|
* 是否使用path style access方式访问
|
||||||
*/
|
*/
|
||||||
private String pathStyleAccess;
|
private String pathStyleAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许客户端发送匿名请求
|
* 允许客户端发送匿名请求
|
||||||
*/
|
*/
|
||||||
private String allowAnonymous;
|
private String allowAnonymous;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当服务端返回307时是否自动跳转,
|
* 当服务端返回307时是否自动跳转,
|
||||||
* 主要发生在用Region A的endpoint请求Region B的endpoint
|
* 主要发生在用Region A的endpoint请求Region B的endpoint
|
||||||
*/
|
*/
|
||||||
private String flowRedirect;
|
private String flowRedirect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用绑定的域名作为endpoint
|
* 是否使用绑定的域名作为endpoint
|
||||||
*/
|
*/
|
||||||
private String domainMode;
|
private String domainMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签名类
|
* 签名类
|
||||||
*/
|
*/
|
||||||
private String signerClass;
|
private String signerClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否压缩
|
* 是否压缩
|
||||||
*/
|
*/
|
||||||
private String useGzip;
|
private String useGzip;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,68 +1,68 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地存储配置表 dto
|
* 本地存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:18:08
|
* @since 2024-06-02 22:18:08
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssLocalDTO implements Serializable {
|
public class SchisandraOssLocalDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ public class SchisandraOssMinioDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,133 +1,133 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 平安云对象存储配置表 dto
|
* 平安云对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:19:22
|
* @since 2024-06-02 22:19:22
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssPinganDTO implements Serializable {
|
public class SchisandraOssPinganDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long systemUserId;
|
private String systemUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String obsUrl;
|
private String obsUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String obsAccessKey;
|
private String obsAccessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String obsSecret;
|
private String obsSecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String representPathInKey;
|
private String representPathInKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String domainName;
|
private String domainName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,148 +1,148 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 青云对象存储配置表 dto
|
* 青云对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:21:09
|
* @since 2024-06-02 22:21:09
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssQingyunDTO implements Serializable {
|
public class SchisandraOssQingyunDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessSecret;
|
private String accessSecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String zone;
|
private String zone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否支持CNAME作为Endpoint,默认不支持CNAME。
|
* 是否支持CNAME作为Endpoint,默认不支持CNAME。
|
||||||
*/
|
*/
|
||||||
private String cnameSupport;
|
private String cnameSupport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 附加的用户代理
|
* 附加的用户代理
|
||||||
*/
|
*/
|
||||||
private String additionalUserAgent;
|
private String additionalUserAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否启用虚拟Host
|
* 是否启用虚拟Host
|
||||||
*/
|
*/
|
||||||
private String virtualHostEnabled;
|
private String virtualHostEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 读超时时间
|
* 读超时时间
|
||||||
*/
|
*/
|
||||||
private Integer readTimeout;
|
private Integer readTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 写超时时间
|
* 写超时时间
|
||||||
*/
|
*/
|
||||||
private Integer writeTimeout;
|
private Integer writeTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接超时时间
|
* 连接超时时间
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeout;
|
private Integer connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ public class SchisandraOssQiniuDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ public class SchisandraOssSftpDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主机
|
* 主机
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ public class SchisandraOssTencentDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,143 +1,143 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ucloud对象存储配置表 dto
|
* ucloud对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:27:45
|
* @since 2024-06-02 22:27:45
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssUcloudDTO implements Serializable {
|
public class SchisandraOssUcloudDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String publicKey;
|
private String publicKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String privateKey;
|
private String privateKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String customHost;
|
private String customHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接超时时间
|
* 连接超时时间
|
||||||
*/
|
*/
|
||||||
private Long timeoutConnect;
|
private Long timeoutConnect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 读超时时间
|
* 读超时时间
|
||||||
*/
|
*/
|
||||||
private Long timeoutRead;
|
private Long timeoutRead;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 写超时时间
|
* 写超时时间
|
||||||
*/
|
*/
|
||||||
private Long timeoutWrite;
|
private Long timeoutWrite;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* okhttp最大空闲连接数(5)
|
* okhttp最大空闲连接数(5)
|
||||||
*/
|
*/
|
||||||
private Integer maxIdleConnections;
|
private Integer maxIdleConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* okhttp活动链接存货时间(5分钟)
|
* okhttp活动链接存货时间(5分钟)
|
||||||
*/
|
*/
|
||||||
private Long keepAliveDuration;
|
private Long keepAliveDuration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* okhttp活动链接存货时间单位, (分钟)
|
* okhttp活动链接存货时间单位, (分钟)
|
||||||
*/
|
*/
|
||||||
private String keepAliveTimeUnit;
|
private String keepAliveTimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ public class SchisandraOssUpDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,188 +1,188 @@
|
|||||||
package com.schisandra.oss.application.dto;
|
package com.schisandra.oss.application.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 网易数帆对象存储配置表 dto
|
* 网易数帆对象存储配置表 dto
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:31:37
|
* @since 2024-06-02 22:31:37
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssWangyiDTO implements Serializable {
|
public class SchisandraOssWangyiDTO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接超时时间
|
* 连接超时时间
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeout;
|
private Integer connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 最大连接池大小。
|
* 最大连接池大小。
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 最大失败重试次数
|
* 最大失败重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxErrorRetry;
|
private Integer maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用子域名
|
* 是否使用子域名
|
||||||
*/
|
*/
|
||||||
private String isSubDomain;
|
private String isSubDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接OSS所采用的协议(HTTP或HTTPS),默认为HTTP。
|
* 连接OSS所采用的协议(HTTP或HTTPS),默认为HTTP。
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器的域,该域可以执行NTLM认证
|
* 代理服务器的域,该域可以执行NTLM认证
|
||||||
*/
|
*/
|
||||||
private String proxyDomain;
|
private String proxyDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器主机地址
|
* 代理服务器主机地址
|
||||||
*/
|
*/
|
||||||
private String proxyHost;
|
private String proxyHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的密码
|
* 代理服务器验证的密码
|
||||||
*/
|
*/
|
||||||
private String proxyPassword;
|
private String proxyPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器端口
|
* 代理服务器端口
|
||||||
*/
|
*/
|
||||||
private Integer proxyPort;
|
private Integer proxyPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的用户名
|
* 代理服务器验证的用户名
|
||||||
*/
|
*/
|
||||||
private String proxyUsername;
|
private String proxyUsername;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理主机的NTLM身份验证服务器
|
* 代理主机的NTLM身份验证服务器
|
||||||
*/
|
*/
|
||||||
private String proxyWorkstation;
|
private String proxyWorkstation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒。
|
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒。
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeout;
|
private Integer socketTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户代理,指HTTP的User-Agent头
|
* 用户代理,指HTTP的User-Agent头
|
||||||
*/
|
*/
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket接收缓冲区的大小提示(以字节为单位)。
|
* Socket接收缓冲区的大小提示(以字节为单位)。
|
||||||
*/
|
*/
|
||||||
private Integer socketReceiveBufferSizeHint;
|
private Integer socketReceiveBufferSizeHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket发送缓冲区的大小提示(以字节为单位)。
|
* Socket发送缓冲区的大小提示(以字节为单位)。
|
||||||
*/
|
*/
|
||||||
private Integer socketSendBufferSizeHint;
|
private Integer socketSendBufferSizeHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ public class SchisandraUserOssDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -36,7 +36,7 @@ public class SchisandraUserOssDTO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String configCount;
|
private Integer configCount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class AliOssConfiguration {
|
|||||||
|
|
||||||
public Result aliOssClient(String userId) {
|
public Result aliOssClient(String userId) {
|
||||||
CompletableFuture<SchisandraOssAliDTO> futurePrice = CompletableFuture.supplyAsync(() -> {
|
CompletableFuture<SchisandraOssAliDTO> futurePrice = CompletableFuture.supplyAsync(() -> {
|
||||||
SchisandraOssAliBO schisandraOssAliBO = schisandraOssAliDomainService.getAliOssConfig(Long.valueOf(userId));
|
SchisandraOssAliBO schisandraOssAliBO = schisandraOssAliDomainService.getAliOssConfig(userId);
|
||||||
SchisandraOssAliDTO schisandraOssAliDTO = SchisandraOssAliDTOConverter.INSTANCE.convertBOToDTO(schisandraOssAliBO);
|
SchisandraOssAliDTO schisandraOssAliDTO = SchisandraOssAliDTOConverter.INSTANCE.convertBOToDTO(schisandraOssAliBO);
|
||||||
return schisandraOssAliDTO;
|
return schisandraOssAliDTO;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class MinioOssConfiguration {
|
|||||||
|
|
||||||
public SchisandraOssMinioDTO getSchisandraOssMinioDTO(String userId) {
|
public SchisandraOssMinioDTO getSchisandraOssMinioDTO(String userId) {
|
||||||
CompletableFuture<SchisandraOssMinioDTO> futurePrice = CompletableFuture.supplyAsync(() -> {
|
CompletableFuture<SchisandraOssMinioDTO> futurePrice = CompletableFuture.supplyAsync(() -> {
|
||||||
SchisandraOssMinioBO minioBO = schisandraOssMinioDomainService.getMinioConfig(Long.valueOf(userId));
|
SchisandraOssMinioBO minioBO = schisandraOssMinioDomainService.getMinioConfig(userId);
|
||||||
SchisandraOssMinioDTO minioDTO = SchisandraOssMinioDTOConverter.INSTANCE.convertBOToDTO(minioBO);
|
SchisandraOssMinioDTO minioDTO = SchisandraOssMinioDTOConverter.INSTANCE.convertBOToDTO(minioBO);
|
||||||
return minioDTO;
|
return minioDTO;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ public class SchisandraFileHeatmapBO implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,270 +1,270 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-05-14 20:10:20
|
* @since 2024-05-14 20:10:20
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssAliBO implements Serializable {
|
public class SchisandraOssAliBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OSS地址
|
* OSS地址
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccessKey ID
|
* AccessKey ID
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccessKey Secret
|
* AccessKey Secret
|
||||||
*/
|
*/
|
||||||
private String accessKeySecret;
|
private String accessKeySecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* security Token
|
* security Token
|
||||||
*/
|
*/
|
||||||
private String securityToken;
|
private String securityToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bucket名称
|
* Bucket名称
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据存储路径
|
* 数据存储路径
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户代理,指HTTP的User-Agent头。默认为aliyun-sdk-java。
|
* 用户代理,指HTTP的User-Agent头。默认为aliyun-sdk-java。
|
||||||
*/
|
*/
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败后最大的重试次数。默认3次。
|
* 请求失败后最大的重试次数。默认3次。
|
||||||
*/
|
*/
|
||||||
private String maxErrorRetry;
|
private String maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 从连接池中获取连接的超时时间(单位:毫秒)。默认不超时。
|
* 从连接池中获取连接的超时时间(单位:毫秒)。默认不超时。
|
||||||
*/
|
*/
|
||||||
private Integer connectionRequestTimeout;
|
private Integer connectionRequestTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建立连接的超时时间(单位:毫秒)。默认为50000毫秒。
|
* 建立连接的超时时间(单位:毫秒)。默认为50000毫秒。
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeout;
|
private Integer connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒。
|
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒。
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeout;
|
private Integer socketTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许打开的最大HTTP连接数。默认为1024
|
* 允许打开的最大HTTP连接数。默认为1024
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接TTL (生存时间)。Http连接由连接管理器用TTL缓存。
|
* 连接TTL (生存时间)。Http连接由连接管理器用TTL缓存。
|
||||||
*/
|
*/
|
||||||
private Long connectionTTL;
|
private Long connectionTTL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用com.aliyun.oss.common.comm.IdleConnectionReaper管理过期连接,默认开启
|
* 是否使用com.aliyun.oss.common.comm.IdleConnectionReaper管理过期连接,默认开启
|
||||||
*/
|
*/
|
||||||
private String useReaper;
|
private String useReaper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接空闲超时时间,超时则关闭连接(单位:毫秒)。默认为60000毫秒。
|
* 连接空闲超时时间,超时则关闭连接(单位:毫秒)。默认为60000毫秒。
|
||||||
*/
|
*/
|
||||||
private Long idleConnectionTime;
|
private Long idleConnectionTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接OSS所采用的协议(HTTP或HTTPS),默认为HTTP。
|
* 连接OSS所采用的协议(HTTP或HTTPS),默认为HTTP。
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器主机地址。
|
* 代理服务器主机地址。
|
||||||
*/
|
*/
|
||||||
private String proxyHost;
|
private String proxyHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器端口。
|
* 代理服务器端口。
|
||||||
*/
|
*/
|
||||||
private String proxyPort;
|
private String proxyPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的用户名。
|
* 代理服务器验证的用户名。
|
||||||
*/
|
*/
|
||||||
private String proxyUsername;
|
private String proxyUsername;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的密码。
|
* 代理服务器验证的密码。
|
||||||
*/
|
*/
|
||||||
private String proxyPassword;
|
private String proxyPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器的域,该域可以执行NTLM认证
|
* 代理服务器的域,该域可以执行NTLM认证
|
||||||
*/
|
*/
|
||||||
private String proxyDomain;
|
private String proxyDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理主机的NTLM身份验证服务器
|
* 代理主机的NTLM身份验证服务器
|
||||||
*/
|
*/
|
||||||
private String proxyWorkstation;
|
private String proxyWorkstation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否支持CNAME作为Endpoint,默认支持CNAME。
|
* 是否支持CNAME作为Endpoint,默认支持CNAME。
|
||||||
*/
|
*/
|
||||||
private String supportCname;
|
private String supportCname;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置不可变排除的CName列表 ---- 任何以该列表中的项目结尾的域都不会进行Cname解析。
|
* 设置不可变排除的CName列表 ---- 任何以该列表中的项目结尾的域都不会进行Cname解析。
|
||||||
*/
|
*/
|
||||||
private String cnameExcludeList;
|
private String cnameExcludeList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启二级域名(Second Level Domain)的访问方式,默认不开启。
|
* 是否开启二级域名(Second Level Domain)的访问方式,默认不开启。
|
||||||
*/
|
*/
|
||||||
private String sldEnabled;
|
private String sldEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求超时时间,单位:毫秒。默认情况下是5分钟。
|
* 请求超时时间,单位:毫秒。默认情况下是5分钟。
|
||||||
*/
|
*/
|
||||||
private Integer requestTimeout;
|
private Integer requestTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否启用请求超时校验。默认情况下,它是禁用的。
|
* 是否启用请求超时校验。默认情况下,它是禁用的。
|
||||||
*/
|
*/
|
||||||
private String requestTimeoutEnabled;
|
private String requestTimeoutEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置慢请求的延迟阈值。如果请求的延迟大于延迟,则将记录该请求。默认情况下,阈值为5分钟。
|
* 设置慢请求的延迟阈值。如果请求的延迟大于延迟,则将记录该请求。默认情况下,阈值为5分钟。
|
||||||
*/
|
*/
|
||||||
private Long slowRequestsThreshold;
|
private Long slowRequestsThreshold;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置默认的http头。所有请求头将自动添加到每个请求中。如果在请求中也指定了相同的请求头,则默认的标头将被覆盖。
|
* 设置默认的http头。所有请求头将自动添加到每个请求中。如果在请求中也指定了相同的请求头,则默认的标头将被覆盖。
|
||||||
*/
|
*/
|
||||||
private String defaultHeaders;
|
private String defaultHeaders;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否在上传和下载时启用CRC校验,默认启用
|
* 是否在上传和下载时启用CRC校验,默认启用
|
||||||
*/
|
*/
|
||||||
private String crcCheckEnabled;
|
private String crcCheckEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所有请求设置签名版本
|
* 所有请求设置签名版本
|
||||||
*/
|
*/
|
||||||
private String signatureVersion;
|
private String signatureVersion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置OSS服务端时间和本地时间之间的差异,以毫秒为单位。
|
* 设置OSS服务端时间和本地时间之间的差异,以毫秒为单位。
|
||||||
*/
|
*/
|
||||||
private Long tickOffset;
|
private Long tickOffset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启HTTP重定向。
|
* 是否开启HTTP重定向。
|
||||||
说明: Java SDK 3.10.1及以上版本支持设置是否开启HTTP重定向,默认开启。
|
说明: Java SDK 3.10.1及以上版本支持设置是否开启HTTP重定向,默认开启。
|
||||||
*/
|
*/
|
||||||
private String redirectEnable;
|
private String redirectEnable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启SSL证书校验。
|
* 是否开启SSL证书校验。
|
||||||
* 说明: Java SDK 3.10.1及以上版本支持设置是否开启SSL证书校验,默认开启。
|
* 说明: Java SDK 3.10.1及以上版本支持设置是否开启SSL证书校验,默认开启。
|
||||||
*/
|
*/
|
||||||
private String verifySSLEnable;
|
private String verifySSLEnable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启日志记录连接池统计信息
|
* 是否开启日志记录连接池统计信息
|
||||||
*/
|
*/
|
||||||
private String logConnectionPoolStats;
|
private String logConnectionPoolStats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用系统属性值
|
* 是否使用系统属性值
|
||||||
*/
|
*/
|
||||||
private String useSystemPropertyValues;
|
private String useSystemPropertyValues;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,157 +1,157 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 亚马逊对象存储配置表 bo
|
* 亚马逊对象存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 21:48:16
|
* @since 2024-06-02 21:48:16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssAwsBO implements Serializable {
|
public class SchisandraOssAwsBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据存储路径
|
* 数据存储路径
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bucket名称
|
* Bucket名称
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretAccessKey;
|
private String secretAccessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String mode;
|
private String mode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accelerateModeEnabled;
|
private String accelerateModeEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String checksumValidationEnabled;
|
private String checksumValidationEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String multiRegionEnabled;
|
private String multiRegionEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String chunkedEncodingEnabled;
|
private String chunkedEncodingEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String pathStyleAccessEnabled;
|
private String pathStyleAccessEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String useArnRegionEnabled;
|
private String useArnRegionEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String fipsEnabled;
|
private String fipsEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String dualstackEnabled;
|
private String dualstackEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,217 +1,217 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 百度云对象存储配置表 bo
|
* 百度云对象存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:02:15
|
* @since 2024-06-02 22:02:15
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssBaiduBO implements Serializable {
|
public class SchisandraOssBaiduBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretAccessKey;
|
private String secretAccessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 使用cname访问BOS资源
|
* 使用cname访问BOS资源
|
||||||
*/
|
*/
|
||||||
private String cnameEnabled;
|
private String cnameEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步put
|
* 异步put
|
||||||
*/
|
*/
|
||||||
private String enableHttpAsyncPut;
|
private String enableHttpAsyncPut;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建立连接的超时时间(单位:毫秒)
|
* 建立连接的超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeoutInMillis;
|
private Integer connectionTimeoutInMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许打开的最大HTTP连接数
|
* 允许打开的最大HTTP连接数
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接协议类型
|
* 连接协议类型
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问NTLM验证的代理服务器的Windows域名
|
* 访问NTLM验证的代理服务器的Windows域名
|
||||||
*/
|
*/
|
||||||
private String proxyDomain;
|
private String proxyDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器主机地址
|
* 代理服务器主机地址
|
||||||
*/
|
*/
|
||||||
private String proxyHost;
|
private String proxyHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的密码
|
* 代理服务器验证的密码
|
||||||
*/
|
*/
|
||||||
private String proxyPassword;
|
private String proxyPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器端口
|
* 代理服务器端口
|
||||||
*/
|
*/
|
||||||
private Integer proxyPort;
|
private Integer proxyPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的用户名
|
* 代理服务器验证的用户名
|
||||||
*/
|
*/
|
||||||
private String proxyUsername;
|
private String proxyUsername;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NTLM代理服务器的Windows工作站名称
|
* NTLM代理服务器的Windows工作站名称
|
||||||
*/
|
*/
|
||||||
private String proxyWorkstation;
|
private String proxyWorkstation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否设置用户代理认证
|
* 是否设置用户代理认证
|
||||||
*/
|
*/
|
||||||
private String proxyPreemptiveAuthenticationEnable;
|
private String proxyPreemptiveAuthenticationEnable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过打开的连接传输数据的超时时间(单位:毫秒)
|
* 通过打开的连接传输数据的超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeoutInMillis;
|
private Integer socketTimeoutInMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket缓冲区大小
|
* Socket缓冲区大小
|
||||||
*/
|
*/
|
||||||
private Integer socketBufferSizeInBytes;
|
private Integer socketBufferSizeInBytes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问域名
|
* 访问域名
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 地域
|
* 地域
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启HTTP重定向。默认开启
|
* 是否开启HTTP重定向。默认开启
|
||||||
*/
|
*/
|
||||||
private String redirectsEnabled;
|
private String redirectsEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地地址
|
* 本地地址
|
||||||
*/
|
*/
|
||||||
private String localAddress;
|
private String localAddress;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败最大重试次数
|
* 请求失败最大重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxErrorRetry;
|
private Integer maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 最大延迟时间,单位:毫秒
|
* 最大延迟时间,单位:毫秒
|
||||||
*/
|
*/
|
||||||
private Integer maxDelayInMillis;
|
private Integer maxDelayInMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流文件缓冲区大小
|
* 流文件缓冲区大小
|
||||||
*/
|
*/
|
||||||
private Double streamBufferSize;
|
private Double streamBufferSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户代理,指HTTP的User-Agent头
|
* 用户代理,指HTTP的User-Agent头
|
||||||
*/
|
*/
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,137 +1,137 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* ftp存储配置表 bo
|
* ftp存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 21:54:20
|
* @since 2024-06-02 21:54:20
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssFtpBO implements Serializable {
|
public class SchisandraOssFtpBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主机
|
* 主机
|
||||||
*/
|
*/
|
||||||
private String host;
|
private String host;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 端口
|
* 端口
|
||||||
*/
|
*/
|
||||||
private Integer port;
|
private Integer port;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户名
|
* 用户名
|
||||||
*/
|
*/
|
||||||
private String user;
|
private String user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 密码
|
* 密码
|
||||||
*/
|
*/
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编码
|
* 编码
|
||||||
*/
|
*/
|
||||||
private String charset;
|
private String charset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FTP连接模式,默认被动
|
* FTP连接模式,默认被动
|
||||||
*/
|
*/
|
||||||
private String mode;
|
private String mode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置执行完操作是否返回当前目录,默认false
|
* 设置执行完操作是否返回当前目录,默认false
|
||||||
*/
|
*/
|
||||||
private String backToPwd;
|
private String backToPwd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接超时时长,单位毫秒
|
* 连接超时时长,单位毫秒
|
||||||
*/
|
*/
|
||||||
private Long connectionTimeout;
|
private Long connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket连接超时时长,单位毫秒
|
* Socket连接超时时长,单位毫秒
|
||||||
*/
|
*/
|
||||||
private Long soTimeout;
|
private Long soTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置服务器语言
|
* 设置服务器语言
|
||||||
*/
|
*/
|
||||||
private String serverLanguageCode;
|
private String serverLanguageCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置服务器系统关键词
|
* 设置服务器系统关键词
|
||||||
*/
|
*/
|
||||||
private String systemKey;
|
private String systemKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,252 +1,251 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 华为云对象存储配置表 bo
|
* 华为云对象存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 21:59:56
|
* @since 2024-06-02 21:59:56
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssHuaweiBO implements Serializable {
|
public class SchisandraOssHuaweiBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String basePath;
|
||||||
private String basePath;
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String accessKey;
|
||||||
private String accessKey;
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String secretKey;
|
||||||
private String secretKey;
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String endPoint;
|
||||||
private String endPoint;
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String bucketName;
|
||||||
private String bucketName;
|
|
||||||
|
/**
|
||||||
/**
|
* 建立HTTP/HTTPS连接的超时时间(单位:毫秒)。默认为60000毫秒。
|
||||||
* 建立HTTP/HTTPS连接的超时时间(单位:毫秒)。默认为60000毫秒。
|
*/
|
||||||
*/
|
private Integer connectionTimeout;
|
||||||
private Integer connectionTimeout;
|
|
||||||
|
/**
|
||||||
/**
|
* 如果空闲时间超过此参数的设定值,则关闭连接(单位:毫秒)。默认为30000毫秒。
|
||||||
* 如果空闲时间超过此参数的设定值,则关闭连接(单位:毫秒)。默认为30000毫秒。
|
*/
|
||||||
*/
|
private Integer idleConnectionTime;
|
||||||
private Integer idleConnectionTime;
|
|
||||||
|
/**
|
||||||
/**
|
* 连接池中最大空闲连接数,默认值:1000。
|
||||||
* 连接池中最大空闲连接数,默认值:1000。
|
*/
|
||||||
*/
|
private Integer maxIdleConnections;
|
||||||
private Integer maxIdleConnections;
|
|
||||||
|
/**
|
||||||
/**
|
* 最大允许的HTTP并发请求数。默认为1000。
|
||||||
* 最大允许的HTTP并发请求数。默认为1000。
|
*/
|
||||||
*/
|
private Integer maxConnections;
|
||||||
private Integer maxConnections;
|
|
||||||
|
/**
|
||||||
/**
|
* 请求失败(请求异常、服务端报500或503错误等)后最大的重试次数。默认3次。
|
||||||
* 请求失败(请求异常、服务端报500或503错误等)后最大的重试次数。默认3次。
|
*/
|
||||||
*/
|
private Integer maxErrorRetry;
|
||||||
private Integer maxErrorRetry;
|
|
||||||
|
/**
|
||||||
/**
|
* Socket层传输数据的超时时间(单位:毫秒)。默认为60000毫秒。
|
||||||
* Socket层传输数据的超时时间(单位:毫秒)。默认为60000毫秒。
|
*/
|
||||||
*/
|
private Integer socketTimeout;
|
||||||
private Integer socketTimeout;
|
|
||||||
|
/**
|
||||||
/**
|
* 设置HTTP请求的端口号 (默认为80)。
|
||||||
* 设置HTTP请求的端口号 (默认为80)。
|
*/
|
||||||
*/
|
private Integer endpointHttpPort;
|
||||||
private Integer endpointHttpPort;
|
|
||||||
|
/**
|
||||||
/**
|
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
||||||
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
*/
|
||||||
*/
|
private String endpointHttpsPort;
|
||||||
private String endpointHttpsPort;
|
|
||||||
|
/**
|
||||||
/**
|
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
||||||
* 定是否使用HTTPS连接OBS (默认为 “true”)。
|
*/
|
||||||
*/
|
private String httpsOnly;
|
||||||
private String httpsOnly;
|
|
||||||
|
/**
|
||||||
/**
|
* 指定是否启用对OBS的路径样式访问。“true” 表示启用了路径样式的访问,而 “false” (默认) 表示启用了虚拟托管样式的访问。注意: 如果启用了路径样式访问,则不支持OBS 3.0的新bucket功能。
|
||||||
* 指定是否启用对OBS的路径样式访问。“true” 表示启用了路径样式的访问,而 “false” (默认) 表示启用了虚拟托管样式的访问。注意: 如果启用了路径样式访问,则不支持OBS 3.0的新bucket功能。
|
*/
|
||||||
*/
|
private String pathStyle;
|
||||||
private String pathStyle;
|
|
||||||
|
/**
|
||||||
/**
|
* HTTP代理配置。默认为空。
|
||||||
* HTTP代理配置。默认为空。
|
*/
|
||||||
*/
|
private String httpProxy;
|
||||||
private String httpProxy;
|
|
||||||
|
/**
|
||||||
/**
|
* 上传流对象时使用的缓存大小(单位:字节)。默认为512KB。
|
||||||
* 上传流对象时使用的缓存大小(单位:字节)。默认为512KB。
|
*/
|
||||||
*/
|
private Integer uploadStreamRetryBufferSize;
|
||||||
private Integer uploadStreamRetryBufferSize;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否验证服务端证书。默认为false。
|
||||||
* 是否验证服务端证书。默认为false。
|
*/
|
||||||
*/
|
private String validateCertificate;
|
||||||
private String validateCertificate;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否验证响应头信息的ContentType。默认为true。
|
||||||
* 是否验证响应头信息的ContentType。默认为true。
|
*/
|
||||||
*/
|
private String verifyResponseContentType;
|
||||||
private String verifyResponseContentType;
|
|
||||||
|
/**
|
||||||
/**
|
* 从Socket流下载对象的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
||||||
* 从Socket流下载对象的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
*/
|
||||||
*/
|
private Integer readBufferSize;
|
||||||
private Integer readBufferSize;
|
|
||||||
|
/**
|
||||||
/**
|
* 上传对象到Socket流时的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
||||||
* 上传对象到Socket流时的缓存大小(单位:字节),-1表示不设置缓存。默认为-1。
|
*/
|
||||||
*/
|
private Double writeBufferSize;
|
||||||
private Double writeBufferSize;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否严格验证服务端主机名。默认为false。
|
||||||
* 是否严格验证服务端主机名。默认为false。
|
*/
|
||||||
*/
|
private String isStrictHostnameVerification;
|
||||||
private String isStrictHostnameVerification;
|
|
||||||
|
/**
|
||||||
/**
|
* 设置身份验证类型。
|
||||||
* 设置身份验证类型。
|
*/
|
||||||
*/
|
private String authType;
|
||||||
private String authType;
|
|
||||||
|
/**
|
||||||
/**
|
* Socket发送缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_SNDBUF参数。默认为-1表示不设置。
|
||||||
* Socket发送缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_SNDBUF参数。默认为-1表示不设置。
|
*/
|
||||||
*/
|
private Integer socketWriteBufferSize;
|
||||||
private Integer socketWriteBufferSize;
|
|
||||||
|
/**
|
||||||
/**
|
* Socket接收缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_RCVBUF参数。默认为-1表示不设置。
|
||||||
* Socket接收缓冲区大小(单位:字节),对应java.net.SocketOptions.SO_RCVBUF参数。默认为-1表示不设置。
|
*/
|
||||||
*/
|
private Integer socketReadBufferSize;
|
||||||
private Integer socketReadBufferSize;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否使用长连接访问OBS服务。默认为true。
|
||||||
* 是否使用长连接访问OBS服务。默认为true。
|
*/
|
||||||
*/
|
private String keepAlive;
|
||||||
private String keepAlive;
|
|
||||||
|
/**
|
||||||
/**
|
* 指定是否使用协议协商。
|
||||||
* 指定是否使用协议协商。
|
*/
|
||||||
*/
|
private String authTypeNegotiation;
|
||||||
private String authTypeNegotiation;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否通过自定义域名访问OBS服务。默认为false。
|
||||||
* 是否通过自定义域名访问OBS服务。默认为false。
|
*/
|
||||||
*/
|
private String cname;
|
||||||
private String cname;
|
|
||||||
|
/**
|
||||||
/**
|
* 将文件夹隔离器设置为斜线。
|
||||||
* 将文件夹隔离器设置为斜线。
|
*/
|
||||||
*/
|
private String delimiter;
|
||||||
private String delimiter;
|
|
||||||
|
/**
|
||||||
/**
|
* SSLContext的Provider,默认使用JDK提供的SSLContext。
|
||||||
* SSLContext的Provider,默认使用JDK提供的SSLContext。
|
*/
|
||||||
*/
|
private String sslProvider;
|
||||||
private String sslProvider;
|
|
||||||
|
/**
|
||||||
/**
|
* 访问OBS服务端时使用的HTTP协议类型。默认为HTTP1.1协议。
|
||||||
* 访问OBS服务端时使用的HTTP协议类型。默认为HTTP1.1协议。
|
*/
|
||||||
*/
|
private String httpProtocolType;
|
||||||
private String httpProtocolType;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否开启Okhttp中的连接失败重试,默认关闭
|
||||||
* 是否开启Okhttp中的连接失败重试,默认关闭
|
*/
|
||||||
*/
|
private String retryOnConnectionFailureInOkhttp;
|
||||||
private String retryOnConnectionFailureInOkhttp;
|
|
||||||
|
/**
|
||||||
/**
|
* 发生异常时最大重试次数
|
||||||
* 发生异常时最大重试次数
|
*/
|
||||||
*/
|
private String maxRetryOnUnexpectedEndException;
|
||||||
private String maxRetryOnUnexpectedEndException;
|
|
||||||
|
/**
|
||||||
/**
|
* 分片大小,默认5MB
|
||||||
* 分片大小,默认5MB
|
*/
|
||||||
*/
|
private Integer partSize;
|
||||||
private Integer partSize;
|
|
||||||
|
/**
|
||||||
/**
|
* 并发线程数,默认等于CPU的核数
|
||||||
* 并发线程数,默认等于CPU的核数
|
*/
|
||||||
*/
|
private Integer taskNum;
|
||||||
private Integer taskNum;
|
|
||||||
|
/**
|
||||||
/**
|
* 状态
|
||||||
* 状态
|
*/
|
||||||
*/
|
private String status;
|
||||||
private String status;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否开启高级设置
|
||||||
* 是否开启高级设置
|
*/
|
||||||
*/
|
private String openAdvancedSetup;
|
||||||
private String openAdvancedSetup;
|
|
||||||
|
/**
|
||||||
/**
|
* 创建人
|
||||||
* 创建人
|
*/
|
||||||
*/
|
private String createdBy;
|
||||||
private String createdBy;
|
|
||||||
|
/**
|
||||||
/**
|
* 创建时间
|
||||||
* 创建时间
|
*/
|
||||||
*/
|
private Date createdTime;
|
||||||
private Date createdTime;
|
|
||||||
|
/**
|
||||||
/**
|
* 更新时间
|
||||||
* 更新时间
|
*/
|
||||||
*/
|
private Date updateTime;
|
||||||
private Date updateTime;
|
|
||||||
|
/**
|
||||||
/**
|
* 更新人
|
||||||
* 更新人
|
*/
|
||||||
*/
|
private String updateBy;
|
||||||
private String updateBy;
|
|
||||||
|
/**
|
||||||
/**
|
* 是否删除 0 未删除 1已删除
|
||||||
* 是否删除 0 未删除 1已删除
|
*/
|
||||||
*/
|
private Integer isDeleted;
|
||||||
private Integer isDeleted;
|
|
||||||
|
/**
|
||||||
/**
|
* 额外字段
|
||||||
* 额外字段
|
*/
|
||||||
*/
|
private String extraJson;
|
||||||
private String extraJson;
|
|
||||||
|
/**
|
||||||
/**
|
* 当桶不存在,是否创建
|
||||||
* 当桶不存在,是否创建
|
*/
|
||||||
*/
|
private String createBucket;
|
||||||
private String createBucket;
|
|
||||||
|
/**
|
||||||
/**
|
* 启动检测桶,是否存在
|
||||||
* 启动检测桶,是否存在
|
*/
|
||||||
*/
|
private String checkBucket;
|
||||||
private String checkBucket;
|
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,292 +1,292 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 京东云对象存储配置表 bo
|
* 京东云对象存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:07:10
|
* @since 2024-06-02 22:07:10
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdBO implements Serializable {
|
public class SchisandraOssJdBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建立连接的超时时间(单位:毫秒)。默认为50000毫秒
|
* 建立连接的超时时间(单位:毫秒)。默认为50000毫秒
|
||||||
*/
|
*/
|
||||||
private Integer connectionTimeout;
|
private Integer connectionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许打开的最大HTTP连接数。默认为1024
|
* 允许打开的最大HTTP连接数。默认为1024
|
||||||
*/
|
*/
|
||||||
private Integer maxConnections;
|
private Integer maxConnections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败后最大的重试次数
|
* 请求失败后最大的重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxErrorRetry;
|
private Integer maxErrorRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否限制重试的默认值。
|
* 是否限制重试的默认值。
|
||||||
*/
|
*/
|
||||||
private String throttleRetries;
|
private String throttleRetries;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接协议类型
|
* 连接协议类型
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接到HTTP代理时要使用的协议。
|
* 连接到HTTP代理时要使用的协议。
|
||||||
*/
|
*/
|
||||||
private String proxyProtocol;
|
private String proxyProtocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问NTLM验证的代理服务器的Windows域名
|
* 访问NTLM验证的代理服务器的Windows域名
|
||||||
*/
|
*/
|
||||||
private String proxyDomain;
|
private String proxyDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器主机地址
|
* 代理服务器主机地址
|
||||||
*/
|
*/
|
||||||
private String proxyHost;
|
private String proxyHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的密码
|
* 代理服务器验证的密码
|
||||||
*/
|
*/
|
||||||
private String proxyPassword;
|
private String proxyPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器端口
|
* 代理服务器端口
|
||||||
*/
|
*/
|
||||||
private String proxyPort;
|
private String proxyPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理服务器验证的用户名
|
* 代理服务器验证的用户名
|
||||||
*/
|
*/
|
||||||
private String proxyUsername;
|
private String proxyUsername;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NTLM代理服务器的Windows工作站名称
|
* NTLM代理服务器的Windows工作站名称
|
||||||
*/
|
*/
|
||||||
private String proxyWorkstation;
|
private String proxyWorkstation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 指定不通过代理应访问的主机。
|
* 指定不通过代理应访问的主机。
|
||||||
*/
|
*/
|
||||||
private String nonProxyHosts;
|
private String nonProxyHosts;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否禁用Socket代理
|
* 是否禁用Socket代理
|
||||||
*/
|
*/
|
||||||
private String disableSocketProxy;
|
private String disableSocketProxy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用基本身份验证对代理服务器进行抢先身份验证
|
* 是否使用基本身份验证对代理服务器进行抢先身份验证
|
||||||
*/
|
*/
|
||||||
private String preemptiveBasicProxyAuth;
|
private String preemptiveBasicProxyAuth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒
|
* Socket层传输数据的超时时间(单位:毫秒)。默认为50000毫秒
|
||||||
*/
|
*/
|
||||||
private Integer socketTimeout;
|
private Integer socketTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求的默认超时时间。默认为0,禁用的。
|
* 请求的默认超时时间。默认为0,禁用的。
|
||||||
*/
|
*/
|
||||||
private Integer requestTimeout;
|
private Integer requestTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求的默认超时时间。默认为0,禁用的。
|
* 请求的默认超时时间。默认为0,禁用的。
|
||||||
*/
|
*/
|
||||||
private Integer clientExecutionTimeout;
|
private Integer clientExecutionTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公共HTTP请求头前缀。
|
* 公共HTTP请求头前缀。
|
||||||
*/
|
*/
|
||||||
private String userAgentPrefix;
|
private String userAgentPrefix;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用com.amazonaws.http.IdleConnectionReaper管理旧连接
|
* 是否使用com.amazonaws.http.IdleConnectionReaper管理旧连接
|
||||||
*/
|
*/
|
||||||
private String useReaper;
|
private String useReaper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用gzip解压缩
|
* 是否使用gzip解压缩
|
||||||
*/
|
*/
|
||||||
private String useGzip;
|
private String useGzip;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket发送缓冲区的大小提示(以字节为单位)。
|
* Socket发送缓冲区的大小提示(以字节为单位)。
|
||||||
*/
|
*/
|
||||||
private Integer socketSendBufferSizeHint;
|
private Integer socketSendBufferSizeHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Socket接收缓冲区的大小提示(以字节为单位)。
|
* Socket接收缓冲区的大小提示(以字节为单位)。
|
||||||
*/
|
*/
|
||||||
private Integer socketReceiveBufferSizeHint;
|
private Integer socketReceiveBufferSizeHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置签名算法对请求进行签名。如果未明确设置,客户端将通过提取SDK中的配置文件来确定要使用的算法
|
* 设置签名算法对请求进行签名。如果未明确设置,客户端将通过提取SDK中的配置文件来确定要使用的算法
|
||||||
*/
|
*/
|
||||||
private String signerOverride;
|
private String signerOverride;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 响应元数据缓存大小
|
* 响应元数据缓存大小
|
||||||
*/
|
*/
|
||||||
private Integer responseMetadataCacheSize;
|
private Integer responseMetadataCacheSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用USE_EXPECT_CONTINUE作为期望值
|
* 是否使用USE_EXPECT_CONTINUE作为期望值
|
||||||
*/
|
*/
|
||||||
private String useExpectContinue;
|
private String useExpectContinue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否缓存响应元数据
|
* 是否缓存响应元数据
|
||||||
*/
|
*/
|
||||||
private String cacheResponseMetadata;
|
private String cacheResponseMetadata;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接TTL (生存时间)。Http连接由连接管理器用TTL缓存。
|
* 连接TTL (生存时间)。Http连接由连接管理器用TTL缓存。
|
||||||
*/
|
*/
|
||||||
private Long connectionTTL;
|
private Long connectionTTL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接池中连接的最大空闲时间 (以毫秒为单位)。
|
* 连接池中连接的最大空闲时间 (以毫秒为单位)。
|
||||||
*/
|
*/
|
||||||
private Long connectionMaxIdleMillis;
|
private Long connectionMaxIdleMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在必须验证连接是否仍处于打开状态之前,连接可以在连接池中处于空闲状态。
|
* 在必须验证连接是否仍处于打开状态之前,连接可以在连接池中处于空闲状态。
|
||||||
*/
|
*/
|
||||||
private Integer validateAfterInActivityMillis;
|
private Integer validateAfterInActivityMillis;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用TCP KeepAlive的默认值。
|
* 是否使用TCP KeepAlive的默认值。
|
||||||
*/
|
*/
|
||||||
private String tcpKeepAlive;
|
private String tcpKeepAlive;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所有请求的公共请求头
|
* 所有请求的公共请求头
|
||||||
*/
|
*/
|
||||||
private String headers;
|
private String headers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求失败最大重试次数
|
* 请求失败最大重试次数
|
||||||
*/
|
*/
|
||||||
private Integer maxConsecutiveRetriesBeforeThrottling;
|
private Integer maxConsecutiveRetriesBeforeThrottling;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否禁用主机前缀
|
* 是否禁用主机前缀
|
||||||
*/
|
*/
|
||||||
private String disableHostPrefixInjection;
|
private String disableHostPrefixInjection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重试模式
|
* 重试模式
|
||||||
*/
|
*/
|
||||||
private String retryMode;
|
private String retryMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,92 +1,92 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* jdbc存储配置表 bo
|
* jdbc存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:08:16
|
* @since 2024-06-02 22:08:16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdbcBO implements Serializable {
|
public class SchisandraOssJdbcBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统数据源Bean名称(适用于系统多数据源配置)
|
* 系统数据源Bean名称(适用于系统多数据源配置)
|
||||||
*/
|
*/
|
||||||
private String dataSourceName;
|
private String dataSourceName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对象存储数据源
|
* 对象存储数据源
|
||||||
*/
|
*/
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String driver;
|
private String driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,62 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* jdbc存储数据表 bo
|
* jdbc存储数据表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:08:55
|
* @since 2024-06-02 22:08:55
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdbcDataBO implements Serializable {
|
public class SchisandraOssJdbcDataBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据
|
* 数据
|
||||||
*/
|
*/
|
||||||
private byte[] data;
|
private byte[] data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,87 +1,87 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* jdbc存储信息表 bo
|
* jdbc存储信息表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:11:22
|
* @since 2024-06-02 22:11:22
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJdbcStoreBO implements Serializable {
|
public class SchisandraOssJdbcStoreBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件/目录名
|
* 文件/目录名
|
||||||
*/
|
*/
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路径
|
* 路径
|
||||||
*/
|
*/
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件大小
|
* 文件大小
|
||||||
*/
|
*/
|
||||||
private Double size;
|
private Double size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 父级目录ID
|
* 父级目录ID
|
||||||
*/
|
*/
|
||||||
private Integer parentId;
|
private Integer parentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型(D:目录;F:文件)
|
* 类型(D:目录;F:文件)
|
||||||
*/
|
*/
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据ID
|
* 数据ID
|
||||||
*/
|
*/
|
||||||
private String dataId;
|
private String dataId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,170 +1,170 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 金山云对象存储配置表 bo
|
* 金山云对象存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:13:26
|
* @since 2024-06-02 22:13:26
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssJinshanBO implements Serializable {
|
public class SchisandraOssJinshanBO implements Serializable {
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String id;
|
||||||
private Long id;
|
|
||||||
|
/**
|
||||||
/**
|
*
|
||||||
*
|
*/
|
||||||
*/
|
private String userId;
|
||||||
private Long userId;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKeySecret;
|
private String accessKeySecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务地址,参考 http://ks3.ksyun.com/doc/api/index.html Doc
|
* 服务地址,参考 http://ks3.ksyun.com/doc/api/index.html Doc
|
||||||
* 中国(杭州):kss.ksyun.com
|
* 中国(杭州):kss.ksyun.com
|
||||||
* 中国(杭州)cdn:kssws.ks-cdn.com
|
* 中国(杭州)cdn:kssws.ks-cdn.com
|
||||||
* 美国(圣克拉拉):ks3-us-west-1.ksyun.com
|
* 美国(圣克拉拉):ks3-us-west-1.ksyun.com
|
||||||
* 中国(北京):ks3-cn-beijing.ksyun.com
|
* 中国(北京):ks3-cn-beijing.ksyun.com
|
||||||
* 中国(香港):ks3-cn-hk-1.ksyun.com
|
* 中国(香港):ks3-cn-hk-1.ksyun.com
|
||||||
* 中国(上海):ks3-cn-shanghai.ksyun.com
|
* 中国(上海):ks3-cn-shanghai.ksyun.com
|
||||||
*/
|
*/
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String securityToken;
|
private String securityToken;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* http或者https
|
* http或者https
|
||||||
*/
|
*/
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签名版本
|
* 签名版本
|
||||||
*/
|
*/
|
||||||
private String version;
|
private String version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用path style access方式访问
|
* 是否使用path style access方式访问
|
||||||
*/
|
*/
|
||||||
private String pathStyleAccess;
|
private String pathStyleAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许客户端发送匿名请求
|
* 允许客户端发送匿名请求
|
||||||
*/
|
*/
|
||||||
private String allowAnonymous;
|
private String allowAnonymous;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当服务端返回307时是否自动跳转,
|
* 当服务端返回307时是否自动跳转,
|
||||||
* 主要发生在用Region A的endpoint请求Region B的endpoint
|
* 主要发生在用Region A的endpoint请求Region B的endpoint
|
||||||
*/
|
*/
|
||||||
private String flowRedirect;
|
private String flowRedirect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否使用绑定的域名作为endpoint
|
* 是否使用绑定的域名作为endpoint
|
||||||
*/
|
*/
|
||||||
private String domainMode;
|
private String domainMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签名类
|
* 签名类
|
||||||
*/
|
*/
|
||||||
private String signerClass;
|
private String signerClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否压缩
|
* 是否压缩
|
||||||
*/
|
*/
|
||||||
private String useGzip;
|
private String useGzip;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +1,67 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 本地存储配置表 bo
|
* 本地存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:18:08
|
* @since 2024-06-02 22:18:08
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssLocalBO implements Serializable {
|
public class SchisandraOssLocalBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,183 +1,183 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bo
|
* bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-05-14 19:32:24
|
* @since 2024-05-14 19:32:24
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssMinioBO implements Serializable {
|
public class SchisandraOssMinioBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String endpoint;
|
private String endpoint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Integer port;
|
private Integer port;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String fileHost;
|
private String fileHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String downloadHost;
|
private String downloadHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String uploadHost;
|
private String uploadHost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接超时时间(单位:毫秒)
|
* 连接超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Long connectTimeout;
|
private Long connectTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 写超时时间(单位:毫秒)
|
* 写超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Long writeTimeout;
|
private Long writeTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 读超时时间(单位:毫秒)
|
* 读超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Long readTimeout;
|
private Long readTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 调用超时时间(单位:毫秒)
|
* 调用超时时间(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Long callTimeout;
|
private Long callTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否支持重定向,默认支持
|
* 是否支持重定向,默认支持
|
||||||
*/
|
*/
|
||||||
private String followRedirects;
|
private String followRedirects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否支持HTTP到HTTPS,HTTPS到HTTP的重定向,默认支持
|
* 是否支持HTTP到HTTPS,HTTPS到HTTP的重定向,默认支持
|
||||||
*/
|
*/
|
||||||
private String followSslRedirects;
|
private String followSslRedirects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开始连接失败重试,默认不支持
|
* 是否开始连接失败重试,默认不支持
|
||||||
*/
|
*/
|
||||||
private String retryOnConnectionFailure;
|
private String retryOnConnectionFailure;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 连接健康检测间隔时长(单位:毫秒)
|
* 连接健康检测间隔时长(单位:毫秒)
|
||||||
*/
|
*/
|
||||||
private Integer pingInterval;
|
private Integer pingInterval;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Long partSize;
|
private Long partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 图片大小限制,单位:m
|
* 图片大小限制,单位:m
|
||||||
*/
|
*/
|
||||||
private Integer imgSize;
|
private Integer imgSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件大小限制,单位:m
|
* 文件大小限制,单位:m
|
||||||
*/
|
*/
|
||||||
private Integer fileSize;
|
private Integer fileSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外json
|
* 额外json
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,132 +1,132 @@
|
|||||||
package com.schisandra.oss.domain.bo;
|
package com.schisandra.oss.domain.bo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 平安云对象存储配置表 bo
|
* 平安云对象存储配置表 bo
|
||||||
*
|
*
|
||||||
* @author landaiqing
|
* @author landaiqing
|
||||||
* @since 2024-06-02 22:19:22
|
* @since 2024-06-02 22:19:22
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SchisandraOssPinganBO implements Serializable {
|
public class SchisandraOssPinganBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private Long systemUserId;
|
private String systemUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String userAgent;
|
private String userAgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String obsUrl;
|
private String obsUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String obsAccessKey;
|
private String obsAccessKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String obsSecret;
|
private String obsSecret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String userId;
|
private String userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String basePath;
|
private String basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String representPathInKey;
|
private String representPathInKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String domainName;
|
private String domainName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分片大小,默认5MB
|
* 分片大小,默认5MB
|
||||||
*/
|
*/
|
||||||
private Integer partSize;
|
private Integer partSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发线程数,默认等于CPU的核数
|
* 并发线程数,默认等于CPU的核数
|
||||||
*/
|
*/
|
||||||
private Integer taskNum;
|
private Integer taskNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private String createdBy;
|
private String createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
private Date createdTime;
|
private Date createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除 0 未删除 1已删除
|
* 是否删除 0 未删除 1已删除
|
||||||
*/
|
*/
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 额外字段
|
* 额外字段
|
||||||
*/
|
*/
|
||||||
private String extraJson;
|
private String extraJson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当桶不存在,是否创建
|
* 当桶不存在,是否创建
|
||||||
*/
|
*/
|
||||||
private String createBucket;
|
private String createBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动检测桶,是否存在
|
* 启动检测桶,是否存在
|
||||||
*/
|
*/
|
||||||
private String checkBucket;
|
private String checkBucket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启高级设置
|
* 是否开启高级设置
|
||||||
*/
|
*/
|
||||||
private String openAdvancedSetup;
|
private String openAdvancedSetup;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user