+ * 前端控制器 + *
+ * + * @author gaoxq + * @since 2025-08-31 + */ +@RestController +@RequestMapping("/biz/sshServers") +public class SshServersController { + +} diff --git a/src/main/java/com/mini/capi/biz/domain/SshServers.java b/src/main/java/com/mini/capi/biz/domain/SshServers.java new file mode 100644 index 0000000..285400a --- /dev/null +++ b/src/main/java/com/mini/capi/biz/domain/SshServers.java @@ -0,0 +1,99 @@ +package com.mini.capi.biz.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import lombok.Getter; +import lombok.Setter; + +/** + *+ * + *
+ * + * @author gaoxq + * @since 2025-08-31 + */ +@Getter +@Setter +@TableName("biz_ssh_servers") +public class SshServers implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableField("create_time") + private LocalDateTime createTime; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 服务器名称 + */ + @TableField("name") + private String name; + + /** + * 服务器地址 + */ + @TableField("host") + private String host; + + /** + * SSH端口 + */ + @TableField("port") + private Integer port; + + /** + * 用户名 + */ + @TableField("username") + private String username; + + /** + * 密码(建议加密存储) + */ + @TableField("password") + private String password; + + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 租户id + */ + @TableField("f_tenant_id") + private String fTenantId; + + /** + * 流程id + */ + @TableField("f_flow_id") + private String fFlowId; + + /** + * 流程任务主键 + */ + @TableField("f_flow_task_id") + private String fFlowTaskId; + + /** + * 流程任务状态 + */ + @TableField("f_flow_state") + private Integer fFlowState; + + + + public SshServers(String name, String host, Integer port, String username, String password){ + this.name = name; + this.host = host; + this.port = port; + this.username = username; + this.password = password; + } +} diff --git a/src/main/java/com/mini/capi/biz/mapper/SshServersMapper.java b/src/main/java/com/mini/capi/biz/mapper/SshServersMapper.java new file mode 100644 index 0000000..61c9c77 --- /dev/null +++ b/src/main/java/com/mini/capi/biz/mapper/SshServersMapper.java @@ -0,0 +1,16 @@ +package com.mini.capi.biz.mapper; + +import com.mini.capi.biz.domain.SshServers; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *+ * Mapper 接口 + *
+ * + * @author gaoxq + * @since 2025-08-31 + */ +public interface SshServersMapper extends BaseMapper+ * 服务类 + *
+ * + * @author gaoxq + * @since 2025-08-31 + */ +public interface SshServersService extends IService+ * 服务实现类 + *
+ * + * @author gaoxq + * @since 2025-08-31 + */ +@Service +public class SshServersServiceImpl extends ServiceImpl