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用于收货和开票。"
相关推荐
哥不是小萝莉6 小时前
OpenClaw 架构设计全解析
ai
warm3snow9 小时前
Claude Code 黑客马拉松:5 个获奖项目,没有一个是"纯码农"做的
ai·大模型·llm·agent·skill·mcp
Ray Liang11 小时前
被低估的量化版模型,小身材也能干大事
人工智能·ai·ai助手·mindx
代码匠心12 小时前
AI 自动编程:一句话设计高颜值博客
前端·ai·ai编程·claude
JavaGuide1 天前
Claude Opus 4.6 真的用不起了!我换成了国产 M2.5,实测真香!!
java·spring·ai·claude code
Swizard1 天前
逐行解剖:扒开 Lovable Agent 源码,看顶级 AI 是如何“思考”与“动刀”的
ai·prompt
warm3snow1 天前
AI 核心技能系列:12 篇文章带你系统掌握大模型岗位必备技能
ai·transformer·agent·skill·mcp·fine-tunning
曲幽2 天前
FastAPI + Ollama 实战:搭一个能查天气的AI助手
python·ai·lora·torch·fastapi·web·model·ollama·weatherapi
满猪星2 天前
ai使用分享
ai