R2MO Domain Intelligence Enhancer (AI Protocol)
pom.xml in the current root -> Extract <artifactId> -> Set as {PROJECT_ID}../{PROJECT_ID}-ui/.r2mo/domain/..proto files in the target directory.pom.xml and Protobuf definitions..proto files with Chinese business constraints.[INSTRUCTION SET FOR AI AGENT]
pom.xml.<artifactId> tag.<artifactId>shop</artifactId>, then ID is shop.{ID}-ui/.r2mo/domain/.Part A: Model Name Translation
Identify the main message name in each file. Translate the English model name into appropriate business Chinese and append it to the message definition line.
message MerchantAccount { -> message MerchantAccount { // [模型: 商户账户]message OrderItem { -> message OrderItem { // [模型: 订单明细]Part B: Field Constraint Inference Read every field definition. Analyze the Field Name. If it matches a pattern below, append the specific Chinese Comment:
| Field Name Pattern | Constraint Comment to Append (Chinese) |
|---|---|
email |
// [格式: 邮箱] |
phone, mobile |
// [格式: 手机号] |
password, secret |
// [安全: 加密存储] |
price, amount, cost |
// [精度: 2位小数] |
rate, ratio |
// [精度: 4位小数] |
status, type, state |
// [枚举/常量] (Check for Enum definitions) |
created_at, _time |
// [格式: ISO8601] |
is_..., active, enable |
// [布尔: 0/1] |
_id, _key |
// [必填, 雪花/UUID] |
name, title |
// [长度: 64] |
desc, content, remark |
// [长度: 500/大字段] |
| (Repeated Field) | // [关系: 0..n] |
syntax, package, option, field types, or field names. Only add comments at the end of lines.