| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- // Package docs GENERATED BY SWAG; DO NOT EDIT
- // This file was generated by swaggo/swag
- package docs
- import "github.com/swaggo/swag"
- const docTemplate = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{escape .Description}}",
- "title": "{{.Title}}",
- "contact": {},
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "paths": {
- "/Account/AddUser": {
- "post": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "账户服务"
- ],
- "summary": "实名认证添加用户",
- "parameters": [
- {
- "description": "入参",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.AddUserReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/Account/CreateContractAndAddSigner": {
- "post": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "账户服务"
- ],
- "summary": "上传待签署文件和添加签署方",
- "parameters": [
- {
- "description": "入参",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.CreateContractAndAddSignerReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/Account/Login": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "账户服务"
- ],
- "summary": "账户登录",
- "parameters": [
- {
- "description": "登录入参",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.LoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "返回包括用户信息,token,过期时间",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "$ref": "#/definitions/response.LoginRsp"
- },
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/Account/Loginout": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "账户服务"
- ],
- "summary": "用户登出请求",
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/Account/QueryUserESignRecord": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "账户服务"
- ],
- "summary": "查询用户电子签记录表",
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/account.Useresignrecord"
- }
- },
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/Account/TokenCheck": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "账户服务"
- ],
- "summary": "Token校验",
- "responses": {
- "200": {
- "description": "操作成功",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/MQ/SendMsgToMQ": {
- "post": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "总线业务"
- ],
- "summary": "总线业务",
- "parameters": [
- {
- "description": "入参",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.MQBodyReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "$ref": "#/definitions/response.MQBodyRsp"
- },
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/MQ/SendNtfToMQ": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "总线业务"
- ],
- "summary": "总线通知",
- "parameters": [
- {
- "description": "入参",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.MQNtfReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/Quote/QuoteSubscribe": {
- "post": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "实时行情"
- ],
- "summary": "订阅商品实时行情请求",
- "parameters": [
- {
- "description": "入参1",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.QuoteSubscribeReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "出参",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- "definitions": {
- "account.Useresignrecord": {
- "type": "object",
- "properties": {
- "authinfo": {
- "description": "认证信息",
- "type": "string"
- },
- "contractfileaddr": {
- "description": "合同签署文件地址",
- "type": "string"
- },
- "contractno": {
- "description": "合同编号",
- "type": "string"
- },
- "createtime": {
- "description": "创建时间",
- "type": "string"
- },
- "creatorid": {
- "description": "创建人",
- "type": "integer"
- },
- "orderindex": {
- "description": "显示顺序",
- "type": "integer"
- },
- "recordid": {
- "description": "记录ID(SEQ_USERESIGNRECORD)",
- "type": "integer"
- },
- "recordstatus": {
- "description": "记录状态 - 1:未签署 2:签署中 3:已签署 4:签署拒绝",
- "type": "integer"
- },
- "signremark": {
- "description": "签署备注",
- "type": "string"
- },
- "signurl": {
- "description": "合同签署URL(三方URL)",
- "type": "string"
- },
- "templateconfigid": {
- "description": "模板配置ID",
- "type": "integer"
- },
- "templatename": {
- "description": "模板名称",
- "type": "string"
- },
- "templateno": {
- "description": "模板编号(电子签类型对应的模板编号)",
- "type": "string"
- },
- "templatetype": {
- "description": "模板类型 - 1:实名认证 2:开户协议",
- "type": "integer"
- },
- "updatetime": {
- "description": "更新时间",
- "type": "string"
- },
- "userid": {
- "description": "用户ID",
- "type": "integer"
- }
- }
- },
- "request.AddUserReq": {
- "type": "object",
- "required": [
- "idCard",
- "name"
- ],
- "properties": {
- "idCard": {
- "description": "证件号码",
- "type": "string"
- },
- "idCardPhoto": {
- "description": "证件照正面",
- "type": "string"
- },
- "idCardPhotoBackURL": {
- "description": "证件照背面",
- "type": "string"
- },
- "idCardType": {
- "description": "证件类型(默认1):1-居民身份证 2-台湾居民来往内地通行证 3-港澳居民往来内地通行证 10-武装警察身份证 11-军人身份证 15-警察(警官)证 21-外国人永久居留证 23-护照",
- "type": "integer"
- },
- "mobile": {
- "description": "手机号码",
- "type": "string"
- },
- "name": {
- "description": "用户姓名",
- "type": "string"
- }
- }
- },
- "request.CreateContractAndAddSignerReq": {
- "type": "object",
- "required": [
- "templateNo"
- ],
- "properties": {
- "templateNo": {
- "description": "合同模板编号",
- "type": "string"
- }
- }
- },
- "request.LoginReq": {
- "type": "object",
- "required": [
- "clientType",
- "password",
- "userName"
- ],
- "properties": {
- "clientType": {
- "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果",
- "type": "integer"
- },
- "password": {
- "description": "密码",
- "type": "string"
- },
- "userName": {
- "description": "用户名,可以是LoginID/LoginCode/手机号码",
- "type": "string"
- }
- }
- },
- "request.MQBodyReq": {
- "type": "object",
- "required": [
- "data",
- "funCodeReq",
- "isEncrypted"
- ],
- "properties": {
- "data": {
- "description": "请求数据",
- "type": "string"
- },
- "funCodeReq": {
- "description": "请求功能码",
- "type": "integer"
- },
- "funCodeRsp": {
- "description": "回复功能码",
- "type": "integer"
- },
- "isEncrypted": {
- "description": "是否加密",
- "type": "boolean"
- }
- }
- },
- "request.MQNtfReq": {
- "type": "object",
- "required": [
- "data",
- "funCode"
- ],
- "properties": {
- "data": {
- "description": "数据",
- "type": "string"
- },
- "funCode": {
- "description": "功能码",
- "type": "integer"
- },
- "topic": {
- "description": "主题",
- "type": "string"
- }
- }
- },
- "request.QuoteGoods": {
- "type": "object",
- "properties": {
- "exchangeId": {
- "description": "交易所代码,一般写死250",
- "type": "integer"
- },
- "goodsCode": {
- "description": "商品代码,全大写",
- "type": "string"
- }
- }
- },
- "request.QuoteSubscribeReq": {
- "type": "object",
- "properties": {
- "quoteGoodses": {
- "description": "待订阅商品信息",
- "type": "array",
- "items": {
- "$ref": "#/definitions/request.QuoteGoods"
- }
- }
- }
- },
- "response.LoginRsp": {
- "type": "object",
- "properties": {
- "expiresAt": {
- "description": "过期时间",
- "type": "integer"
- },
- "loginId": {
- "description": "登录ID",
- "type": "integer"
- },
- "token": {
- "description": "新服务Token",
- "type": "string"
- },
- "userId": {
- "description": "用户ID",
- "type": "integer"
- }
- }
- },
- "response.MQBodyRsp": {
- "type": "object",
- "properties": {
- "data": {
- "description": "请求数据",
- "type": "string"
- },
- "funcode": {
- "description": "回复功能码",
- "type": "integer"
- },
- "isEncrypted": {
- "description": "是否加密",
- "type": "boolean"
- }
- }
- },
- "response.Response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
- },
- "data": {},
- "msg": {
- "type": "string"
- }
- }
- }
- },
- "securityDefinitions": {
- "ApiKeyAuth": {
- "type": "apiKey",
- "name": "x-token",
- "in": "header"
- }
- }
- }`
- // SwaggerInfo holds exported Swagger Info so clients can modify it
- var SwaggerInfo = &swag.Spec{
- Version: "0.0.1",
- Host: "",
- BasePath: "",
- Schemes: []string{},
- Title: "Swagger Example API",
- Description: "新接入服务",
- InfoInstanceName: "swagger",
- SwaggerTemplate: docTemplate,
- }
- func init() {
- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
- }
|