Merge branch 'master' of 10.10.14.250:huanghai/dsMin

master
huanghai 5 years ago
commit 4e0e1dac06

@ -163,3 +163,5 @@
[Error]2020/09/21 17:29:21 SqlQueryError 数据库操作发生严重错误Error 1054: Unknown column 'code' in 'where clause'
[Error]2020/09/22 11:26:20 SqlQueryError 数据库操作发生严重错误Error 1054: Unknown column 'code' in 'where clause'
[Error]2020/09/22 11:29:40 SqlQueryError 数据库操作发生严重错误Error 1054: Unknown column 'code' in 'where clause'
[Error]2020/09/28 16:50:13 获取组织机构列表错误: rpc error: code = DeadlineExceeded desc = context deadline exceeded
[Error]2020/09/28 16:51:58 获取组织机构列表错误: rpc error: code = DeadlineExceeded desc = context deadline exceeded

@ -132,12 +132,13 @@ func PageBaseOrganization(in *BaseOrganizationProto.QueryArg) ([]map[string]inte
InnerJoin("t_sys_loginperson as t3", "t2.person_id=t3.person_id")
//是市,还是区?
areaCode := in.AreaCode
//1是教育局需要要城市及所辖县区的教育局
if in.OrgType == 1 || in.OrgType == -1 {
if areaCode[4:] == "00" { //市
myBuilder.Where(builder.Eq{"t1.city_code": areaCode})
} else {
myBuilder.Where(builder.Eq{"t1.area_code": areaCode})
} else { //区
myBuilder.Where(builder.Eq{"t1.district_code": areaCode})
}
//是全部,还是要启用,禁用的?
if in.BUse != 0 {
myBuilder.Where(builder.Eq{"t1.b_use": in.BUse})

@ -415,20 +415,10 @@ func DataexSetBatch(systemID string, datas []MySwagger.Data,datasource *models.T
json.Unmarshal([]byte(datas[no].Data), &jsonData)
esData2.DataContent=jsonData
//re, datasourceId := ValidationUtil.GetDatasourceIdByCode(esData2.DatasourceId)
//var r = false
//if re == true {
// r, _ = ValidationUtil.ValidESDataContent(datasourceId, esData2.DataContent)
//}
//数据校验1、机构校验
flag,_,data,_:= DataexDAO.CheckProvideOrgID(datasource.ProvideType,datasource.ProvideOrgid,datas[no].OrgID)
//fmt.Println("flag::", flag)
flag, _, data, _ := DataexDAO.CheckProvideOrgID(datasource.ProvideType,datasource.ProvideOrgid,datas[no].OrgID)
if flag==true {
//result, failMessages := ValidationUtil.ValidESDataContent(datasourceId, esData2.DataContent)
var result=true
var failMessages=""
@ -480,8 +470,15 @@ func DataexSetBatch(systemID string, datas []MySwagger.Data,datasource *models.T
}
if indexData==nil {
// modify by wangshuai 2020-09-28
if len(failIDs)>0{
var failResults []MySwagger.FailResult
for no:=0;no< len(failIDs);no++{
failResults=append(failResults,MySwagger.FailResult{FailID: failIDs[no],FailReason: "数据机构权限全部不正确", })
}
DataexDAO.SaveDataError(failResults, datas, systemID, datasource.DatasourceCode )
}
failIDs=nil
DataexDAO.SaveDataError(nil, datas, systemID, datasource.DatasourceCode )
return false,"数据机构权限全部不正确",nil,nil
}

@ -9,5 +9,6 @@ type Res struct {
StudentFlag interface{} `json:"studentFlag,omitempty"` //omitempty有值就输出没值则不输出
ParentFlag interface{} `json:"parentFlag,omitempty"` //omitempty有值就输出没值则不输出
PositionList interface{} `json:"positionList,omitempty"` //omitempty有值就输出没值则不输出
AppId interface{} `json:"app_id,omitempty"` //omitempty有值就输出没值则不输出
AppId interface{} `json:"app_id,omitempty"` //omitempty有值就输出没值则不输出
AppIcon interface{} `json:"app_icon,omitempty"` //omitempty有值就输出没值则不输出
}

@ -30,6 +30,7 @@ func Routers(r *gin.RouterGroup) {
rr.POST("/SettingAccessSystemSsoInfo", SettingAccessSystemSsoInfo)
rr.POST("/EmptyAccessSystemSsoInfo", EmptyAccessSystemSsoInfo)
rr.GET("/GetAccessSystemIntegratedInfo", GetAccessSystemIntegratedInfo)
rr.POST("/UploadIconFile", UploadIconFile)
rr.POST("/SettingAccessSystemIntegratedInfo", SettingAccessSystemIntegratedInfo)
rr.POST("/EmptyAccessSystemIntegratedInfo", EmptyAccessSystemIntegratedInfo)
rr.GET("/GetPositionTreeInfo", GetPositionTreeInfo)
@ -440,19 +441,54 @@ func GetAccessSystemIntegratedInfo(c *gin.Context) {
})
}
// @Summary 上传图标
// @Description 上传图标
// @Tags 接入系统
// @Accept multipart/form-data
// @Produce json
// @Param appIcon formData file true "图标"
// @Success 200 {object} Model.Res
// @Router /support/accessSystem/UploadIconFile [post]
func UploadIconFile(c *gin.Context) {
//接入系统在集成页面的图标
header, _ := c.FormFile("appIcon")
rootPath, _ := os.Getwd()
iconDir := rootPath + "/Html/Icon/"
//生成图标的ID
iconFileId := CommonUtil.GetUUID()
iconFileName := iconFileId + "." + strings.Split(header.Filename, ".")[1]
iconPath := iconDir + iconFileName
//保存图标
err := c.SaveUploadedFile(header, iconPath)
if err != nil {
c.JSON(http.StatusOK, Model.Res{
Success: false,
Message: err.Error(),
})
return
}
c.JSON(http.StatusOK, Model.Res{
Success: true,
Message: "操作成功!",
AppIcon: "/dsSupport/Icon/" + iconFileName,
})
}
// @Summary 设置接入系统的集成信息
// @Description 设置接入系统的集成信息
// @Tags 接入系统
// @Accept multipart/form-data
// @Accept application/x-www-form-urlencoded
// @Produce json
// @Param appId formData string true "系统ID"
// @Param appUrl formData string true "接入系统在集成页面的调用地址"
// @Param appIcon formData file true "图标"
// @Param appIcon formData string true "图标"
// @Success 200 {object} Model.Res
// @Router /support/accessSystem/SettingAccessSystemIntegratedInfo [post]
// @X-EmptyLimit ["appId","appUrl"]
// @X-EmptyLimit ["appId","appUrl","appIcon"]
// @X-LengthLimit [{"appId":"36,36"}]
// @X-TableName ["t_app_base"]
// @X-Sort [12]
func SettingAccessSystemIntegratedInfo(c *gin.Context) {
//系统ID
@ -460,17 +496,9 @@ func SettingAccessSystemIntegratedInfo(c *gin.Context) {
//接入系统在集成页面的调用地址
appUrl := c.PostForm("appUrl")
//接入系统在集成页面的图标
header, _ := c.FormFile("appIcon")
rootPath, _ := os.Getwd()
iconDir := rootPath + "/Html/Icon/"
//生成图标的ID
iconFileId := CommonUtil.GetUUID()
iconFileName := iconFileId + "." + strings.Split(header.Filename, ".")[1]
iconPath := iconDir + iconFileName
//保存图标
c.SaveUploadedFile(header, iconPath)
appIcon := c.PostForm("appIcon")
err := AccessSystemDao.UpdateIntegration(appId, appUrl, "/dsSupport/Icon/"+iconFileName)
err := AccessSystemDao.UpdateIntegration(appId, appUrl, appIcon)
if err != nil {
c.JSON(http.StatusOK, Model.Res{

@ -16,6 +16,23 @@ import (
"net/http"
)
type CurrentUserInfo struct {
Name string `json:"name" example:"管理员"`
Avatar string `json:"avatar" example:"admin.png"`
Userid string `json:"userid" example:"00000001"`
Email string `json:"email" example:"admin@edusoa.com"`
Signature string `json:"signature" example:"海纳百川,有容乃大"`
Title string `json:"title" example:"大数据专家"`
Group string `json:"group" example:"东北师大理想股份有限公司-数智创新中心"`
Tags string `json:"tags" example:"[{key:0,label:大数据},{key:1,label:人工智能},{key:2,label:物联网},{key:3,label:架构},{key:4,label:数据分析},{key:5,label:海纳百川}]"`
NotifyCount int `json:"notifyCount" example:"12"`
UnreadCount int `json:"unreadCount" example:"11"`
Country string `json:"country" example:"China"`
Geographic string `json:"geographic" example:"{province:{label:吉林省,key:130000},city:{label:长春市,key:130000}}"`
Address string `json:"address" example:"净月开发区"`
Phone string `json:"phone" example:"400-0400-662"`
}
// 后台登陆 godoc
// @Summary 后台登陆
// @Description json:"username" xorm:"not null comment('账号') VARCHAR(100)" example:"example"
@ -72,12 +89,27 @@ func Login(c *gin.Context) {
// @Router /v1/openapi/account/currentUser [post]
func CurrentUser(c *gin.Context) {
success, message := AccountService.CurrentUser()
success, _ := AccountService.CurrentUser()
if success {
c.JSON(http.StatusOK, gin.H{
"status" : "ok",
"message" : message,
"message" : CurrentUserInfo{
Name: "管理员",
Avatar: "admin.png",
Userid: "00000001",
Email: "admin@edusoa.com",
Signature: "海纳百川,有容乃大",
Title: "大数据专家",
Group: "东北师大理想股份有限公司-数智创新中心",
Tags: "[{key:0,label:大数据},{key:1,label:人工智能},{key:2,label:物联网},{key:3,label:架构},{key:4,label:数据分析},{key:5,label:海纳百川}]",
NotifyCount: 12,
UnreadCount: 11,
Country: "China",
Geographic: "{province:{label:吉林省,key:130000},city:{label:长春市,key:130000}}",
Address: "净月开发区",
Phone: "400-0400-662",
},
})
return

@ -10,6 +10,7 @@ func Routers(r *gin.RouterGroup) {
rr := r.Group("/openapi")
rr.POST("/dataaccess/ReadDataaccess", DataaccessOpenAPI.ReadDataaccess)
rr.POST("/dataaccess/GetDataaccess/:id", DataaccessOpenAPI.GetDataaccess)
rr.POST("/dataaccess/CreateDataaccess", DataaccessOpenAPI.CreateDataaccess)
rr.POST("/dataaccess/UpdateDataaccess/:id", DataaccessOpenAPI.UpdateDataaccess)
rr.POST("/dataaccess/DeleteDataaccess/:id", DataaccessOpenAPI.DeleteDataaccess)

@ -14,6 +14,22 @@ import (
// 数据库
var db = DbUtil.Engine
func GetDataaccessRow(id string) (bool, string, map[string]interface{}, error) {
sql := "SELECT * FROM t_dataex_dataaccess WHERE id = '" + id + "'"
var dataaccess models.TDataexDataaccess
has, _ := DbUtil.Engine.SQL(sql).Get(&dataaccess)
if has == true {
m := make(map[string]interface{})
j, _ := json.Marshal(dataaccess)
json.Unmarshal(j, &m)
return true, "数据获取成功", m, nil
} else {
return false, "数据获取失败,数据源不存在", nil, nil
}
}
func GetDataaccessResults(query MySwagger.DataaccessQuery) (bool, string, int, []map[string]interface{}, error) {
//sql := "SELECT ls.id source_systemid, ls.system_name source_systemname, ls1.system_name consume_systemname, da.* FROM t_dataex_dataaccess da LEFT JOIN t_dataex_datasource ds ON da.datasource_id = ds.id LEFT JOIN t_dataex_linksystem ls ON ls.id = ds.system_id LEFT JOIN t_dataex_linksystem ls1 ON ls1.id = da.consume_systemid" + query.Conditions

@ -70,6 +70,52 @@ func ReadDataaccess(c *gin.Context) {
return
}
// 获取数据订阅详情 godoc
// @Summary 获取数据订阅详情
// @Description `json:"id" xorm:"not null comment('ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"`
// @Tags dataaccess
// @ID readDataaccess
// @Accept json
// @Produce json
// @Param id path string true "数据订阅ID"
// @Success 200 {object} MySwagger.Result
// @Failure 400 {object} MySwagger.Result
// @Router /v1/openapi/dataaccess/GetDataaccess/{id} [post]
func GetDataaccess(c *gin.Context) {
ID := c.Param("id")
//input.AuthToken = c.Request.Header["Authorization"][0]
//queryString := c.Request.URL.Query().Encode()
if ID == "" {
c.JSON(http.StatusBadRequest, MySwagger.Result{Success: false, Message: "ID必填"})
return
}
success, message, data, _ := DataaccessService.GetDataaccessRow(ID)
if success {
c.JSON(http.StatusOK, MySwagger.ResultOne{
Success: true,
Fail: false,
Message: message,
Data: data,
})
return
} else {
c.JSON(http.StatusOK, MySwagger.Result{
Success: false,
Fail: true,
Message: message,
})
return
}
return
}
// 创建数据订阅 godoc
// @Summary 创建数据订阅
// @Description `*`json:"datasource_id" xorm:"not null comment('数据源ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"

@ -92,6 +92,24 @@ func GetDataaccessResults(swag MySwagger.DataaccessSwag) (bool, string, int, []m
return result, message, count, data, failResult
}
/**
* @title GetDataaccessRow
* @Description
* @Author wangshuai
* @Date 2020-09-28
* @Param swag MySwagger.DataaccessSwag
* @Return bool
* @Return string
* @Return map[string]interface{}
* @Return error
*/
func GetDataaccessRow(id string) (bool, string, map[string]interface{}, error) {
result, message, data, failResult := DataaccessDAO.GetDataaccessRow(id)
return result, message, data, failResult
}
/**
* @title CreateDataaccess
* @Description

@ -2,6 +2,7 @@ package DatasourceDAO
import (
"dsSupport/MyModel/MySwagger"
"dsSupport/Utils/CommonUtil"
"dsSupport/Utils/DbUtil"
"dsSupport/Utils/ErrorConst"
"dsSupport/Utils/LogUtil"
@ -15,7 +16,6 @@ var db = DbUtil.Engine
func GetDatasourceRow(query string) (bool, string, map[string]interface{}, error) {
sql := "SELECT * FROM t_dataex_datasource WHERE 1 = 1 " + query
fmt.Println("sql::", sql)
var datasource models.TDataexDatasource
has, _ := DbUtil.Engine.SQL(sql).Get(&datasource)
@ -44,7 +44,19 @@ func GetDatasourceResults(query MySwagger.DatasourceQuery) (bool, string, int, [
//分页数据
list, err := DbUtil.Engine.SQL(pageSql, limit, offset).Query().List()
if list != nil {
return true, "数据获取成功", count, list, err
listJson, _ :=json.Marshal(list)
sql1 := "SELECT * FROM t_dataex_orgtree WHERE id IN (SELECT provide_orgid FROM t_dataex_datasource WHERE 1 = 1" + query.Conditions + ")"
//var offset1 = (query.Page - 1) * 10
//conditionSql1 := fmt.Sprintf("%s", " limit ? offset ? ")
//pageSql1 := fmt.Sprintf("%s %s", sql1, conditionSql1)
joinList1, _ := DbUtil.Engine.SQL(sql1).Query().List()
joinListJson1, _ := json.Marshal(joinList1)
mergedList := CommonUtil.ListMerge(string(listJson), string(joinListJson1), "provide_orgid", "id", "provide_orgname", "org_name")
var datas []map[string]interface{}
json.Unmarshal([]byte(mergedList), &datas)
return true, "数据获取成功", count, datas, err
} else {
return false, "数据获取失败,数据源不存在", count, nil, nil
}

@ -3,6 +3,7 @@ package MySwagger
import "time"
type DataaccessSwag struct {
Id string `json:"id" xorm:"not null comment('ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"`
DatasourceId string `json:"datasource_id" xorm:"not null comment('数据源ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"`
DatasourceCode string `json:"datasource_code" xorm:"comment('数据源编码') default 'NULL' VARCHAR(255)"`
SourceSystemid string `json:"source_systemid" xorm:"not null comment('源系统ID') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"`

@ -1,5 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag
// This file was generated by swaggo/swag at
// 2020-09-28 09:53:17.7730006 +0800 CST m=+0.143916401
package docs
@ -908,7 +909,7 @@ var doc = `{
"post": {
"description": "设置接入系统的集成信息",
"consumes": [
"multipart/form-data"
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
@ -933,7 +934,7 @@ var doc = `{
"required": true
},
{
"type": "file",
"type": "string",
"description": "图标",
"name": "appIcon",
"in": "formData",
@ -950,7 +951,8 @@ var doc = `{
},
"x-emptylimit": [
"appId",
"appUrl"
"appUrl",
"appIcon"
],
"x-lengthlimit": [
{
@ -959,9 +961,6 @@ var doc = `{
],
"x-sort": [
12
],
"x-tablename": [
"t_app_base"
]
}
},
@ -1227,6 +1226,38 @@ var doc = `{
]
}
},
"/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"
}
}
}
}
},
"/v1/openapi/account/currentUser": {
"post": {
"consumes": [
@ -1377,6 +1408,45 @@ var doc = `{
}
}
},
"/v1/openapi/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"
}
}
}
}
},
"/v1/openapi/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('删除标志【默认-11删除-1正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)\" example:\"1\"\njson:\"page\" example:\"1\"` + "`" + `",
@ -2380,6 +2450,10 @@ var doc = `{
"Model.Res": {
"type": "object",
"properties": {
"app_icon": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"app_id": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
@ -2472,6 +2546,10 @@ var doc = `{
"type": "integer",
"example": 1
},
"id": {
"type": "string",
"example": "F38BD0DB-0142-4356-8F2B-623813FC2578"
},
"page": {
"type": "integer",
"example": 1

@ -892,7 +892,7 @@
"post": {
"description": "设置接入系统的集成信息",
"consumes": [
"multipart/form-data"
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
@ -917,7 +917,7 @@
"required": true
},
{
"type": "file",
"type": "string",
"description": "图标",
"name": "appIcon",
"in": "formData",
@ -934,7 +934,8 @@
},
"x-emptylimit": [
"appId",
"appUrl"
"appUrl",
"appIcon"
],
"x-lengthlimit": [
{
@ -943,9 +944,6 @@
],
"x-sort": [
12
],
"x-tablename": [
"t_app_base"
]
}
},
@ -1211,6 +1209,38 @@
]
}
},
"/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"
}
}
}
}
},
"/v1/openapi/account/currentUser": {
"post": {
"consumes": [
@ -1361,6 +1391,45 @@
}
}
},
"/v1/openapi/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"
}
}
}
}
},
"/v1/openapi/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('删除标志【默认-11删除-1正常】') INT(11)\" example:\"1\"\njson:\"enable_flag\" xorm:\"not null default 1 comment('启用标志【默认11启用-1禁用】') INT(11)\" example:\"1\"\njson:\"page\" example:\"1\"`",
@ -2364,6 +2433,10 @@
"Model.Res": {
"type": "object",
"properties": {
"app_icon": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"app_id": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
@ -2456,6 +2529,10 @@
"type": "integer",
"example": 1
},
"id": {
"type": "string",
"example": "F38BD0DB-0142-4356-8F2B-623813FC2578"
},
"page": {
"type": "integer",
"example": 1

@ -1,6 +1,9 @@
definitions:
Model.Res:
properties:
app_icon:
description: omitempty有值就输出没值则不输出
type: object
app_id:
description: omitempty有值就输出没值则不输出
type: object
@ -68,6 +71,9 @@ definitions:
enable_flag:
example: 1
type: integer
id:
example: F38BD0DB-0142-4356-8F2B-623813FC2578
type: string
page:
example: 1
type: integer
@ -936,7 +942,7 @@ paths:
/support/accessSystem/SettingAccessSystemIntegratedInfo:
post:
consumes:
- multipart/form-data
- application/x-www-form-urlencoded
description: 设置接入系统的集成信息
parameters:
- description: 系统ID
@ -953,7 +959,7 @@ paths:
in: formData
name: appIcon
required: true
type: file
type: string
produces:
- application/json
responses:
@ -967,12 +973,11 @@ paths:
x-emptylimit:
- appId
- appUrl
- appIcon
x-lengthlimit:
- appId: 36,36
x-sort:
- 12
x-tablename:
- t_app_base
/support/accessSystem/SettingAccessSystemRangeInfo:
post:
consumes:
@ -1136,6 +1141,27 @@ paths:
- 2
x-tablename:
- t_app_base
/support/accessSystem/UploadIconFile:
post:
consumes:
- multipart/form-data
description: 上传图标
parameters:
- description: 图标
in: formData
name: appIcon
required: true
type: file
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/Model.Res'
summary: 上传图标
tags:
- 接入系统
/v1/openapi/account/currentUser:
post:
consumes:
@ -1250,6 +1276,32 @@ paths:
summary: 删除数据订阅
tags:
- dataaccess
/v1/openapi/dataaccess/GetDataaccess/{id}:
post:
consumes:
- application/json
description: '`json:"id" xorm:"not null comment(''ID'') index VARCHAR(36)" example:"F38BD0DB-0142-4356-8F2B-623813FC2578"`'
operationId: readDataaccess
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:
@ -1833,7 +1885,8 @@ 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元数据

Loading…
Cancel
Save