mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
feat: AgentExt entity + dao
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
aca1518af5
commit
d02c783629
2 changed files with 50 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.AgentExtEntity;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface AgentExtDao extends BaseMapper<AgentExtEntity> {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package xiaozhi.modules.agent.entity;
|
||||||
|
|
||||||
|
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_agent_ext")
|
||||||
|
@Schema(description = "agent 扩展字段")
|
||||||
|
public class AgentExtEntity {
|
||||||
|
|
||||||
|
@TableId(type = IdType.INPUT)
|
||||||
|
@Schema(description = "关联 agent(主键,即 agent.id)")
|
||||||
|
private String agentId;
|
||||||
|
|
||||||
|
@Schema(description = "扩展字段 JSON 对象 {key:value}")
|
||||||
|
private String extJson;
|
||||||
|
|
||||||
|
@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