update: boolean 修正为 bool

This commit is contained in:
handongxun 2021-03-08 21:15:53 +08:00
parent ef05c02993
commit 421dfcc14f
2 changed files with 20 additions and 20 deletions

View File

@ -2,12 +2,12 @@
"schema": {
"bsonType": "object",
"required": ["name"],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "存储文档 ID文章 ID系统自动生成"
@ -19,35 +19,35 @@
"name": {
"bsonType": "string",
"description": "类别名称",
"title":"类别名称",
"trim":"both"
"title": "类别名称",
"trim": "both"
},
"icon": {
"bsonType": "string",
"description": "类别图标/图片地址",
"title":"图标地址",
"title": "图标地址",
"pattern": "^(http://|https://|/|./|@/)\\S",
"trim":"both"
"trim": "both"
},
"sort": {
"bsonType": "int",
"description": "类别排序,越大越靠后",
"title":"排序"
"title": "排序"
},
"description": {
"bsonType": "string",
"description": "类别描述",
"title":"类别描述",
"trim":"both"
"title": "类别描述",
"trim": "both"
},
"is_hot_show": {
"bsonType": "Boolean",
"title":"加入热门显示",
"is_hot_show": {
"bsonType": "bool",
"title": "加入热门显示",
"description": "是否热门显示"
},
"is_index_show": {
"bsonType": "Boolean",
"title":"首页显示",
"is_index_show": {
"bsonType": "bool",
"title": "首页显示",
"description": "是否首页显示"
},
"create_date": {

View File

@ -37,7 +37,7 @@
"description": "订单状态1待付款2已付款3退款审核中4退款中5已退款-1已取消付款/退款,-2退款拒绝-3退款失败"
},
"is_refund": {
"bsonType": "boolean",
"bsonType": "bool",
"description": "是否是退款订单"
},
"refund_amount": {