{
  "info": {
    "title": "添加内勤人员",
    "author": "Sophia",
    "description": "添加内勤人员",
    "auth": true
  },
  "request": {
    "type": "object",
    "properties": {
      "mobile": {
        "type": "string",
        "pattern": "^(13[0-9]|14[57]|15[012356789]|17[678]|18[0-9])[0-9]{8}$",
        "description": "手机号码，eg: 13800138000"
      },
      "password": {
        "type": "string",
        "pattern": "^[0-9a-zA-Z]{6,16}$",
        "description": "原始明文密码，eg: abc123"
      },
      "name": {
        "type": "string",
        "pattern": "^.{2,10}$",
        "description": "人员姓名"
      },
      "jobNumber": {
        "type": "string",
        "pattern": "^.+$",
        "description": "工号"
      },
      "belongingOrganizationId": {
        "type": "string",
        "pattern": "^[A-Za-z0-9]{32}$",
        "description": "所属机构ID"
      },
      "visibleOrganizationId": {
        "type": "string",
        "pattern": "^[A-Za-z0-9]{32}$",
        "description": "可视机构ID"
      },
      "accountStatus": {
        "enum": [
          1,
          2
        ],
        "description": "账号状态"
      }
    },
    "additionalProperties": false,
    "required": [
      "mobile",
      "password",
      "name",
      "belongingOrganizationId",
      "visibleOrganizationId",
      "accountStatus"
    ]
  },
  "response": {
    "type": "object",
    "properties": {
      "status": {
        "enum": [
          0,
          1
        ]
      },
      "message": {
        "type": "string"
      }
    },
    "additionalProperties": false,
    "required": [
      "status",
      "message"
    ]
  },
  "constant": {
    "ResponseStatus": {
      "SUCCESS": 0,
      "ERROR_ACCOUNT_EXISTED": 1
    }
  }
}