feat: 添加ichat以支持AI对话

This commit is contained in:
caoqianming 2025-04-13 10:12:38 +08:00
parent f228884b27
commit 882b0f2cbd
7 changed files with 24 additions and 0 deletions

0
apps/ichat/__init__.py Normal file
View File

3
apps/ichat/admin.py Normal file
View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
apps/ichat/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class ChatConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.ichat'

View File

9
apps/ichat/models.py Normal file
View File

@ -0,0 +1,9 @@
from django.db import models
from apps.system.models import CommonADModel
# Create your models here.
class Conversation(CommonADModel):
"""
TN: 对话
"""
title = models.CharField(max_length=200, default='新对话',verbose_name='对话标题')

3
apps/ichat/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
apps/ichat/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.