// 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/DisableAccessSystemInfo": { "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": [ 5 ], "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": [ 13 ], "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": [ 10 ], "x-tablename": [ "t_app_base" ] } }, "/support/accessSystem/EnableAccessSystemInfo": { "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": [ 4 ], "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": [ 15 ], "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": [ 11 ], "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": [ 6 ], "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": [ 8 ], "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": [ 17 ], "x-tablename": [ "t_app_base" ] } }, "/support/accessSystem/GetOrganizationList": { "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 }, { "type": "string", "description": "行政区划码", "name": "areaCode", "in": "query", "required": true }, { "type": "integer", "description": "单位类型 -1:全部 1:教育局 2:学校 7:教辅单位", "name": "orgType", "in": "query", "required": true }, { "type": "string", "description": "行政区划码", "name": "orgName", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "x-emptylimit": [ "page", "limit", "areaCode" ], "x-lengthlimit": [ { "areaCode": "6,6" } ], "x-sort": [ 20 ] } }, "/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": [ 14 ] }, "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/PageGovArea": { "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 }, { "type": "string", "description": "行政区划码", "name": "areaCode", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "x-emptylimit": [ "page", "limit", "areaCode" ], "x-intlimit": [ "page", "limit", "areaCode" ], "x-lengthlimit": [ { "areaCode": "6,6" } ], "x-sort": [ 19 ] } }, "/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": [ 16 ], "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": "string", "description": "图标", "name": "appIcon", "in": "formData", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "x-emptylimit": [ "appId", "appUrl", "appIcon" ], "x-lengthlimit": [ { "appId": "36,36" } ], "x-sort": [ 12 ] } }, "/support/accessSystem/SettingAccessSystemRangeInfo": { "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": [ 7 ], "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": [ 9 ], "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": [ 18 ], "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" ] } }, "/support/accessSystem/UploadIconFile": { "post": { "description": "上传图标", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "接入系统" ], "summary": "上传图标", "parameters": [ { "type": "file", "description": "图标", "name": "appIcon", "in": "formData", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } } } }, "/support/account/currentUser": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "account" ], "summary": "当前登陆者信息", "operationId": "currentUser", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MySwagger.Result" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/MySwagger.Result" } } } } }, "/support/account/isLogin": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "account" ], "summary": "是否已登陆", "operationId": "currentUser", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MySwagger.Result" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/MySwagger.Result" } } } } }, "/support/account/login": { "post": { "description": "json:\"username\" xorm:\"not null comment('账号') VARCHAR(100)\" example:\"example\"\njson:\"password\" xorm:\"not null comment('密码') VARCHAR(100)\" example:\"123456\"", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "account" ], "summary": "后台登陆", "operationId": "loginAccount", "parameters": [ { "description": "账号密码", "name": "input", "in": "body", "required": true, "schema": { "$ref": "#/definitions/MySwagger.AccountSwag" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MySwagger.Result" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/MySwagger.Result" } } } } }, "/support/account/logout": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "account" ], "summary": "登出", "operationId": "currentUser", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MySwagger.Result" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/MySwagger.Result" } } } } }, "/support/dataaccess/CreateDataaccess": { "post": { "description": "` + "`" + `*` + "`" + `json:\"datasource_id\" xorm:\"not null comment('数据源ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\n` + "`" + `*` + "`" + `json:\"datasource_code\" xorm:\"comment('数据源编码') default 'NULL' VARCHAR(255)\"\n` + "`" + `*` + "`" + `json:\"` + "`" + `source_systemid` + "`" + `\" xorm:\"not null comment('源系统编码') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\n` + "`" + `*` + "`" + `json:\"` + "`" + `consume_systemid` + "`" + `\" xorm:\"not null comment('数据使用系统编码') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"query_flag\" xorm:\"not null default 1 comment('可查【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"set_flag\" xorm:\"not null default -1 comment('可修改【1:是,-1:否】') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"consume_type\" xorm:\"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)\" example:\"-1\"\n` + "`" + `*` + "`" + `json:\"consume_orgid\" xorm:\"not null comment('使用数据机构ID【-1:不限制】') index VARCHAR(36)\" example:\"-1\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/dataaccess/DeleteDataaccess/{id}": { "post": { "description": "` + "`" + `*` + "`" + `json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"", "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" } } } } }, "/support/dataaccess/GetDataaccess/{id}": { "post": { "description": "` + "`" + `json:\"id\" xorm:\"not null comment('ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"` + "`" + `", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "dataaccess" ], "summary": "获取数据订阅详情", "operationId": "readDataaccess", "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" } } } } }, "/support/dataaccess/ReadDataaccess": { "post": { "description": "json:\"datasource_id\" xorm:\"not null comment('数据源ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"datasource_code\" xorm:\"comment('数据源编码') default 'NULL' VARCHAR(255)\"\njson:\"` + "`" + `source_systemid` + "`" + `\" xorm:\"not null comment('源系统编码') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"` + "`" + `consume_systemid` + "`" + `\" xorm:\"not null comment('数据使用系统编码') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"query_flag\" xorm:\"not null default 1 comment('可查【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"set_flag\" xorm:\"not null default -1 comment('可修改【1:是,-1:否】') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"consume_type\" xorm:\"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)\" example:\"-1\"\n` + "`" + `*` + "`" + `json:\"consume_orgid\" xorm:\"not null comment('使用数据机构ID【-1:不限制】') index VARCHAR(36)\" example:\"-1\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"\njson:\"page\" example:\"1\"` + "`" + `", "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" } } } } }, "/support/dataaccess/UpdateDataaccess/{id}": { "post": { "description": "json:\"datasource_id\" xorm:\"not null comment('数据源ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"datasource_code\" xorm:\"comment('数据源编码') default 'NULL' VARCHAR(255)\"\njson:\"` + "`" + `source_systemid` + "`" + `\" xorm:\"not null comment('源系统编码') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"` + "`" + `consume_systemid` + "`" + `\" xorm:\"not null comment('数据使用系统编码') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"query_flag\" xorm:\"not null default 1 comment('可查【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"set_flag\" xorm:\"not null default -1 comment('可修改【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"consume_type\" xorm:\"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)\" example:\"-1\"\njson:\"consume_orgid\" xorm:\"not null comment('使用数据机构ID【-1:不限制】') index VARCHAR(36)\" example:\"-1\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/dataerror/DeleteDataerror/{id}": { "post": { "description": "` + "`" + `*` + "`" + `json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"", "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" } } } } }, "/support/dataerror/ReadDataerror": { "post": { "description": "json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"\njson:\"` + "`" + `system_id` + "`" + `\" xorm:\"not null comment('数据提供系统编码') VARCHAR(36)\"\njson:\"` + "`" + `datasource_id` + "`" + `\" xorm:\"not null comment('数据源编码') VARCHAR(36)\"\njson:\"` + "`" + `org_id` + "`" + `\" xorm:\"not null comment('数据机构ID【输入参数】') VARCHAR(36)\"\njson:\"data_id\" xorm:\"not null comment('数据ID【输入参数】') VARCHAR(36)\"\njson:\"data_content\" xorm:\"default 'NULL' comment('数据内容【Json格式输入参数】') VARCHAR\"\njson:\"file_uri\" xorm:\"default 'NULL' comment('文件地址【文件交换】') VARCHAR(500)\"\njson:\"error_info\" xorm:\"default 'NULL' comment('错误信息说明') VARCHAR(5000)\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\"\njson:\"page\" example:\"1\"", "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" } } } } }, "/support/datasource/CreateDatasource": { "post": { "description": "` + "`" + `*` + "`" + `json:\"` + "`" + `system_id` + "`" + `\" xorm:\"not null comment('数据提供系统编码') index VARCHAR(36)\" example:\"1C0F6832-65C6-4888-BDDE-A3373B11499D\"\n` + "`" + `*` + "`" + `json:\"datasource_name\" xorm:\"not null comment('数据源名称') VARCHAR(100)\" example:\"组织机构信息\"\n` + "`" + `*` + "`" + `json:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"\njson:\"datasource_detail\" xorm:\"default 'NULL' comment('数据源说明') VARCHAR(500)\" example:\"教育主管单位、教辅单位、各级各类学校机构信息\"\njson:\"set_flag\" xorm:\"not null default 1 comment('可修改【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"collect_flag\" xorm:\"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"provide_type\" xorm:\"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)\" example:\"2\"\n` + "`" + `*` + "`" + `json:\"provide_orgid\" xorm:\"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)\" example:\"-1\"\n` + "`" + `*` + "`" + `json:\"datastore_type\" xorm:\"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)\" example:\"2\"\njson:\"dic_id, omitempty\" xorm:\"default 'NULL' comment('数据字典ID') index VARCHAR(36)\" example:\"1C0F6832-65C6-4888-BDDE-A3373B11499D\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/datasource/DeleteDatasource/{id}": { "post": { "description": "` + "`" + `*` + "`" + `json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"", "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" } } } } }, "/support/datasource/GetESDoc": { "post": { "description": "` + "`" + `*` + "`" + `json:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"\njson:\"` + "`" + `orgids` + "`" + `\" xorm:\"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') VARCHAR(36)\" example:\"[F38BD0DB-0142-4356-8F2B-623813FC2578,F38BD0DB-0142-4356-8F2B-623813FC2578]\"\njson:\"begin_time\" example:\"2020-06-22 17:26:53\"` + "`" + `\njson:\"conditions\" example:\"\"\njson:\"sort\" example:\"\"\n` + "`" + `*` + "`" + `json:\"data_id\" example:\"CfBQnRJPyXMEI5nqLT0\"", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "datasource" ], "summary": "获取es数据", "operationId": "getESDoc", "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" } } } } }, "/support/datasource/ReadDatasource": { "post": { "description": "json:\"` + "`" + `system_id` + "`" + `\" xorm:\"not null comment('数据提供系统编码') index VARCHAR(36)\" example:\"1C0F6832-65C6-4888-BDDE-A3373B11499D\"\njson:\"datasource_name\" xorm:\"not null comment('数据源名称') VARCHAR(100)\" example:\"组织机构信息\"\njson:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"\njson:\"datasource_detail\" xorm:\"default 'NULL' comment('数据源说明') VARCHAR(500)\" example:\"教育主管单位、教辅单位、各级各类学校机构信息\"\njson:\"set_flag\" xorm:\"not null default 1 comment('可修改【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"collect_flag\" xorm:\"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"provide_type\" xorm:\"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)\" example:\"2\"\njson:\"provide_orgid\" xorm:\"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)\" example:\"-1\"\njson:\"datastore_type\" xorm:\"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)\" example:\"2\"\njson:\"dic_id, omitempty\" xorm:\"default 'NULL' comment('数据字典ID') index VARCHAR(36)\" example:\"1C0F6832-65C6-4888-BDDE-A3373B11499D\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"\njson:\"page\" example:\"1\"", "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" } } } } }, "/support/datasource/ReadESDoc": { "post": { "description": "` + "`" + `*` + "`" + `json:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"\njson:\"` + "`" + `orgids` + "`" + `\" xorm:\"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') VARCHAR(36)\" example:\"[F38BD0DB-0142-4356-8F2B-623813FC2578,F38BD0DB-0142-4356-8F2B-623813FC2578]\"\njson:\"begin_time\" example:\"2020-06-22 17:26:53\"` + "`" + `\njson:\"conditions\" example:\"\"\njson:\"sort\" example:\"\"\njson:\"data_id\" example:\"CfBQnRJPyXMEI5nqLT0\"\njson:\"page\" example:\"1\"", "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" } } } } }, "/support/datasource/UpdateDatasource/{id}": { "post": { "description": "json:\"` + "`" + `system_id` + "`" + `\" xorm:\"not null comment('数据提供系统编码') index VARCHAR(36)\" example:\"1C0F6832-65C6-4888-BDDE-A3373B11499D\"\njson:\"datasource_name\" xorm:\"not null comment('数据源名称') VARCHAR(100)\" example:\"组织机构信息\"\njson:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"\njson:\"datasource_detail\" xorm:\"default 'NULL' comment('数据源说明') VARCHAR(500)\" example:\"教育主管单位、教辅单位、各级各类学校机构信息\"\njson:\"set_flag\" xorm:\"not null default 1 comment('可修改【1:是,-1:否】') INT(11)\" example:\"1\"` + "`" + `\njson:\"collect_flag\" xorm:\"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"provide_type\" xorm:\"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)\" example:\"2\"\njson:\"provide_orgid\" xorm:\"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)\" example:\"-1\"\njson:\"datastore_type\" xorm:\"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)\" example:\"2\"\njson:\"dic_id, omitempty\" xorm:\"default 'NULL' comment('数据字典ID') index VARCHAR(36)\" example:\"1C0F6832-65C6-4888-BDDE-A3373B11499D\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/datastatistic/ReadESDocAmount": { "post": { "description": "获取数据源列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "datastatistic" ], "summary": "获取数据源列表", "operationId": "readESDocAmount", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MySwagger.Result" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/MySwagger.Result" } } } } }, "/support/jyt2012/CreateJyt2012": { "post": { "description": "` + "`" + `*` + "`" + `json:\"dic_name\" xorm:\"not null comment('字典/字典项名称') VARCHAR(100)\" example:\"sex\"\n` + "`" + `*` + "`" + `json:\"dic_value\" xorm:\"not null comment('字典/字典项值') VARCHAR(100)\" example:\"10\"\n` + "`" + `*` + "`" + `json:\"dic_type\" xorm:\"not null default 1 comment('字典类型【1:国标数据、关联数据源,2:国标字典、关联元数据】') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"dic_info\" xorm:\"default ''NULL'' comment('字典项说明') VARCHAR(500)\" example:\"我是字典项说明\"\njson:\"root_flag\" xorm:\"not null default -1 comment('是否是字典【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"jyt_flag\" xorm:\"not null default 1 comment('是否国标【1:是,-1:自定义】') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"parent_id\" xorm:\"default ''NULL'' comment('字典ID【字典项父节点】') VARCHAR(36)\" example:\"38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/jyt2012/DeleteJyt2012/{id}": { "post": { "description": "` + "`" + `*` + "`" + `json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"", "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" } } } } }, "/support/jyt2012/ReadJyt2012": { "post": { "description": "json:\"dic_name\" xorm:\"not null comment('字典/字典项名称') VARCHAR(100)\" example:\"sex\"\njson:\"dic_value\" xorm:\"not null comment('字典/字典项值') VARCHAR(100)\" example:\"10\"\njson:\"dic_type\" xorm:\"not null default 1 comment('字典类型【1:国标数据、关联数据源,2:国标字典、关联元数据】') INT(11)\" example:\"1\"\njson:\"dic_info\" xorm:\"default ''NULL'' comment('字典项说明') VARCHAR(500)\" example:\"我是字典项说明\"\njson:\"root_flag\" xorm:\"not null default -1 comment('是否是字典【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"jyt_flag\" xorm:\"not null default 1 comment('是否国标【1:是,-1:自定义】') INT(11)\" example:\"1\"\njson:\"parent_id\" xorm:\"default ''NULL'' comment('字典ID【字典项父节点】') VARCHAR(36)\" example:\"38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"\njson:\"page\" example:\"1\"", "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" } } } } }, "/support/jyt2012/UpdateJyt2012/{id}": { "post": { "description": "json:\"dic_name\" xorm:\"not null comment('字典/字典项名称') VARCHAR(100)\" example:\"sex\"\njson:\"dic_value\" xorm:\"not null comment('字典/字典项值') VARCHAR(100)\" example:\"10\"\njson:\"dic_type\" xorm:\"not null default 1 comment('字典类型【1:国标数据、关联数据源,2:国标字典、关联元数据】') INT(11)\" example:\"1\"\njson:\"dic_info\" xorm:\"default ''NULL'' comment('字典项说明') VARCHAR(500)\" example:\"我是字典项说明\"\njson:\"root_flag\" xorm:\"not null default -1 comment('是否是字典【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"jyt_flag\" xorm:\"not null default 1 comment('是否国标【1:是,-1:自定义】') INT(11)\" example:\"1\"\njson:\"parent_id\" xorm:\"default ''NULL'' comment('字典ID【字典项父节点】') VARCHAR(36)\" example:\"38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-22 17:26:53\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/metadata/CreateMetadata": { "post": { "description": "` + "`" + `*` + "`" + `json:\"` + "`" + `datasource_id` + "`" + `\" xorm:\"default ''NULL'' comment('数据源编码') index VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"\n` + "`" + `*` + "`" + `json:\"item_name\" xorm:\"not null comment('数据项名称【英文】') VARCHAR(50)\" example:\"org_name\"\njson:\"dic_id\" xorm:\"default ''NULL'' comment('数据字典ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\n` + "`" + `*` + "`" + `json:\"item_type\" xorm:\"default ''NULL'' comment('数据项类型【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)\" example:\"string\"\n` + "`" + `*` + "`" + `json:\"item_length\" xorm:\"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)\" example:\"36\"\n` + "`" + `*` + "`" + `json:\"item_pattern\" xorm:\"default 'NULL' comment('数据项模式') VARCHAR(255)\" example:\"\"\n` + "`" + `*` + "`" + `json:\"item_info\" xorm:\"not null comment('数据项说明') VARCHAR(50)\" example:\"我是数据项说明\"\n` + "`" + `*` + "`" + `json:\"check_name\" xorm:\"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"check_dic\" xorm:\"not null default -1 comment('是否检测字典') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"check_type\" xorm:\"not null default -1 comment('是否检测类型') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"check_pattern\" xorm:\"not null default -1 comment('是否检测模式') INT(11)\" example:\"1\"\n` + "`" + `*` + "`" + `json:\"check_exist\" xorm:\"not null default -1 comment('是否检测必填') INT(11)\" example:\"1\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/metadata/CreateMetadataES": { "post": { "description": "` + "`" + `*` + "`" + `json:\"index_name\" xorm:\"not null comment('ES Index Name') VARCHAR(50)\" example:\"org_tree\"", "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" } } } } }, "/support/metadata/DeleteMetadata/{id}": { "post": { "description": "` + "`" + `*` + "`" + `json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"", "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" } } } } }, "/support/metadata/ReadMetadata": { "post": { "description": "json:\"` + "`" + `datasource_id` + "`" + `\" xorm:\"default ''NULL'' comment('数据源编码') index VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"\njson:\"item_name\" xorm:\"not null comment('数据项名称【英文】') VARCHAR(50)\" example:\"org_name\"\njson:\"dic_id\" xorm:\"default ''NULL'' comment('数据字典ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"item_type\" xorm:\"default ''NULL'' comment('数据项类型【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)\" example:\"string\"\njson:\"item_length\" xorm:\"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)\" example:\"36\"\njson:\"item_pattern\" xorm:\"default 'NULL' comment('数据项模式') VARCHAR(255)\" example:\"\"\njson:\"item_info\" xorm:\"not null comment('数据项说明') VARCHAR(50)\" example:\"我是数据项说明\"\njson:\"check_name\" xorm:\"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"check_dic\" xorm:\"not null default -1 comment('是否检测字典') INT(11)\" example:\"1\"\njson:\"check_type\" xorm:\"not null default -1 comment('是否检测类型') INT(11)\" example:\"1\"\njson:\"check_pattern\" xorm:\"not null default -1 comment('是否检测模式') INT(11)\" example:\"1\"\njson:\"check_exist\" xorm:\"not null default -1 comment('是否检测必填') INT(11)\" example:\"1\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"\njson:\"page\" example:\"1\"", "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" } } } } }, "/support/metadata/UpdateMetadata/{id}": { "post": { "description": "json:\"` + "`" + `datasource_id` + "`" + `\" xorm:\"default ''NULL'' comment('数据源编码') index VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"\njson:\"item_name\" xorm:\"not null comment('数据项名称【英文】') VARCHAR(50)\" example:\"org_name\"\njson:\"dic_id\" xorm:\"default ''NULL'' comment('数据字典ID') index VARCHAR(36)\" example:\"F38BD0DB-0142-4356-8F2B-623813FC2578\"\njson:\"item_type\" xorm:\"default ''NULL'' comment('数据项类型【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)\" example:\"string\"\njson:\"item_length\" xorm:\"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)\" example:\"36\"\njson:\"item_pattern\" xorm:\"default 'NULL' comment('数据项模式') VARCHAR(255)\" example:\"\"\njson:\"item_info\" xorm:\"not null comment('数据项说明') VARCHAR(50)\" example:\"我是数据项说明\"\njson:\"check_name\" xorm:\"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)\" example:\"1\"\njson:\"check_dic\" xorm:\"not null default -1 comment('是否检测字典') INT(11)\" example:\"1\"\njson:\"check_type\" xorm:\"not null default -1 comment('是否检测类型') INT(11)\" example:\"1\"\njson:\"check_pattern\" xorm:\"not null default -1 comment('是否检测模式') INT(11)\" example:\"1\"\njson:\"check_exist\" xorm:\"not null default -1 comment('是否检测必填') INT(11)\" example:\"1\"\njson:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"", "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" } } } } }, "/support/orgtree/CreateOrgtree": { "post": { "description": "创建机构\n` + "`" + `json:\"id\" xorm:\"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"org_name\" xorm:\"not null comment('机构名称') VARCHAR(100)\" example:\"开平区教育局\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"org_type\" xorm:\"not null comment('机构类型【1:教育局、2:学校、3:教辅单位、4:大学区、5:部门、6、主校,7、学段、8:年级、9:班级】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"parent_id\" xorm:\"default ''NULL'' comment('父节点ID') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"cat_id\" xorm:\"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"province_id\" xorm:\"default 'NULL' comment('省编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"city_id\" xorm:\"default 'NULL' comment('地市编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"area_id\" xorm:\"default 'NULL' comment('县区编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `*` + "`" + `json:\"` + "`" + `linksystem_id` + "`" + `\" xorm:\"default 'NULL' comment('源业务系统编码') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"link_id\" xorm:\"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"page\" example:\"1\"` + "`" + `", "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" } } } } }, "/support/orgtree/DeleteOrgtree/{id}": { "post": { "description": "删除机构\n` + "`" + `*` + "`" + `json:\"id\" xorm:\"not null pk comment('ID') VARCHAR(36)\"", "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" } } } } }, "/support/orgtree/ReadOrgtree": { "post": { "description": "获取机构列表\n` + "`" + `json:\"id\" xorm:\"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"org_name\" xorm:\"not null comment('机构名称') VARCHAR(100)\" example:\"开平区教育局\"` + "`" + `\n` + "`" + `json:\"org_type\" xorm:\"not null comment('机构类型【1:教育局、2:学校、3:教辅单位、4:大学区、5:部门、6、主校,7、学段、8:年级、9:班级】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"parent_id\" xorm:\"default ''NULL'' comment('父节点ID') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"cat_id\" xorm:\"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"province_id\" xorm:\"default 'NULL' comment('省编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"city_id\" xorm:\"default 'NULL' comment('地市编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"area_id\" xorm:\"default 'NULL' comment('县区编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"` + "`" + `linksystem_id` + "`" + `\" xorm:\"default 'NULL' comment('源业务系统编码') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"link_id\" xorm:\"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"page\" example:\"1\"` + "`" + `", "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" } } } } }, "/support/orgtree/UpdateOrgtree/{id}": { "post": { "description": "修改机构\n` + "`" + `json:\"id\" xorm:\"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"org_name\" xorm:\"not null comment('机构名称') VARCHAR(100)\" example:\"开平区教育局\"` + "`" + `\n` + "`" + `json:\"org_type\" xorm:\"not null comment('机构类型【1:教育局、2:学校、3:教辅单位、4:大学区、5:部门、6、主校,7、学段、8:年级、9:班级】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"parent_id\" xorm:\"default ''NULL'' comment('父节点ID') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"cat_id\" xorm:\"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"province_id\" xorm:\"default 'NULL' comment('省编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"city_id\" xorm:\"default 'NULL' comment('地市编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"area_id\" xorm:\"default 'NULL' comment('县区编码') VARCHAR(6)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"` + "`" + `linksystem_id` + "`" + `\" xorm:\"default 'NULL' comment('源业务系统编码') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"link_id\" xorm:\"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)\" example:\"0383FF67-CCBA-4256-891E-BAFD487547FA\"` + "`" + `\n` + "`" + `json:\"create_time\" xorm:\"default 'NULL' created comment('建立时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"change_time\" xorm:\"default 'NULL' updated comment('最近修改时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"delete_time\" xorm:\"default 'NULL' deleted comment('删除时间') DATETIME\" example:\"2020-06-11 09:19:26\"` + "`" + `\n` + "`" + `json:\"delete_flag\" xorm:\"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)\" example:\"1\"` + "`" + `\n` + "`" + `json:\"page\" example:\"1\"` + "`" + `", "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": { "app_icon": { "description": "omitempty有值就输出,没值则不输出", "type": "object" }, "app_id": { "description": "omitempty有值就输出,没值则不输出", "type": "object" }, "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.AccountSwag": { "type": "object", "properties": { "password": { "type": "string", "example": "123456" }, "username": { "type": "string", "example": "example" } } }, "MySwagger.DataaccessSwag": { "type": "object", "properties": { "change_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "consume_orgid": { "type": "string", "example": "-1" }, "consume_systemid": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "consume_type": { "type": "integer", "example": -1 }, "create_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "datasource_code": { "type": "string" }, "datasource_id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "delete_flag": { "type": "integer", "example": 1 }, "delete_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "enable_flag": { "type": "integer", "example": 1 }, "id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "page": { "type": "integer", "example": 1 }, "query_flag": { "type": "integer", "example": 1 }, "set_flag": { "type": "integer", "example": 1 }, "source_systemid": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" } } }, "MySwagger.DataerrorSwag": { "type": "object", "properties": { "change_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "create_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "data_content": { "type": "string" }, "data_id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "datasource_id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "delete_flag": { "type": "integer", "example": 1 }, "delete_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "enable_flag": { "type": "integer", "example": 1 }, "file_uri": { "type": "string", "example": "/file/url/" }, "org_id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "page": { "type": "integer", "example": 1 }, "system_id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" } } }, "MySwagger.DatasourceESSwag": { "type": "object", "properties": { "begin_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "conditions": { "type": "object", "additionalProperties": true }, "data_id": { "type": "string", "example": "CfBQnRJPyXMEI5nqLT0" }, "datasource_code": { "type": "string", "example": "org_tree" }, "orgids": { "type": "array", "items": { "type": "string" }, "example": [ "F38BD0DB-0142-4356-8F2B-623813FC2578", "F38BD0DB-0142-4356-8F2B-623813FC2578" ] }, "page": { "type": "integer", "example": 1 }, "sort": { "type": "object", "additionalProperties": true } } }, "MySwagger.DatasourceSwag": { "type": "object", "properties": { "collect_flag": { "type": "integer", "example": 1 }, "datasource_code": { "type": "string", "example": "org_tree" }, "datasource_detail": { "type": "string", "example": "教育主管单位、教辅单位、各级各类学校机构信息" }, "datasource_name": { "type": "string", "example": "组织机构信息" }, "datastore_type": { "type": "integer", "example": 2 }, "delete_flag": { "type": "integer", "example": 1 }, "dic_id": { "type": "string", "example": "1C0F6832-65C6-4888-BDDE-A3373B11499D" }, "enable_flag": { "type": "integer", "example": 1 }, "page": { "type": "integer", "example": 1 }, "provide_orgid": { "type": "string", "example": "-1" }, "provide_type": { "type": "integer", "example": 2 }, "set_flag": { "type": "integer", "example": 1 }, "system_id": { "type": "string", "example": "1C0F6832-65C6-4888-BDDE-A3373B11499D" } } }, "MySwagger.Jyt2012Swag": { "type": "object", "properties": { "change_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "create_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "delete_flag": { "type": "integer", "example": 1 }, "delete_time": { "type": "string", "example": "2020-06-22 17:26:53" }, "dic_info": { "type": "string", "example": "我是字典项说明" }, "dic_name": { "type": "string", "example": "sex" }, "dic_type": { "type": "integer", "example": 1 }, "dic_value": { "type": "string", "example": "10" }, "enable_flag": { "type": "integer", "example": 1 }, "id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "jyt_flag": { "type": "integer", "example": 1 }, "page": { "type": "integer", "example": 1 }, "parent_id": { "type": "string", "example": "38BD0DB-0142-4356-8F2B-623813FC2578" }, "root_flag": { "type": "integer", "example": 1 } } }, "MySwagger.MetadataESSwag": { "type": "object", "properties": { "index_name": { "type": "string", "example": "org_tree" } } }, "MySwagger.MetadataSwag": { "type": "object", "properties": { "check_dic": { "type": "integer", "example": 1 }, "check_exist": { "type": "integer", "example": 1 }, "check_name": { "type": "integer", "example": 1 }, "check_pattern": { "type": "integer", "example": 1 }, "check_type": { "type": "integer", "example": 1 }, "datasource_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "delete_flag": { "type": "integer", "example": 1 }, "dic_id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "enable_flag": { "type": "integer", "example": 1 }, "id": { "type": "string", "example": "F38BD0DB-0142-4356-8F2B-623813FC2578" }, "item_info": { "type": "string", "example": "我是数据项说明" }, "item_length": { "type": "integer", "example": 36 }, "item_name": { "type": "string", "example": "org_name" }, "item_pattern": { "type": "string" }, "item_type": { "type": "string", "example": "string" }, "page": { "type": "integer", "example": 1 } } }, "MySwagger.OrgtreeSwag": { "type": "object", "properties": { "area_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "cat_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "change_time": { "type": "string", "example": "2020-06-11 09:19:26" }, "city_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "create_time": { "type": "string", "example": "2020-06-11 09:19:26" }, "delete_flag": { "type": "integer", "example": 1 }, "delete_time": { "type": "string", "example": "2020-06-11 09:19:26" }, "enable_flag": { "type": "integer", "example": 1 }, "id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "link_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "linksystem_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "org_name": { "type": "string", "example": "开平区教育局" }, "org_type": { "type": "integer", "example": 1 }, "page": { "type": "integer", "example": 1 }, "parent_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" }, "province_id": { "type": "string", "example": "0383FF67-CCBA-4256-891E-BAFD487547FA" } } }, "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 } } } }, "tags": [ { "description": "数据订阅", "name": "dataaccess" }, { "description": "数据异常", "name": "dataerror" }, { "description": "数据源", "name": "datasource" }, { "description": "数据统计", "name": "datastatistic" }, { "description": "字典", "name": "jyt2012" }, { "description": "元数据", "name": "metadata" }, { "description": "机构目录", "name": "orgtree" }, { "description": "后台登陆", "name": "account" } ] }` 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{}) }