|
|
|
@ -11,7 +11,7 @@ import (
|
|
|
|
|
|
|
|
|
|
// 获取数据源列表 godoc
|
|
|
|
|
// @Summary 获取数据源列表
|
|
|
|
|
// @Description `json:"system_id" xorm:"not null comment('数据提供系统ID【外键】') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"`<br/>`json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"`<br/>`json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"`<br/>`json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`<br/>`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`<br/>`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`<br/>`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`<br/>`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"`<br/>`json:"page" example:"1"`
|
|
|
|
|
// @Description `json:"system_id" xorm:"not null comment('数据提供系统编码') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"`<br/>`json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"`<br/>`json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"`<br/>`json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`<br/>`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`<br/>`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`<br/>`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`<br/>`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"`<br/>`json:"page" example:"1"`
|
|
|
|
|
// @Tags datasource
|
|
|
|
|
// @ID readDatasource
|
|
|
|
|
// @Accept json
|
|
|
|
@ -59,7 +59,7 @@ func ReadDatasource(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
// 创建数据源 godoc
|
|
|
|
|
// @Summary 创建数据源
|
|
|
|
|
// @Description `json:"system_id" xorm:"not null comment('数据提供系统ID【外键】') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"`<br/>`json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"`<br/>`json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"`<br/>`json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`<br/>`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`<br/>`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`<br/>`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`<br/>`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"`
|
|
|
|
|
// @Description `json:"system_id" xorm:"not null comment('数据提供系统编码') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"`<br/>`json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"`<br/>`json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"`<br/>`json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`<br/>`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`<br/>`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`<br/>`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`<br/>`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"`
|
|
|
|
|
// @Tags datasource
|
|
|
|
|
// @ID createDatasource
|
|
|
|
|
// @Accept json
|
|
|
|
@ -101,7 +101,7 @@ func CreateDatasource(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
// 修改数据源 godoc
|
|
|
|
|
// @Summary 修改数据源
|
|
|
|
|
// @Description `json:"system_id" xorm:"not null comment('数据提供系统ID【外键】') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"`<br/>`json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"`<br/>`json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"`<br/>`json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`<br/>`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`<br/>`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`<br/>`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`<br/>`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"`
|
|
|
|
|
// @Description `json:"system_id" xorm:"not null comment('数据提供系统编码') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息"`<br/>`json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree"`<br/>`json:"datasource_detail" xorm:"default 'NULL' comment('数据源说明') VARCHAR(500)" example:"教育主管单位、教辅单位、各级各类学校机构信息"`<br/>`json:"set_flag" xorm:"not null default 1 comment('可修改【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"collect_flag" xorm:"not null default 1 comment('可汇集【1:是,-1:否】') INT(11)" example:"1"`<br/>`json:"provide_type" xorm:"not null comment('提供数据范围【1:本机构,2:本机构以及下属机构,-1:不限制】') INT(11)" example:"2"`<br/>`json:"provide_orgid" xorm:"not null comment('提供数据机构ID【-1:不限制】') index VARCHAR(36)" example:"-1"`<br/>`json:"datastore_type" xorm:"not null comment('数据存储类型【1:DB,2:ES,3:Kafka】') INT(11)" example:"2"`<br/>`json:"dic_id, omitempty" xorm:"default 'NULL' comment('数据字典ID') index VARCHAR(36)" example:"1C0F6832-65C6-4888-BDDE-A3373B11499D"`<br/>`json:"delete_flag" xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)" example:"1"`<br/>`json:"enable_flag" xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)" example:"1"`
|
|
|
|
|
// @Tags datasource
|
|
|
|
|
// @ID updateDatasource
|
|
|
|
|
// @Accept json
|
|
|
|
|