2020-09-07 10:52:48 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": ["name", "comment"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "ID,系统自动生成"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"bsonType": "string",
|
2020-10-26 19:45:32 +08:00
|
|
|
|
"description": "任务名称",
|
2020-12-23 20:20:34 +08:00
|
|
|
|
"title": "任务名称",
|
|
|
|
|
"trim":"both"
|
2020-09-07 10:52:48 +08:00
|
|
|
|
},
|
|
|
|
|
"comment": {
|
|
|
|
|
"bsonType": "string",
|
2020-10-26 19:45:32 +08:00
|
|
|
|
"description": "任务描述",
|
2020-12-23 20:20:34 +08:00
|
|
|
|
"title": "任务描述",
|
|
|
|
|
"trim":"both"
|
2020-09-07 10:52:48 +08:00
|
|
|
|
},
|
|
|
|
|
"bounty": {
|
|
|
|
|
"bsonType": "int",
|
2020-10-26 19:45:32 +08:00
|
|
|
|
"description": "任务完成后的奖励积分",
|
|
|
|
|
"title": "奖励积分"
|
2020-09-07 10:52:48 +08:00
|
|
|
|
},
|
|
|
|
|
"max_per_hour": {
|
|
|
|
|
"bsonType": "int",
|
|
|
|
|
"description": "每小时允许执行的最大次数"
|
|
|
|
|
},
|
|
|
|
|
"max_per_day": {
|
|
|
|
|
"bsonType": "int",
|
|
|
|
|
"description": "每天允许执行的最大次数"
|
|
|
|
|
},
|
|
|
|
|
"max_per_week": {
|
|
|
|
|
"bsonType": "int",
|
|
|
|
|
"description": "每周允许执行的最大次数"
|
|
|
|
|
},
|
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
2020-10-26 19:45:32 +08:00
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"defaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
2020-09-07 10:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": []
|
|
|
|
|
}
|