mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
feat: UserPersonaAssignment entity + dao
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4460a8d805
commit
3df8cd7b8d
2 changed files with 66 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
package xiaozhi.modules.agent.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import xiaozhi.modules.agent.entity.UserPersonaAssignmentEntity;
|
||||
|
||||
@Mapper
|
||||
public interface UserPersonaAssignmentDao extends BaseMapper<UserPersonaAssignmentEntity> {
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package xiaozhi.modules.agent.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ai_user_persona_assignment")
|
||||
@Schema(description = "用户-陪伴角色匹配映射")
|
||||
public class UserPersonaAssignmentEntity {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
@Schema(description = "主键ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "当前匹配的陪伴角色ID")
|
||||
private String agentId;
|
||||
|
||||
@Schema(description = "0=自动;1=家长手动")
|
||||
private Integer manual;
|
||||
|
||||
@Schema(description = "最近匹配置信度")
|
||||
private BigDecimal score;
|
||||
|
||||
@Schema(description = "匹配理由")
|
||||
private String reason;
|
||||
|
||||
@Schema(description = "最近匹配时间")
|
||||
private Date matchedAt;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Long creator;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createDate;
|
||||
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Long updater;
|
||||
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Date updateDate;
|
||||
}
|
||||
Loading…
Reference in a new issue