visop
Version:
A simple CLI for scaffolding visible operation projects.
161 lines • 3.39 kB
JSON
{
"meta": [
{
"id": "name",
"value": "路由管理",
"description": "在页面显示的名称",
"type": "input"
},
{
"id": "order",
"value": 1,
"description": "控制在页面显示的顺序",
"type": "input"
},
{
"id": "usage",
"value": "服务路由管理",
"description": "描述这个配置文件的作用",
"type": "input"
},
{
"id": "key",
"value": "id",
"description": "描述data数据部分的主键字段名称",
"type": "input"
}
],
"fields": [
{
"id": "id",
"description": "路由",
"type": "input",
"config": {}
},
{
"id": "method",
"description": "请求方法",
"type": "select",
"config": {
"0": "GET",
"1": "POST"
}
},
{
"id": "authority",
"description": "权限码",
"type": "input",
"config": {}
},
{
"id": "parameters",
"description": "参数",
"type": "json",
"typeOf": "json",
"config": {
"row": "5"
}
},
{
"id": "action",
"description": "请求",
"type": "input",
"config": {}
},
{
"id": "description",
"description": "描述",
"type": "input",
"config": {}
}
],
"data": [
{
"id": "generateRoute",
"method": "POST",
"description": "生成路由",
"authority": "100000",
"controller": "api/generateRoute",
"action": "do",
"parameters": {
"config": {
"notEmpty": true,
"errorMessage": "config不能为1"
}
},
"test": "2",
"test1": {
"test": true
},
"ceshi": {
"config": "这里可以不填"
}
},
{
"id": "getAllRoutes",
"method": "GET,POST",
"description": "获取所有路由的配置",
"authority": "100000",
"controller": "api/getAllRoutes",
"action": "do",
"parameters": {
"config": {
"notEmpty": true,
"errorMessage": "config不能为空"
}
}
},
{
"id": "deleteRoute",
"method": "GET,POST",
"description": "增加路由",
"authority": "100000",
"controller": "api/deleteRoute",
"action": "do",
"parameters": {
"config": {
"notEmpty": true,
"errorMessage": "config不能为空"
}
}
},
{
"id": "generateRoute1",
"method": "GET,POST",
"description": "生成路由",
"authority": "100000",
"controller": "api/generateRoute",
"action": "do",
"parameters": {
"config": {
"notEmpty": true,
"errorMessage": "config不能为空"
}
}
},
{
"id": "generateRoute2",
"method": "GET",
"description": "生成路由122121212345",
"authority": "100000",
"controller": "api/generateRoute",
"action": "do",
"parameters": {
"config": {
"notEmpty": true,
"errorMessage": "config不能为空"
}
}
},
{
"id": "testdev",
"description": "测试接口",
"type": "",
"config": "",
"method": "GET",
"authority": "1000001",
"parameters": {},
"action": "do"
}
]
}