|
|
|
@ -1121,14 +1121,14 @@ paths:
|
|
|
|
|
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('源系统编码') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"
|
|
|
|
|
json:"`consume_systemid`" xorm:"not null comment('数据使用系统编码') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"
|
|
|
|
|
`*`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('源系统编码') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"
|
|
|
|
|
`*`json:"`consume_systemid`" xorm:"not null comment('数据使用系统编码') 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('使用数据机构编码【-1:不限制】') index VARCHAR(36)" 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"
|
|
|
|
@ -1160,7 +1160,7 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"
|
|
|
|
|
description: '`*`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"'
|
|
|
|
|
operationId: deleteDataaccess
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 数据订阅ID
|
|
|
|
@ -1193,8 +1193,8 @@ paths:
|
|
|
|
|
json:"`consume_systemid`" xorm:"not null comment('数据使用系统编码') 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('使用数据机构编码【-1:不限制】') index VARCHAR(36)" 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"
|
|
|
|
@ -1235,7 +1235,7 @@ paths:
|
|
|
|
|
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('使用数据机构编码【-1:不限制】') index VARCHAR(36)" 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"
|
|
|
|
@ -1272,7 +1272,7 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"
|
|
|
|
|
description: '`*`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"'
|
|
|
|
|
operationId: deleteDataerror
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 数据异常ID
|
|
|
|
@ -1340,15 +1340,15 @@ paths:
|
|
|
|
|
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:"`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:"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"
|
|
|
|
@ -1378,7 +1378,7 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"
|
|
|
|
|
description: '`*`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"'
|
|
|
|
|
operationId: deleteDatasource
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 数据源ID
|
|
|
|
@ -1405,12 +1405,12 @@ paths:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: |-
|
|
|
|
|
json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"
|
|
|
|
|
`*`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:"data_id" example:"CfBQnRJPyXMEI5nqLT0"
|
|
|
|
|
operationId: getESDoc
|
|
|
|
|
parameters:
|
|
|
|
|
- description: es数据
|
|
|
|
@ -1478,7 +1478,7 @@ paths:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: |-
|
|
|
|
|
json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"
|
|
|
|
|
`*`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:""
|
|
|
|
@ -1576,13 +1576,13 @@ paths:
|
|
|
|
|
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:"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:"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"
|
|
|
|
@ -1614,7 +1614,7 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"
|
|
|
|
|
description: '`*`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"'
|
|
|
|
|
operationId: deleteJyt2012
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 标准字典ID
|
|
|
|
@ -1725,18 +1725,18 @@ paths:
|
|
|
|
|
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:"`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:"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
|
|
|
|
@ -1765,7 +1765,7 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: json:"index_name" xorm:"not null comment('ES Index Name') VARCHAR(50)" example:"org_tree"
|
|
|
|
|
description: '`*`json:"index_name" xorm:"not null comment(''ES Index Name'') VARCHAR(50)" example:"org_tree"'
|
|
|
|
|
operationId: createMetadataES
|
|
|
|
|
parameters:
|
|
|
|
|
- description: ES元数据
|
|
|
|
@ -1792,7 +1792,7 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"
|
|
|
|
|
description: '`*`json:"id" xorm:"not null pk comment(''ID'') VARCHAR(36)"'
|
|
|
|
|
operationId: deleteMetadata
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 元数据ID
|
|
|
|
@ -1906,7 +1906,24 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 创建机构
|
|
|
|
|
description: |-
|
|
|
|
|
创建机构
|
|
|
|
|
`json:"id" xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`*`json:"org_name" xorm:"not null comment('机构名称') VARCHAR(100)" example:"开平区教育局"`
|
|
|
|
|
`*`json:"org_type" xorm:"not null comment('机构类型【1:教育局、2:学校、3:教辅单位、4:大学区、5:部门、6、主校,7、学段、8:年级、9:班级】') INT(11)" example:"1"`
|
|
|
|
|
`*`json:"parent_id" xorm:"default ''NULL'' comment('父节点ID') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"cat_id" xorm:"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`*`json:"province_id" xorm:"default 'NULL' comment('省编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`*`json:"city_id" xorm:"default 'NULL' comment('地市编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`*`json:"area_id" xorm:"default 'NULL' comment('县区编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`*`json:"`linksystem_id`" xorm:"default 'NULL' comment('源业务系统编码') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"link_id" xorm:"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`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: createOrgtree
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 机构
|
|
|
|
@ -1933,7 +1950,9 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 删除机构
|
|
|
|
|
description: |-
|
|
|
|
|
删除机构
|
|
|
|
|
`*`json:"id" xorm:"not null pk comment('ID') VARCHAR(36)"
|
|
|
|
|
operationId: deleteOrgtree
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 机构ID
|
|
|
|
@ -1959,7 +1978,24 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 获取机构列表
|
|
|
|
|
description: |-
|
|
|
|
|
获取机构列表
|
|
|
|
|
`json:"id" xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"org_name" xorm:"not null comment('机构名称') VARCHAR(100)" example:"开平区教育局"`
|
|
|
|
|
`json:"org_type" xorm:"not null comment('机构类型【1:教育局、2:学校、3:教辅单位、4:大学区、5:部门、6、主校,7、学段、8:年级、9:班级】') INT(11)" example:"1"`
|
|
|
|
|
`json:"parent_id" xorm:"default ''NULL'' comment('父节点ID') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"cat_id" xorm:"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"province_id" xorm:"default 'NULL' comment('省编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"city_id" xorm:"default 'NULL' comment('地市编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"area_id" xorm:"default 'NULL' comment('县区编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"`linksystem_id`" xorm:"default 'NULL' comment('源业务系统编码') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"link_id" xorm:"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`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: readOrgtree
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 机构
|
|
|
|
@ -1986,7 +2022,24 @@ paths:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 修改机构
|
|
|
|
|
description: |-
|
|
|
|
|
修改机构
|
|
|
|
|
`json:"id" xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"org_name" xorm:"not null comment('机构名称') VARCHAR(100)" example:"开平区教育局"`
|
|
|
|
|
`json:"org_type" xorm:"not null comment('机构类型【1:教育局、2:学校、3:教辅单位、4:大学区、5:部门、6、主校,7、学段、8:年级、9:班级】') INT(11)" example:"1"`
|
|
|
|
|
`json:"parent_id" xorm:"default ''NULL'' comment('父节点ID') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"cat_id" xorm:"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"province_id" xorm:"default 'NULL' comment('省编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"city_id" xorm:"default 'NULL' comment('地市编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"area_id" xorm:"default 'NULL' comment('县区编码') VARCHAR(6)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"`linksystem_id`" xorm:"default 'NULL' comment('源业务系统编码') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"link_id" xorm:"default 'NULL' comment('业务系统机构原ID') VARCHAR(36)" example:"0383FF67-CCBA-4256-891E-BAFD487547FA"`
|
|
|
|
|
`json:"create_time" xorm:"default 'NULL' created comment('建立时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`json:"change_time" xorm:"default 'NULL' updated comment('最近修改时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`json:"delete_time" xorm:"default 'NULL' deleted comment('删除时间') DATETIME" example:"2020-06-11 09:19:26"`
|
|
|
|
|
`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: updateOrgtree
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 机构ID
|
|
|
|
|