diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/api/TeamBookmarkApiController.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/api/TeamBookmarkApiController.java new file mode 100644 index 00000000..5d2646c2 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/api/TeamBookmarkApiController.java @@ -0,0 +1,98 @@ +package com.qqchen.deploy.backend.deploy.api; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmark; +import com.qqchen.deploy.backend.deploy.query.TeamBookmarkQuery; +import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkService; +import com.qqchen.deploy.backend.framework.api.Response; +import com.qqchen.deploy.backend.framework.controller.BaseController; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.annotation.Resource; +import jakarta.servlet.http.HttpServletResponse; +import lombok.extern.slf4j.Slf4j; +import org.springframework.data.domain.Page; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.concurrent.CompletableFuture; + +/** + * 团队导航书签API控制器 + */ +@Slf4j +@RestController +@RequestMapping("/api/v1/team-bookmark") +@Tag(name = "团队导航书签管理", description = "团队导航书签的增删改查接口") +public class TeamBookmarkApiController extends BaseController { + + @Resource + private ITeamBookmarkService teamBookmarkService; + + @Override + public Response create(@Validated @RequestBody TeamBookmarkDTO dto) { + return super.create(dto); + } + + @Override + public Response update(@PathVariable Long id, @Validated @RequestBody TeamBookmarkDTO dto) { + return super.update(id, dto); + } + + @Override + public Response delete(@PathVariable Long id) { + return super.delete(id); + } + + @Override + public Response findById(@PathVariable Long id) { + return super.findById(id); + } + + @Override + public Response> findAll() { + return super.findAll(); + } + + @Override + public Response> page(TeamBookmarkQuery query) { + return super.page(query); + } + + @Override + public Response> findAll(TeamBookmarkQuery query) { + return super.findAll(query); + } + + @Override + public CompletableFuture> batchProcess(@RequestBody List dtos) { + return super.batchProcess(dtos); + } + + @Override + public void export(HttpServletResponse response, TeamBookmarkQuery query) { + super.export(response, query); + } + + @Override + protected void exportData(HttpServletResponse response, List data) { + // TODO: 实现导出功能 + } + + @GetMapping("/list-by-team/{teamId}") + @Operation(summary = "根据团队ID查询书签列表") + public Response> listByTeamId(@PathVariable Long teamId) { + List result = teamBookmarkService.listByTeamId(teamId); + return Response.success(result); + } + + @GetMapping("/list-by-team/{teamId}/category/{categoryId}") + @Operation(summary = "根据团队ID和分类ID查询书签列表") + public Response> listByTeamIdAndCategoryId( + @PathVariable Long teamId, + @PathVariable Long categoryId) { + List result = teamBookmarkService.listByTeamIdAndCategoryId(teamId, categoryId); + return Response.success(result); + } +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/api/TeamBookmarkCategoryApiController.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/api/TeamBookmarkCategoryApiController.java new file mode 100644 index 00000000..aec38489 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/api/TeamBookmarkCategoryApiController.java @@ -0,0 +1,89 @@ +package com.qqchen.deploy.backend.deploy.api; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory; +import com.qqchen.deploy.backend.deploy.query.TeamBookmarkCategoryQuery; +import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkCategoryService; +import com.qqchen.deploy.backend.framework.api.Response; +import com.qqchen.deploy.backend.framework.controller.BaseController; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.annotation.Resource; +import jakarta.servlet.http.HttpServletResponse; +import lombok.extern.slf4j.Slf4j; +import org.springframework.data.domain.Page; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.concurrent.CompletableFuture; + +/** + * 团队导航分类API控制器 + */ +@Slf4j +@RestController +@RequestMapping("/api/v1/team-bookmark-category") +@Tag(name = "团队导航分类管理", description = "团队导航分类的增删改查接口") +public class TeamBookmarkCategoryApiController extends BaseController { + + @Resource + private ITeamBookmarkCategoryService teamBookmarkCategoryService; + + @Override + public Response create(@Validated @RequestBody TeamBookmarkCategoryDTO dto) { + return super.create(dto); + } + + @Override + public Response update(@PathVariable Long id, @Validated @RequestBody TeamBookmarkCategoryDTO dto) { + return super.update(id, dto); + } + + @Override + public Response delete(@PathVariable Long id) { + return super.delete(id); + } + + @Override + public Response findById(@PathVariable Long id) { + return super.findById(id); + } + + @Override + public Response> findAll() { + return super.findAll(); + } + + @Override + public Response> page(TeamBookmarkCategoryQuery query) { + return super.page(query); + } + + @Override + public Response> findAll(TeamBookmarkCategoryQuery query) { + return super.findAll(query); + } + + @Override + public CompletableFuture> batchProcess(@RequestBody List dtos) { + return super.batchProcess(dtos); + } + + @Override + public void export(HttpServletResponse response, TeamBookmarkCategoryQuery query) { + super.export(response, query); + } + + @Override + protected void exportData(HttpServletResponse response, List data) { + // TODO: 实现导出功能 + } + + @GetMapping("/list-by-team/{teamId}") + @Operation(summary = "根据团队ID查询分类列表") + public Response> listByTeamId(@PathVariable Long teamId) { + List result = teamBookmarkCategoryService.listByTeamId(teamId); + return Response.success(result); + } +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/converter/TeamBookmarkCategoryConverter.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/converter/TeamBookmarkCategoryConverter.java new file mode 100644 index 00000000..1e3542f5 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/converter/TeamBookmarkCategoryConverter.java @@ -0,0 +1,13 @@ +package com.qqchen.deploy.backend.deploy.converter; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory; +import com.qqchen.deploy.backend.framework.converter.BaseConverter; +import org.mapstruct.Mapper; + +/** + * 团队导航分类Converter + */ +@Mapper(config = BaseConverter.class) +public interface TeamBookmarkCategoryConverter extends BaseConverter { +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/converter/TeamBookmarkConverter.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/converter/TeamBookmarkConverter.java new file mode 100644 index 00000000..dd434010 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/converter/TeamBookmarkConverter.java @@ -0,0 +1,13 @@ +package com.qqchen.deploy.backend.deploy.converter; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmark; +import com.qqchen.deploy.backend.framework.converter.BaseConverter; +import org.mapstruct.Mapper; + +/** + * 团队导航书签Converter + */ +@Mapper(config = BaseConverter.class) +public interface TeamBookmarkConverter extends BaseConverter { +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/TeamBookmarkCategoryDTO.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/TeamBookmarkCategoryDTO.java new file mode 100644 index 00000000..f545d2e9 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/TeamBookmarkCategoryDTO.java @@ -0,0 +1,39 @@ +package com.qqchen.deploy.backend.deploy.dto; + +import com.qqchen.deploy.backend.framework.dto.BaseDTO; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 团队导航分类DTO + */ +@Data +@EqualsAndHashCode(callSuper = true) +@Schema(description = "团队导航分类DTO") +public class TeamBookmarkCategoryDTO extends BaseDTO { + + @Schema(description = "团队ID") + @NotNull(message = "团队ID不能为空") + private Long teamId; + + @Schema(description = "分类名称") + @NotBlank(message = "分类名称不能为空") + private String name; + + @Schema(description = "分类图标") + private String icon; + + @Schema(description = "排序") + @NotNull(message = "排序不能为空") + private Integer sort; + + @Schema(description = "是否启用") + @NotNull(message = "启用状态不能为空") + private Boolean enabled; + + @Schema(description = "书签数量") + private Long bookmarkCount; +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/TeamBookmarkDTO.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/TeamBookmarkDTO.java new file mode 100644 index 00000000..367f6d58 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/TeamBookmarkDTO.java @@ -0,0 +1,68 @@ +package com.qqchen.deploy.backend.deploy.dto; + +import com.qqchen.deploy.backend.framework.dto.BaseDTO; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.List; + +/** + * 团队导航书签DTO + */ +@Data +@EqualsAndHashCode(callSuper = true) +@Schema(description = "团队导航书签DTO") +public class TeamBookmarkDTO extends BaseDTO { + + @Schema(description = "团队ID") + @NotNull(message = "团队ID不能为空") + private Long teamId; + + @Schema(description = "分类ID") + private Long categoryId; + + @Schema(description = "书签标题") + @NotBlank(message = "书签标题不能为空") + private String title; + + @Schema(description = "书签URL") + @NotBlank(message = "书签URL不能为空") + private String url; + + @Schema(description = "图标URL") + private String icon; + + @Schema(description = "描述") + private String description; + + @Schema(description = "是否需要认证") + @NotNull(message = "认证标识不能为空") + private Boolean needAuth; + + @Schema(description = "账号") + private String username; + + @Schema(description = "密码") + private String password; + + @Schema(description = "标签列表") + private List tags; + + @Schema(description = "排序") + @NotNull(message = "排序不能为空") + private Integer sort; + + @Schema(description = "是否启用") + @NotNull(message = "启用状态不能为空") + private Boolean enabled; + + @Schema(description = "是否公开") + @NotNull(message = "公开状态不能为空") + private Boolean isPublic; + + @Schema(description = "分类名称") + private String categoryName; +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/UserTeamDeployableDTO.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/UserTeamDeployableDTO.java index dba4be09..b35f4a21 100644 --- a/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/UserTeamDeployableDTO.java +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/dto/UserTeamDeployableDTO.java @@ -33,6 +33,9 @@ public class UserTeamDeployableDTO { @Schema(description = "团队负责人名称") private String ownerName; + @Schema(description = "当前登录用户是否是该团队的负责人") + private Boolean isOwner; + @Schema(description = "团队成员列表") private List members; diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/entity/TeamBookmark.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/entity/TeamBookmark.java new file mode 100644 index 00000000..626d803d --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/entity/TeamBookmark.java @@ -0,0 +1,100 @@ +package com.qqchen.deploy.backend.deploy.entity; + +import com.qqchen.deploy.backend.framework.domain.Entity; +import jakarta.persistence.Column; +import jakarta.persistence.Table; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.JdbcTypeCode; +import org.hibernate.type.SqlTypes; + +import java.util.List; + +/** + * 团队导航书签实体 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@jakarta.persistence.Entity +@Table(name = "deploy_team_bookmark") +public class TeamBookmark extends Entity { + + /** + * 团队ID + */ + @Column(name = "team_id", nullable = false) + private Long teamId; + + /** + * 分类ID + */ + @Column(name = "category_id") + private Long categoryId; + + /** + * 书签标题 + */ + @Column(name = "title", nullable = false, length = 100) + private String title; + + /** + * 书签URL + */ + @Column(name = "url", nullable = false, length = 500) + private String url; + + /** + * 图标URL + */ + @Column(name = "icon", length = 200) + private String icon; + + /** + * 描述 + */ + @Column(name = "description", length = 500) + private String description; + + /** + * 是否需要认证 + */ + @Column(name = "need_auth", nullable = false) + private Boolean needAuth = false; + + /** + * 账号 + */ + @Column(name = "username", length = 100) + private String username; + + /** + * 密码(加密存储) + */ + @Column(name = "password", length = 500) + private String password; + + /** + * 标签(JSON数组) + */ + @JdbcTypeCode(SqlTypes.JSON) + @Column(name = "tags", columnDefinition = "JSON") + private List tags; + + /** + * 排序 + */ + @Column(name = "sort", nullable = false) + private Integer sort = 0; + + /** + * 是否启用 + */ + @Column(name = "enabled", nullable = false) + private Boolean enabled = true; + + /** + * 是否公开 + */ + @Column(name = "is_public", nullable = false) + private Boolean isPublic = true; +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/entity/TeamBookmarkCategory.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/entity/TeamBookmarkCategory.java new file mode 100644 index 00000000..b0f60cdf --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/entity/TeamBookmarkCategory.java @@ -0,0 +1,47 @@ +package com.qqchen.deploy.backend.deploy.entity; + +import com.qqchen.deploy.backend.framework.domain.Entity; +import jakarta.persistence.Column; +import jakarta.persistence.Table; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 团队导航分类实体 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@jakarta.persistence.Entity +@Table(name = "deploy_team_bookmark_category") +public class TeamBookmarkCategory extends Entity { + + /** + * 团队ID + */ + @Column(name = "team_id", nullable = false) + private Long teamId; + + /** + * 分类名称 + */ + @Column(name = "name", nullable = false, length = 50) + private String name; + + /** + * 分类图标 + */ + @Column(name = "icon", length = 100) + private String icon; + + /** + * 排序 + */ + @Column(name = "sort", nullable = false) + private Integer sort = 0; + + /** + * 是否启用 + */ + @Column(name = "enabled", nullable = false) + private Boolean enabled = true; +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/query/TeamBookmarkCategoryQuery.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/query/TeamBookmarkCategoryQuery.java new file mode 100644 index 00000000..fca2402d --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/query/TeamBookmarkCategoryQuery.java @@ -0,0 +1,29 @@ +package com.qqchen.deploy.backend.deploy.query; + +import com.qqchen.deploy.backend.framework.annotation.QueryField; +import com.qqchen.deploy.backend.framework.enums.QueryType; +import com.qqchen.deploy.backend.framework.query.BaseQuery; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 团队导航分类查询条件 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@Schema(description = "团队导航分类查询条件") +public class TeamBookmarkCategoryQuery extends BaseQuery { + + @QueryField(field = "teamId") + @Schema(description = "团队ID") + private Long teamId; + + @QueryField(field = "name", type = QueryType.LIKE) + @Schema(description = "分类名称(模糊查询)") + private String name; + + @QueryField(field = "enabled") + @Schema(description = "是否启用") + private Boolean enabled; +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/query/TeamBookmarkQuery.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/query/TeamBookmarkQuery.java new file mode 100644 index 00000000..5ff39ff6 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/query/TeamBookmarkQuery.java @@ -0,0 +1,41 @@ +package com.qqchen.deploy.backend.deploy.query; + +import com.qqchen.deploy.backend.framework.annotation.QueryField; +import com.qqchen.deploy.backend.framework.enums.QueryType; +import com.qqchen.deploy.backend.framework.query.BaseQuery; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 团队导航书签查询条件 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@Schema(description = "团队导航书签查询条件") +public class TeamBookmarkQuery extends BaseQuery { + + @QueryField(field = "teamId") + @Schema(description = "团队ID") + private Long teamId; + + @QueryField(field = "categoryId") + @Schema(description = "分类ID") + private Long categoryId; + + @QueryField(field = "title", type = QueryType.LIKE) + @Schema(description = "书签标题(模糊查询)") + private String title; + + @QueryField(field = "url", type = QueryType.LIKE) + @Schema(description = "书签URL(模糊查询)") + private String url; + + @QueryField(field = "enabled") + @Schema(description = "是否启用") + private Boolean enabled; + + @QueryField(field = "isPublic") + @Schema(description = "是否公开") + private Boolean isPublic; +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/repository/ITeamBookmarkCategoryRepository.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/repository/ITeamBookmarkCategoryRepository.java new file mode 100644 index 00000000..69bc0385 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/repository/ITeamBookmarkCategoryRepository.java @@ -0,0 +1,32 @@ +package com.qqchen.deploy.backend.deploy.repository; + +import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory; +import com.qqchen.deploy.backend.framework.repository.IBaseRepository; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 团队导航分类Repository + */ +@Repository +public interface ITeamBookmarkCategoryRepository extends IBaseRepository { + + /** + * 根据团队ID查询分类列表 + */ + List findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(Long teamId); + + /** + * 检查分类名称是否存在 + */ + boolean existsByTeamIdAndNameAndDeletedFalse(Long teamId, String name); + + /** + * 检查分类名称是否存在(排除指定ID) + */ + @Query("SELECT CASE WHEN COUNT(c) > 0 THEN true ELSE false END FROM TeamBookmarkCategory c WHERE c.teamId = :teamId AND c.name = :name AND c.id != :excludeId AND c.deleted = false") + boolean existsByTeamIdAndNameAndIdNotAndDeletedFalse(@Param("teamId") Long teamId, @Param("name") String name, @Param("excludeId") Long excludeId); +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/repository/ITeamBookmarkRepository.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/repository/ITeamBookmarkRepository.java new file mode 100644 index 00000000..a6d9af6b --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/repository/ITeamBookmarkRepository.java @@ -0,0 +1,34 @@ +package com.qqchen.deploy.backend.deploy.repository; + +import com.qqchen.deploy.backend.deploy.entity.TeamBookmark; +import com.qqchen.deploy.backend.framework.repository.IBaseRepository; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 团队导航书签Repository + */ +@Repository +public interface ITeamBookmarkRepository extends IBaseRepository { + + /** + * 根据团队ID查询书签列表 + */ + List findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(Long teamId); + + /** + * 根据团队ID和分类ID查询书签列表 + */ + List findByTeamIdAndCategoryIdAndDeletedFalseOrderBySortAscIdAsc(Long teamId, Long categoryId); + + /** + * 统计分类下的书签数量 + */ + Long countByCategoryIdAndDeletedFalse(Long categoryId); + + /** + * 统计团队下的书签数量 + */ + Long countByTeamIdAndDeletedFalse(Long teamId); +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/ITeamBookmarkCategoryService.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/ITeamBookmarkCategoryService.java new file mode 100644 index 00000000..3ebd038d --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/ITeamBookmarkCategoryService.java @@ -0,0 +1,19 @@ +package com.qqchen.deploy.backend.deploy.service; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory; +import com.qqchen.deploy.backend.deploy.query.TeamBookmarkCategoryQuery; +import com.qqchen.deploy.backend.framework.service.IBaseService; + +import java.util.List; + +/** + * 团队导航分类Service + */ +public interface ITeamBookmarkCategoryService extends IBaseService { + + /** + * 根据团队ID查询分类列表 + */ + List listByTeamId(Long teamId); +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/ITeamBookmarkService.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/ITeamBookmarkService.java new file mode 100644 index 00000000..a907db35 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/ITeamBookmarkService.java @@ -0,0 +1,24 @@ +package com.qqchen.deploy.backend.deploy.service; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmark; +import com.qqchen.deploy.backend.deploy.query.TeamBookmarkQuery; +import com.qqchen.deploy.backend.framework.service.IBaseService; + +import java.util.List; + +/** + * 团队导航书签Service + */ +public interface ITeamBookmarkService extends IBaseService { + + /** + * 根据团队ID查询书签列表 + */ + List listByTeamId(Long teamId); + + /** + * 根据团队ID和分类ID查询书签列表 + */ + List listByTeamIdAndCategoryId(Long teamId, Long categoryId); +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/DeployServiceImpl.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/DeployServiceImpl.java index d83f27ed..78acb9de 100644 --- a/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/DeployServiceImpl.java +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/DeployServiceImpl.java @@ -396,6 +396,10 @@ public class DeployServiceImpl implements IDeployService { if (owner != null) { dto.setOwnerName(owner.getNickname()); } + // 判断当前用户是否为团队负责人 + dto.setIsOwner(team.getOwnerId().equals(currentUserId)); + } else { + dto.setIsOwner(false); } // 设置团队成员 diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/TeamBookmarkCategoryServiceImpl.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/TeamBookmarkCategoryServiceImpl.java new file mode 100644 index 00000000..df381f72 --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/TeamBookmarkCategoryServiceImpl.java @@ -0,0 +1,95 @@ +package com.qqchen.deploy.backend.deploy.service.impl; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkCategoryDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory; +import com.qqchen.deploy.backend.deploy.query.TeamBookmarkCategoryQuery; +import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkCategoryRepository; +import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkRepository; +import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkCategoryService; +import com.qqchen.deploy.backend.framework.enums.ResponseCode; +import com.qqchen.deploy.backend.framework.exception.BusinessException; +import com.qqchen.deploy.backend.framework.service.impl.BaseServiceImpl; +import jakarta.annotation.Resource; +import lombok.extern.slf4j.Slf4j; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageImpl; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.stream.Collectors; + +/** + * 团队导航分类Service实现 + */ +@Slf4j +@Service +public class TeamBookmarkCategoryServiceImpl extends BaseServiceImpl + implements ITeamBookmarkCategoryService { + + @Resource + private ITeamBookmarkCategoryRepository teamBookmarkCategoryRepository; + + @Resource + private ITeamBookmarkRepository teamBookmarkRepository; + + @Override + @Transactional + public TeamBookmarkCategoryDTO create(TeamBookmarkCategoryDTO dto) { + // 检查分类名称唯一性 + if (teamBookmarkCategoryRepository.existsByTeamIdAndNameAndDeletedFalse(dto.getTeamId(), dto.getName())) { + throw new BusinessException(ResponseCode.DATA_ALREADY_EXISTS, new Object[]{"该团队下已存在相同名称的分类"}); + } + return super.create(dto); + } + + @Override + @Transactional + public TeamBookmarkCategoryDTO update(Long id, TeamBookmarkCategoryDTO dto) { + // 检查分类名称唯一性(排除当前分类) + if (teamBookmarkCategoryRepository.existsByTeamIdAndNameAndIdNotAndDeletedFalse(dto.getTeamId(), dto.getName(), id)) { + throw new BusinessException(ResponseCode.DATA_ALREADY_EXISTS, new Object[]{"该团队下已存在相同名称的分类"}); + } + return super.update(id, dto); + } + + @Override + @Transactional + public void delete(Long id) { + // 检查是否有关联的书签 + Long bookmarkCount = teamBookmarkRepository.countByCategoryIdAndDeletedFalse(id); + if (bookmarkCount > 0) { + throw new BusinessException(ResponseCode.DATA_IN_USE, new Object[]{"该分类下存在书签,无法删除"}); + } + super.delete(id); + } + + @Override + public Page page(TeamBookmarkCategoryQuery query) { + Page page = super.page(query); + + // 统计每个分类的书签数量 + List content = page.getContent().stream() + .peek(category -> { + Long count = teamBookmarkRepository.countByCategoryIdAndDeletedFalse(category.getId()); + category.setBookmarkCount(count); + }) + .collect(Collectors.toList()); + + return new PageImpl<>(content, page.getPageable(), page.getTotalElements()); + } + + @Override + public List listByTeamId(Long teamId) { + List categories = teamBookmarkCategoryRepository.findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(teamId); + List dtos = converter.toDtoList(categories); + + // 统计每个分类的书签数量 + dtos.forEach(category -> { + Long count = teamBookmarkRepository.countByCategoryIdAndDeletedFalse(category.getId()); + category.setBookmarkCount(count); + }); + + return dtos; + } +} diff --git a/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/TeamBookmarkServiceImpl.java b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/TeamBookmarkServiceImpl.java new file mode 100644 index 00000000..203de04e --- /dev/null +++ b/backend/src/main/java/com/qqchen/deploy/backend/deploy/service/impl/TeamBookmarkServiceImpl.java @@ -0,0 +1,121 @@ +package com.qqchen.deploy.backend.deploy.service.impl; + +import com.qqchen.deploy.backend.deploy.dto.TeamBookmarkDTO; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmark; +import com.qqchen.deploy.backend.deploy.entity.TeamBookmarkCategory; +import com.qqchen.deploy.backend.deploy.query.TeamBookmarkQuery; +import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkCategoryRepository; +import com.qqchen.deploy.backend.deploy.repository.ITeamBookmarkRepository; +import com.qqchen.deploy.backend.deploy.service.ITeamBookmarkService; +import com.qqchen.deploy.backend.framework.service.impl.BaseServiceImpl; +import jakarta.annotation.Resource; +import lombok.extern.slf4j.Slf4j; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageImpl; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.StringUtils; + +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * 团队导航书签Service实现 + */ +@Slf4j +@Service +public class TeamBookmarkServiceImpl extends BaseServiceImpl + implements ITeamBookmarkService { + + @Resource + private ITeamBookmarkRepository teamBookmarkRepository; + + @Resource + private ITeamBookmarkCategoryRepository teamBookmarkCategoryRepository; + + @Override + public TeamBookmarkDTO findById(Long id) { + TeamBookmarkDTO dto = super.findById(id); + if (dto != null) { + enrichCategoryName(dto); + } + return dto; + } + + @Override + public Page page(TeamBookmarkQuery query) { + Page page = super.page(query); + + // 补充分类名称 + List content = page.getContent(); + enrichCategoryNames(content); + + return new PageImpl<>(content, page.getPageable(), page.getTotalElements()); + } + + @Override + public List findAll(TeamBookmarkQuery query) { + List dtos = super.findAll(query); + enrichCategoryNames(dtos); + return dtos; + } + + @Override + public List listByTeamId(Long teamId) { + List bookmarks = teamBookmarkRepository.findByTeamIdAndDeletedFalseOrderBySortAscIdAsc(teamId); + List dtos = converter.toDtoList(bookmarks); + enrichCategoryNames(dtos); + return dtos; + } + + @Override + public List listByTeamIdAndCategoryId(Long teamId, Long categoryId) { + List bookmarks = teamBookmarkRepository.findByTeamIdAndCategoryIdAndDeletedFalseOrderBySortAscIdAsc(teamId, categoryId); + List dtos = converter.toDtoList(bookmarks); + enrichCategoryNames(dtos); + return dtos; + } + + /** + * 补充分类名称 + */ + private void enrichCategoryNames(List dtos) { + if (dtos.isEmpty()) { + return; + } + + // 获取所有分类ID + List categoryIds = dtos.stream() + .map(TeamBookmarkDTO::getCategoryId) + .filter(id -> id != null) + .distinct() + .collect(Collectors.toList()); + + if (categoryIds.isEmpty()) { + return; + } + + // 批量查询分类 + List categories = teamBookmarkCategoryRepository.findAllById(categoryIds); + Map categoryMap = categories.stream() + .collect(Collectors.toMap(TeamBookmarkCategory::getId, TeamBookmarkCategory::getName)); + + // 设置分类名称 + dtos.forEach(dto -> { + if (dto.getCategoryId() != null) { + dto.setCategoryName(categoryMap.get(dto.getCategoryId())); + } + }); + } + + /** + * 补充单个书签的分类名称 + */ + private void enrichCategoryName(TeamBookmarkDTO dto) { + if (dto.getCategoryId() != null) { + teamBookmarkCategoryRepository.findById(dto.getCategoryId()) + .ifPresent(category -> dto.setCategoryName(category.getName())); + } + } +} diff --git a/backend/src/main/resources/db/changelog/init/v1.0.0-data.sql b/backend/src/main/resources/db/changelog/init/v1.0.0-data.sql index 0f6037bd..0da90c3a 100644 --- a/backend/src/main/resources/db/changelog/init/v1.0.0-data.sql +++ b/backend/src/main/resources/db/changelog/init/v1.0.0-data.sql @@ -17,7 +17,7 @@ VALUES -- 初始化用户数据(密码统一为:123456) INSERT INTO sys_user (id, create_time, username, password, nickname, email, phone, department_id, enabled) VALUES -(1, NOW(), 'admin', '$2a$10$5jQmYewM2slT.OFeNjnQGOQrImu0aeXVxHxWsV8BCJ.cQiOHBHpVS', '超级管理员', 'admin@system.com', '13800138000', 1, 1), +(1, NOW(), 'admin', '$2a$10$SMiRx30pH7SnBVNccP6/le9IAp0GCcXvGP5qZUQJDwzyfd.q8lFHy', '超级管理员', 'admin@system.com', '13800138000', 1, 1), (5, NOW(), 'tangfengmin', '$2a$10$Ela/xvMnUjpI5fqgXwF1sebpbxNAOaBo2Ar5hVqyAQvTZm/r.btqa', '汤峰岷', 'tangfengmin@iscmtech.com', NULL, 5, 1), (6, NOW(), 'shengzeqiang', '$2a$10$jeuU3FvTya3ZbS28yvVafu5W5pBc.s8/ZGNHQ7pkhHNp/VsI2wpw2', '盛泽强', 'shengzeqiang@iscmtech.com', NULL, 5, 1), (7, NOW(), 'wengao', '$2a$10$b/ybO46p/R5e2hDAsNF66un8RpnpWEjXvVs6udbTIAR.Yo9o2HGHO', '文高', 'wengao@iscmtech.com', NULL, 5, 1), @@ -28,7 +28,7 @@ VALUES (12, NOW(), 'wangdongzhu', '$2a$10$OErv/EvBXUocMutXZJe3C.k1gq9/8rrF63pz8mWRBLoORGb/8ELIO', '王栋柱', 'wangdongzhu@iscmtech.com', NULL, 5, 1), (13, NOW(), 'yangzhenfu', '$2a$10$.WBc0pXTQnrDn2IUm.eRneH9jfu7TIZg2na.K3WaluvjIEts2Iasm', '杨振夫', 'yangzhenfu@iscmtech.com', '15842461837', 5, 1), (14, NOW(), 'songwei', '$2a$10$8ChswMOtgkvZCGsa/wvMM.wfhL5NL9uqCasyHZ6hiDG45vFu/EQRG', '宋伟', 'songwei@iscmtech.com', NULL, 5, 1), -(15, NOW(), 'lukuan', '$2a$10$hlDCAqOWxZso7APbMClF1.Fp6xhnb8av5s.MDnC1tf0QfHfZRayNq', '路宽', 'lukuan@babyfs.cn', '13888888888', 7, 1), +(15, NOW(), 'lukuan', '$2a$10$hlDCAqOWxZso7APbMClF1.Fp6xhnb8av5s.MDnC1tf0QfHfZRayNq', '路宽', 'lukuan@iscmtech.com', '13888888888', 7, 1), (16, NOW(), 'yangfan', '$2a$10$hYdpTUGG3q3Og2OA2uE39.5CnBDeUQRyqsM5OwoKUSWj2ZJUdOb0u', '杨帆', 'yangfan@iscmtech.com', NULL, 5, 1); -- 初始化系统参数 @@ -809,39 +809,65 @@ INSERT INTO `deploy-ease-platform`.`deploy_server_category` (`id`, `name`, `code INSERT INTO `deploy-ease-platform`.`deploy_server_category` (`id`, `name`, `code`, `icon`, `description`, `sort`, `enabled`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, '大连本地服务器', 'dalian_locals', '', '', 0, 1, 'admin', NOW(), 'admin', NOW(), 1, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (1, 'SY测试环境服务器', '192.168.1.82', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-k8s', 'ONLINE', '', 128, 314, 1532, '[{\"totalSize\": 1531, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"SY测试环境-临时用\", \"K8S\"]', NOW(), 'admin', NOW(), 'system', NOW(), 30, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (2, '国产化38(APP1)', '124.127.238.38', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app01', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 25, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (3, '国产化(APP2)', '124.127.238.39', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app02', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 24, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (4, '国产化(DBServer)', '219.142.42.183', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'dbserver', 'ONLINE', '', 8, 31, 501, '[{\"totalSize\": 500, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 25, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (5, '华为云116', '172.16.0.116', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'mysql', 'ONLINE', '', 8, 31, 533, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 493, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (6, '华为云nexus', '172.16.0.191', 2222, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 8', 'ly-nexus', 'ONLINE', '', 8, 15, 493, '[{\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 394, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 32, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (7, 'k8s服务器-203', '192.168.2.203', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-master', 'ONLINE', '', 24, 70, 469, '[{\"totalSize\": 468, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (8, 'doris-fe-204', '192.168.2.204', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'doris', 'ONLINE', '', 8, 31, 193, '[{\"totalSize\": 192, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, 'doris-be-205', '192.168.2.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'middware-205', 'ONLINE', '', 8, 15, 191, '[{\"totalSize\": 190, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 24, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (10, '192.168.2.201', '192.168.2.201', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'ly-dev', 'ONLINE', '', 16, 38, 459, '[{\"totalSize\": 457, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 26, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (11, 'bj-ly-scp-worker06', '172.16.0.56', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 8, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (12, 'bj-ly-etl-engine', '172.16.0.4', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 7, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (13, 'bj-ly-scp-worker04', '172.16.0.18', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 6, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (14, 'bj-ly-scp-worker03', '172.16.0.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (15, 'bj-ly-scp-worker01', '172.16.0.106', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (16, 'bj-ly-scp-worker07', '172.16.0.221', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (17, 'bj-ly-scp-worker02', '172.16.0.225', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 5, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (18, 'bj-ly-scp-worker08', '172.16.0.145', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (19, 'bj-ly-scp-worker09', '172.16.0.142', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (20, 'bj-ly-scp-worker05', '172.16.0.52', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (21, 'bj-ly-scp-doris-be02', '172.16.0.17', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 4, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (22, 'bj-ly-scp-doris-fe', '172.16.0.242', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 3, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (23, 'bj-ly-scp-doris-be01', '172.16.0.223', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 3, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (24, 'engine-sit', '192.168.1.71', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'admin', NOW(), 'system', NOW(), 3, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (25, 'bj-ly-scp-doris-be03', '172.16.0.77', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (26, 'engine-uat', '192.168.1.72', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', NULL, NULL, 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'admin', NOW(), 'system', NOW(), 2, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (27, 'bj-ly-oms-worker03', '172.16.0.150', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (28, 'bj-ly-oms-worker02', '172.16.0.143', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (29, 'bj-ly-oms-worker04', '172.16.0.5', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (30, 'bj-ly-oms-worker01', '172.16.0.194', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 2, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (31, 'bj-ly-jumpserver-113', '172.16.0.113', 22, 'root', 'PASSWORD', '52DjOiyumc*UiNHsj^b%', '', '', 8, 'LINUX', '', '', 'ONLINE', '', NULL, NULL, NULL, NULL, NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 3, 0); -INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (32, 'bj-ly-gitlab', '172.16.0.28', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, 'songwei', NOW(), 'songwei', NOW(), 1, 0); - +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (1, 'SY测试环境服务器', '192.168.1.82', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-k8s', 'ONLINE', '', 128, 314, 1532, '[{\"totalSize\": 1531, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"SY测试环境-临时用\", \"K8S\"]', NOW(), 'admin', NOW(), 'system', NOW(), 45, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (2, '国产化38(APP1)', '124.127.238.38', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app01', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 40, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (3, '国产化(APP2)', '124.127.238.39', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'app02', 'ONLINE', '', 32, 63, 201, '[{\"totalSize\": 200, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 39, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (4, '国产化(DBServer)', '219.142.42.183', 22, 'root', 'PASSWORD', '@1sdgCq123', '', '', 7, 'LINUX', 'Kylin Linux Advanced Server V10 (Lance)', 'dbserver', 'ONLINE', '', 8, 31, 501, '[{\"totalSize\": 500, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'dengqichen', NOW(), 'system', NOW(), 40, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (5, '华为云116', '172.16.0.116', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'mysql', 'ONLINE', '', 8, 31, 533, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 493, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 41, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (6, '华为云nexus', '172.16.0.191', 2222, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 8', 'ly-nexus', 'ONLINE', '', 8, 15, 493, '[{\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 394, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 47, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (7, 'k8s服务器-203', '192.168.2.203', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-master', 'ONLINE', '', 24, 70, 469, '[{\"totalSize\": 468, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 41, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (8, 'doris-fe-204', '192.168.2.204', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'doris', 'ONLINE', '', 8, 31, 193, '[{\"totalSize\": 192, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 40, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, 'doris-be-205', '192.168.2.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'middware-205', 'ONLINE', '', 8, 15, 191, '[{\"totalSize\": 190, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 39, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (10, '192.168.2.201', '192.168.2.201', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 9, 'LINUX', 'CentOS Linux 7 (Core)', 'ly-dev', 'ONLINE', '', 16, 38, 459, '[{\"totalSize\": 457, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', NULL, NOW(), 'admin', NOW(), 'system', NOW(), 41, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (11, 'bj-ly-scp-worker06', '172.16.0.56', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-68fb', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 24, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (12, 'bj-ly-etl-engine', '172.16.0.4', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-etl-engine-04', 'ONLINE', '', 64, 251, 1008, '[{\"totalSize\": 1008, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 23, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (13, 'bj-ly-scp-worker04', '172.16.0.18', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-966a', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 22, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (14, 'bj-ly-scp-worker03', '172.16.0.205', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-a63f', 'ONLINE', '', 16, 31, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (15, 'bj-ly-scp-worker01', '172.16.0.106', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-scp-worker01-106', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (16, 'bj-ly-scp-worker07', '172.16.0.221', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-a1ce', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (17, 'bj-ly-scp-worker02', '172.16.0.225', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-6a27-225', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 21, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (18, 'bj-ly-scp-worker08', '172.16.0.145', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-2a85', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (19, 'bj-ly-scp-worker09', '172.16.0.142', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-3ce5', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (20, 'bj-ly-scp-worker05', '172.16.0.52', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-c309', 'ONLINE', '', 16, 62, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (21, 'bj-ly-scp-doris-be02', '172.16.0.17', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'ecs-772a-0003', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 20, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (22, 'bj-ly-scp-doris-fe', '172.16.0.242', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'bj-ly-scp-doris-fe-242', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 19, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (23, 'bj-ly-scp-doris-be01', '172.16.0.223', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'ecs-772a-0002', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 19, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (24, 'engine-sit', '192.168.1.71', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'ubuntu-sit', 'ONLINE', '', 12, 326, 492, NULL, '[\"虚拟机\"]', NOW(), 'admin', NOW(), 'system', NOW(), 20, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (25, 'bj-ly-scp-doris-be03', '172.16.0.77', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'ecs-772a-0004', 'ONLINE', '', 32, 62, 336, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 296, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (26, 'engine-uat', '192.168.1.72', 22, 'yangfan', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'ubuntu-uat', 'ONLINE', '', 8, 196, 393, NULL, '[\"k8s\"]', NOW(), 'admin', NOW(), 'system', NOW(), 19, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (27, 'bj-ly-oms-worker03', '172.16.0.150', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-oms-worker03-150-out', 'ONLINE', '', 16, 31, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (28, 'bj-ly-oms-worker02', '172.16.0.143', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-oms-worker02-143', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (29, 'bj-ly-oms-worker04', '172.16.0.5', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'bj-ly-oms-worker04-5-out', 'ONLINE', '', 16, 31, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 17, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (30, 'bj-ly-oms-worker01', '172.16.0.194', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'Huawei Cloud EulerOS 2.0 (x86_64)', 'ecs-4e36-7efc', 'ONLINE', '', 8, 15, 138, '[{\"totalSize\": 138, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (31, 'bj-ly-jumpserver-113', '172.16.0.113', 22, 'root', 'PASSWORD', '52DjOiyumc*UiNHsj^b%', '', '', 8, 'LINUX', 'CentOS Linux 7 (Core)', 'bj-ly-jumpserver-113', 'ONLINE', '', 8, 31, 247, '[{\"totalSize\": 40, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 207, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 19, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (32, 'bj-ly-gitlab', '172.16.0.28', 22, 'root', 'PASSWORD', 'pzr@p*rdW#hX', '', '', 8, 'LINUX', 'CentOS Linux 8 (Core)', 'gitlab', 'ONLINE', '', 8, 15, 198, '[{\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 99, \"fileSystem\": \"ext4\", \"mountPoint\": \"/mnt/data\"}]', NULL, NOW(), 'songwei', NOW(), 'system', NOW(), 18, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (33, 'engine-microservice', '192.168.1.70', 22, 'lizhaoxiang', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-microservices', 'ONLINE', '', 32, 62, 1007, '[{\"totalSize\": 1005, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}]', '[\"K8S\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 14, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (34, 'engine-gitlab', '192.168.1.74', 22, 'root', 'PASSWORD', 'We@LyCj1412', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-gitlab-74', 'ONLINE', '', 32, 62, 984, '[{\"totalSize\": 982, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}]', NULL, NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 14, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (35, 'engine-nexus', '192.168.1.78', 22, 'lizhaoxiang', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-nexus', 'ONLINE', '', 20, 31, 1935, '[{\"totalSize\": 98, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 1833, \"fileSystem\": \"ext4\", \"mountPoint\": \"/data\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"虚拟机\", \"nexus\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 12, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (36, 'engine-prod-node-79', '192.168.1.79', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-prod-node-79', 'ONLINE', '', 20, 31, 469, '[{\"totalSize\": 468, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 13, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (37, 'engine-sit-node-80', '192.168.1.80', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-sit-node-80', 'ONLINE', '', 24, 31, 940, '[{\"totalSize\": 936, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 11, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (38, 'engine-sit-node-81', '192.168.1.81', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-sit-node-81', 'ONLINE', '', 24, 31, 940, '[{\"totalSize\": 936, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 11, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (39, 'engine-dev-node-77', '192.168.1.77', 22, 'lizhaoxiang', 'PASSWORD', 'pV7nx0xR', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-dev-node-77', 'ONLINE', '', 20, 31, 1935, '[{\"totalSize\": 98, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"ext4\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 2, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}, {\"totalSize\": 1833, \"fileSystem\": \"ext4\", \"mountPoint\": \"/data\"}]', '[\"engine\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 11, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (40, 'engine-nfs', '192.168.1.83', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'nfs-1.83', 'ONLINE', '', 8, 31, 492, '[{\"totalSize\": 491, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"nfs\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (41, 'engine-prod2', '192.168.1.84', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-node84', 'ONLINE', '', 32, 125, 993, '[{\"totalSize\": 992, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"k8s\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (42, 'engine-dev', '192.168.1.85', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-dev', 'ONLINE', '', 64, 125, 496, '[{\"totalSize\": 495, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"k8s\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (43, 'engine-skywalking', '192.168.1.86', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-skywalking', 'ONLINE', '', 8, 31, 493, '[{\"totalSize\": 492, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"skywalking\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (44, 'engine-doris-fe', '192.168.1.87', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-fe', 'ONLINE', '', 16, 31, 498, '[{\"totalSize\": 496, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (45, 'engine-doris-be01', '192.168.1.88', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-be01', 'ONLINE', '', 32, 31, 498, '[{\"totalSize\": 496, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 2, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (46, 'engine-doris-be02', '192.168.1.90', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-be02', 'ONLINE', '', 32, 31, 499, '[{\"totalSize\": 498, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (47, 'engine-doris-be03', '192.168.1.91', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'engine-doris-be03', 'ONLINE', '', 32, 31, 499, '[{\"totalSize\": 498, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"doris\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (48, 'engine-jumpserver', '192.168.1.92', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'jumpserver', 'ONLINE', '', 4, 7, 93, '[{\"totalSize\": 50, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 42, \"fileSystem\": \"xfs\", \"mountPoint\": \"/home\"}]', '[\"jumpserver\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 5, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (49, 'engine-upload-war', '192.168.1.93', 22, 'root', 'PASSWORD', 'Lianyu_123!#', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'localhost.localdomain', 'ONLINE', '', 2, 3, 77, '[{\"totalSize\": 50, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 26, \"fileSystem\": \"xfs\", \"mountPoint\": \"/home\"}]', '[\"upload\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (50, 'engine-oracle-dev', '192.168.1.94', 22, 'root', 'PASSWORD', 'FQbCHbafPmGdPDpS', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ly-oracle', 'ONLINE', '', 4, 7, 792, '[{\"totalSize\": 771, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}, {\"totalSize\": 20, \"fileSystem\": \"xfs\", \"mountPoint\": \"/home\"}]', '[\"oralce\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (51, 'engine-etl-dev', '192.168.1.95', 22, 'oem', 'PASSWORD', '123456', '', '', 6, 'LINUX', 'Ubuntu 22.04.3 LTS', 'engine-etl', 'ONLINE', '', 20, 31, 468, '[{\"totalSize\": 467, \"fileSystem\": \"ext4\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"vfat\", \"mountPoint\": \"/boot/efi\"}]', '[\"k8s\", \"实体机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (52, 'ptm01', '192.168.1.97', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ptm01', 'ONLINE', '', 8, 15, 98, '[{\"totalSize\": 97, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (53, 'ptm02', '192.168.1.98', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ptm02', 'ONLINE', '', 8, 15, 98, '[{\"totalSize\": 97, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (54, 'ptm-minio', '192.168.1.99', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'localhost.localdomain', 'ONLINE', '', 8, 15, 298, '[{\"totalSize\": 297, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"minio\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 4, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (55, 'ptm-mysql', '192.168.1.100', 22, 'root', 'PASSWORD', 'lianyu_123', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'ptm04-mysql', 'ONLINE', '', 4, 15, 198, '[{\"totalSize\": 197, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"ptm\", \"mysql\"]', NOW(), 'yangfan', NOW(), 'system', NOW(), 4, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (56, 'engine-test', '192.168.1.60', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-01', 'ONLINE', '', 2, 3, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"test\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (57, 'engine-redis-sentinel01', '192.168.1.61', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-02', 'ONLINE', '', 2, 3, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"redis\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (58, 'engine-redis-sentinel02', '192.168.1.62', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-03', 'ONLINE', '', 2, 1, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"redis\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0); +INSERT INTO `deploy-ease-platform`.`deploy_server` (`id`, `server_name`, `host_ip`, `ssh_port`, `ssh_user`, `auth_type`, `ssh_password`, `ssh_private_key`, `ssh_passphrase`, `category_id`, `os_type`, `os_version`, `hostname`, `status`, `description`, `cpu_cores`, `memory_size`, `disk_size`, `disk_info`, `tags`, `last_connect_time`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (59, 'engine-redis-sentinel03', '192.168.1.63', 22, 'root', 'PASSWORD', '1234', '', '', 6, 'LINUX', 'CentOS Linux 7 (Core)', 'k8s-04', 'ONLINE', '', 2, 1, 15, '[{\"totalSize\": 14, \"fileSystem\": \"xfs\", \"mountPoint\": \"/\"}, {\"totalSize\": 1, \"fileSystem\": \"xfs\", \"mountPoint\": \"/boot\"}]', '[\"redis\", \"虚拟机\"]', NOW(), 'yangfan', NOW(), 'dengqichen', NOW(), 3, 0); -- ===================================================== -- 通知模板初始数据 -- ===================================================== diff --git a/backend/src/main/resources/db/changelog/init/v1.0.0-schema.sql b/backend/src/main/resources/db/changelog/init/v1.0.0-schema.sql index 4ac2bb96..7af4ea21 100644 --- a/backend/src/main/resources/db/changelog/init/v1.0.0-schema.sql +++ b/backend/src/main/resources/db/changelog/init/v1.0.0-schema.sql @@ -1382,3 +1382,70 @@ CREATE TABLE system_release KEY idx_notified (notified), KEY idx_deleted (deleted) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统版本发布记录表'; + +-- ===================================================== +-- 团队导航功能 +-- ===================================================== + +-- 团队导航分类表 +CREATE TABLE deploy_team_bookmark_category +( + id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID', + team_id BIGINT NOT NULL COMMENT '团队ID', + name VARCHAR(50) NOT NULL COMMENT '分类名称', + icon VARCHAR(100) NULL COMMENT '分类图标', + sort INT DEFAULT 0 COMMENT '排序', + enabled BOOLEAN DEFAULT TRUE COMMENT '是否启用', + + -- 审计字段 + create_by VARCHAR(50) NULL COMMENT '创建人', + create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + update_by VARCHAR(50) NULL COMMENT '更新人', + update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + version INT DEFAULT 1 COMMENT '版本号', + deleted BOOLEAN DEFAULT FALSE COMMENT '是否删除', + + INDEX idx_team_id (team_id), + INDEX idx_deleted (deleted), + CONSTRAINT fk_bookmark_category_team FOREIGN KEY (team_id) REFERENCES deploy_team (id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='团队导航分类表'; + +-- 团队导航书签表 +CREATE TABLE deploy_team_bookmark +( + id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID', + team_id BIGINT NOT NULL COMMENT '团队ID', + category_id BIGINT NULL COMMENT '分类ID', + + -- 书签基本信息 + title VARCHAR(100) NOT NULL COMMENT '书签标题', + url VARCHAR(500) NOT NULL COMMENT '书签URL', + icon VARCHAR(200) NULL COMMENT '图标URL(可存储favicon或自定义图标)', + description VARCHAR(500) NULL COMMENT '描述', + + -- 认证信息(可选) + need_auth BOOLEAN DEFAULT FALSE COMMENT '是否需要认证(决定是否显示账号密码)', + username VARCHAR(100) NULL COMMENT '账号', + password VARCHAR(500) NULL COMMENT '密码', + + -- 其他信息 + tags JSON NULL COMMENT '标签(JSON数组)', + sort INT DEFAULT 0 COMMENT '排序', + enabled BOOLEAN DEFAULT TRUE COMMENT '是否启用', + is_public BOOLEAN DEFAULT TRUE COMMENT '是否公开', + + -- 审计字段 + create_by VARCHAR(50) NULL COMMENT '创建人', + create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + update_by VARCHAR(50) NULL COMMENT '更新人', + update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + version INT DEFAULT 1 COMMENT '版本号', + deleted BOOLEAN DEFAULT FALSE COMMENT '是否删除', + + INDEX idx_team_id (team_id), + INDEX idx_category_id (category_id), + INDEX idx_sort (sort), + INDEX idx_deleted (deleted), + CONSTRAINT fk_bookmark_team FOREIGN KEY (team_id) REFERENCES deploy_team (id), + CONSTRAINT fk_bookmark_category FOREIGN KEY (category_id) REFERENCES deploy_team_bookmark_category (id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='团队导航书签表'; diff --git a/backend/src/main/resources/db/changelog/sql/20251209141300-01.sql b/backend/src/main/resources/db/changelog/sql/20251209141300-01.sql index 6080e296..292e38ae 100644 --- a/backend/src/main/resources/db/changelog/sql/20251209141300-01.sql +++ b/backend/src/main/resources/db/changelog/sql/20251209141300-01.sql @@ -14,17 +14,22 @@ VALUES ( 'system', NOW(), 'system', NOW(), 1, 0, 1.19, 'ALL', NOW(), '【后端】 -- 分页查询排序稳定性修复:添加 id 作为第二排序条件,解决当主排序字段值相同时分页数据重复或丢失的问题 -- 服务器监控数据采集优化:移除SSH连接成功时插入的空监控记录,避免数据冗余 -- 服务器监控数据查询优化:添加 status=''SUCCESS'' 过滤条件,只查询有效监控数据,排除连接失败记录 -- 服务器监控数据展示优化:优化数据过滤逻辑,跳过第一个无前置数据的点,保留速率为0的正常监控数据 + +- 团队导航页功能:新增团队导航书签管理功能,包括分类管理和书签管理两大模块 +- 数据库表设计:新增deploy_team_bookmark_category(团队导航分类表)和deploy_team_bookmark(团队导航书签表) +- 书签认证字段:添加needAuth字段,用于标识书签是否需要账号密码,前端根据此字段决定是否显示认证信息输入框 +- 书签管理实现:完整实现Entity、DTO、Query、Converter、Repository、Service、Controller层 +- 分类管理功能:支持分类创建/更新/删除,同一团队下分类名称唯一性校验,删除前检查是否有关联书签 +- 书签统计增强:分类分页查询时自动统计每个分类下的书签数量,书签查询时自动补充分类名称 +- 权限控制优化:添加isOwner字段,标识当前用户是否为团队负责人 +- 账号密码存储:书签账号密码采用明文存储,适用于团队内部共享的非敏感系统 【前端】 -- 服务器监控功能:实现服务器历史监控数据查询和可视化展示,支持CPU、内存、网络、磁盘四类指标,提供5个预设时间范围(1h/6h/24h/7d/30d),集成ECharts图表和统计信息,支持自动刷新 -- 监控弹窗优化:移除重复的关闭按钮,使用DialogContent默认提供的标准关闭按钮 -- 服务器列表分页修复:统一分页参数命名为pageNum和pageSize,参考Application分页实现,修复点击第一页不加载数据的问题 -- 服务器列表表格增强:添加ID列显示,使用等宽字体和灰色样式 -- 服务器卡片视觉优化:在卡片左上角添加圆形通知样式的ID徽章,悬浮显示不占内容空间', +- 新增团队书签模块:支持书签的增删改查、分类管理、搜索筛选 +- 权限控制:团队负责人可管理书签和分类,普通成员只读 +- 账号密码共享:支持保存和明文展示账号密码,方便团队成员使用 +- 分类标签:支持书签分类,无分类时显示"未分类" +- 图标选择:集成图标选择器,书签和分类支持自定义图标', 0, NULL, NULL, 0 );