UML在AI中的识别

1、plantuml

2、Mermaid

Mermaid 复制代码
classDiagram
    direction LR
    class Customer {
        -String name
        -String customerId
        +placeOrder(products) Order
        +getOrderHistory() List~Order~
    }

    class Order {
        -String orderId
        -Date orderDate
        -OrderStatus status
        +calculateTotal() double
        +addProduct(product, quantity)
    }

    class Product {
        -String productId
        -String name
        -double price
        +updatePrice(newPrice)
        +getStock() int
    }

    class Address {
        -String street
        -String city
        -String zipCode
        +getFullAddress() String
    }

    Customer "1" --> "*" Order : 拥有
    Order "*" --> "*" Product : 包含
    Customer "1" --> "1..*" Address : 使用
    Order ..> Address : 发往

    note for Customer "顾客可以有一个或多个地址,\n用于收货和开票。"
相关推荐
AI探索派8 小时前
AI视频笔记工具怎么选:Ai好记、通义听悟、Get笔记、听脑AI横向对比
ai·效率神器·视频总结·ai笔记·视频转笔记
天天有money9 小时前
API中转站与多账号内容运营:如何统一管理不同项目的调用
gpt·ai·chatgpt·产品运营·内容运营
yinghuoAI20269 小时前
电商卖货,本质上是“视觉的战争”
人工智能·ai·ai作画·ai作图·ai生视频
Are_you_kidding_9 小时前
codeX集成deepSeek的API key步骤教程
ai·oneapi
测试_AI_一辰10 小时前
AI Agent 评测最隐蔽的坑-记忆
人工智能·算法·ai·自动化·ai编程
csdn_aspnet10 小时前
Copilot能换成本地吗?VSCode接本地大模型本地化接入方案
ide·vscode·ai·ollama
努力搬砖的咸鱼10 小时前
AI Agent测试全景图:它到底改变了什么
人工智能·python·ai·集成测试·pytest·agent·ai编程
小七-七牛开发者10 小时前
Codex 实践系列 Vol.04:用 Goal 和 Plan 管住一个长任务
ai·大模型·agent·claude·token·工作流·claudecode·ai coding
张小殊.11 小时前
LoongForge TAOT 训练方案,解决MoE EP不均衡问题
人工智能·python·深度学习·机器学习·ai
蒲公英eric11 小时前
从布尔盲注到参数化查询:DVWA SQL 盲注模块完整漏洞分析教程
sql·web安全·ai·dvwa·ai安全·sql 盲注