完整的数据格式:
{
"code": 0,
"data": {
"projects|5-10": [{ //随机生成5-10条
"adpartment|1": ["研发部", "市场部", "运营部"],
"address": "@county(true)",
"position": "员工",
"post": "admin",
}]
}
}
常用类
"id|+1": 1, //id的递增
"name": "@cname", // 姓名
"email": "@email", //邮箱
"mobile": /^(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/, //生成手机11位号 可以使用正则表达式
"state|1-2": true, // 随机boolean
数据类
"Boolean": "@boolean", // 布尔值
"natural": "@natural", // natural( min, max )
"integer": "@integer", // integer( min, max )
"float": "@float(22,99,1,2)", // float( min, max, dmin, dmax )
"string": "@string", //string(type,min,max) lower小写,upper大写,number数字,symbol符号,
"range": "@range", //range( start, stop, step ) step为间隔为,最后返回值为数组
时间类
"date": "@date", // 日期
"time": "@time", // 时间
"dataTime": "@datetime", // 日期+时间
"Now": "@now", // 当前的日期时间
文段类
//凡是@后加c就是为中文;例如name为英文,cname则是中文
"paragraph": "@cparagraph", // 段落
"sentence": "@csentence", //句子
"first": "@cfirst", //姓氏
区域类
"region": "@region", //方位
"province": "@province", //省份
"city": "@city", // 城市 +(true),可以获取到上一级,例如:@city(true) 可以获取到省市
"county": "@county", // 县,区
-------------------------------------------------------------------------------------------------------------------------------------------------------------------如遇到问题:+WX:WAZJ-0508,及时联系---------------------------------------------------------------------------------------------------------------------------------------------------