You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
374 B

1 month ago
from typing import List, Optional
from Model.KbModel import KbModel, KbFileModel
from Util.MySQLUtil import init_mysql_pool
class KbDao:
def __init__(self, mysql_pool):
self.mysql_pool = mysql_pool
async def create_kb(self, kb: KbModel) -> int:
# 实现创建知识库的数据库操作
pass
# 其他CRUD方法实现...