Merge pull request #13 from xpack-ai/feature/0.3-backend
finish API development
This commit is contained in:
22 files changed
+80
-50
No files matched your search
@@ -41,3 +41,4 @@ htmlcov/
|
||||
local_settings.py
|
||||
/.secrets
|
||||
/uploads/
|
||||
/.vercel/
|
||||
@@ -25,7 +25,6 @@ def execute_sql_file(file_path: str, db_config: Optional[DBConfig] = None) -> No
|
||||
"""
|
||||
if db_config is None:
|
||||
db_config = DBConfig()
|
||||
print(db_config.MYSQL_HOST, db_config.MYSQL_PORT, db_config.MYSQL_USER, db_config.MYSQL_PASSWORD, db_config.MYSQL_DB)
|
||||
# 连接数据库
|
||||
conn = mysql.connector.connect(
|
||||
host=db_config.MYSQL_HOST,
|
||||
@@ -80,7 +79,6 @@ def main():
|
||||
sql_paths = [
|
||||
project_root / 'sql' / 'init.sql'
|
||||
]
|
||||
print(sql_paths)
|
||||
sql_file = next((path for path in sql_paths if path.exists()), None)
|
||||
if not sql_file:
|
||||
print("错误: 未找到 init.sql 文件")
|
||||
|
||||
@@ -24,18 +24,21 @@ from services.admin_service.constants.sys_config_key import (
|
||||
KEY_EMBEDED_HTML,
|
||||
KEY_TOP_NAVIGATION,
|
||||
)
|
||||
from services.admin_service.services.payment_channel_service import PaymentChannelService
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/config", summary="Get configuration (no login required)", tags=["common"])
|
||||
def get_config(db: Session = Depends(get_db)):
|
||||
def get_config(
|
||||
db: Session = Depends(get_db),
|
||||
):
|
||||
"""Get platform configuration settings without authentication."""
|
||||
try:
|
||||
# Create service instance
|
||||
sys_config_service = SysConfigService(db)
|
||||
payment_channel_service = PaymentChannelService(db)
|
||||
|
||||
# Get platform config
|
||||
platform_name = sys_config_service.get_value_by_key(KEY_PLATFORM_NAME) or "XPack"
|
||||
@@ -58,7 +61,23 @@ def get_config(db: Session = Depends(get_db)):
|
||||
# Convert to boolean
|
||||
email_is_enabled = email_is_enabled_raw.lower() in ("true", "t", "yes", "y", "1")
|
||||
email_mode = sys_config_service.get_value_by_key(KEY_LOGIN_EMAIL_MODE) or "password"
|
||||
|
||||
|
||||
# Get homepage config
|
||||
faq = sys_config_service.get_value_by_key(KEY_FAQ) or "[]"
|
||||
embeded_html = sys_config_service.get_value_by_key(KEY_EMBEDED_HTML,True) or "{}"
|
||||
top_navigation = sys_config_service.get_value_by_key(KEY_TOP_NAVIGATION) or "[]"
|
||||
try:
|
||||
faq = json.loads(faq)
|
||||
except json.JSONDecodeError:
|
||||
return ResponseUtils.error("FAQ配置格式错误")
|
||||
try:
|
||||
embeded_html = json.loads(embeded_html)
|
||||
except json.JSONDecodeError:
|
||||
return ResponseUtils.error("Embeded HTML配置格式错误")
|
||||
try:
|
||||
top_navigation = json.loads(top_navigation)
|
||||
except json.JSONDecodeError:
|
||||
return ResponseUtils.error("Top Navigation配置格式错误")
|
||||
# Build response data
|
||||
config_data = {
|
||||
"login": {
|
||||
@@ -75,6 +94,10 @@ def get_config(db: Session = Depends(get_db)):
|
||||
"theme": theme,
|
||||
"about_page": about_page,
|
||||
},
|
||||
"faq": faq,
|
||||
"embeded_html": embeded_html,
|
||||
"top_navigation": top_navigation,
|
||||
"payment_channels": [{"id": item.id, "name": item.name} for item in payment_channel_service.available_list()],
|
||||
}
|
||||
|
||||
return ResponseUtils.success(data=config_data)
|
||||
|
||||
@@ -45,7 +45,6 @@ def get_homepage(
|
||||
except json.JSONDecodeError:
|
||||
return ResponseUtils.error("Top Navigation配置格式错误")
|
||||
embeded_html = sysconfig_service.get_value_by_key(sys_config_key.KEY_EMBEDED_HTML,True) or "{}"
|
||||
print("embeded_html:", embeded_html)
|
||||
try:
|
||||
embeded_html = json.loads(embeded_html)
|
||||
except json.JSONDecodeError:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import uuid
|
||||
from datetime import datetime, timezone
|
||||
from typing import Optional, List
|
||||
from typing import Optional, List, Tuple
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.mcp_call_log import McpCallLog, ProcessStatus
|
||||
|
||||
@@ -34,7 +34,7 @@ class McpCallLogRepository:
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_user_call_history(self, user_id: str, page: int = 1, page_size: int = 20) -> tuple[int, List[McpCallLog]]:
|
||||
def get_user_call_history(self, user_id: str, page: int = 1, page_size: int = 20) -> Tuple[int, List[McpCallLog]]:
|
||||
total = self.db.query(McpCallLog).filter(McpCallLog.user_id == user_id).count()
|
||||
|
||||
offset = (page - 1) * page_size
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from datetime import datetime, timezone
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.mcp_service import McpService
|
||||
from typing import Optional, Tuple
|
||||
from typing import Optional, Tuple, List
|
||||
|
||||
|
||||
class McpServiceRepository:
|
||||
@@ -51,10 +51,10 @@ class McpServiceRepository:
|
||||
def get_by_slug_name(self, slug_name: str) -> Optional[McpService]:
|
||||
return self.db.query(McpService).filter(McpService.slug_name == slug_name).first()
|
||||
|
||||
def get_all(self) -> list[McpService]:
|
||||
def get_all(self) -> List[McpService]:
|
||||
return self.db.query(McpService).order_by(McpService.created_at.desc()).all()
|
||||
|
||||
def get_all_paginated(self, page: int = 1, page_size: int = 10) -> Tuple[list[McpService], int]:
|
||||
def get_all_paginated(self, page: int = 1, page_size: int = 10) -> Tuple[List[McpService], int]:
|
||||
"""Get service list with pagination"""
|
||||
offset = (page - 1) * page_size
|
||||
|
||||
@@ -77,7 +77,7 @@ class McpServiceRepository:
|
||||
self.db.refresh(mcp_service)
|
||||
return mcp_service
|
||||
|
||||
def get_public_services_paginated(self, keyword: str, page: int = 1, page_size: int = 10) -> Tuple[list[McpService], int]:
|
||||
def get_public_services_paginated(self, keyword: str, page: int = 1, page_size: int = 10) -> Tuple[List[McpService], int]:
|
||||
"""Get public service list with pagination, supports keyword search"""
|
||||
offset = (page - 1) * page_size
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.mcp_tool_api import McpToolApi
|
||||
from typing import Optional
|
||||
from typing import Optional, List
|
||||
|
||||
|
||||
class McpToolApiRepository:
|
||||
@@ -31,7 +31,7 @@ class McpToolApiRepository:
|
||||
self.db.refresh(mcp_tool_api)
|
||||
return mcp_tool_api
|
||||
|
||||
def get_by_service_id(self, service_id: str) -> list[McpToolApi]:
|
||||
def get_by_service_id(self, service_id: str) -> List[McpToolApi]:
|
||||
"""Get API list by service ID"""
|
||||
return self.db.query(McpToolApi).filter(
|
||||
McpToolApi.service_id == service_id,
|
||||
|
||||
@@ -1,15 +1,21 @@
|
||||
from datetime import datetime, timezone
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.payment_channel import PaymentChannel
|
||||
from typing import Optional
|
||||
from typing import Optional, Tuple, List
|
||||
|
||||
class PaymentChannelRepository:
|
||||
def __init__(self, db: Session):
|
||||
self.db = db
|
||||
def payment_channel_list(self) -> tuple[int,list[PaymentChannel]]:
|
||||
|
||||
def payment_channel_list(self) -> Tuple[int, List[PaymentChannel]]:
|
||||
return self.db.query(PaymentChannel).count(),self.db.query(PaymentChannel).all()
|
||||
|
||||
def payment_channel_get(self, id: str) -> Optional[PaymentChannel]:
|
||||
return self.db.query(PaymentChannel).filter(PaymentChannel.id == id).first()
|
||||
|
||||
def payment_channel_available_list(self) -> List[PaymentChannel]:
|
||||
return self.db.query(PaymentChannel).filter(PaymentChannel.status == 1).all()
|
||||
|
||||
def update_status(self, id: str, status: int) -> Optional[PaymentChannel]:
|
||||
payment_channel = self.payment_channel_get(id)
|
||||
if payment_channel:
|
||||
@@ -18,6 +24,7 @@ class PaymentChannelRepository:
|
||||
self.db.commit()
|
||||
return payment_channel
|
||||
return None
|
||||
|
||||
def update_config(self, id: str, config: str) -> Optional[PaymentChannel]:
|
||||
payment_channel = self.payment_channel_get(id)
|
||||
if payment_channel:
|
||||
|
||||
@@ -4,7 +4,7 @@ MCP call log repository class
|
||||
|
||||
import uuid
|
||||
from datetime import datetime, timezone
|
||||
from typing import Optional, List
|
||||
from typing import Optional, List, Tuple
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.mcp_call_log import McpCallLog, ProcessStatus
|
||||
|
||||
@@ -41,7 +41,7 @@ class McpCallLogRepository:
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_user_call_history(self, user_id: str, page: int = 1, page_size: int = 20) -> tuple[int, List[McpCallLog]]:
|
||||
def get_user_call_history(self, user_id: str, page: int = 1, page_size: int = 20) -> Tuple[int, List[McpCallLog]]:
|
||||
total = self.db.query(McpCallLog).filter(McpCallLog.user_id == user_id).count()
|
||||
|
||||
offset = (page - 1) * page_size
|
||||
|
||||
@@ -3,7 +3,7 @@ import secrets
|
||||
from datetime import datetime, timezone
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.user_apikey import UserApiKey
|
||||
from typing import Optional
|
||||
from typing import Optional, List
|
||||
|
||||
|
||||
class UserApiKeyRepository:
|
||||
@@ -53,7 +53,7 @@ class UserApiKeyRepository:
|
||||
self.db.delete(user_apikey)
|
||||
self.db.commit()
|
||||
|
||||
def get_by_user_id(self, user_id: str) -> list[UserApiKey]:
|
||||
def get_by_user_id(self, user_id: str) -> List[UserApiKey]:
|
||||
return self.db.query(UserApiKey).filter(UserApiKey.user_id == user_id).all()
|
||||
|
||||
def get_by_id(self, id: str) -> Optional[UserApiKey]:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from sqlalchemy.orm import Session
|
||||
from datetime import datetime, timezone
|
||||
from typing import Optional
|
||||
from typing import Optional, Tuple, List
|
||||
from services.common.models.user import User
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class UserRepository:
|
||||
self.db.refresh(user)
|
||||
return user
|
||||
|
||||
def get_user_list(self, offset: int, limit: int) -> tuple[int, list[User]]:
|
||||
def get_user_list(self, offset: int, limit: int) -> Tuple[int, List[User]]:
|
||||
total = self.db.query(User).filter(User.is_deleted == 0, User.role_id == 2).count()
|
||||
|
||||
users = self.db.query(User).filter(User.is_deleted == 0, User.role_id == 2).offset(offset).limit(limit).all()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
from typing import Optional, List, Tuple
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.user_wallet_history import UserWalletHistory
|
||||
from services.common.models.user_wallet import UserWallet
|
||||
@@ -214,7 +214,7 @@ class UserWalletHistoryRepository:
|
||||
self.db.rollback()
|
||||
return False
|
||||
|
||||
def success_order_list(self, offset: int, limit: int) -> tuple[int, list[UserWalletHistory]]:
|
||||
def success_order_list(self, offset: int, limit: int) -> Tuple[int, List[UserWalletHistory]]:
|
||||
"""
|
||||
Get list of successful orders.
|
||||
|
||||
@@ -272,7 +272,7 @@ class UserWalletHistoryRepository:
|
||||
self.db.rollback()
|
||||
return None
|
||||
|
||||
def order_list(self, payment_method: str, status: int, start: Optional[datetime] = None, end: Optional[datetime] = None) -> list[UserWalletHistory]:
|
||||
def order_list(self, payment_method: str, status: int, start: Optional[datetime] = None, end: Optional[datetime] = None) -> List[UserWalletHistory]:
|
||||
"""
|
||||
Get list of orders based on filters.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import json
|
||||
import re
|
||||
from datetime import datetime, timezone
|
||||
from sqlalchemy.orm import Session
|
||||
from typing import Optional, Tuple
|
||||
from typing import Optional, Tuple, List
|
||||
from services.admin_service.repositories.mcp_service_repository import McpServiceRepository
|
||||
from services.admin_service.repositories.mcp_tool_api_repository import McpToolApiRepository
|
||||
from services.admin_service.repositories.temp_mcp_service_repository import TempMcpServiceRepository
|
||||
@@ -18,7 +18,7 @@ from services.admin_service.services.openapi_helper import OpenApiForAI
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Utility function: Convert tags string to array
|
||||
def parse_tags_to_array(tags_str: Optional[str]) -> list[str]:
|
||||
def parse_tags_to_array(tags_str: Optional[str]) -> List[str]:
|
||||
"""
|
||||
Convert tags string to array
|
||||
|
||||
@@ -26,7 +26,7 @@ def parse_tags_to_array(tags_str: Optional[str]) -> list[str]:
|
||||
tags_str: tags string, separated by commas
|
||||
|
||||
Returns:
|
||||
list[str]: tags array
|
||||
List[str]: tags array
|
||||
"""
|
||||
if not tags_str:
|
||||
return []
|
||||
@@ -281,15 +281,15 @@ class McpManagerService:
|
||||
"price": str(float(service.price)) if service.price else "0.00",
|
||||
"enabled": service.enabled,
|
||||
"tags": parse_tags_to_array(service.tags),
|
||||
"apis": [{"id": api.id, "name": api.name, "description": api.description} for api in apis],
|
||||
"apis": [{"id": api.id, "name": api.name, "description": api.description,"url":api.path} for api in apis],
|
||||
}
|
||||
|
||||
return service_info
|
||||
|
||||
def get_all(self) -> list[McpService]:
|
||||
def get_all(self) -> List[McpService]:
|
||||
return self.mcp_service_repository.get_all()
|
||||
|
||||
def get_all_paginated(self, page: int = 1, page_size: int = 10) -> Tuple[list[McpService], int]:
|
||||
def get_all_paginated(self, page: int = 1, page_size: int = 10) -> Tuple[List[McpService], int]:
|
||||
"""Get service list with pagination"""
|
||||
return self.mcp_service_repository.get_all_paginated(page=page, page_size=page_size)
|
||||
|
||||
@@ -463,7 +463,7 @@ class McpManagerService:
|
||||
logger.error(f"Failed to update service from OpenAPI: {str(e)}")
|
||||
raise ValueError(f"Failed to update service from OpenAPI: {str(e)}")
|
||||
|
||||
def get_public_services_paginated(self, keyword: str, page: int = 1, page_size: int = 10) -> Tuple[list[dict], int]:
|
||||
def get_public_services_paginated(self, keyword: str, page: int = 1, page_size: int = 10) -> Tuple[List[dict], int]:
|
||||
"""Get public services list with pagination, returns formatted data with API info"""
|
||||
services, total = self.mcp_service_repository.get_public_services_paginated(keyword, page, page_size)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import json
|
||||
import logging
|
||||
from sqlalchemy.orm import Session
|
||||
from typing import Optional, Dict, Any
|
||||
from typing import Optional, Dict, Any, List, Tuple
|
||||
from services.common.database import SessionLocal
|
||||
from datetime import datetime
|
||||
from services.admin_service.repositories.payment_channel_repository import PaymentChannelRepository
|
||||
@@ -14,8 +14,12 @@ class PaymentChannelService:
|
||||
self.db = db
|
||||
self.payment_channel_repository = PaymentChannelRepository(db)
|
||||
|
||||
def list(self) -> tuple[int,list[PaymentChannel]]:
|
||||
def list(self) -> Tuple[int, List[PaymentChannel]]:
|
||||
return self.payment_channel_repository.payment_channel_list()
|
||||
|
||||
def available_list(self) -> List[PaymentChannel]:
|
||||
"""Get list of available payment channels"""
|
||||
return self.payment_channel_repository.payment_channel_available_list()
|
||||
|
||||
def get(self, id: str) -> Optional[PaymentChannel]:
|
||||
return self.payment_channel_repository.payment_channel_get(id)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from sqlalchemy.orm import Session
|
||||
from typing import Optional
|
||||
from typing import Optional, List, Dict
|
||||
from services.common.database import SessionLocal
|
||||
from services.common.redis import RedisClient
|
||||
from services.common.redis_keys import RedisKeys
|
||||
@@ -83,7 +83,7 @@ class SysConfigService:
|
||||
except Exception as e:
|
||||
logger.warning(f"Failed to clear cache for key {key}: {e}")
|
||||
|
||||
def get_multiple_values(self, keys: list[str]) -> dict[str, Optional[str]]:
|
||||
def get_multiple_values(self, keys: List[str]) -> Dict[str, Optional[str]]:
|
||||
"""Get multiple config values with optimized performance"""
|
||||
result = {}
|
||||
cache_miss_keys = []
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import logging
|
||||
from sqlalchemy.orm import Session
|
||||
from typing import Optional
|
||||
from typing import Optional, List
|
||||
from services.common.models.user_apikey import UserApiKey
|
||||
from services.common.database import SessionLocal
|
||||
from datetime import datetime
|
||||
@@ -33,5 +33,5 @@ class UserApiKeyService:
|
||||
self.user_apikey_repository.delete(id)
|
||||
return user_apikey
|
||||
|
||||
def get_by_user_id(self, user_id: str) -> list[UserApiKey]:
|
||||
def get_by_user_id(self, user_id: str) -> List[UserApiKey]:
|
||||
return self.user_apikey_repository.get_by_user_id(user_id)
|
||||
@@ -1,5 +1,5 @@
|
||||
from sqlalchemy.orm import Session
|
||||
from typing import Optional
|
||||
from typing import Optional, Tuple, List
|
||||
from services.common.models.user import User
|
||||
from services.common.database import SessionLocal
|
||||
|
||||
@@ -32,7 +32,7 @@ class UserService:
|
||||
"""Delete user"""
|
||||
return self.user_repository.delete(user_id)
|
||||
|
||||
def get_user_list(self, offset: int, limit: int) -> tuple[int, list[User]]:
|
||||
def get_user_list(self, offset: int, limit: int) -> Tuple[int, List[User]]:
|
||||
"""Get user list"""
|
||||
return self.user_repository.get_user_list(offset, limit)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from sqlalchemy.orm import Session
|
||||
from services.common.models.user_wallet_history import UserWalletHistory
|
||||
from services.admin_service.repositories.user_wallet_history_repository import UserWalletHistoryRepository
|
||||
from typing import Optional, Dict, Any
|
||||
from typing import Optional, Dict, Any, List, Tuple
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ class UserWalletHistoryService:
|
||||
def add_refund(self, user_id: str, amount: float, payment_method: str, transaction_id: str) -> UserWalletHistory:
|
||||
return self.user_wallet_history_repository.add_refund(user_id, amount, payment_method, transaction_id)
|
||||
|
||||
def success_order_list(self, offset: int, limit: int) -> tuple[int, list[UserWalletHistory]]:
|
||||
def success_order_list(self, offset: int, limit: int) -> Tuple[int, List[UserWalletHistory]]:
|
||||
return self.user_wallet_history_repository.success_order_list(offset, limit)
|
||||
|
||||
def order_list(self, payment_method: str, status: int, start: Optional[datetime] = None, end: Optional[datetime] = None) -> list[UserWalletHistory]:
|
||||
def order_list(self, payment_method: str, status: int, start: Optional[datetime] = None, end: Optional[datetime] = None) -> List[UserWalletHistory]:
|
||||
return self.user_wallet_history_repository.order_list(payment_method, status, start, end)
|
||||
|
||||
def get_order_by_id(self, order_id: str) -> Optional[UserWalletHistory]:
|
||||
|
||||
@@ -35,7 +35,6 @@ class AlipayClient:
|
||||
"""
|
||||
client = DefaultAlipayClient(alipay_client_config=self.config)
|
||||
model = AlipayTradePagePayModel()
|
||||
print("create trade out_trade_no:", out_trade_no)
|
||||
model.out_trade_no = out_trade_no
|
||||
model.total_amount = total_amount
|
||||
model.subject = subject
|
||||
@@ -53,7 +52,6 @@ class AlipayClient:
|
||||
Query Alipay order status by out_trade_no.
|
||||
"""
|
||||
model = AlipayTradeQueryModel()
|
||||
print("query out_trade_no:", out_trade_no)
|
||||
model.out_trade_no = out_trade_no
|
||||
|
||||
request = AlipayTradeQueryRequest(biz_model=model)
|
||||
|
||||
@@ -145,7 +145,7 @@ class McpController:
|
||||
if db is not None:
|
||||
db.close()
|
||||
|
||||
def _extract_user_info(self, request: Request) -> Optional[tuple[str, str]]:
|
||||
def _extract_user_info(self, request: Request) -> Optional[Tuple[str, str]]:
|
||||
"""Extract user ID and apikey ID from request by validating apikey parameter."""
|
||||
# Get apikey from URL query parameters
|
||||
apikey = request.query_params.get("apikey")
|
||||
|
||||
@@ -2,7 +2,7 @@ import smtplib
|
||||
import logging
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from typing import Optional
|
||||
from typing import Optional, Tuple
|
||||
from sqlalchemy.orm import Session
|
||||
from services.admin_service.services.sys_config_service import SysConfigService
|
||||
from services.admin_service.constants import sys_config_key
|
||||
@@ -87,7 +87,7 @@ class EmailUtils:
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def test_email_config(db: Session) -> tuple[bool, str]:
|
||||
def test_email_config(db: Session) -> Tuple[bool, str]:
|
||||
"""
|
||||
"""
|
||||
try:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Validation utilities with unified exception handling
|
||||
|
||||
import re
|
||||
from typing import Any, Optional, List, Dict
|
||||
from typing import Any, Optional, List, Dict, Tuple
|
||||
from services.common.exceptions import ValidationException, NotFoundException
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ class ValidationUtils:
|
||||
return url
|
||||
|
||||
@staticmethod
|
||||
def validate_pagination(page: Any, page_size: Any) -> tuple[int, int]:
|
||||
def validate_pagination(page: Any, page_size: Any) -> Tuple[int, int]:
|
||||
"""
|
||||
Validate pagination parameters
|
||||
|
||||
|
||||
Reference in new issue
Block a user