UUID 字段

基本用法

随机生成一个 id,可以用于防止表单重复提交。

```schema: scope=”body” { “type”: “form”, “api”: “/api/mock2/form/saveForm”, “debug”: true, “body”: [ { “type”: “uuid”, “name”: “uuid” } ] }

  1. 这个字段是不显示的,上面这个例子之所以显示是因为加了 `debug: true`
  2. ## length
  3. 目前 uuid 的唯一可设置参数是 length,用于生成短随机数
  4. ```schema:height="200" scope="body"
  5. {
  6. "type": "form",
  7. "api": "/api/mock2/form/saveForm",
  8. "debug": true,
  9. "body": [
  10. {
  11. "type": "uuid",
  12. "name": "uuid",
  13. "length": 8
  14. }
  15. ]
  16. }