增加设计文档 & 初步实现功能
This commit is contained in:
parent
7bd4ee2a6f
commit
97ff5ffd24
1
api/__init__.py
Executable file
1
api/__init__.py
Executable file
@ -0,0 +1 @@
|
|||||||
|
"""Dify Admin API Package"""
|
||||||
0
api/account_manager.py
Normal file → Executable file
0
api/account_manager.py
Normal file → Executable file
0
api/api_user_manager.py
Normal file → Executable file
0
api/api_user_manager.py
Normal file → Executable file
0
api/app.py
Normal file → Executable file
0
api/app.py
Normal file → Executable file
0
api/backend_account_manager.py
Normal file → Executable file
0
api/backend_account_manager.py
Normal file → Executable file
2
api/cli.py
Normal file → Executable file
2
api/cli.py
Normal file → Executable file
@ -5,7 +5,7 @@ from tenant_manager import TenantManager
|
|||||||
from model_manager import ModelManager
|
from model_manager import ModelManager
|
||||||
from account_manager import AccountManager
|
from account_manager import AccountManager
|
||||||
from provider_manager import ProviderManager
|
from provider_manager import ProviderManager
|
||||||
from config import CONFIG_PATHS
|
from .config import CONFIG_PATHS
|
||||||
|
|
||||||
# 配置日志
|
# 配置日志
|
||||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||||
|
|||||||
0
api/config.py
Normal file → Executable file
0
api/config.py
Normal file → Executable file
0
api/database.py
Normal file → Executable file
0
api/database.py
Normal file → Executable file
0
api/encryption.py
Normal file → Executable file
0
api/encryption.py
Normal file → Executable file
0
api/keys/privkeys/default/private.pem
Normal file → Executable file
0
api/keys/privkeys/default/private.pem
Normal file → Executable file
0
api/libs/__init__.py
Normal file → Executable file
0
api/libs/__init__.py
Normal file → Executable file
0
api/libs/exception.py
Normal file → Executable file
0
api/libs/exception.py
Normal file → Executable file
0
api/libs/external_api.py
Normal file → Executable file
0
api/libs/external_api.py
Normal file → Executable file
0
api/libs/gmpy2_pkcs10aep_cipher.py
Normal file → Executable file
0
api/libs/gmpy2_pkcs10aep_cipher.py
Normal file → Executable file
0
api/libs/helper.py
Normal file → Executable file
0
api/libs/helper.py
Normal file → Executable file
0
api/libs/infinite_scroll_pagination.py
Normal file → Executable file
0
api/libs/infinite_scroll_pagination.py
Normal file → Executable file
0
api/libs/json_in_md_parser.py
Normal file → Executable file
0
api/libs/json_in_md_parser.py
Normal file → Executable file
0
api/libs/login.py
Normal file → Executable file
0
api/libs/login.py
Normal file → Executable file
0
api/libs/oauth.py
Normal file → Executable file
0
api/libs/oauth.py
Normal file → Executable file
0
api/libs/oauth_data_source.py
Normal file → Executable file
0
api/libs/oauth_data_source.py
Normal file → Executable file
0
api/libs/passport.py
Normal file → Executable file
0
api/libs/passport.py
Normal file → Executable file
0
api/libs/password.py
Normal file → Executable file
0
api/libs/password.py
Normal file → Executable file
0
api/libs/rsa.py
Normal file → Executable file
0
api/libs/rsa.py
Normal file → Executable file
0
api/libs/smtp.py
Normal file → Executable file
0
api/libs/smtp.py
Normal file → Executable file
0
api/model_config.json
Normal file → Executable file
0
api/model_config.json
Normal file → Executable file
0
api/model_manager.py
Normal file → Executable file
0
api/model_manager.py
Normal file → Executable file
0
api/model_volc_config.json
Normal file → Executable file
0
api/model_volc_config.json
Normal file → Executable file
0
api/models.py
Normal file → Executable file
0
api/models.py
Normal file → Executable file
0
api/operation_logger.py
Normal file → Executable file
0
api/operation_logger.py
Normal file → Executable file
0
api/provider_config.json
Normal file → Executable file
0
api/provider_config.json
Normal file → Executable file
4
api/provider_manager.py
Normal file → Executable file
4
api/provider_manager.py
Normal file → Executable file
@ -2,9 +2,9 @@ import os
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import psycopg2.extras
|
import psycopg2.extras
|
||||||
from database import get_db_cursor, execute_query, execute_update
|
from .database import get_db_cursor, execute_query, execute_update
|
||||||
from encryption import Encryption
|
from encryption import Encryption
|
||||||
from config import CONFIG_PATHS
|
from .config import CONFIG_PATHS
|
||||||
from tenant_manager import TenantManager
|
from tenant_manager import TenantManager
|
||||||
|
|
||||||
# 配置日志
|
# 配置日志
|
||||||
|
|||||||
0
api/requirements.txt
Normal file → Executable file
0
api/requirements.txt
Normal file → Executable file
0
api/tenant_manager.py
Normal file → Executable file
0
api/tenant_manager.py
Normal file → Executable file
2
api/tests/conftest.py
Normal file → Executable file
2
api/tests/conftest.py
Normal file → Executable file
@ -10,7 +10,7 @@ import jwt
|
|||||||
from account_manager import AccountManager
|
from account_manager import AccountManager
|
||||||
from tenant_manager import TenantManager
|
from tenant_manager import TenantManager
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
||||||
from database import get_db_connection, get_db_cursor
|
from ..database import get_db_connection, get_db_cursor
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
import os
|
import os
|
||||||
|
|||||||
0
api/tests/test_accounts.py
Normal file → Executable file
0
api/tests/test_accounts.py
Normal file → Executable file
0
api/tests/test_auth.py
Normal file → Executable file
0
api/tests/test_auth.py
Normal file → Executable file
0
api/tests/test_tenants.py
Normal file → Executable file
0
api/tests/test_tenants.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user