You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2490 lines
80 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag
package docs
import (
"bytes"
"encoding/json"
"strings"
"github.com/alecthomas/template"
"github.com/swaggo/swag"
)
var doc = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{.Description}}",
"title": "{{.Title}}",
"contact": {
"name": "API Support",
"url": "http://www.swagger.io/support",
"email": "support@swagger.io"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/support/accessSystem/AddAccessSystemInfo": {
"post": {
"description": "增加接入系统",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "增加接入系统",
"parameters": [
{
"type": "string",
"description": "系统名称",
"name": "appName",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "系统编码",
"name": "appCode",
"in": "formData",
"required": true
},
{
"type": "integer",
"description": "排序号",
"name": "sortId",
"in": "formData"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appName",
"appCode"
],
"x-lengthlimit": [
{
"appName": "2,30"
},
{
"appCode": "2,20"
}
],
"x-sort": [
1
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/DeleteAccessSystemInfo": {
"post": {
"description": "删除接入系统",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "删除接入系统",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId"
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
3
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/EmptyAccessSystemIntegratedInfo": {
"post": {
"description": "清空接入系统的集成信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "清空接入系统的集成信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"orgId"
],
"x-lengthlimit": [
{
"orgId": "36,36"
}
],
"x-sort": [
8
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/EmptyAccessSystemSsoInfo": {
"post": {
"description": "清空接入系统的统一认证信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "清空接入系统的统一认证信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"orgId"
],
"x-lengthlimit": [
{
"orgId": "36,36"
}
],
"x-sort": [
8
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/GetAccessSystemIdentityPositionInfo": {
"get": {
"description": "获取接入系统的身份信息和职务信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取接入系统的身份信息和职务信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId"
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
9
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/GetAccessSystemIntegratedInfo": {
"get": {
"description": "获取接入系统的集成信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取接入系统的集成信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId"
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
6
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/GetAccessSystemRangeInfo": {
"get": {
"description": "获取接入系统的使用范围",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取接入系统的使用范围",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId"
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
5
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/GetAccessSystemSsoInfo": {
"get": {
"description": "获取接入系统的统一认证信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取接入系统的统一认证信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId"
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
6
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/GetAccessSystemStageInfo": {
"get": {
"description": "获取接入系统的学段信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取接入系统的学段信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId"
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
9
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/GetPositionTreeInfo": {
"get": {
"description": "获取职务树信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取职务树信息",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-removeswaggerfield": [
"id_int",
"b_use",
"last_updated_time",
"postion_flag"
],
"x-sort": [
11
]
},
"post": {
"description": "登录",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"登录"
],
"summary": "登录",
"parameters": [
{
"type": "string",
"description": "登录名",
"name": "loginName",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "登录密码",
"name": "loginPwd",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
}
}
},
"/support/accessSystem/PageAccessSystemInfo": {
"get": {
"description": "获取接入系统列表",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "获取接入系统列表",
"parameters": [
{
"type": "integer",
"description": "第几页",
"name": "page",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "一页显示多少条",
"name": "limit",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"page",
"limit"
],
"x-intrangelimit": [
{
"page": "1,1000"
},
{
"limit": "1,1000"
}
],
"x-sort": [
0
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/SettingAccessSystemIdentityPositionInfo": {
"post": {
"description": "设置接入系统的身份信息和职务信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "设置接入系统的身份信息和职务信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
},
{
"type": "integer",
"description": "教师身份是否可用 1可用 2不可用 3部分职位可用",
"name": "teacherFlag",
"in": "formData",
"required": true
},
{
"type": "integer",
"description": "学生身份是否可用 1可用 2不可用",
"name": "studentFlag",
"in": "formData",
"required": true
},
{
"type": "integer",
"description": "家长身份是否可用 1可用 2不可用",
"name": "parentFlag",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "职务ID,多个用逗号分隔",
"name": "positionIds",
"in": "formData"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId",
"teacherFlag",
"studentFlag",
"parentFlag"
],
"x-intrangelimit": [
{
"teacherFlag": "1,3"
},
{
"studentFlag": "1,2"
},
{
"parentFlag": "1,2"
}
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
10
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/SettingAccessSystemIntegratedInfo": {
"post": {
"description": "设置接入系统的集成信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "设置接入系统的集成信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "接入系统在集成页面的调用地址",
"name": "appUrl",
"in": "formData",
"required": true
},
{
"type": "file",
"description": "接入系统在集成页面的图标",
"name": "appIcon",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId",
"redirectUri"
],
"x-lengthlimit": [
{
"appId": "36,36"
},
{
"redirectUri": "2,300"
},
{
"logoutUri": "2,300"
}
],
"x-sort": [
7
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/SettingAccessSystemRange": {
"post": {
"description": "设置接入系统的使用范围",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "设置接入系统的使用范围",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "使用范围的行政区划码、单位ID多个用逗号分隔",
"name": "rangeCode",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"orgId",
"rangeCode"
],
"x-lengthlimit": [
{
"orgId": "36,36"
},
{
"rangeCode": "1,3700"
}
],
"x-sort": [
4
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/SettingAccessSystemSsoInfo": {
"post": {
"description": "设置接入系统的统一认证信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "设置接入系统的统一认证信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "统一认证回调地址",
"name": "redirectUri",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "统一认证登出地址",
"name": "logoutUri",
"in": "formData"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId",
"redirectUri"
],
"x-lengthlimit": [
{
"appId": "36,36"
},
{
"redirectUri": "2,300"
},
{
"logoutUri": "2,300"
}
],
"x-sort": [
7
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/SettingAccessSystemStageInfo": {
"post": {
"description": "设置接入系统的身份信息和职务信息",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "设置接入系统的身份信息和职务信息",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
},
{
"type": "integer",
"description": "学段ID,多个用逗号分隔,如果是通用传-1",
"name": "stageIds",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId",
"stageIds"
],
"x-intrangelimit": [
{
"teacherFlag": "1,3"
},
{
"studentFlag": "1,2"
},
{
"parentFlag": "1,2"
}
],
"x-lengthlimit": [
{
"appId": "36,36"
}
],
"x-sort": [
10
],
"x-tablename": [
"t_app_base"
]
}
},
"/support/accessSystem/UpdateAccessSystemInfo": {
"post": {
"description": "修改接入系统",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"接入系统"
],
"summary": "修改接入系统",
"parameters": [
{
"type": "string",
"description": "系统ID",
"name": "appId",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "系统名称",
"name": "appName",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "系统编码",
"name": "appCode",
"in": "formData",
"required": true
},
{
"type": "integer",
"description": "排序号",
"name": "sortId",
"in": "formData"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"x-emptylimit": [
"appId",
"appName",
"appCode"
],
"x-lengthlimit": [
{
"appId": "36,36"
},
{
"appName": "2,30"
},
{
"appCode": "2,20"
}
],
"x-sort": [
2
],
"x-tablename": [
"t_app_base"
]
}
},
"/v1/openapi/dataaccess/CreateDataaccess": {
"post": {
"description": "创建数据订阅",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"dataaccess"
],
"summary": "创建数据订阅",
"operationId": "createDataaccess",
"parameters": [
{
"description": "数据订阅",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DataaccessSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/dataaccess/DeleteDataaccess/{id}": {
"post": {
"description": "删除数据订阅",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"dataaccess"
],
"summary": "删除数据订阅",
"operationId": "deleteDataaccess",
"parameters": [
{
"type": "string",
"description": "数据订阅ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/dataaccess/ReadDataaccess": {
"post": {
"description": "获取元数据列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"dataaccess"
],
"summary": "获取数据订阅列表",
"operationId": "readDataaccess",
"parameters": [
{
"description": "数据订阅",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DataaccessSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/dataaccess/UpdateDataaccess/{id}": {
"post": {
"description": "修改数据订阅",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"dataaccess"
],
"summary": "修改数据订阅",
"operationId": "updateDataaccess",
"parameters": [
{
"type": "string",
"description": "数据订阅ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "数据订阅",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DataaccessSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/dataerror/DeleteDataerror/{id}": {
"post": {
"description": "删除数据异常",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"dataerror"
],
"summary": "删除数据异常",
"operationId": "deleteDataerror",
"parameters": [
{
"type": "string",
"description": "数据异常ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/dataerror/ReadDataerror": {
"post": {
"description": "获取数据异常列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"dataerror"
],
"summary": "获取数据异常列表",
"operationId": "readDataerror",
"parameters": [
{
"description": "数据异常",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DataerrorSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/datasource/CreateDatasource": {
"post": {
"description": "创建数据源",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"datasource"
],
"summary": "创建数据源",
"operationId": "createDatasource",
"parameters": [
{
"description": "数据源",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DatasourceSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/datasource/DeleteDatasource/{id}": {
"post": {
"description": "删除数据源",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"datasource"
],
"summary": "删除数据源",
"operationId": "deleteDatasource",
"parameters": [
{
"type": "string",
"description": "数据源ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/datasource/ReadDatasource": {
"post": {
"description": "获取数据源列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"datasource"
],
"summary": "获取数据源列表",
"operationId": "readDatasource",
"parameters": [
{
"description": "数据源",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DatasourceSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/datasource/ReadESDoc": {
"post": {
"description": "获取es数据列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"datasource"
],
"summary": "获取es数据列表",
"operationId": "readESDoc",
"parameters": [
{
"description": "es数据",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DatasourceESSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/datasource/UpdateDatasource/{id}": {
"post": {
"description": "修改数据源",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"datasource"
],
"summary": "修改数据源",
"operationId": "updateDatasource",
"parameters": [
{
"type": "string",
"description": "数据源ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "数据源",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DatasourceSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/datastatistic/ReadESDocAmount": {
"post": {
"description": "获取数据源列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"datasource"
],
"summary": "获取数据源列表",
"operationId": "readDatasource",
"parameters": [
{
"description": "数据源",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.DatasourceSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/jyt2012/CreateJyt2012": {
"post": {
"description": "创建标准字典",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"jyt2012"
],
"summary": "创建标准字典",
"operationId": "createJyt2012",
"parameters": [
{
"description": "标准字典",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.Jyt2012Swag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/jyt2012/DeleteJyt2012/{id}": {
"post": {
"description": "删除标准字典",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"jyt2012"
],
"summary": "删除标准字典",
"operationId": "deleteJyt2012",
"parameters": [
{
"type": "string",
"description": "标准字典ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/jyt2012/ReadJyt2012": {
"post": {
"description": "获取标准字典列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"jyt2012"
],
"summary": "获取标准字典列表",
"operationId": "readJyt2012",
"parameters": [
{
"description": "标准字典",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.Jyt2012Swag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/jyt2012/UpdateJyt2012/{id}": {
"post": {
"description": "修改标准字典",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"jyt2012"
],
"summary": "修改标准字典",
"operationId": "updateJyt2012",
"parameters": [
{
"type": "string",
"description": "标准字典ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "标准字典",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.Jyt2012Swag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/metadata/CreateMetadata": {
"post": {
"description": "创建元数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"metadata"
],
"summary": "创建元数据",
"operationId": "createMetadata",
"parameters": [
{
"description": "元数据",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.MetadataSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/metadata/CreateMetadataES": {
"post": {
"description": "创建ES元数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"metadata"
],
"summary": "创建ES元数据",
"operationId": "createMetadataES",
"parameters": [
{
"description": "ES元数据",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.MetadataESSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/metadata/DeleteMetadata/{id}": {
"post": {
"description": "删除元数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"metadata"
],
"summary": "删除元数据",
"operationId": "deleteMetadata",
"parameters": [
{
"type": "string",
"description": "元数据ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/metadata/ReadMetadata": {
"post": {
"description": "获取元数据列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"metadata"
],
"summary": "获取元数据列表",
"operationId": "readMetadata",
"parameters": [
{
"description": "元数据",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.MetadataSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/metadata/UpdateMetadata/{id}": {
"post": {
"description": "修改元数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"metadata"
],
"summary": "修改元数据",
"operationId": "updateMetadata",
"parameters": [
{
"type": "string",
"description": "元数据ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "元数据",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.MetadataSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/orgtree/CreateOrgtree": {
"post": {
"description": "创建机构",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"orgtree"
],
"summary": "创建机构",
"operationId": "createOrgtree",
"parameters": [
{
"description": "机构",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.OrgtreeSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/orgtree/DeleteOrgtree/{id}": {
"post": {
"description": "删除机构",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"orgtree"
],
"summary": "删除机构",
"operationId": "deleteOrgtree",
"parameters": [
{
"type": "string",
"description": "机构ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/orgtree/ReadOrgtree": {
"post": {
"description": "获取机构列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"orgtree"
],
"summary": "获取机构列表",
"operationId": "readOrgtree",
"parameters": [
{
"description": "机构",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.OrgtreeSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
},
"/v1/openapi/orgtree/UpdateOrgtree/{id}": {
"post": {
"description": "修改机构",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"orgtree"
],
"summary": "修改机构",
"operationId": "updateOrgtree",
"parameters": [
{
"type": "string",
"description": "机构ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "机构",
"name": "input",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MySwagger.OrgtreeSwag"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/MySwagger.Result"
}
}
}
}
}
},
"definitions": {
"Model.Res": {
"type": "object",
"properties": {
"count": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"list": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"message": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"parentFlag": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"positionList": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"studentFlag": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"success": {
"type": "object"
},
"teacherFlag": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
}
}
},
"MySwagger.DataaccessSwag": {
"type": "object",
"properties": {
"change_time": {
"type": "string"
},
"consume_orgid": {
"type": "string"
},
"consume_systemid": {
"type": "string"
},
"consume_type": {
"type": "integer"
},
"create_time": {
"type": "string"
},
"datasource_id": {
"type": "string"
},
"delete_flag": {
"type": "integer"
},
"delete_time": {
"type": "string"
},
"enable_flag": {
"type": "integer"
},
"page": {
"type": "integer",
"example": 1
},
"query_flag": {
"type": "integer"
},
"set_flag": {
"type": "integer"
}
}
},
"MySwagger.DataerrorSwag": {
"type": "object",
"properties": {
"change_time": {
"type": "string"
},
"create_time": {
"type": "string"
},
"data_content": {
"type": "string"
},
"data_id": {
"type": "string"
},
"datasource_id": {
"type": "string"
},
"delete_flag": {
"type": "integer"
},
"delete_time": {
"type": "string"
},
"enable_flag": {
"type": "integer"
},
"file_uri": {
"type": "string"
},
"org_id": {
"type": "string"
},
"page": {
"type": "integer",
"example": 1
},
"system_id": {
"type": "string"
}
}
},
"MySwagger.DatasourceESSwag": {
"type": "object",
"properties": {
"begin_time": {
"type": "string"
},
"conditions": {
"type": "object",
"additionalProperties": true
},
"datasource_code": {
"type": "string"
},
"orgids": {
"type": "array",
"items": {
"type": "string"
}
},
"page": {
"type": "integer",
"example": 1
},
"sort": {
"type": "object",
"additionalProperties": true
}
}
},
"MySwagger.DatasourceSwag": {
"type": "object",
"properties": {
"collect_flag": {
"type": "integer"
},
"datasource_code": {
"type": "string"
},
"datasource_detail": {
"type": "string"
},
"datasource_name": {
"type": "string"
},
"datastore_type": {
"type": "integer"
},
"delete_flag": {
"type": "integer"
},
"dic_id": {
"type": "string"
},
"enable_flag": {
"type": "integer"
},
"page": {
"type": "integer",
"example": 1
},
"provide_orgid": {
"type": "string"
},
"provide_type": {
"type": "integer"
},
"set_flag": {
"type": "integer"
},
"system_id": {
"type": "string"
}
}
},
"MySwagger.Jyt2012Swag": {
"type": "object",
"properties": {
"change_time": {
"type": "string"
},
"create_time": {
"type": "string"
},
"delete_flag": {
"type": "integer"
},
"delete_time": {
"type": "string"
},
"dic_info": {
"type": "string"
},
"dic_name": {
"type": "string"
},
"dic_type": {
"type": "integer"
},
"enable_flag": {
"type": "integer"
},
"id": {
"type": "string"
},
"jyt_flag": {
"type": "integer"
},
"page": {
"type": "integer",
"example": 1
},
"parent_id": {
"type": "string"
},
"root_flag": {
"type": "integer"
}
}
},
"MySwagger.MetadataESSwag": {
"type": "object",
"properties": {
"index_name": {
"type": "string"
}
}
},
"MySwagger.MetadataSwag": {
"type": "object",
"properties": {
"check_dic": {
"type": "integer"
},
"check_exist": {
"type": "integer"
},
"check_name": {
"type": "integer"
},
"check_pattern": {
"type": "integer"
},
"check_type": {
"type": "integer"
},
"datasource_id": {
"type": "string"
},
"delete_flag": {
"type": "integer"
},
"dic_id": {
"type": "string"
},
"enable_flag": {
"type": "integer"
},
"id": {
"type": "string"
},
"item_info": {
"type": "string"
},
"item_length": {
"type": "integer"
},
"item_name": {
"type": "string"
},
"item_pattern": {
"type": "string"
},
"item_type": {
"type": "string"
},
"page": {
"type": "integer",
"example": 1
}
}
},
"MySwagger.OrgtreeSwag": {
"type": "object",
"properties": {
"area_id": {
"type": "string"
},
"cat_id": {
"type": "string"
},
"change_time": {
"type": "string"
},
"city_id": {
"type": "string"
},
"create_time": {
"type": "string"
},
"delete_flag": {
"type": "integer"
},
"delete_time": {
"type": "string"
},
"enable_flag": {
"type": "integer"
},
"id": {
"type": "string"
},
"link_id": {
"type": "string"
},
"linksystem_id": {
"type": "string"
},
"org_name": {
"type": "string"
},
"org_type": {
"type": "integer"
},
"page": {
"type": "integer",
"example": 1
},
"parent_id": {
"type": "string"
},
"province_id": {
"type": "string"
}
}
},
"MySwagger.Result": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"fail": {
"type": "boolean",
"example": false
},
"message": {
"type": "string",
"example": "操作成功"
},
"success": {
"type": "boolean",
"example": true
},
"total": {
"type": "integer",
"example": 120
}
}
}
}
}`
type swaggerInfo struct {
Version string
Host string
BasePath string
Schemes []string
Title string
Description string
}
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = swaggerInfo{
Version: "1.0",
Host: "127.0.0.1:8005",
BasePath: "",
Schemes: []string{},
Title: "基础数据API",
Description: "分布式,大并发,高可用",
}
type s struct{}
func (s *s) ReadDoc() string {
sInfo := SwaggerInfo
sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
t, err := template.New("swagger_info").Funcs(template.FuncMap{
"marshal": func(v interface{}) string {
a, _ := json.Marshal(v)
return string(a)
},
}).Parse(doc)
if err != nil {
return doc
}
var tpl bytes.Buffer
if err := t.Execute(&tpl, sInfo); err != nil {
return doc
}
return tpl.String()
}
func init() {
swag.Register(swag.Name, &s{})
}