opendb-feedback.js 1021 字节
Newer Older
芊里 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74

// 表单校验规则由 schema2code 生成,不建议直接修改校验规则,而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema



const validator = {
  "user_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "create_date": {
    "rules": [
      {
        "format": "timestamp"
      }
    ]
  },
  "content": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "imgs": {
    "rules": [
      {
        "format": "array"
      }
    ]
  },
  "is_reply": {
    "rules": [
      {
        "format": "bool"
      }
    ]
  },
  "feedback_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "contact": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "mobile": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "reply_count": {
    "rules": [
      {
        "format": "int"
      }
    ]
  }
}

const enumConverter = {}

export { validator, enumConverter }