master
wangshuai 5 years ago
parent 82676b563b
commit f4c8f7b64e

@ -481,7 +481,7 @@ func DataexSetBatch(systemID string, datas []MySwagger.Data,datasource *models.T
if indexData==nil { if indexData==nil {
failIDs=nil failIDs=nil
DataexDAO.SaveDataError(nil, datas, systemID, datasource.DatasourceCode )
return false,"数据机构权限全部不正确",nil,nil return false,"数据机构权限全部不正确",nil,nil
} }

@ -27,7 +27,7 @@ import (
// @Param input body MySwagger.AccountSwag true "账号密码" // @Param input body MySwagger.AccountSwag true "账号密码"
// @Success 200 {object} MySwagger.Result // @Success 200 {object} MySwagger.Result
// @Failure 400 {object} MySwagger.Result // @Failure 400 {object} MySwagger.Result
// @Router /v1/openapi/datasource/ReadESDoc [post] // @Router /v1/openapi/account/login [post]
func Login(c *gin.Context) { func Login(c *gin.Context) {
var raw MySwagger.AccountSwag var raw MySwagger.AccountSwag

@ -1227,9 +1227,9 @@ var doc = `{
] ]
} }
}, },
"/support/login/account": { "/v1/openapi/account/login": {
"post": { "post": {
"description": "json:\"datasource_name\" xorm:\"not null comment('数据源名称') VARCHAR(100)\" example:\"组织机构信息\"\njson:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"", "description": "json:\"username\" xorm:\"not null comment('账号') VARCHAR(100)\" example:\"example\"\njson:\"password\" xorm:\"not null comment('密码') VARCHAR(100)\" example:\"123456\"",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@ -1237,13 +1237,13 @@ var doc = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"登录" "account"
], ],
"summary": "登录", "summary": "后台登陆",
"operationId": "Account", "operationId": "loginAccount",
"parameters": [ "parameters": [
{ {
"description": "登录", "description": "账号密码",
"name": "input", "name": "input",
"in": "body", "in": "body",
"required": true, "required": true,
@ -2819,13 +2819,28 @@ var doc = `{
"MySwagger.Result": { "MySwagger.Result": {
"type": "object", "type": "object",
"properties": { "properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"fail": {
"type": "boolean",
"example": false
},
"message": { "message": {
"type": "string", "type": "string",
"example": "接入系统票据验证失败" "example": "操作成功"
}, },
"success": { "success": {
"type": "boolean", "type": "boolean",
"example": false "example": true
},
"total": {
"type": "integer",
"example": 120
} }
} }
} }
@ -2858,6 +2873,10 @@ var doc = `{
{ {
"description": "机构目录", "description": "机构目录",
"name": "orgtree" "name": "orgtree"
},
{
"description": "后台登陆",
"name": "account"
} }
] ]
}` }`

@ -1211,9 +1211,9 @@
] ]
} }
}, },
"/support/login/account": { "/v1/openapi/account/login": {
"post": { "post": {
"description": "json:\"datasource_name\" xorm:\"not null comment('数据源名称') VARCHAR(100)\" example:\"组织机构信息\"\njson:\"datasource_code\" xorm:\"not null comment('数据源编码') VARCHAR(8)\" example:\"org_tree\"", "description": "json:\"username\" xorm:\"not null comment('账号') VARCHAR(100)\" example:\"example\"\njson:\"password\" xorm:\"not null comment('密码') VARCHAR(100)\" example:\"123456\"",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@ -1221,13 +1221,13 @@
"application/json" "application/json"
], ],
"tags": [ "tags": [
"登录" "account"
], ],
"summary": "登录", "summary": "后台登陆",
"operationId": "Account", "operationId": "loginAccount",
"parameters": [ "parameters": [
{ {
"description": "登录", "description": "账号密码",
"name": "input", "name": "input",
"in": "body", "in": "body",
"required": true, "required": true,
@ -2803,13 +2803,28 @@
"MySwagger.Result": { "MySwagger.Result": {
"type": "object", "type": "object",
"properties": { "properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"fail": {
"type": "boolean",
"example": false
},
"message": { "message": {
"type": "string", "type": "string",
"example": "接入系统票据验证失败" "example": "操作成功"
}, },
"success": { "success": {
"type": "boolean", "type": "boolean",
"example": false "example": true
},
"total": {
"type": "integer",
"example": 120
} }
} }
} }
@ -2842,6 +2857,10 @@
{ {
"description": "机构目录", "description": "机构目录",
"name": "orgtree" "name": "orgtree"
},
{
"description": "后台登陆",
"name": "account"
} }
] ]
} }

@ -343,12 +343,23 @@ definitions:
type: object type: object
MySwagger.Result: MySwagger.Result:
properties: properties:
data:
items:
additionalProperties: true
type: object
type: array
fail:
example: false
type: boolean
message: message:
example: 接入系统票据验证失败 example: 操作成功
type: string type: string
success: success:
example: false example: true
type: boolean type: boolean
total:
example: 120
type: integer
type: object type: object
host: 127.0.0.1:8005 host: 127.0.0.1:8005
info: info:
@ -1125,16 +1136,16 @@ paths:
- 2 - 2
x-tablename: x-tablename:
- t_app_base - t_app_base
/support/login/account: /v1/openapi/account/login:
post: post:
consumes: consumes:
- application/json - application/json
description: |- description: |-
json:"datasource_name" xorm:"not null comment('数据源名称') VARCHAR(100)" example:"组织机构信息" json:"username" xorm:"not null comment('账号') VARCHAR(100)" example:"example"
json:"datasource_code" xorm:"not null comment('数据源编码') VARCHAR(8)" example:"org_tree" json:"password" xorm:"not null comment('密码') VARCHAR(100)" example:"123456"
operationId: Account operationId: loginAccount
parameters: parameters:
- description: 登录 - description: 账号密码
in: body in: body
name: input name: input
required: true required: true
@ -1151,9 +1162,9 @@ paths:
description: Bad Request description: Bad Request
schema: schema:
$ref: '#/definitions/MySwagger.Result' $ref: '#/definitions/MySwagger.Result'
summary: 登录 summary: 后台登陆
tags: tags:
- 登录 - account
/v1/openapi/dataaccess/CreateDataaccess: /v1/openapi/dataaccess/CreateDataaccess:
post: post:
consumes: consumes:
@ -2121,3 +2132,5 @@ tags:
name: metadata name: metadata
- description: 机构目录 - description: 机构目录
name: orgtree name: orgtree
- description: 后台登陆
name: account

Loading…
Cancel
Save