basePath: /api definitions: controllers.ResultError: properties: code: type: integer count: type: integer data: {} msg: type: string type: object controllers.ResultOK: properties: code: type: integer count: type: integer data: {} msg: type: string type: object controllers.WarpError: properties: data: {} msg: type: string returncode: type: integer type: object controllers.WarpOK: properties: data: {} msg: type: string returncode: type: integer type: object host: localhost:18001 info: contact: email: 3116246@qq.com name: liling url: http://www.swagger.io/support description: SCD文档管理系统接口文档。本文档仅用于本项目的前端接口说明 license: name: none url: '-' termsOfService: http://swagger.io/terms/ title: SCD文档管理系统API version: 1.1.0 paths: /area/children/list: get: consumes: - application/x-www-form-urlencoded description: 获取指定获取的下级区域列表 parameters: - description: 查询条件:区域ID in: query name: id required: true type: string - description: 查询条件:是否获取全部子区域。1表示是,反之表示否。默认为0 in: query name: all type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定获取的下级区域列表 tags: - 基础服务接口 /area/tree: get: consumes: - application/x-www-form-urlencoded description: 获取区域列表。以tree结构形式返回。 produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取区域列表 tags: - 基础服务接口 /attachment/cfg/delete: post: consumes: - application/x-www-form-urlencoded description: 删除指定的数据及附件自动清理配置 parameters: - description: 配置记录id in: formData name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 删除指定的数据及附件自动清理配置 tags: - 文件/附件服务接口 /attachment/cfg/list: get: consumes: - application/x-www-form-urlencoded description: 获取数据及附件自动清理配置列表 produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取数据及附件自动清理配置列表 tags: - 文件/附件服务接口 /attachment/cfg/one: get: consumes: - application/x-www-form-urlencoded description: 获取指定的数据及附件自动清理配置 parameters: - description: 配置记录id。 in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定的数据及附件自动清理配置 tags: - 文件/附件服务接口 /attachment/cfg/save: post: consumes: - application/x-www-form-urlencoded description: 保存数据及附件自动清理配置 parameters: - description: 配置记录id。不为0时表示编辑保存 in: formData name: id required: true type: integer - description: 配置名称 in: formData name: name required: true type: string - description: 数据及附件保留的天数 in: formData name: skeepday required: true type: integer - description: 数据模型名称 in: formData name: tablename required: true type: string - description: 数据模型中的记录创建日期列名 in: formData name: colname required: true type: string - description: 数据过滤条件。支持SQL语法 in: formData name: filterwhere type: string - description: 配置说明 in: formData name: memo type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 保存数据及附件自动清理配置 tags: - 文件/附件服务接口 /attachment/delete: post: consumes: - application/x-www-form-urlencoded description: 删除指定的附件 parameters: - description: 需要删除的附件id。 in: formData name: id required: true type: integer - description: 需要删除的附件id。多个附件id使用逗号分隔。 in: formData name: ids required: true type: string - description: SCD文件ID。不为空时表示删除该SCD关联的文件 in: formData name: scd_id type: integer - description: 是否是管控文件。1表示是,否则表示为否 in: formData name: check_flag type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 删除附件 tags: - 文件/附件服务接口 /attachment/download: post: consumes: - application/x-www-form-urlencoded description: 查询附件列表 parameters: - description: 需要下载的附件id。多个附件id使用逗号分隔。 in: formData name: ids required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 下载附件 tags: - 文件/附件服务接口 /attachment/download/rec: post: consumes: - application/x-www-form-urlencoded description: 查询指定附件下载历史记录。(预留) parameters: - description: 附件id。 in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 查询指定附件下载历史记录 tags: - 文件/附件服务接口 /attachment/list: get: consumes: - application/x-www-form-urlencoded description: 查询附件列表 parameters: - description: 当前查询的分页页码,默认为1 in: query name: pageindex required: true type: integer - description: 每页显示的数据条数,默认为20 in: query name: pagesize required: true type: integer - description: 变电站ID in: query name: station_id required: true type: integer - description: SCD文件ID in: query name: scd_id type: integer - description: 是否管控文档。0 其他文件 1 管控文件 2 裁剪文件 in: query name: is_checkin type: integer - description: 附件名称 in: query name: name type: string - description: 装置名称 in: query name: ied_name type: string - description: 文件类别ID in: query name: type type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 查询附件列表 tags: - 文件/附件服务接口 /attachment/one: get: consumes: - application/x-www-form-urlencoded description: 根据id获取附件信息 parameters: - description: 附件ID in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 根据id获取附件信息 tags: - 文件/附件服务接口 /attachment/scdparse/start: post: consumes: - application/x-www-form-urlencoded description: 重新解析指定的SCD文件 parameters: - description: 变电站ID in: formData name: station_id required: true type: integer - description: SCD文件名称 in: formData name: scd_name required: true type: string - description: SCD附件路径 in: formData name: scd_path required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 重新解析指定的SCD文件 tags: - 文件/附件服务接口 /attachment/stat: get: consumes: - application/x-www-form-urlencoded description: SCD文档分类统计 parameters: - description: 变电站ID in: query name: station_id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultError' "500": description: Internal Server Error schema: type: status summary: SCD文档分类统计 tags: - 统计分析服务接口 /basic_area/del: post: consumes: - application/x-www-form-urlencoded description: 删除指定区域信息 parameters: - description: 区域ID。 in: query name: id required: true type: integer - description: 是否同时删除所有下级区域。1为是,反之为否。默认为否 in: query name: isall type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 删除指定区域信息 tags: - 基础服务接口 /basic_area/getchildrencount: get: consumes: - application/x-www-form-urlencoded description: 查询指定区域的下级区域数量 parameters: - description: 查询条件:父级区域ID in: query name: pid required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 查询指定区域的下级区域数量 tags: - 基础服务接口 /basic_area/list: get: consumes: - application/x-www-form-urlencoded description: 根据查询条件搜索区域列表 parameters: - description: 当前查询的分页页码,默认为1 in: query name: pageindex type: integer - description: 每页显示的数据条数,默认为20 in: query name: pagesize type: integer - description: 查询条件:区域名称。模糊匹配 in: query name: name type: string - description: 查询条件:区域ID in: query name: id type: integer - description: 查询条件:父级区域ID in: query name: pid type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 根据查询条件搜索区域列表 tags: - 基础服务接口 /basic_area/save: post: consumes: - application/x-www-form-urlencoded description: 保存区域信息 parameters: - description: 区域ID。编辑时必填。 in: query name: id required: true type: integer - description: 父级区域ID in: query name: pid required: true type: integer - description: 区域类型 in: query name: area_type required: true type: integer - description: 区域名称 in: query name: area_name required: true type: string - description: 区域地址 in: query name: area_addr type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 保存区域信息 tags: - 基础服务接口 /code/tree: get: responses: {} /createuser: post: consumes: - application/x-www-form-urlencoded description: 查询用户信息 parameters: - description: 用户ID in: query name: userid required: true type: integer - description: 角色ID in: query name: role required: true type: integer - description: 姓名 in: query name: username required: true type: string - description: 登录帐号 in: query name: account required: true type: string - description: 登录密码 in: query name: password required: true type: string - description: 手机号 in: query name: mobilephone type: string - description: 密码过期日期 in: query name: pwd_expire type: string - description: 允许登录的IP in: query name: bind_ips type: string - description: 帐号有效期开始日期 in: query name: datelimit_start type: string - description: 帐号有效期结束日期 in: query name: datelimit_end type: string - description: 其他说明 in: query name: memo type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 创建用户 tags: - 基础服务接口 /db/backup/del: post: consumes: - application/x-www-form-urlencoded description: 删除指定的数据备份 parameters: - description: 备份记录ID in: query name: id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 删除指定的数据备份 tags: - 基础服务接口 /db/backup/list: get: consumes: - application/x-www-form-urlencoded description: 获取数据备份列表 parameters: - description: 当前查询的分页页码,默认为1 in: query name: pageindex type: integer - description: 每页显示的数据条数,默认为20 in: query name: pagesize type: integer - description: 备份结束日期 in: query name: enddate type: string - description: 备份开始日期 in: query name: startdate type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取数据备份列表 tags: - 基础服务接口 /db/backup/new: post: consumes: - application/x-www-form-urlencoded description: 创建新数据备份 produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 创建新数据备份 tags: - 基础服务接口 /db/backup/recover: post: consumes: - application/x-www-form-urlencoded description: 还原指定的数据备份 parameters: - description: 备份记录ID in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 数据还原 tags: - 基础服务接口 /deleteGlobalcode: post: consumes: - application/x-www-form-urlencoded description: 根据字典编码或ID删除指定系统字典定义 parameters: - description: 系统字典编码 in: query name: code type: string - description: 系统字典ID in: query name: id type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 删除指定系统字典定义 tags: - 基础服务接口 /doc/stat/1: get: consumes: - application/x-www-form-urlencoded description: 资料完整度统计 parameters: - description: 区域ID in: query name: id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultError' "500": description: Internal Server Error schema: type: status summary: 资料完整度统计 tags: - 统计分析服务接口 /expTableData: get: consumes: - application/x-www-form-urlencoded description: Excel数据导出。导出成功时将返回导出文件的下载地址。 parameters: - description: 业务类型。值为:scd-comp-result(差异对比结果)\scl-check-result(SCL校验结果)之一 in: query name: code required: true type: string - description: 数据标题 in: query name: caption type: string - description: 导出的数据列,与expcolnames一一对应。从个数据列之间使用逗号分隔。未设置时将导出业务对应的所有列 in: query name: expcols type: string - description: 导出的数据列对应的名称,与expcols一一一对应。从个数据列名之间使用逗号分隔。未设置时将导出业务对应的所有列 in: query name: expcolnames type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: Excel数据导出 tags: - 文件/附件服务接口 /flow/cnf/deleteuser: post: consumes: - application/x-www-form-urlencoded description: 删除指定流程的节点人员配置信息 parameters: - description: 节点已分配的人员ID in: formData name: user_id required: true type: string - description: 节点与人员的分配记录ID in: formData name: node_inst_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 删除指定流程的节点人员配置信息 tags: - 签入签出流程服务接口 /flow/cnf/getinfo: get: consumes: - application/x-www-form-urlencoded description: 获取流程配置信息 parameters: - description: 变电站ID in: query name: station_id required: true type: string - description: 流程类型。值为:3(SCD签入)、4(SCD签出)之一 in: query name: flow_type type: string - description: 是否需要根据当前登录人员进行节点过滤,为1表示需要,主要用于流转时获取节点列表;否则为获取全节点,主要用于后台配置 in: query name: userfilter type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取流程配置信息 tags: - 签入签出流程服务接口 /flow/getlastoutworkbook: get: consumes: - application/x-www-form-urlencoded description: 获取指定站最新签出流程详细信息 parameters: - description: 变电站ID in: query name: station_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定站最新签出流程详细信息 tags: - 签入签出流程服务接口 /flow/lock/list: get: consumes: - application/x-www-form-urlencoded description: 获取指定站的锁定流程记录列表 parameters: - description: 变电站ID in: query name: station_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定站的锁定流程记录列表 tags: - 签入签出流程服务接口 /flow/node/getdata: get: consumes: - application/x-www-form-urlencoded description: 获取指节点的详细数据 parameters: - description: 变电站ID in: query name: station_id required: true type: string - description: 节点编号。值为:checkinstart 编制,checkincheck 校验,checkinaudit 审核,checkinend 发布,checkoutstart 签出,checkoutcheck 校核,checkoutend 审核之一 in: query name: node_code required: true type: string - description: 流程ID in: query name: flow_run_id required: true type: integer - description: 流程类型,值为:3(SCD签入)、4(SCD签出)之一 in: query name: flow_type type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指节点的详细数据 tags: - 签入签出流程服务接口 /flow/node/refuser: post: consumes: - application/x-www-form-urlencoded description: 保存流程配置信息 parameters: - description: 变电站ID in: formData name: station_id required: true type: string - description: 节点编号ID in: formData name: node_id required: true type: string - description: 有该节点权限的人员ID列表,多个ID之间用逗号分隔 in: formData name: user_ids required: true type: string - description: 节点与人员的分配记录ID in: formData name: node_inst_id type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 保存流程配置信息 tags: - 签入签出流程服务接口 /flow/run/list: get: consumes: - application/x-www-form-urlencoded description: 获取指定站的签入签出流程记录列表 parameters: - description: 变电站ID in: query name: station_id required: true type: string - description: 当前页码,默认为1 in: query name: pageno required: true type: integer - description: 每页记录条数,默认为20 in: query name: pagesize required: true type: integer - description: 查询条件:开始日期 in: query name: dt1 type: string - description: 查询条件:结束日期 in: query name: dt2 type: string - description: 查询条件:SCD名称。模糊匹配 in: query name: name type: string - description: 查询条件:流程类型,值为:3(SCD签入)、4(SCD签出)之一 in: query name: flowtype type: string - description: 查询条件:流程状态,值为:0 处理中 1 结束 2 驳回之一 in: query name: flowstate type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定站的签入签出流程记录列表 tags: - 签入签出流程服务接口 /flow/run/nodedeal/save: post: consumes: - application/x-www-form-urlencoded description: 保存指定站的签入签出节点信息 parameters: - description: 变电站ID in: formData name: station_id required: true type: string - description: 节点编号。值为:checkinstart 编制,checkincheck 校验,checkinaudit 审核,checkinend 发布,checkoutstart 签出,checkoutcheck 校核,checkoutend 审核之一 in: formData name: node_code required: true type: string - description: 节点填录的所有信息,为JSON对象序列化后的字符串。 in: formData name: content required: true type: string - description: 流程ID in: formData name: flow_run_id required: true type: integer - description: 操作类型。1 通过 0 驳回 in: formData name: opt type: string - description: 流程类型,值为:3(SCD签入)、4(SCD签出)之一 in: formData name: flow_type type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 保存指定站的签入签出节点信息 tags: - 签入签出流程服务接口 /flow/stat/list: get: consumes: - application/x-www-form-urlencoded description: SCD签入签出统计 parameters: - description: 变电站ID in: query name: station_id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultError' "500": description: Internal Server Error schema: type: status summary: SCD签入签出统计 tags: - 统计分析服务接口 /get_menu_tree: get: consumes: - application/x-www-form-urlencoded description: 获取角色的已分配资源ID列表 parameters: - description: 角色ID in: query name: roleid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取角色的已分配资源ID列表 tags: - 基础服务接口 /getGlobalChildrenCode: get: consumes: - application/x-www-form-urlencoded description: 获取指定系统字典的下级字典码定义 parameters: - description: 未指定code时,将返回根字典下的子字典定义列表。 in: query name: code type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定系统字典的下级字典码定义 tags: - 基础服务接口 /getGlobalCode: get: consumes: - application/x-www-form-urlencoded description: 查询系统字典列表 parameters: - description: 当前查询的页码。默认为1 in: query name: pageindex type: integer - description: 每页显示的数据记录数,默认为20 in: query name: pagesize type: integer - description: 查询条件:指定的父级字典码 in: query name: pcode type: string - description: 查询条件:指定的字典码 in: query name: code type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 查询系统字典列表 tags: - 基础服务接口 /getGlobalCode/byid: get: consumes: - application/x-www-form-urlencoded description: 根据id获取字典定义 parameters: - description: 系统字典码ID in: query name: id type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 根据id获取字典定义 tags: - 基础服务接口 /getRoleFuncList: get: consumes: - application/x-www-form-urlencoded description: 获取指定角色的功能点列表 parameters: - description: 角色ID in: query name: roleid required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 获取指定角色的功能点列表 tags: - 基础服务接口 /getSysParamList: get: consumes: - application/x-www-form-urlencoded description: 获取全部或者指定的系统参数列表 parameters: - description: 参数名 in: query name: param_name type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取全部或者指定的系统参数列表 tags: - 基础服务接口 /getSyslogList: get: consumes: - application/x-www-form-urlencoded description: 查询操作日志列表 parameters: - description: 当前查询页码。默认为1 in: query name: pageindex required: true type: integer - description: 每页显示数据条数。默认20 in: query name: pagesize required: true type: integer - description: 查询条件:结束日期 in: query name: enddate type: string - description: 查询条件:开始日期 in: query name: startdate type: string - description: 查询条件:日志内容。模糊匹配 in: query name: description type: string - description: 查询条件:操作人姓名。模糊匹配 in: query name: staff type: string - description: 查询条件:操作IP地址。模糊匹配 in: query name: ip type: string - description: '查询条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功' in: query name: success type: integer - description: 查询条件:操作类型。关联系统字典log_opttype。 in: query name: opttype type: integer - description: 查询条件:审计类型。关联系统字典log_audittype。 in: query name: audittype type: integer - description: 查询条件:事件类型。关联系统字典log_eventtype。 in: query name: eventtype type: integer - description: 查询条件:事件等级。关联系统字典log_eventlevel。 in: query name: eventlevel type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 查询操作日志列表 tags: - 基础服务接口 /getUser: get: consumes: - application/x-www-form-urlencoded description: 查询用户信息 parameters: - description: 用户ID in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 查询指定用户的详细信息 tags: - 基础服务接口 /getUserAreaList: get: consumes: - application/x-www-form-urlencoded description: 获取指定用户所管理的区域列表 parameters: - description: 用户ID in: query name: userid required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定用户所管理的区域列表 tags: - 基础服务接口 /getUserPrivList: get: consumes: - application/x-www-form-urlencoded description: 指定用户的功能列表。非RBAC模式下有效 parameters: - description: 用户ID in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 指定用户的功能列表 tags: - 基础服务接口 /getVersion: get: consumes: - application/x-www-form-urlencoded description: 获取当前程序版本 produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 获取当前程序版本 tags: - 基础服务接口 /ied/stat: get: consumes: - application/x-www-form-urlencoded description: SCD装置分类统计 parameters: - description: 变电站ID in: query name: station_id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultError' "500": description: Internal Server Error schema: type: status summary: SCD装置分类统计 tags: - 统计分析服务接口 /keep-alive: get: consumes: - application/x-www-form-urlencoded description: 客户端心跳保持,由浏览器或客户端发起请求,以表示其还处于使用中 produces: - application/json responses: "200": description: OK schema: type: status "500": description: Internal Server Error schema: type: status summary: 客户端心跳 tags: - 基础服务接口 /log/backup: post: consumes: - application/x-www-form-urlencoded description: 操作日志备份 parameters: - description: 备份结束日期 in: query name: enddate type: string - description: 备份开始日期 in: query name: startdate type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 操作日志备份 tags: - 基础服务接口 /log/backup/del: post: consumes: - application/x-www-form-urlencoded description: 操作日志备份删除 parameters: - description: 备份记录ID in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 操作日志备份删除 tags: - 基础服务接口 /log/backup/list: get: consumes: - application/x-www-form-urlencoded description: 获取操作日志备份列表 parameters: - description: 当前查询的分页页码,默认为1 in: query name: pageindex type: integer - description: 每页显示的数据条数,默认为20 in: query name: pagesize type: integer - description: 备份结束日期 in: query name: enddate type: string - description: 备份开始日期 in: query name: startdate type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取操作日志备份列表 tags: - 基础服务接口 /log/chartstat: get: consumes: - application/x-www-form-urlencoded description: 操作日志分类(图形)统计 parameters: - description: 统计条件:结束日期 in: query name: enddate type: string - description: 统计条件:开始日期 in: query name: startdate type: string - description: 统计条件:日志内容。模糊匹配 in: query name: description type: string - description: 统计条件:操作人姓名。模糊匹配 in: query name: staff type: string - description: 统计条件:操作IP地址。模糊匹配 in: query name: ip type: string - description: '统计条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功' in: query name: success type: integer - description: 统计条件:操作类型。关联系统字典log_opttype。 in: query name: opttype type: integer - description: 统计条件:审计类型。关联系统字典log_audittype。 in: query name: audittype type: integer - description: 统计条件:事件类型。关联系统字典log_eventtype。 in: query name: eventtype type: integer - description: 统计条件:事件等级。关联系统字典log_eventlevel。 in: query name: eventlevel type: integer - description: 统计周期。值列表为:year,month,day,hour,week,默认为hour。 in: query name: cycletype type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 操作日志分类(图形)统计 tags: - 基础服务接口 /log/datastat: get: consumes: - application/x-www-form-urlencoded description: 操作日志分类(数据列表)统计 parameters: - description: 统计条件:结束日期 in: query name: enddate type: integer - description: 统计条件:开始日期 in: query name: startdate type: integer - description: 统计条件:日志内容。模糊匹配 in: query name: description type: integer - description: 统计条件:操作人姓名。模糊匹配 in: query name: staff type: string - description: 统计条件:操作IP地址。模糊匹配 in: query name: ip type: string - description: '统计条件:操作结果。关联系统字典log_optresult。0: 失败 1:成功' in: query name: success type: integer - description: 统计条件:操作类型。关联系统字典log_opttype。 in: query name: opttype type: integer - description: 统计条件:审计类型。关联系统字典log_audittype。 in: query name: audittype type: integer - description: 统计条件:事件类型。关联系统字典log_eventtype。 in: query name: eventtype type: integer - description: 统计条件:事件等级。关联系统字典log_eventlevel。 in: query name: eventlevel type: integer - description: 统计类型。值为:logtype或者空。 in: query name: stattype type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 操作日志分类(数据列表)统计 tags: - 基础服务接口 /log/runtime_log: get: consumes: - application/x-www-form-urlencoded description: 获取当前的服务器运行日志。每次获取10Kb的日志内容,第一次获取时默认为0,继续获取时需要将上次的最大位置传给offset参数。 parameters: - description: 获取的日志起始字节位置。 in: query name: offset required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取当前的服务器运行日志 tags: - 基础服务接口 /login: post: consumes: - application/x-www-form-urlencoded description: 登录系统。系统会返回当前用户的相关信息,如基本信息、token等 parameters: - description: 用户帐号 in: query name: login_account required: true type: string - description: 用户密码 in: query name: pwd required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 登录 tags: - 基础服务接口 /logout: post: consumes: - application/x-www-form-urlencoded description: 登出系统。系统会自动清理当前用户的相关信息,如缓存、token等 parameters: - description: 用户token码 in: query name: sessionid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 登出 tags: - 基础服务接口 /net/video/play: post: responses: {} summary: 视频播放 /notice/info: get: consumes: - application/x-www-form-urlencoded description: 获取指定通知提醒详细信息 parameters: - description: 通知提醒记录ID in: query name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定通知提醒详细信息 tags: - 通知提醒服务接口 /notice/list: get: consumes: - application/x-www-form-urlencoded description: 获取指定站的通知提醒列表 parameters: - description: 变电站ID in: query name: station_id required: true type: string - description: 当前页码。默认为1 in: query name: pageno type: integer - description: 每页显示记录数。默认为20 in: query name: pagesize type: integer - description: 是否已读。0 未读或1 已读 in: query name: isread type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定站的通知提醒列表 tags: - 通知提醒服务接口 /notice/read: post: consumes: - application/x-www-form-urlencoded description: 设置指定通知提醒为已读 parameters: - description: 通知提醒记录ID in: formData name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 设置指定通知提醒为已读 tags: - 通知提醒服务接口 /playWav: post: consumes: - application/x-www-form-urlencoded description: 语音播放 parameters: - description: 文件名称 in: query name: filename type: string produces: - application/json responses: "200": description: OK schema: type: status "500": description: Internal Server Error schema: type: status summary: 语音播放 tags: - 基础服务接口 /record/delete: post: consumes: - application/x-www-form-urlencoded description: 删除指定模型的某条数据记录 parameters: - description: 数据模型名称 in: query name: tablename required: true type: string - description: 数据记录ID in: query name: id required: true type: string - description: 数据记录ID列名。默认为id in: query name: primaryfield type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 删除指定模型的某条数据记录 tags: - 基础服务接口 /record/get: get: consumes: - application/x-www-form-urlencoded description: 获取指定模型的某条数据记录 parameters: - description: 数据模型名称 in: query name: tablename required: true type: string - description: 数据记录ID in: query name: id required: true type: string - description: 数据记录ID列名。默认为id in: query name: primaryfield type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 获取指定模型的某条数据记录 tags: - 基础服务接口 /resetUserPwd: post: consumes: - application/x-www-form-urlencoded description: 修改密码。只能修改自己的密码 parameters: - description: 原密码 in: query name: newpwd required: true type: integer - description: 新密码 in: query name: oldpwd required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 修改自己密码 tags: - 基础服务接口 /saveGlobalcode: post: consumes: - application/x-www-form-urlencoded description: 保存系统字典 parameters: - description: 系统字典名称 in: query name: name required: true type: string - description: 上级系统字典编码 in: query name: parentcode required: true type: string - description: 系统字典编码 in: query name: code required: true type: string - description: 系统字典ID in: query name: id type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 保存系统字典 tags: - 基础服务接口 /saveRoleFunc: post: consumes: - application/x-www-form-urlencoded description: 保存指定角色的功能点列表 parameters: - description: 角色ID in: query name: roleid required: true type: integer - description: 区域列表。JSON串,格式如:[{ in: query name: areaid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 保存指定角色的功能点列表 tags: - 基础服务接口 /saveSysParam: post: consumes: - application/x-www-form-urlencoded description: 保存系统参数 parameters: - description: 参数缟编码 in: query name: param_name type: string - description: 参数值 in: query name: param_value type: string - description: 参数描述 in: query name: param_memo type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultError' "500": description: Internal Server Error schema: type: status summary: 保存系统参数 tags: - 基础服务接口 /saveUser: post: responses: {} summary: 保存用户信息(已废弃) /saveUserAreaList: post: consumes: - application/x-www-form-urlencoded description: 保存指定用户所管理的区域列表 parameters: - description: 用户ID in: query name: userid required: true type: integer - description: 区域列表。JSON串,格式如:[{ in: query name: areaid required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 保存指定用户所管理的区域列表 tags: - 基础服务接口 /saveUserPrivList: post: consumes: - application/x-www-form-urlencoded description: 保存指定用户的功能列表。非RBAC模式下有效 parameters: - description: 用户ID in: query name: id required: true type: integer - description: 功能ID列表,使用逗号分隔 in: query name: privids required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 保存指定用户的功能列表 tags: - 基础服务接口 /scd/area/ied/list: get: consumes: - application/x-www-form-urlencoded description: 按校验错误等级统计校验结果 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 电压等级ID in: query name: voltage_level_id type: integer - description: 间隔ID in: query name: area_id type: integer - description: 装置类型ID。关联系统字典:device_type in: query name: device_type_id type: string produces: - application/json responses: {} summary: 获取指定间隔下的IED信息 tags: - SCD服务接口 /scd/area/list: get: consumes: - application/x-www-form-urlencoded description: 按校验错误等级统计校验结果 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 电压等级ID in: query name: voltage_level_id type: integer produces: - application/json responses: {} summary: 获取指定scd下的间隔信息 tags: - SCD服务接口 /scd/check/resultlist: get: consumes: - application/x-www-form-urlencoded description: 获取指定SCD的校验结果 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 当前页码。默认为1 in: query name: pageno required: true type: integer - description: 每页数据记录条数。默认为20 in: query name: pagesize required: true type: integer - description: SCD文件名称 in: query name: scd_name type: string - description: SCD文件名称 in: query name: scd_path type: string - description: 校验错误级别 in: query name: level type: string - description: IED装置名称 in: query name: ied_name type: string - description: 节点名称 in: query name: node_name type: string - description: 节点ID in: query name: node_id type: string produces: - application/json responses: {} summary: 获取指定SCD的校验结果 tags: - SCD服务接口 /scd/check/stat/level: get: consumes: - application/x-www-form-urlencoded description: 按校验错误等级统计校验结果 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: SCD文件名称 in: query name: scd_name type: string - description: SCD文件名称 in: query name: scd_path type: string - description: IED装置名称 in: query name: ied_name type: string - description: 节点名称 in: query name: node_name type: string - description: 节点ID in: query name: node_id type: string produces: - application/json responses: {} summary: 按校验错误等级统计校验结果 tags: - SCD服务接口 /scd/check/sum/result: get: consumes: - application/x-www-form-urlencoded description: 获取指定SCD的汇总统计结果 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer produces: - application/json responses: {} summary: 获取指定SCD的汇总统计结果 tags: - SCD服务接口 /scd/checkin/detail: get: consumes: - application/x-www-form-urlencoded description: 获取指定站的指定scd的签入详情 parameters: - description: 变电站ID in: query name: station_id required: true type: string - description: SCD名称 in: query name: scd_name type: string - description: SCD文件路径 in: query name: scd_path type: string - description: SCD文件ID。为空时scd_name和scd_path必填 in: query name: scd_id type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定站的指定scd的签入详情 tags: - 签入签出流程服务接口 /scd/comp/iedstat/type: get: consumes: - application/x-www-form-urlencoded description: 指定装置差异对比结果分类统计 parameters: - description: 差异比对记录ID in: query name: comp_id required: true type: integer - description: 装置名称 in: query name: ied_name type: string - description: 差异类别。值为:i|d|u之一 in: query name: comptype type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 指定装置差异对比结果分类统计 tags: - 一致性校验服务接口 /scd/comp/list: get: consumes: - application/x-www-form-urlencoded description: 获取指定变电站的差异对比记录列表 parameters: - description: 变电站ID in: query name: station_id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 获取指定变电站的差异对比记录列表 tags: - 一致性校验服务接口 /scd/comp/result: get: consumes: - application/x-www-form-urlencoded description: 获取指定差异对比的详细结果列表 parameters: - description: 差异比对记录ID in: query name: comp_id required: true type: integer - description: 装置名称 in: query name: ied_name type: string - description: 差异对象类型代码 in: query name: itemcode type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 获取指定差异对比的详细结果列表 tags: - 一致性校验服务接口 /scd/comp/start: post: consumes: - application/x-www-form-urlencoded description: 开始scd差异对比 parameters: - description: 对比的文件类型。值为scd\ccd\cid\ccd_cid_scd\icd_scd之一。 in: query name: type required: true type: string - description: 差异比对记录ID。不为空或0时表示重新比对差异 in: query name: comp_id type: integer - description: 变电站ID in: query name: station_id required: true type: integer - description: 对比的基准SCD文件ID。type为scd时必填。 in: query name: source_scd_id type: integer - description: 对比的参照SCD文件ID。type为scd时必填。 in: query name: target_scd_id type: integer - description: 如果是2个非SCD对比文件时,需要对比的文件ID列表,使用逗号分隔。仅当type为ccd\cid\ccd_cid_scd\icd_scd时有效 in: query name: ids type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 开始scd差异对比 tags: - 一致性校验服务接口 /scd/comp/stat/result: get: consumes: - application/x-www-form-urlencoded description: 获取scd差异对比结果概览统计 parameters: - description: 差异比对记录ID in: query name: comp_id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 获取scd差异对比结果概览统计 tags: - 一致性校验服务接口 /scd/comp/tree: get: consumes: - application/x-www-form-urlencoded description: 获取SCD校验对象树 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 对象ID in: query name: id type: integer - description: 上级对象ID in: query name: pid type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 获取SCD校验对象树 tags: - 一致性校验服务接口 /scd/ied/typelist: get: consumes: - application/x-www-form-urlencoded description: 获取指定SCD下的IED类型信息 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer produces: - application/json responses: {} summary: 获取指定SCD下的IED类型信息 tags: - SCD服务接口 /scd/rule/list: get: consumes: - application/x-www-form-urlencoded description: 获取校验规则列表 parameters: - description: '当前页码。默认为1 ' in: query name: pageindex type: integer - description: 每页显示记录数。默认为20 in: query name: pagesize type: integer - description: 规则ID in: query name: id type: integer - description: 是否启用。默认为全部 in: query name: enable type: integer - description: 规则的对象名称 in: query name: object_name type: string - description: 规则的对象分类 in: query name: object_type type: integer - description: 规则的告警级别。值为error\alert\hint之一。 in: query name: alert_level type: string - description: 规则标准 in: query name: apply_standard type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 获取校验规则列表 tags: - 校验规则管理服务接口 /scd/rule/remove: post: consumes: - application/x-www-form-urlencoded description: 删除校验规则 parameters: - description: 规则ID in: formData name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 删除校验规则 tags: - 校验规则管理服务接口 /scd/rule/reset: post: consumes: - application/x-www-form-urlencoded description: 重新校验指定scd parameters: - description: SCD文件ID in: formData name: scd_id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 重新校验指定scd tags: - 校验规则管理服务接口 /scd/rule/save: post: consumes: - application/x-www-form-urlencoded description: 保存校验规则 parameters: - description: 规则ID。不为0时表示编辑 in: formData name: id type: integer - description: 是否启用。默认为全部 in: formData name: enable type: integer - description: 规则的对象名称 in: formData name: object_name type: string - description: 规则的对象分类 in: formData name: object_type type: integer - description: 规则的告警级别。值为error\alert\hint之一。 in: formData name: alert_level type: string - description: 规则标准 in: formData name: apply_standard type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: type: status summary: 保存校验规则 tags: - 校验规则管理服务接口 /scd/stat/right: get: consumes: - application/x-www-form-urlencoded description: scd正确性分析 parameters: - description: 变电站ID in: query name: station_id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultError' "500": description: Internal Server Error schema: type: status summary: scd正确性分析 tags: - 统计分析服务接口 /screen/scd/agin_parse: post: consumes: - application/x-www-form-urlencoded description: 重新解析指定scd parameters: - description: 变电站ID in: formData name: scd_id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 重新解析指定scd tags: - SCD服务接口 /screen/scd/checktools/tree: get: consumes: - application/x-www-form-urlencoded description: 获取指定scd校验类型树 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 节点ID in: query name: id required: true type: integer - description: 父节点ID in: query name: pid required: true type: integer - description: 节点类型 in: query name: datatype required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取指定scd校验类型树 tags: - SCD服务接口 /screen/scd/crc: get: consumes: - application/x-www-form-urlencoded description: 获取指定scd的crc校验结果 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer produces: - application/json responses: {} summary: 获取指定scd的crc校验结果 tags: - SCD服务接口 /screen/scd/delete: post: consumes: - application/x-www-form-urlencoded description: 删除指定scd数据 parameters: - description: SCD文件ID in: formData name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 删除指定scd数据 tags: - SCD服务接口 /screen/scd/ied/ctrlblock: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的控制块信息 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的控制块信息 tags: - SCD服务接口 /screen/scd/ied/dingzhi: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的定值条目 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: IED装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的定值条目 tags: - SCD服务接口 /screen/scd/ied/goose_ctrlblock/receive: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的接收GOOSE控制块端子列表 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的接收GOOSE控制块端子列表 tags: - SCD服务接口 /screen/scd/ied/goose_ctrlblock/sendfcdalist: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的指定GOOSE控制块端子列表 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string - description: GOOSE控制块ID in: query name: ctrlid required: true type: integer produces: - application/json responses: {} summary: 获取指定IED的指定GOOSE控制块端子列表 tags: - SCD服务接口 /screen/scd/ied/inputs: get: consumes: - application/x-www-form-urlencoded description: 获取IED的虚端子关系 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 主装置名称 in: query name: ied_name required: true type: string - description: 输出IED装置名称 in: query name: m_ied_name required: true type: string - description: 输入IED装置名称 in: query name: s_ied_name required: true type: string - description: 输出控制块ID in: query name: m_ctrlid required: true type: string - description: 输入控制块ID in: query name: s_ctrlid required: true type: string produces: - application/json responses: {} summary: 获取IED的虚端子关系 tags: - SCD服务接口 /screen/scd/ied/netaddr: get: consumes: - application/x-www-form-urlencoded description: 获取SCD中配置的所有设备网络地址 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer produces: - application/json responses: {} summary: 获取SCD中配置的所有设备网络地址 tags: - SCD服务接口 /screen/scd/ied/network/info: get: consumes: - application/x-www-form-urlencoded description: 获取IED网络配置信息 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取IED网络配置信息 tags: - SCD服务接口 /screen/scd/ied/pointtable: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的定值条目 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: IED装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的信息点表 tags: - SCD服务接口 /screen/scd/ied/ref/ctrlblock: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的关联IED控制块信息 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的关联IED控制块信息 tags: - SCD服务接口 /screen/scd/ied/relation: get: consumes: - application/x-www-form-urlencoded description: 获取IED关联关系 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取IED关联关系 tags: - SCD服务接口 /screen/scd/ied/smv_ctrlblock/receive: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的接收SMV控制块端子列表 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的接收SMV控制块端子列表 tags: - SCD服务接口 /screen/scd/ied/smv_ctrlblock/sendfcdalist: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的指定SMV控制块端子列表 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 装置名称 in: query name: ied_name required: true type: string - description: SMV控制块ID in: query name: ctrlid required: true type: integer produces: - application/json responses: {} summary: 获取指定IED的指定SMV控制块端子列表 tags: - SCD服务接口 /screen/scd/ied/sourcexml: get: consumes: - application/x-www-form-urlencoded description: 获取指定IED的源XML parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: IED装置名称 in: query name: ied_name required: true type: string produces: - application/json responses: {} summary: 获取指定IED的源XML tags: - SCD服务接口 /screen/scd/info: get: consumes: - application/x-www-form-urlencoded description: 获取scd详细信息 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: SCD名称 in: query name: scdname type: string - description: SCD路径 in: query name: scdpath type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取scd详细信息 tags: - SCD服务接口 /screen/scd/ldevice/list: get: consumes: - application/x-www-form-urlencoded description: 获取指定accessPoint下的Ldevice节点列表 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 访问点ID in: query name: accessPointId required: true type: integer produces: - application/json responses: {} summary: 获取指定accessPoint下的Ldevice节点列表 tags: - SCD服务接口 /screen/scd/line/sourcexml: get: consumes: - application/x-www-form-urlencoded description: 获取指定行号的源XML,每次获取指定行的前后各100行源数据 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 行号 in: query name: lineno required: true type: integer produces: - application/json responses: {} summary: 获取指定行号的源XML tags: - SCD服务接口 /screen/scd/list: get: consumes: - application/x-www-form-urlencoded description: 获取scd列表 parameters: - description: 变电站ID in: query name: stationid required: true type: integer - description: 当前页码。默认为1 in: query name: pageno required: true type: integer - description: 每页显示数据数。默认为50 in: query name: pagesize required: true type: integer - description: SCD名称 in: query name: name type: string - description: 是否在运版SCD in: query name: enable type: integer - description: 是否管控scd in: query name: ischeckinscd type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取scd列表 tags: - SCD服务接口 /screen/scd/node/attrs: get: consumes: - application/x-www-form-urlencoded description: 获取scd节点属性 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: SCD节点ID in: query name: node_id required: true type: integer - description: SCD装置名称 in: query name: ied_name type: string produces: - application/json responses: {} summary: 获取scd节点属性 tags: - SCD服务接口 /screen/scd/node/children/stat: get: consumes: - application/x-www-form-urlencoded description: 统计指定节点的下级节点类型及数量 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: SCD节点ID in: query name: node_id required: true type: integer produces: - application/json responses: {} summary: 统计指定节点的下级节点类型及数量 tags: - SCD服务接口 /screen/scd/node/list: get: consumes: - application/x-www-form-urlencoded description: 获取scd节点列表 parameters: - description: SCD文件ID in: query name: scd_id required: true type: integer - description: 当前页码。默认为1 in: query name: pageno required: true type: integer - description: 每页的数据条数。默认为20 in: query name: pagesize required: true type: integer - description: 父节点ID in: query name: parent_node_id type: integer - description: 节点Name in: query name: name type: string - description: 装置Name in: query name: ied_name type: string produces: - application/json responses: {} summary: 获取scd节点列表 tags: - SCD服务接口 /screen/scd/tmp_parse: post: consumes: - application/x-www-form-urlencoded description: 临时scd解析 parameters: - description: 变电站ID in: formData name: station_id required: true type: integer - description: SCD名称 in: formData name: scdname type: string - description: SCD路径 in: formData name: scdpath type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 临时scd解析 tags: - SCD服务接口 /screen/scd/unlock: post: consumes: - application/x-www-form-urlencoded description: 强制解除scd文件锁定状态 parameters: - description: SCD文件ID in: formData name: scd_id required: true type: integer - description: 签入流程ID in: formData name: flow_run_id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 强制解除scd文件锁定状态 tags: - SCD服务接口 /searchUserInfo: get: consumes: - application/x-www-form-urlencoded description: 查询用户 parameters: - description: 姓名 in: query name: name type: integer - description: 分页页码,默认为1 in: query name: pageindex type: integer - description: 每页最大记录数,默认为20 in: query name: pagesize type: integer - description: 区域ID in: query name: area_id type: integer - description: 角色ID in: query name: role_id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.WarpOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.WarpError' summary: 搜索查询用户 tags: - 基础服务接口 /sys/alarm/list: get: consumes: - application/x-www-form-urlencoded description: 获取系统告警列表 parameters: - description: 当前查询的分页页码,默认为1 in: query name: pageindex type: integer - description: 每页显示的数据条数,默认为20 in: query name: pagesize type: integer - description: 查询条件:结束日期 in: query name: enddate type: string - description: 查询条件:开始日期 in: query name: startdate type: string - description: 查询条件:事件类型。关联系统字典代码log_eventtype。 in: query name: eventtype type: integer - description: 查询条件:告警类型。值为disk|cpu|mem之一。 in: query name: alarmtype type: string - description: 查询条件:告警内容。模糊查询 in: query name: description type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取系统告警列表 tags: - 基础服务接口 /sys/init: post: responses: {} summary: 初始化系统数据 /test: get: consumes: - application/x-www-form-urlencoded description: 这是一个测试接口 produces: - application/json responses: {} summary: 这是一个测试接口 tags: - 测试 /uploadfile: post: consumes: - application/x-www-form-urlencoded description: 上传文件 parameters: - description: 文件流 in: formData name: file required: true type: file - description: 变电站ID in: formData name: station_id required: true type: integer - description: 是否是管控文档 in: formData name: is_checkin type: integer - description: 业务类型。值为:a_scd|ccd|icd|cid|空。 in: formData name: data_type type: string - description: 文件类别。值关联系统字典file_types或者为空。 in: formData name: attachment_type type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 上传文件 tags: - 文件/附件服务接口 /version/check_client: get: responses: {} summary: 获取最新客户端版本下载地址 /version/isnew: get: responses: {} summary: 检查是否有新的客户端版本 /ws/getconnect: get: consumes: - application/x-www-form-urlencoded description: 获取ws长连接地址 parameters: - description: WS连接地址获取接口地址 in: query name: ws_url required: true type: string - description: token获取接口地址 in: query name: token_url required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controllers.ResultOK' "500": description: Internal Server Error schema: $ref: '#/definitions/controllers.ResultError' summary: 获取ws长连接地址 tags: - 基础服务接口 swagger: "2.0"