ITSM

运维管理系统


预览文件

1、预览文件

简要描述:

  • 预览文件

请求URL:

  • http://192.168.2.107:8080/ops/itsm/document/onlineViewDocument?uuid=xxx&token=yyy

请求方式:

  • GET

参数:

参数名 必选 类型 说明
uuid string 文件夹uuid
token string token

参数示例

http://192.168.2.107:8080/ops/itsm/document/onlineViewDocument?uuid=590985006ffe48b1b6c4fe97ec3283cc

返回示例

 {
  "errorCode": 0,
  "message": "成功",
  "time": 1637907090956,
  "responseBody": "&nbsp&nbsp&nbspINSERT INTO public.bee_idx_comm (id, name, pid, status, path, val, time) VALUES (2146241176, 'GetSystemConfigListScript', 490763255, '0', 'root/script/GetSystemConfigListScript', '{\"param\":\"{}\",\"name\":\"GetSystemConfigListScript\",\"publicClass\":\"com.kingsware.fun.GetSystemConfigListScript\",\"script\":\"package com.kingsware.fun;\\r\\n\\r\\nimport com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.kingsware.env.pojo.CollectResult;\\r\\nimport com.kingsware.env.script.KBaseMain;\\r\\nimport com.kingsware.socket.client.KEnvClient;\\r\\n\\r\\nimport java.util.ArrayList;\\r\\nimport java.util.List;\\r\\n\\r\\n/**\\r\\n * @program: us\\r\\n * @Date: 2021/11/25 17:17\\r\\n * @Author: leimingming\\r\\n * @Description: 获取通用的配置参数列表\\r\\n */\\r\\npublic class GetSystemConfigListScript extends KBaseMain<Object> {\\r\\n\\r\\n    @Override\\r\\n    public CollectResult mainEx(Object o, KEnvClient kEnvClient) throws Exception {\\r\\n        CollectResult collectResult = new CollectResult();\\r\\n\\r\\n        String search = kEnvClient.search(\\\"root/config/assembly/systemConfig/prop/*\\\");\\r\\n        println(search);\\r\\n\\r\\n        List<JSONObject> result = new ArrayList<>();\\r\\n\\r\\n        JSONArray array = JSON.parseArray(search);\\r\\n        for (int i = 0; i < array.size(); i++) {\\r\\n            JSONObject object = array.getJSONObject(i);\\r\\n            String nId = object.getString(\\\"nId\\\");\\r\\n            String val = object.getString(\\\"val\\\");\\r\\n            String path = object.getString(\\\"path\\\");\\r\\n\\r\\n            String descResult = kEnvClient.getVal(path + \\\"/desc\\\");\\r\\n            JSONObject descObject = JSON.parseObject(descResult);\\r\\n            String desc = descObject == null ? \\\"unknown\\\" : descObject.getString(\\\"value\\\");\\r\\n\\r\\n            println(nId+\\\"--\\\"+val+\\\"--\\\"+desc);\\r\\n\\r\\n            JSONObject config = new JSONObject();\\r\\n            config.put(\\\"key\\\",nId);\\r\\n            config.put(\\\"value\\\",val);\\r\\n            config.put(\\\"desc\\\",desc);\\r\\n\\r\\n            result.add(config);\\r\\n        }\\r\\n\\r\\n        collectResult.setResult(result);\\r\\n        return collectResult;\\r\\n    }\\r\\n}\\r\\n\"}', '2021-11-25 17:41:47.535000');</br>&nbsp&nbsp&nbspINSERT INTO public.\"BasicGatewayRoute\" (uuid, name, sourcepath, module, targeturl, targetpath, logtype, logcontent, param, responsebody, remark, \"createTime\", state, \"updateTime\", verify, type, \"moduleId\") VALUES ('ebe3e3de-f688-61a5-8b1e-f32706c45625', '获取系统全局配置', '/ops/getSystemConfigList', null, null, 'GetSystemConfigListScript', '查询', '', '', '', '', '2021-11-25 17:53:12', 0, '2021-11-25 17:53:12', false,'script','c321b0458d914c5c818896d41d1ad3e1');</br>"
} 

页面列表

ITEM_HTML