definitions: Model.Res: 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 type: object MySwagger.DataaccessSwag: properties: change_time: example: "2020-06-22 17:26:53" type: string consume_orgid: example: "-1" type: string consume_systemid: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string consume_type: example: -1 type: integer create_time: example: "2020-06-22 17:26:53" type: string datasource_code: type: string datasource_id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string x-description: 数据源ID delete_flag: example: 1 type: integer delete_time: example: "2020-06-22 17:26:53" type: string enable_flag: example: 1 type: integer page: example: 1 type: integer query_flag: example: 1 type: integer set_flag: example: 1 type: integer source_systemid: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string type: object MySwagger.DataerrorSwag: properties: change_time: example: "2020-06-22 17:26:53" type: string create_time: example: "2020-06-22 17:26:53" type: string data_content: type: string data_id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string datasource_id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string delete_flag: example: 1 type: integer delete_time: example: "2020-06-22 17:26:53" type: string enable_flag: example: 1 type: integer file_uri: example: /file/url/ type: string org_id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string page: example: 1 type: integer system_id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string type: object MySwagger.DatasourceESSwag: properties: begin_time: example: "2020-06-22 17:26:53" type: string conditions: additionalProperties: true type: object data_id: example: CfBQnRJPyXMEI5nqLT0 type: string datasource_code: example: org_tree type: string orgids: example: - F38BD0DB-0142-4356-8F2B-623813FC2578 - F38BD0DB-0142-4356-8F2B-623813FC2578 items: type: string type: array page: example: 1 type: integer sort: additionalProperties: true type: object type: object MySwagger.DatasourceSwag: properties: collect_flag: example: 1 type: integer datasource_code: example: org_tree type: string datasource_detail: example: 教育主管单位、教辅单位、各级各类学校机构信息 type: string datasource_name: example: 组织机构信息 type: string datastore_type: example: 2 type: integer delete_flag: example: 1 type: integer dic_id: example: 1C0F6832-65C6-4888-BDDE-A3373B11499D type: string enable_flag: example: 1 type: integer page: example: 1 type: integer provide_orgid: example: "-1" type: string provide_type: example: 2 type: integer set_flag: example: 1 type: integer system_id: example: 1C0F6832-65C6-4888-BDDE-A3373B11499D type: string type: object MySwagger.Jyt2012Swag: properties: change_time: example: "2020-06-22 17:26:53" type: string create_time: example: "2020-06-22 17:26:53" type: string delete_flag: example: 1 type: integer delete_time: example: "2020-06-22 17:26:53" type: string dic_info: example: 我是字典项说明 type: string dic_name: example: sex type: string dic_type: example: 1 type: integer dic_value: example: "10" type: string enable_flag: example: 1 type: integer id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string jyt_flag: example: 1 type: integer page: example: 1 type: integer parent_id: example: 38BD0DB-0142-4356-8F2B-623813FC2578 type: string root_flag: example: 1 type: integer type: object MySwagger.MetadataESSwag: properties: index_name: example: org_tree type: string type: object MySwagger.MetadataSwag: properties: check_dic: example: 1 type: integer check_exist: example: 1 type: integer check_name: example: 1 type: integer check_pattern: example: 1 type: integer check_type: example: 1 type: integer datasource_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string delete_flag: example: 1 type: integer dic_id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string enable_flag: example: 1 type: integer id: example: F38BD0DB-0142-4356-8F2B-623813FC2578 type: string item_info: example: 我是数据项说明 type: string item_length: example: 36 type: integer item_name: example: org_name type: string item_pattern: type: string item_type: example: string type: string page: example: 1 type: integer type: object MySwagger.OrgtreeSwag: properties: area_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string cat_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string change_time: example: "2020-06-11 09:19:26" type: string city_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string create_time: example: "2020-06-11 09:19:26" type: string delete_flag: example: 1 type: integer delete_time: example: "2020-06-11 09:19:26" type: string enable_flag: example: 1 type: integer id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string link_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string linksystem_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string org_name: example: 开平区教育局 type: string org_type: example: 1 type: integer page: example: 1 type: integer parent_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string province_id: example: 0383FF67-CCBA-4256-891E-BAFD487547FA type: string type: object MySwagger.Result: properties: data: items: additionalProperties: true type: object type: array fail: example: false type: boolean message: example: 操作成功 type: string success: example: true type: boolean total: example: 120 type: integer type: object host: 127.0.0.1:8005 info: contact: email: support@swagger.io name: API Support url: http://www.swagger.io/support description: 分布式,大并发,高可用 license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html title: 基础数据API version: "1.0" paths: /support/accessSystem/AddAccessSystemInfo: post: consumes: - application/x-www-form-urlencoded description: 增加接入系统 parameters: - description: 系统名称 in: formData name: appName required: true type: string - description: 系统编码 in: formData name: appCode required: true type: string - description: 排序号 in: formData name: sortId type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 增加接入系统 tags: - 接入系统 x-emptylimit: - appName - appCode x-lengthlimit: - appName: 2,30 - appCode: 2,20 x-sort: - 1 x-tablename: - t_app_base /support/accessSystem/DeleteAccessSystemInfo: post: consumes: - application/x-www-form-urlencoded description: 删除接入系统 parameters: - description: 系统ID in: formData name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 删除接入系统 tags: - 接入系统 x-emptylimit: - appId x-lengthlimit: - appId: 36,36 x-sort: - 3 x-tablename: - t_app_base /support/accessSystem/EmptyAccessSystemIntegratedInfo: post: consumes: - application/x-www-form-urlencoded description: 清空接入系统的集成信息 parameters: - description: 系统ID in: formData name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 清空接入系统的集成信息 tags: - 接入系统 x-emptylimit: - orgId x-lengthlimit: - orgId: 36,36 x-sort: - 8 x-tablename: - t_app_base /support/accessSystem/EmptyAccessSystemSsoInfo: post: consumes: - application/x-www-form-urlencoded description: 清空接入系统的统一认证信息 parameters: - description: 系统ID in: formData name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 清空接入系统的统一认证信息 tags: - 接入系统 x-emptylimit: - orgId x-lengthlimit: - orgId: 36,36 x-sort: - 8 x-tablename: - t_app_base /support/accessSystem/GetAccessSystemIdentityPositionInfo: get: consumes: - application/x-www-form-urlencoded description: 获取接入系统的身份信息和职务信息 parameters: - description: 系统ID in: query name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取接入系统的身份信息和职务信息 tags: - 接入系统 x-emptylimit: - appId x-lengthlimit: - appId: 36,36 x-sort: - 9 x-tablename: - t_app_base /support/accessSystem/GetAccessSystemIntegratedInfo: get: consumes: - application/x-www-form-urlencoded description: 获取接入系统的集成信息 parameters: - description: 系统ID in: query name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取接入系统的集成信息 tags: - 接入系统 x-emptylimit: - appId x-lengthlimit: - appId: 36,36 x-sort: - 6 x-tablename: - t_app_base /support/accessSystem/GetAccessSystemRangeInfo: get: consumes: - application/x-www-form-urlencoded description: 获取接入系统的使用范围 parameters: - description: 系统ID in: query name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取接入系统的使用范围 tags: - 接入系统 x-emptylimit: - appId x-lengthlimit: - appId: 36,36 x-sort: - 5 x-tablename: - t_app_base /support/accessSystem/GetAccessSystemSsoInfo: get: consumes: - application/x-www-form-urlencoded description: 获取接入系统的统一认证信息 parameters: - description: 系统ID in: query name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取接入系统的统一认证信息 tags: - 接入系统 x-emptylimit: - appId x-lengthlimit: - appId: 36,36 x-sort: - 6 x-tablename: - t_app_base /support/accessSystem/GetAccessSystemStageInfo: get: consumes: - application/x-www-form-urlencoded description: 获取接入系统的学段信息 parameters: - description: 系统ID in: query name: appId required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取接入系统的学段信息 tags: - 接入系统 x-emptylimit: - appId x-lengthlimit: - appId: 36,36 x-sort: - 9 x-tablename: - t_app_base /support/accessSystem/GetPositionTreeInfo: get: consumes: - application/x-www-form-urlencoded description: 获取职务树信息 produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取职务树信息 tags: - 接入系统 x-removeswaggerfield: - id_int - b_use - last_updated_time - postion_flag x-sort: - 11 post: consumes: - application/x-www-form-urlencoded description: 登录 parameters: - description: 登录名 in: formData name: loginName required: true type: string - description: 登录密码 in: formData name: loginPwd required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 登录 tags: - 登录 /support/accessSystem/PageAccessSystemInfo: get: consumes: - application/x-www-form-urlencoded description: 获取接入系统列表 parameters: - description: 第几页 in: query name: page required: true type: integer - description: 一页显示多少条 in: query name: limit required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 获取接入系统列表 tags: - 接入系统 x-emptylimit: - page - limit x-intrangelimit: - page: 1,1000 - limit: 1,1000 x-sort: - 0 x-tablename: - t_app_base /support/accessSystem/SettingAccessSystemIdentityPositionInfo: post: consumes: - application/x-www-form-urlencoded description: 设置接入系统的身份信息和职务信息 parameters: - description: 系统ID in: formData name: appId required: true type: string - description: 教师身份是否可用 1:可用 2:不可用 3:部分职位可用 in: formData name: teacherFlag required: true type: integer - description: 学生身份是否可用 1:可用 2:不可用 in: formData name: studentFlag required: true type: integer - description: 家长身份是否可用 1:可用 2:不可用 in: formData name: parentFlag required: true type: integer - description: 职务ID,多个用逗号分隔 in: formData name: positionIds type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 设置接入系统的身份信息和职务信息 tags: - 接入系统 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: consumes: - application/x-www-form-urlencoded description: 设置接入系统的集成信息 parameters: - description: 系统ID in: formData name: appId required: true type: string - description: 接入系统在集成页面的调用地址 in: formData name: appUrl required: true type: string - description: 接入系统在集成页面的图标 in: formData name: appIcon required: true type: file produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 设置接入系统的集成信息 tags: - 接入系统 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: consumes: - application/x-www-form-urlencoded description: 设置接入系统的使用范围 parameters: - description: 系统ID in: formData name: appId required: true type: string - description: 使用范围的行政区划码、单位ID,多个用逗号分隔 in: formData name: rangeCode required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 设置接入系统的使用范围 tags: - 接入系统 x-emptylimit: - orgId - rangeCode x-lengthlimit: - orgId: 36,36 - rangeCode: 1,3700 x-sort: - 4 x-tablename: - t_app_base /support/accessSystem/SettingAccessSystemSsoInfo: post: consumes: - application/x-www-form-urlencoded description: 设置接入系统的统一认证信息 parameters: - description: 系统ID in: formData name: appId required: true type: string - description: 统一认证回调地址 in: formData name: redirectUri required: true type: string - description: 统一认证登出地址 in: formData name: logoutUri type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 设置接入系统的统一认证信息 tags: - 接入系统 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: consumes: - application/x-www-form-urlencoded description: 设置接入系统的身份信息和职务信息 parameters: - description: 系统ID in: formData name: appId required: true type: string - description: 学段ID,多个用逗号分隔,如果是通用传-1 in: formData name: stageIds required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 设置接入系统的身份信息和职务信息 tags: - 接入系统 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: consumes: - application/x-www-form-urlencoded description: 修改接入系统 parameters: - description: 系统ID in: formData name: appId required: true type: string - description: 系统名称 in: formData name: appName required: true type: string - description: 系统编码 in: formData name: appCode required: true type: string - description: 排序号 in: formData name: sortId type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/Model.Res' summary: 修改接入系统 tags: - 接入系统 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: consumes: - application/json description: |- `json:"datasource_id" xorm:"not null comment('数据源ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"datasource_code" xorm:"comment('数据源编码') default 'NULL' VARCHAR(255)"` `json:"source_systemid" xorm:"not null comment('源系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"consume_systemid" xorm:"not null comment('数据使用系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"query_flag" xorm:"not null default 1 comment('可查【1:是,-1:否】') INT(11)" example:"1"` `json:"set_flag" xorm:"not null default -1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"` `json:"consume_type" xorm:"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"-1"` `json:"consume_orgid" xorm:"not null comment('使用数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: createDataaccess parameters: - description: 数据订阅 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataaccessSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 创建数据订阅 tags: - dataaccess /v1/openapi/dataaccess/DeleteDataaccess/{id}: post: consumes: - application/json description: '`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"`' operationId: deleteDataaccess parameters: - description: 数据订阅ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 删除数据订阅 tags: - dataaccess /v1/openapi/dataaccess/ReadDataaccess: post: consumes: - application/json description: |- `json:"datasource_id" xorm:"not null comment('数据源ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"datasource_code" xorm:"comment('数据源编码') default 'NULL' VARCHAR(255)"` `json:"source_systemid" xorm:"not null comment('源系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"consume_systemid" xorm:"not null comment('数据使用系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"query_flag" xorm:"not null default 1 comment('可查【1:是,-1:否】') INT(11)" example:"1"` `json:"set_flag" xorm:"not null default -1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"` `json:"consume_type" xorm:"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"-1"` `json:"consume_orgid" xorm:"not null comment('使用数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` `json:"page" example:"1"` operationId: readDataaccess parameters: - description: 数据订阅 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataaccessSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取数据订阅列表 tags: - dataaccess /v1/openapi/dataaccess/UpdateDataaccess/{id}: post: consumes: - application/json description: |- `json:"datasource_id" xorm:"not null comment('数据源ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"datasource_code" xorm:"comment('数据源编码') default 'NULL' VARCHAR(255)"` `json:"source_systemid" xorm:"not null comment('源系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"consume_systemid" xorm:"not null comment('数据使用系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"query_flag" xorm:"not null default 1 comment('可查【1:是,-1:否】') INT(11)" example:"1"` `json:"set_flag" xorm:"not null default -1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"` `json:"consume_type" xorm:"not null comment('使用数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"-1"` `json:"consume_orgid" xorm:"not null comment('使用数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: updateDataaccess parameters: - description: 数据订阅ID in: path name: id required: true type: string - description: 数据订阅 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataaccessSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 修改数据订阅 tags: - dataaccess /v1/openapi/dataerror/DeleteDataerror/{id}: post: consumes: - application/json description: '`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"`' operationId: deleteDataerror parameters: - description: 数据异常ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 删除数据异常 tags: - dataerror /v1/openapi/dataerror/ReadDataerror: post: consumes: - application/json description: |- `json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"` `json:"system_id" xorm:"not null comment('数据提供系统编码') VARCHAR(36)"` `json:"datasource_id" xorm:"not null comment('数据源编码') VARCHAR(36)"` `json:"org_id" xorm:"not null comment('数据机构ID【输入参数】') VARCHAR(36)"` `json:"data_id" xorm:"not null comment('数据ID【输入参数】') VARCHAR(36)"` `json:"data_content" xorm:"default 'NULL' comment('数据内容【Json格式输入参数】') VARCHAR"` `json:"file_uri" xorm:"default 'NULL' comment('文件地址【文件交换】') VARCHAR(500)"` `json:"error_info" xorm:"default 'NULL' comment('错误信息说明') VARCHAR(5000)"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` `json:"page" example:"1"` operationId: readDataerror parameters: - description: 数据异常 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataerrorSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取数据异常列表 tags: - dataerror /v1/openapi/datasource/CreateDatasource: post: consumes: - application/json description: |- `json:"system_id" xorm:"not null comment('数据提供系统编码') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"` `json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"` `json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"` `json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"` `json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"` `json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"` `json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"` `json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"` `json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"` `json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: createDatasource parameters: - description: 数据源 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 创建数据源 tags: - datasource /v1/openapi/datasource/DeleteDatasource/{id}: post: consumes: - application/json description: '`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"`' operationId: deleteDatasource parameters: - description: 数据源ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 删除数据源 tags: - datasource /v1/openapi/datasource/GetESDoc: post: consumes: - application/json description: |- `json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"` `json:"orgids" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') VARCHAR(36)" example:"[F38BD0DB-0142-4356-8F2B-623813FC2578,F38BD0DB-0142-4356-8F2B-623813FC2578]"` `json:"begin_time" example:"2020-06-22 17:26:53"`
`json:"conditions" example:""` `json:"sort" example:""` `json:"data_id" example:"CfBQnRJPyXMEI5nqLT0"` operationId: getESDoc parameters: - description: es数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceESSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取es数据 tags: - datasource /v1/openapi/datasource/ReadDatasource: post: consumes: - application/json description: |- `json:"system_id" xorm:"not null comment('数据提供系统编码') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"` `json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"` `json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"` `json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"` `json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"` `json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"` `json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"` `json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`
`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"` `json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` `json:"page" example:"1"` operationId: readDatasource parameters: - description: 数据源 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取数据源列表 tags: - datasource /v1/openapi/datasource/ReadESDoc: post: consumes: - application/json description: |- `json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"` `json:"orgids" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') VARCHAR(36)" example:"[F38BD0DB-0142-4356-8F2B-623813FC2578,F38BD0DB-0142-4356-8F2B-623813FC2578]"` `json:"begin_time" example:"2020-06-22 17:26:53"`
`json:"conditions" example:""` `json:"sort" example:""` `json:"data_id" example:"CfBQnRJPyXMEI5nqLT0"` `json:"page" example:"1"` operationId: readESDoc parameters: - description: es数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceESSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取es数据列表
tags: - datasource /v1/openapi/datasource/UpdateDatasource/{id}: post: consumes: - application/json description: |- `json:"system_id" xorm:"not null comment('数据提供系统编码') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"` `json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"` `json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"` `json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"` `json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`
`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"` `json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`
`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"` `json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`
`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`
`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: updateDatasource parameters: - description: 数据源ID in: path name: id required: true type: string - description: 数据源 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 修改数据源 tags: - datasource /v1/openapi/datastatistic/ReadESDocAmount: post: consumes: - application/json description: 获取数据源列表 operationId: readESDocAmount produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取数据源列表 tags: - datastatistic /v1/openapi/jyt2012/CreateJyt2012: post: consumes: - application/json description: |- `json:"dic_name" xorm:"not null comment('字典/字典项名称') VARCHAR(100)" example:"sex"` `json:"dic_value" xorm:"not null comment('字典/字典项值') VARCHAR(100)" example:"10"` `json:"dic_type" xorm:"not null default 1 comment('字典类型【1:国标数据、关联数据源,2:国标字典、关联元数据】') INT(11)" example:"1"` `json:"dic_info" xorm:"default ''NULL'' comment('字典项说明') VARCHAR(500)" example:"我是字典项说明"` `json:"root_flag" xorm:"not null default -1 comment('是否是字典【1:是,-1:否】') INT(11)" example:"1"` `json:"jyt_flag" xorm:"not null default 1 comment('是否国标【1:是,-1:自定义】') INT(11)" example:"1"` `json:"parent_id" xorm:"default ''NULL'' comment('字典ID【字典项父节点】') VARCHAR(36)" example:"38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: createJyt2012 parameters: - description: 标准字典 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Jyt2012Swag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 创建标准字典 tags: - jyt2012 /v1/openapi/jyt2012/DeleteJyt2012/{id}: post: consumes: - application/json description: '`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"`' operationId: deleteJyt2012 parameters: - description: 标准字典ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 删除标准字典 tags: - jyt2012 /v1/openapi/jyt2012/ReadJyt2012: post: consumes: - application/json description: |- `json:"dic_name" xorm:"not null comment('字典/字典项名称') VARCHAR(100)" example:"sex"` `json:"dic_value" xorm:"not null comment('字典/字典项值') VARCHAR(100)" example:"10"` `json:"dic_type" xorm:"not null default 1 comment('字典类型【1:国标数据、关联数据源,2:国标字典、关联元数据】') INT(11)" example:"1"` `json:"dic_info" xorm:"default ''NULL'' comment('字典项说明') VARCHAR(500)" example:"我是字典项说明"` `json:"root_flag" xorm:"not null default -1 comment('是否是字典【1:是,-1:否】') INT(11)" example:"1"` `json:"jyt_flag" xorm:"not null default 1 comment('是否国标【1:是,-1:自定义】') INT(11)" example:"1"` `json:"parent_id" xorm:"default ''NULL'' comment('字典ID【字典项父节点】') VARCHAR(36)" example:"38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` `json:"page" example:"1"` operationId: readJyt2012 parameters: - description: 标准字典 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Jyt2012Swag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取标准字典列表 tags: - jyt2012 /v1/openapi/jyt2012/UpdateJyt2012/{id}: post: consumes: - application/json description: |- `json:"dic_name" xorm:"not null comment('字典/字典项名称') VARCHAR(100)" example:"sex"` `json:"dic_value" xorm:"not null comment('字典/字典项值') VARCHAR(100)" example:"10"` `json:"dic_type" xorm:"not null default 1 comment('字典类型【1:国标数据、关联数据源,2:国标字典、关联元数据】') INT(11)" example:"1"` `json:"dic_info" xorm:"default ''NULL'' comment('字典项说明') VARCHAR(500)" example:"我是字典项说明"` `json:"root_flag" xorm:"not null default -1 comment('是否是字典【1:是,-1:否】') INT(11)" example:"1"` `json:"jyt_flag" xorm:"not null default 1 comment('是否国标【1:是,-1:自定义】') INT(11)" example:"1"` `json:"parent_id" xorm:"default ''NULL'' comment('字典ID【字典项父节点】') VARCHAR(36)" example:"38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-22 17:26:53"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: updateJyt2012 parameters: - description: 标准字典ID in: path name: id required: true type: string - description: 标准字典 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Jyt2012Swag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 修改标准字典 tags: - jyt2012 /v1/openapi/metadata/CreateMetadata: post: consumes: - application/json description: |- `json:"datasource_id" xorm:"default ''NULL'' comment('数据源编码') index VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"` `json:"item_name" xorm:"not null comment('数据项名称【英文】') VARCHAR(50)" example:"org_name"` `json:"dic_id" xorm:"default ''NULL'' comment('数据字典ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"item_type" xorm:"default ''NULL'' comment('数据项类型【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)" example:"string"` `json:"item_length" xorm:"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)" example:"36"` `json:"item_pattern" xorm:"default 'NULL' comment('数据项模式') VARCHAR(255)" example:""` `json:"item_info" xorm:"not null comment('数据项说明') VARCHAR(50)" example:"我是数据项说明"` `json:"check_name" xorm:"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)" example:"1"` `json:"check_dic" xorm:"not null default -1 comment('是否检测字典') INT(11)" example:"1"` `json:"check_type" xorm:"not null default -1 comment('是否检测类型') INT(11)" example:"1"` `json:"check_pattern" xorm:"not null default -1 comment('是否检测模式') INT(11)" example:"1"` `json:"check_exist" xorm:"not null default -1 comment('是否检测必填') INT(11)" example:"1"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: createMetadata parameters: - description: 元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 创建元数据 tags: - metadata /v1/openapi/metadata/CreateMetadataES: post: consumes: - application/json description: '`json:"index_name" xorm:"not null comment(''ES Index Name'') VARCHAR(50)" example:"org_tree"`' operationId: createMetadataES parameters: - description: ES元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataESSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 创建ES元数据 tags: - metadata /v1/openapi/metadata/DeleteMetadata/{id}: post: consumes: - application/json description: '`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"`' operationId: deleteMetadata parameters: - description: 元数据ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 删除元数据 tags: - metadata /v1/openapi/metadata/ReadMetadata: post: consumes: - application/json description: |- `json:"datasource_id" xorm:"default ''NULL'' comment('数据源编码') index VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"` `json:"item_name" xorm:"not null comment('数据项名称【英文】') VARCHAR(50)" example:"org_name"` `json:"dic_id" xorm:"default ''NULL'' comment('数据字典ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"item_type" xorm:"default ''NULL'' comment('数据项类型【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)" example:"string"` `json:"item_length" xorm:"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)" example:"36"` `json:"item_pattern" xorm:"default 'NULL' comment('数据项模式') VARCHAR(255)" example:""` `json:"item_info" xorm:"not null comment('数据项说明') VARCHAR(50)" example:"我是数据项说明"` `json:"check_name" xorm:"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)" example:"1"` `json:"check_dic" xorm:"not null default -1 comment('是否检测字典') INT(11)" example:"1"` `json:"check_type" xorm:"not null default -1 comment('是否检测类型') INT(11)" example:"1"` `json:"check_pattern" xorm:"not null default -1 comment('是否检测模式') INT(11)" example:"1"` `json:"check_exist" xorm:"not null default -1 comment('是否检测必填') INT(11)" example:"1"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` `json:"page" example:"1"` operationId: readMetadata parameters: - description: 元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取元数据列表 tags: - metadata /v1/openapi/metadata/UpdateMetadata/{id}: post: consumes: - application/json description: |- `json:"datasource_id" xorm:"default ''NULL'' comment('数据源编码') index VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"` `json:"item_name" xorm:"not null comment('数据项名称【英文】') VARCHAR(50)" example:"org_name"` `json:"dic_id" xorm:"default ''NULL'' comment('数据字典ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"` `json:"item_type" xorm:"default ''NULL'' comment('数据项类型【1:整数、2:浮点、3:字符、4:布尔、5:日期、6:时间、7:日期+时间】') VARCHAR(50)" example:"string"` `json:"item_length" xorm:"default NULL comment('数据最大长度【UTF-8 字符长度】') INT(11)" example:"36"` `json:"item_pattern" xorm:"default 'NULL' comment('数据项模式') VARCHAR(255)" example:""` `json:"item_info" xorm:"not null comment('数据项说明') VARCHAR(50)" example:"我是数据项说明"` `json:"check_name" xorm:"not null default -1 comment('是否检测名称【1:是,-1:否】') INT(11)" example:"1"` `json:"check_dic" xorm:"not null default -1 comment('是否检测字典') INT(11)" example:"1"` `json:"check_type" xorm:"not null default -1 comment('是否检测类型') INT(11)" example:"1"` `json:"check_pattern" xorm:"not null default -1 comment('是否检测模式') INT(11)" example:"1"` `json:"check_exist" xorm:"not null default -1 comment('是否检测必填') INT(11)" example:"1"` `json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"` `json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"` operationId: updateMetadata parameters: - description: 元数据ID in: path name: id required: true type: string - description: 元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 修改元数据 tags: - metadata /v1/openapi/orgtree/CreateOrgtree: post: consumes: - application/json description: 创建机构 operationId: createOrgtree parameters: - description: 机构 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.OrgtreeSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 创建机构 tags: - orgtree /v1/openapi/orgtree/DeleteOrgtree/{id}: post: consumes: - application/json description: 删除机构 operationId: deleteOrgtree parameters: - description: 机构ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 删除机构 tags: - orgtree /v1/openapi/orgtree/ReadOrgtree: post: consumes: - application/json description: 获取机构列表 operationId: readOrgtree parameters: - description: 机构 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.OrgtreeSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 获取机构列表 tags: - orgtree /v1/openapi/orgtree/UpdateOrgtree/{id}: post: consumes: - application/json description: 修改机构 operationId: updateOrgtree parameters: - description: 机构ID in: path name: id required: true type: string - description: 机构 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.OrgtreeSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.Result' summary: 修改机构 tags: - orgtree swagger: "2.0"