在线正则验证
\RG3.BO.DB\Repository\DbExecuteRepository$RuleDo.cs
{
"type": "regex",
"regex": "^V\\d\\.\\d\\.\\d$",
"isAdd": true,
"isEdit": true,
"message": "【{version_id}】格式不正确,格式如:【V1.0.0】"
},
{
"rules": {
"versionId": [
{
"type": "required",
"required": true,
"isAdd": true,
"isEdit": true,
"message": "【{version_id}】值必须填写。"
},
{
"type": "maxlength",
"required": false,
"isAdd": true,
"isEdit": true,
"max": 50,
"message": "【{version_id}】值最大长度为50。"
},
{
"type": "regex",
"regex": "^V\\d\\.\\d\\.\\d$",
"isAdd": true,
"isEdit": true,
"message": "【{version_id}】格式不正确,格式如:【V1.0.0】"
},
{
"type": "db", //remote db 远程验证 rule 和 sql必须填写; db:sql必须填写
"url": "~/bo/api/v3/remote/unique/{mkey}/{resField}?ownerId={ownerId}&sysId={sysId}&rule={rule}&{params}",
"sql": "select count(version_id) from bo_app_config_version where version_id=@versionId",
"isAdd": true,
"isEdit": false,
"message": "【{version_id}】已存在,可进入修改页面进行内容修改。"
}
]
},
"responseField": {
},
"columns": {
"versionId": {
"guidMethod": "None",
"editPropertie": {
"defaultValue": null
}
}
},
"dimDatas": {}
}
文档更新时间: 2023-07-20 11:10 作者:admin