病历夹、聊天历史
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.peanut.modules.common.dao;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.peanut.modules.common.entity.AiChatContent;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface AiChatContentDao extends MPJBaseMapper<AiChatContent> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.peanut.modules.common.dao;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.peanut.modules.common.entity.AiRecordFolder;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface AiRecordFolderDao extends MPJBaseMapper<AiRecordFolder> {
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("ai_chat_content")
|
||||
public class AiChatContent implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
//聊天助手id
|
||||
private String chatAssistantId;
|
||||
|
||||
//聊天助手名称
|
||||
private String chatAssistantName;
|
||||
|
||||
//对话id
|
||||
private String chatId;
|
||||
|
||||
//对话名称
|
||||
private String chatName;
|
||||
|
||||
//对话内容
|
||||
private String content;
|
||||
|
||||
private Date startTime;
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("ai_record_folder")
|
||||
public class AiRecordFolder implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
//病历夹名称
|
||||
private String title;
|
||||
|
||||
//患者姓名
|
||||
private String patientName;
|
||||
|
||||
//对话id
|
||||
private String chatId;
|
||||
|
||||
private Date startTime;
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.peanut.modules.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.peanut.modules.common.entity.AiChatContent;
|
||||
|
||||
public interface AiChatContentService extends IService<AiChatContent> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.peanut.modules.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.peanut.modules.common.entity.AiRecordFolder;
|
||||
|
||||
public interface AiRecordFolderService extends IService<AiRecordFolder> {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.peanut.modules.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.peanut.modules.common.dao.AiChatContentDao;
|
||||
import com.peanut.modules.common.entity.AiChatContent;
|
||||
import com.peanut.modules.common.service.AiChatContentService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service("commonAiChatContentService")
|
||||
public class AiChatContentServiceImpl extends ServiceImpl<AiChatContentDao, AiChatContent> implements AiChatContentService {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.peanut.modules.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.peanut.modules.common.dao.AiRecordFolderDao;
|
||||
import com.peanut.modules.common.entity.AiRecordFolder;
|
||||
import com.peanut.modules.common.service.AiRecordFolderService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service("commonAiRecordFolderService")
|
||||
public class AiRecordFolderServiceImpl extends ServiceImpl<AiRecordFolderDao, AiRecordFolder> implements AiRecordFolderService {
|
||||
}
|
||||
Reference in New Issue
Block a user