@cname
、@email
等占位符的 JSON 示例,系统会自动识别字段类型和 Mock 配置。{
"id": 1,
"name": "@cname",
"email": "@email",
"age": 28,
"isVip": true,
"tags": ["@word", "@word"],
"scores": [90, 85, 78],
"profile": {
"avatar": "@image",
"bio": "@sentence"
},
"createdAt": "@datetime",
"location": {
"province": "@province",
"city": "@city"
}
}
@xxx
占位符的字段,会自动填入对应的 Mock 值items
类型"
,不能使用 单引号 '
。"id|+1"
、"tags|1-3"
)不会被识别,可在模型生成后手动设置 Mock 规则。