#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
模块名称：security_erp.py
模块描述：安全测试 ERP 配置 Pydantic 数据模型

作者：czj
创建日期：2026-08-13
最后修改：2026-08-13
"""

from typing import Optional
from pydantic import BaseModel, Field


class SecurityErpConfigResponse(BaseModel):
    """安全测试 ERP 配置响应"""
    api_key: str = Field("", description="API密钥")
    base_url: str = Field("", description="基础URL")
    developtesting_id: int = Field(0, description="默认测试单ID")
    type_id: int = Field(2, description="报告类型ID")
    image_url_prefix: str = Field("", description="图片URL前缀")


class SecurityErpConfigUpdateRequest(BaseModel):
    """安全测试 ERP 配置更新请求"""
    api_key: Optional[str] = Field(None, description="API密钥")
    base_url: Optional[str] = Field(None, description="基础URL")
    developtesting_id: Optional[int] = Field(None, description="默认测试单ID")
    type_id: Optional[int] = Field(None, description="报告类型ID")
    image_url_prefix: Optional[str] = Field(None, description="图片URL前缀")