Browse Source

资质

master
huangjiajun 2 months ago
parent
commit
108e20f6dc
3 changed files with 437 additions and 25 deletions
  1. +164
    -9
      docs/docs.go
  2. +164
    -9
      docs/swagger.json
  3. +109
    -7
      docs/swagger.yaml

+ 164
- 9
docs/docs.go View File

@@ -65,6 +65,100 @@ const docTemplate = `{
}
}
},
"/api/qualification/bank/save": {
"post": {
"description": "资质认证-银行资质保存",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"资质认证------嘉俊"
],
"summary": "银行资质保存",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AgentBankInfo"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/qualification/contact/save": {
"post": {
"description": "资质认证-联系方式保存",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"资质认证------嘉俊"
],
"summary": "联系方式保存",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AgentContactInfo"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/qualification/enterprise/save": {
"post": {
"description": "资质认证-企业认证保存",
@@ -75,7 +169,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"资质认证"
"资质认证------嘉俊"
],
"summary": "企业认证保存",
"parameters": [
@@ -122,7 +216,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"资质认证"
"资质认证------嘉俊"
],
"summary": "基本信息",
"parameters": [
@@ -160,7 +254,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"资质认证"
"资质认证------嘉俊"
],
"summary": "认证下拉框选择内容",
"parameters": [
@@ -829,6 +923,73 @@ const docTemplate = `{
}
}
},
"md.AgentBankInfo": {
"type": "object",
"properties": {
"agent_id": {
"type": "integer"
},
"bank": {
"type": "string"
},
"bank_branch": {
"type": "string"
},
"bank_no": {
"type": "string"
},
"currency_conf": {
"type": "integer"
},
"id": {
"type": "integer"
},
"licence": {
"type": "string"
},
"memo": {
"type": "string"
},
"state": {
"type": "integer"
},
"uuid": {
"type": "integer"
}
}
},
"md.AgentContactInfo": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"agent_id": {
"type": "integer"
},
"email": {
"type": "string"
},
"id": {
"type": "integer"
},
"memo": {
"type": "string"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
},
"state": {
"type": "integer"
},
"uuid": {
"type": "integer"
}
}
},
"md.AgentList": {
"type": "object",
"properties": {
@@ -862,9 +1023,6 @@ const docTemplate = `{
"country_region_id": {
"type": "integer"
},
"create_at": {
"type": "string"
},
"id": {
"type": "integer"
},
@@ -898,9 +1056,6 @@ const docTemplate = `{
"unified_social_credit_code": {
"type": "string"
},
"update_at": {
"type": "string"
},
"uuid": {
"type": "integer"
}


+ 164
- 9
docs/swagger.json View File

@@ -57,6 +57,100 @@
}
}
},
"/api/qualification/bank/save": {
"post": {
"description": "资质认证-银行资质保存",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"资质认证------嘉俊"
],
"summary": "银行资质保存",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AgentBankInfo"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/qualification/contact/save": {
"post": {
"description": "资质认证-联系方式保存",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"资质认证------嘉俊"
],
"summary": "联系方式保存",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AgentContactInfo"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/qualification/enterprise/save": {
"post": {
"description": "资质认证-企业认证保存",
@@ -67,7 +161,7 @@
"application/json"
],
"tags": [
"资质认证"
"资质认证------嘉俊"
],
"summary": "企业认证保存",
"parameters": [
@@ -114,7 +208,7 @@
"application/json"
],
"tags": [
"资质认证"
"资质认证------嘉俊"
],
"summary": "基本信息",
"parameters": [
@@ -152,7 +246,7 @@
"application/json"
],
"tags": [
"资质认证"
"资质认证------嘉俊"
],
"summary": "认证下拉框选择内容",
"parameters": [
@@ -821,6 +915,73 @@
}
}
},
"md.AgentBankInfo": {
"type": "object",
"properties": {
"agent_id": {
"type": "integer"
},
"bank": {
"type": "string"
},
"bank_branch": {
"type": "string"
},
"bank_no": {
"type": "string"
},
"currency_conf": {
"type": "integer"
},
"id": {
"type": "integer"
},
"licence": {
"type": "string"
},
"memo": {
"type": "string"
},
"state": {
"type": "integer"
},
"uuid": {
"type": "integer"
}
}
},
"md.AgentContactInfo": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"agent_id": {
"type": "integer"
},
"email": {
"type": "string"
},
"id": {
"type": "integer"
},
"memo": {
"type": "string"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
},
"state": {
"type": "integer"
},
"uuid": {
"type": "integer"
}
}
},
"md.AgentList": {
"type": "object",
"properties": {
@@ -854,9 +1015,6 @@
"country_region_id": {
"type": "integer"
},
"create_at": {
"type": "string"
},
"id": {
"type": "integer"
},
@@ -890,9 +1048,6 @@
"unified_social_credit_code": {
"type": "string"
},
"update_at": {
"type": "string"
},
"uuid": {
"type": "integer"
}


+ 109
- 7
docs/swagger.yaml View File

@@ -32,6 +32,50 @@ definitions:
username:
type: string
type: object
md.AgentBankInfo:
properties:
agent_id:
type: integer
bank:
type: string
bank_branch:
type: string
bank_no:
type: string
currency_conf:
type: integer
id:
type: integer
licence:
type: string
memo:
type: string
state:
type: integer
uuid:
type: integer
type: object
md.AgentContactInfo:
properties:
address:
type: string
agent_id:
type: integer
email:
type: string
id:
type: integer
memo:
type: string
name:
type: string
phone:
type: string
state:
type: integer
uuid:
type: integer
type: object
md.AgentList:
properties:
agent_id:
@@ -54,8 +98,6 @@ definitions:
type: string
country_region_id:
type: integer
create_at:
type: string
id:
type: integer
kind:
@@ -78,8 +120,6 @@ definitions:
type: integer
unified_social_credit_code:
type: string
update_at:
type: string
uuid:
type: integer
type: object
@@ -224,6 +264,68 @@ paths:
summary: 登陆
tags:
- ADMIN
/api/qualification/bank/save:
post:
consumes:
- application/json
description: 资质认证-银行资质保存
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AgentBankInfo'
produces:
- application/json
responses:
"200":
description: 具体看返回内容
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 银行资质保存
tags:
- 资质认证------嘉俊
/api/qualification/contact/save:
post:
consumes:
- application/json
description: 资质认证-联系方式保存
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AgentContactInfo'
produces:
- application/json
responses:
"200":
description: 具体看返回内容
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 联系方式保存
tags:
- 资质认证------嘉俊
/api/qualification/enterprise/save:
post:
consumes:
@@ -254,7 +356,7 @@ paths:
$ref: '#/definitions/md.Response'
summary: 企业认证保存
tags:
- 资质认证
- 资质认证------嘉俊
/api/qualification/info:
get:
consumes:
@@ -279,7 +381,7 @@ paths:
$ref: '#/definitions/md.Response'
summary: 基本信息
tags:
- 资质认证
- 资质认证------嘉俊
/api/qualification/select/base:
get:
consumes:
@@ -304,7 +406,7 @@ paths:
$ref: '#/definitions/md.Response'
summary: 认证下拉框选择内容
tags:
- 资质认证
- 资质认证------嘉俊
/api/role/addAdmin:
post:
consumes:


Loading…
Cancel
Save