添加表结构
parent
029e4124b9
commit
58e5fc3343
@ -0,0 +1,82 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* comfyui任务表
|
||||||
|
* @TableName comfyui_task
|
||||||
|
*/
|
||||||
|
@TableName(value ="comfyui_task")
|
||||||
|
@Data
|
||||||
|
public class ComfyuiTask implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提示词id
|
||||||
|
*/
|
||||||
|
private String promptId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应用id
|
||||||
|
*/
|
||||||
|
private String appId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运行状态 0未开始、1进行中、2成功、3失败
|
||||||
|
*/
|
||||||
|
private String runStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始运行时间
|
||||||
|
*/
|
||||||
|
private LocalDate runStartTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运行结束时间
|
||||||
|
*/
|
||||||
|
private LocalDate runEndTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* webhook url
|
||||||
|
*/
|
||||||
|
private String webHook;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人id
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* comfyui任务参数表
|
||||||
|
* @TableName comfyui_task_param
|
||||||
|
*/
|
||||||
|
@TableName(value ="comfyui_task_param")
|
||||||
|
@Data
|
||||||
|
public class ComfyuiTaskParam implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提示词id
|
||||||
|
*/
|
||||||
|
private String promptId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务id
|
||||||
|
*/
|
||||||
|
private String taskId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数key
|
||||||
|
*/
|
||||||
|
private String paramKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数路径
|
||||||
|
*/
|
||||||
|
private String paramPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数值
|
||||||
|
*/
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标签
|
||||||
|
*/
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必填
|
||||||
|
*/
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数类型
|
||||||
|
*/
|
||||||
|
private String paramType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件类型
|
||||||
|
*/
|
||||||
|
private String componentType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人id
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @TableName comfyui_task_result
|
||||||
|
*/
|
||||||
|
@TableName(value ="comfyui_task_result")
|
||||||
|
@Data
|
||||||
|
public class ComfyuiTaskResult implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务id
|
||||||
|
*/
|
||||||
|
private String taskId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结果id
|
||||||
|
*/
|
||||||
|
private String resultFileId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人id
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统文件表
|
||||||
|
* @TableName sys_file
|
||||||
|
*/
|
||||||
|
@TableName(value ="sys_file")
|
||||||
|
@Data
|
||||||
|
public class SysFile implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件名
|
||||||
|
*/
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件大小
|
||||||
|
*/
|
||||||
|
private String fileSize;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件类型
|
||||||
|
*/
|
||||||
|
private String fileType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人id
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人id
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @TableName sys_role
|
||||||
|
*/
|
||||||
|
@TableName(value ="sys_role")
|
||||||
|
@Data
|
||||||
|
public class SysRole implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String roleName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String roleDesc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String roleCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @TableName sys_user
|
||||||
|
*/
|
||||||
|
@TableName(value ="sys_user")
|
||||||
|
@Data
|
||||||
|
public class SysUser implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String appId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户名
|
||||||
|
*/
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 密码
|
||||||
|
*/
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态 0:禁用 1:启用
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.supervision.ai.service.hub.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @TableName sys_user_role
|
||||||
|
*/
|
||||||
|
@TableName(value ="sys_user_role")
|
||||||
|
@Data
|
||||||
|
public class SysUserRole implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String uid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String rid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTask;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task(comfyui任务表)】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.ComfyuiTask
|
||||||
|
*/
|
||||||
|
public interface ComfyuiTaskMapper extends BaseMapper<ComfyuiTask> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTaskParam;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task_param(comfyui任务参数表)】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.ComfyuiTaskParam
|
||||||
|
*/
|
||||||
|
public interface ComfyuiTaskParamMapper extends BaseMapper<ComfyuiTaskParam> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTaskResult;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task_result】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.ComfyuiTaskResult
|
||||||
|
*/
|
||||||
|
public interface ComfyuiTaskResultMapper extends BaseMapper<ComfyuiTaskResult> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysApp;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_app】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.SysApp
|
||||||
|
*/
|
||||||
|
public interface SysAppMapper extends BaseMapper<SysApp> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysFile;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_file(系统文件表)】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.SysFile
|
||||||
|
*/
|
||||||
|
public interface SysFileMapper extends BaseMapper<SysFile> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysRole;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_role】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.SysRole
|
||||||
|
*/
|
||||||
|
public interface SysRoleMapper extends BaseMapper<SysRole> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.ai.service.hub.mapper;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysUserRole;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_user_role】的数据库操作Mapper
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
* @Entity com.supervision.ai.service.hub.domain.SysUserRole
|
||||||
|
*/
|
||||||
|
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTaskParam;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task_param(comfyui任务参数表)】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface ComfyuiTaskParamService extends IService<ComfyuiTaskParam> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTaskResult;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task_result】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface ComfyuiTaskResultService extends IService<ComfyuiTaskResult> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTask;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task(comfyui任务表)】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface ComfyuiTaskService extends IService<ComfyuiTask> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysApp;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_app】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface SysAppService extends IService<SysApp> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysFile;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_file(系统文件表)】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface SysFileService extends IService<SysFile> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysRole;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_role】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface SysRoleService extends IService<SysRole> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysUserRole;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_user_role】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface SysUserRoleService extends IService<SysUserRole> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.ai.service.hub.service;
|
||||||
|
|
||||||
|
import com.supervision.ai.service.hub.domain.SysUser;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_user】的数据库操作Service
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
public interface SysUserService extends IService<SysUser> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTaskParam;
|
||||||
|
import com.supervision.ai.service.hub.service.ComfyuiTaskParamService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.ComfyuiTaskParamMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task_param(comfyui任务参数表)】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ComfyuiTaskParamServiceImpl extends ServiceImpl<ComfyuiTaskParamMapper, ComfyuiTaskParam>
|
||||||
|
implements ComfyuiTaskParamService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTaskResult;
|
||||||
|
import com.supervision.ai.service.hub.service.ComfyuiTaskResultService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.ComfyuiTaskResultMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task_result】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ComfyuiTaskResultServiceImpl extends ServiceImpl<ComfyuiTaskResultMapper, ComfyuiTaskResult>
|
||||||
|
implements ComfyuiTaskResultService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.ComfyuiTask;
|
||||||
|
import com.supervision.ai.service.hub.service.ComfyuiTaskService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.ComfyuiTaskMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【comfyui_task(comfyui任务表)】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ComfyuiTaskServiceImpl extends ServiceImpl<ComfyuiTaskMapper, ComfyuiTask>
|
||||||
|
implements ComfyuiTaskService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.SysApp;
|
||||||
|
import com.supervision.ai.service.hub.service.SysAppService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.SysAppMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_app】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysAppServiceImpl extends ServiceImpl<SysAppMapper, SysApp>
|
||||||
|
implements SysAppService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.SysFile;
|
||||||
|
import com.supervision.ai.service.hub.service.SysFileService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.SysFileMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_file(系统文件表)】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysFileServiceImpl extends ServiceImpl<SysFileMapper, SysFile>
|
||||||
|
implements SysFileService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.SysRole;
|
||||||
|
import com.supervision.ai.service.hub.service.SysRoleService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.SysRoleMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_role】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
|
||||||
|
implements SysRoleService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.SysUserRole;
|
||||||
|
import com.supervision.ai.service.hub.service.SysUserRoleService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.SysUserRoleMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_user_role】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
|
||||||
|
implements SysUserRoleService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.ai.service.hub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.ai.service.hub.domain.SysUser;
|
||||||
|
import com.supervision.ai.service.hub.service.SysUserService;
|
||||||
|
import com.supervision.ai.service.hub.mapper.SysUserMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【sys_user】的数据库操作Service实现
|
||||||
|
* @createDate 2025-04-11 15:51:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
|
||||||
|
implements SysUserService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.ComfyuiTaskMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.ComfyuiTask">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="promptId" column="prompt_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="userId" column="user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="appId" column="app_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="runStatus" column="run_status" jdbcType="VARCHAR"/>
|
||||||
|
<result property="runStartTime" column="run_start_time" jdbcType="DATE"/>
|
||||||
|
<result property="runEndTime" column="run_end_time" jdbcType="DATE"/>
|
||||||
|
<result property="webHook" column="web_hook" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,prompt_id,user_id,
|
||||||
|
app_id,run_status,run_start_time,
|
||||||
|
run_end_time,web_hook,create_user_id,
|
||||||
|
create_time,update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.ComfyuiTaskParamMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.ComfyuiTaskParam">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="promptId" column="prompt_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="taskId" column="task_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="paramKey" column="param_key" jdbcType="VARCHAR"/>
|
||||||
|
<result property="paramPath" column="param_path" jdbcType="VARCHAR"/>
|
||||||
|
<result property="value" column="value" jdbcType="VARCHAR"/>
|
||||||
|
<result property="label" column="label" jdbcType="VARCHAR"/>
|
||||||
|
<result property="required" column="required" jdbcType="BOOLEAN"/>
|
||||||
|
<result property="paramType" column="param_type" jdbcType="VARCHAR"/>
|
||||||
|
<result property="componentType" column="component_type" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,prompt_id,task_id,
|
||||||
|
param_key,param_path,value,
|
||||||
|
label,required,param_type,
|
||||||
|
component_type,create_user_id,create_time,
|
||||||
|
update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.ComfyuiTaskResultMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.ComfyuiTaskResult">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="taskId" column="task_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="resultFileId" column="result_file_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,task_id,result_file_id,
|
||||||
|
create_user_id,create_time,update_time,
|
||||||
|
update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.SysAppMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.SysApp">
|
||||||
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="appName" column="app_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="password" column="password" jdbcType="VARCHAR"/>
|
||||||
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,app_name,password,
|
||||||
|
status,create_user_id,create_time,
|
||||||
|
update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.SysFileMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.SysFile">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fileSize" column="file_size" jdbcType="VARCHAR"/>
|
||||||
|
<result property="fileType" column="file_type" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,file_name,file_size,
|
||||||
|
file_type,create_user_id,create_time,
|
||||||
|
update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.SysRoleMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.SysRole">
|
||||||
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="roleDesc" column="role_desc" jdbcType="VARCHAR"/>
|
||||||
|
<result property="roleCode" column="role_code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,role_name,role_desc,
|
||||||
|
role_code,create_user_id,create_time,
|
||||||
|
update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.SysUserMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.SysUser">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="appId" column="app_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="userName" column="user_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="password" column="password" jdbcType="VARCHAR"/>
|
||||||
|
<result property="status" column="status" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,app_id,user_name,
|
||||||
|
password,status,create_user_id,
|
||||||
|
create_time,update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.ai.service.hub.mapper.SysUserRoleMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.ai.service.hub.domain.SysUserRole">
|
||||||
|
<id property="uid" column="uid" jdbcType="VARCHAR"/>
|
||||||
|
<id property="rid" column="rid" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
uid,rid,create_user_id,
|
||||||
|
create_time,update_time,update_user_id
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -1,13 +1,28 @@
|
|||||||
package com.supervision.ai.service.hub;
|
package com.supervision.ai.service.hub;
|
||||||
|
|
||||||
|
import io.minio.MinioClient;
|
||||||
|
import io.minio.errors.*;
|
||||||
|
import io.minio.messages.Bucket;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.security.InvalidKeyException;
|
||||||
|
import java.security.NoSuchAlgorithmException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
class AiServiceHubApplicationTests {
|
class AiServiceHubApplicationTests {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MinioClient minioClient;
|
||||||
@Test
|
@Test
|
||||||
void contextLoads() {
|
void minioTest() throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException {
|
||||||
|
List<Bucket> buckets = minioClient.listBuckets();
|
||||||
|
log.info("buckets size :{}", buckets.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue