admin
2025-06-07 3732bde983f34f5cb729ac1724b9795fb97d8941
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package tech.aiflowy.ai.entity;
 
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.Table;
import tech.aiflowy.ai.entity.base.AiPluginBase;
import tech.aiflowy.ai.mapper.AiPluginToolMapper;
 
import java.util.List;
 
 
/**
 *  实体类。
 *
 * @author Administrator
 * @since 2025-04-25
 */
@Table("tb_ai_plugin")
public class AiPlugin extends AiPluginBase {
 
    @RelationOneToMany(selfField = "id", targetField = "pluginId", targetTable = "tb_ai_plugin_tool")
    private List<AiPluginTool> tools;
 
    public String getTitle() {
        return this.getName();
    }
 
    public List<AiPluginTool> getTools() {
        return tools;
    }
 
    public void setTools(List<AiPluginTool> tools) {
        this.tools = tools;
    }
}