uni-id-tag.schema.json 1.1 KB
Newer Older
DCloud_JSON's avatar
-...  
DCloud_JSON 已提交
1 2 3 4
{
	"bsonType": "object",
	"required": ["tagid", "name"],
	"permission": {
study夏羽's avatar
study夏羽 已提交
5 6 7 8
		"read": "'READ_UNI_ID_TAG' in auth.permission",
		"create": "'CREATE_UNI_ID_TAG' in auth.permission",
		"update": "'UPDATE_UNI_ID_TAG' in auth.permission",
		"delete": "'DELETE_UNI_ID_TAG' in auth.permission"
DCloud_JSON's avatar
-...  
DCloud_JSON 已提交
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
	},
	"properties": {
		"_id": {
			"description": "ID,系统自动生成"
		},
		"tagid": {
			"bsonType": "string",
			"description": "标签tagid",
			"label": "标签tagid",
			"componentForEdit": {
				"name": "uni-easyinput"
			}
		},
		"name": {
			"bsonType": "string",
			"description": "标签名称",
			"label": "标签名称",
			"componentForEdit": {
				"name": "uni-easyinput"
			}
		},
		"description": {
			"bsonType": "string",
			"description": "标签描述",
			"label": "标签描述",
			"componentForEdit": {
				"name": "textarea"
			},
			"componentForShow": {
				"name": "textarea"
			}
		},
		"create_date": {
			"bsonType": "timestamp",
			"label": "创建时间",
			"forceDefaultValue": {
				"$env": "now"
			},
			"componentForEdit": {
				"name": "uni-dateformat"
			}
		}
	}
}