docs.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. // Package docs GENERATED BY SWAG; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import "github.com/swaggo/swag"
  5. const docTemplate = `{
  6. "schemes": {{ marshal .Schemes }},
  7. "swagger": "2.0",
  8. "info": {
  9. "description": "{{escape .Description}}",
  10. "title": "{{.Title}}",
  11. "contact": {},
  12. "version": "{{.Version}}"
  13. },
  14. "host": "{{.Host}}",
  15. "basePath": "{{.BasePath}}",
  16. "paths": {
  17. "/Account/AddUser": {
  18. "post": {
  19. "security": [
  20. {
  21. "ApiKeyAuth": []
  22. }
  23. ],
  24. "consumes": [
  25. "application/json"
  26. ],
  27. "produces": [
  28. "application/json"
  29. ],
  30. "tags": [
  31. "账户服务"
  32. ],
  33. "summary": "实名认证添加用户",
  34. "parameters": [
  35. {
  36. "description": "入参",
  37. "name": "data",
  38. "in": "body",
  39. "required": true,
  40. "schema": {
  41. "$ref": "#/definitions/request.AddUserReq"
  42. }
  43. }
  44. ],
  45. "responses": {
  46. "200": {
  47. "description": "出参",
  48. "schema": {
  49. "allOf": [
  50. {
  51. "$ref": "#/definitions/response.Response"
  52. },
  53. {
  54. "type": "object",
  55. "properties": {
  56. "msg": {
  57. "type": "string"
  58. }
  59. }
  60. }
  61. ]
  62. }
  63. }
  64. }
  65. }
  66. },
  67. "/Account/Login": {
  68. "post": {
  69. "consumes": [
  70. "application/json"
  71. ],
  72. "produces": [
  73. "application/json"
  74. ],
  75. "tags": [
  76. "账户服务"
  77. ],
  78. "summary": "账户登录",
  79. "parameters": [
  80. {
  81. "description": "登录入参",
  82. "name": "data",
  83. "in": "body",
  84. "required": true,
  85. "schema": {
  86. "$ref": "#/definitions/request.LoginReq"
  87. }
  88. }
  89. ],
  90. "responses": {
  91. "200": {
  92. "description": "返回包括用户信息,token,过期时间",
  93. "schema": {
  94. "allOf": [
  95. {
  96. "$ref": "#/definitions/response.Response"
  97. },
  98. {
  99. "type": "object",
  100. "properties": {
  101. "data": {
  102. "$ref": "#/definitions/response.LoginRsp"
  103. },
  104. "msg": {
  105. "type": "string"
  106. }
  107. }
  108. }
  109. ]
  110. }
  111. }
  112. }
  113. }
  114. },
  115. "/Account/Loginout": {
  116. "get": {
  117. "security": [
  118. {
  119. "ApiKeyAuth": []
  120. }
  121. ],
  122. "consumes": [
  123. "application/json"
  124. ],
  125. "produces": [
  126. "application/json"
  127. ],
  128. "tags": [
  129. "账户服务"
  130. ],
  131. "summary": "用户登出请求",
  132. "responses": {
  133. "200": {
  134. "description": "出参",
  135. "schema": {
  136. "allOf": [
  137. {
  138. "$ref": "#/definitions/response.Response"
  139. },
  140. {
  141. "type": "object",
  142. "properties": {
  143. "msg": {
  144. "type": "string"
  145. }
  146. }
  147. }
  148. ]
  149. }
  150. }
  151. }
  152. }
  153. },
  154. "/Account/QueryUserESignRecord": {
  155. "get": {
  156. "security": [
  157. {
  158. "ApiKeyAuth": []
  159. }
  160. ],
  161. "consumes": [
  162. "application/json"
  163. ],
  164. "produces": [
  165. "application/json"
  166. ],
  167. "tags": [
  168. "账户服务"
  169. ],
  170. "summary": "查询用户电子签记录表",
  171. "responses": {
  172. "200": {
  173. "description": "出参",
  174. "schema": {
  175. "allOf": [
  176. {
  177. "$ref": "#/definitions/response.Response"
  178. },
  179. {
  180. "type": "object",
  181. "properties": {
  182. "data": {
  183. "type": "array",
  184. "items": {
  185. "$ref": "#/definitions/account.Useresignrecord"
  186. }
  187. },
  188. "msg": {
  189. "type": "string"
  190. }
  191. }
  192. }
  193. ]
  194. }
  195. }
  196. }
  197. }
  198. },
  199. "/Account/TokenCheck": {
  200. "get": {
  201. "security": [
  202. {
  203. "ApiKeyAuth": []
  204. }
  205. ],
  206. "consumes": [
  207. "application/json"
  208. ],
  209. "produces": [
  210. "application/json"
  211. ],
  212. "tags": [
  213. "账户服务"
  214. ],
  215. "summary": "Token校验",
  216. "responses": {
  217. "200": {
  218. "description": "操作成功",
  219. "schema": {
  220. "allOf": [
  221. {
  222. "$ref": "#/definitions/response.Response"
  223. },
  224. {
  225. "type": "object",
  226. "properties": {
  227. "msg": {
  228. "type": "string"
  229. }
  230. }
  231. }
  232. ]
  233. }
  234. }
  235. }
  236. }
  237. },
  238. "/MQ/SendMsgToMQ": {
  239. "post": {
  240. "security": [
  241. {
  242. "ApiKeyAuth": []
  243. }
  244. ],
  245. "consumes": [
  246. "application/json"
  247. ],
  248. "produces": [
  249. "application/json"
  250. ],
  251. "tags": [
  252. "总线业务"
  253. ],
  254. "summary": "总线业务",
  255. "parameters": [
  256. {
  257. "description": "入参",
  258. "name": "data",
  259. "in": "body",
  260. "required": true,
  261. "schema": {
  262. "$ref": "#/definitions/request.MQBodyReq"
  263. }
  264. }
  265. ],
  266. "responses": {
  267. "200": {
  268. "description": "出参",
  269. "schema": {
  270. "allOf": [
  271. {
  272. "$ref": "#/definitions/response.Response"
  273. },
  274. {
  275. "type": "object",
  276. "properties": {
  277. "data": {
  278. "$ref": "#/definitions/response.MQBodyRsp"
  279. },
  280. "msg": {
  281. "type": "string"
  282. }
  283. }
  284. }
  285. ]
  286. }
  287. }
  288. }
  289. }
  290. },
  291. "/MQ/SendNtfToMQ": {
  292. "post": {
  293. "consumes": [
  294. "application/json"
  295. ],
  296. "produces": [
  297. "application/json"
  298. ],
  299. "tags": [
  300. "总线业务"
  301. ],
  302. "summary": "总线通知",
  303. "parameters": [
  304. {
  305. "description": "入参",
  306. "name": "data",
  307. "in": "body",
  308. "required": true,
  309. "schema": {
  310. "$ref": "#/definitions/request.MQNtfReq"
  311. }
  312. }
  313. ],
  314. "responses": {
  315. "200": {
  316. "description": "出参",
  317. "schema": {
  318. "allOf": [
  319. {
  320. "$ref": "#/definitions/response.Response"
  321. },
  322. {
  323. "type": "object",
  324. "properties": {
  325. "msg": {
  326. "type": "string"
  327. }
  328. }
  329. }
  330. ]
  331. }
  332. }
  333. }
  334. }
  335. },
  336. "/Quote/QuoteSubscribe": {
  337. "post": {
  338. "security": [
  339. {
  340. "ApiKeyAuth": []
  341. }
  342. ],
  343. "consumes": [
  344. "application/json"
  345. ],
  346. "produces": [
  347. "application/json"
  348. ],
  349. "tags": [
  350. "实时行情"
  351. ],
  352. "summary": "订阅商品实时行情请求",
  353. "parameters": [
  354. {
  355. "description": "入参1",
  356. "name": "data",
  357. "in": "body",
  358. "required": true,
  359. "schema": {
  360. "$ref": "#/definitions/request.QuoteSubscribeReq"
  361. }
  362. }
  363. ],
  364. "responses": {
  365. "200": {
  366. "description": "出参",
  367. "schema": {
  368. "allOf": [
  369. {
  370. "$ref": "#/definitions/response.Response"
  371. },
  372. {
  373. "type": "object",
  374. "properties": {
  375. "msg": {
  376. "type": "string"
  377. }
  378. }
  379. }
  380. ]
  381. }
  382. }
  383. }
  384. }
  385. }
  386. },
  387. "definitions": {
  388. "account.Useresignrecord": {
  389. "type": "object",
  390. "properties": {
  391. "authinfo": {
  392. "description": "认证信息",
  393. "type": "string"
  394. },
  395. "contractfileaddr": {
  396. "description": "合同签署文件地址",
  397. "type": "string"
  398. },
  399. "contractno": {
  400. "description": "合同编号",
  401. "type": "string"
  402. },
  403. "createtime": {
  404. "description": "创建时间",
  405. "type": "string"
  406. },
  407. "creatorid": {
  408. "description": "创建人",
  409. "type": "integer"
  410. },
  411. "orderindex": {
  412. "description": "显示顺序",
  413. "type": "integer"
  414. },
  415. "recordid": {
  416. "description": "记录ID(SEQ_USERESIGNRECORD)",
  417. "type": "integer"
  418. },
  419. "recordstatus": {
  420. "description": "记录状态 - 1:未签署 2:签署中 3:已签署 4:签署拒绝",
  421. "type": "integer"
  422. },
  423. "signremark": {
  424. "description": "签署备注",
  425. "type": "string"
  426. },
  427. "signurl": {
  428. "description": "合同签署URL(三方URL)",
  429. "type": "string"
  430. },
  431. "templateconfigid": {
  432. "description": "模板配置ID",
  433. "type": "integer"
  434. },
  435. "templatename": {
  436. "description": "模板名称",
  437. "type": "string"
  438. },
  439. "templateno": {
  440. "description": "模板编号(电子签类型对应的模板编号)",
  441. "type": "string"
  442. },
  443. "templatetype": {
  444. "description": "模板类型 - 1:实名认证 2:开户协议",
  445. "type": "integer"
  446. },
  447. "updatetime": {
  448. "description": "更新时间",
  449. "type": "string"
  450. },
  451. "userid": {
  452. "description": "用户ID",
  453. "type": "integer"
  454. }
  455. }
  456. },
  457. "request.AddUserReq": {
  458. "type": "object",
  459. "required": [
  460. "idCard",
  461. "name"
  462. ],
  463. "properties": {
  464. "idCard": {
  465. "description": "证件号码",
  466. "type": "string"
  467. },
  468. "idCardPhoto": {
  469. "description": "证件照正面",
  470. "type": "string"
  471. },
  472. "idCardPhotoBackURL": {
  473. "description": "证件照背面",
  474. "type": "string"
  475. },
  476. "idCardType": {
  477. "description": "证件类型(默认1):1-居民身份证 2-台湾居民来往内地通行证 3-港澳居民往来内地通行证 10-武装警察身份证 11-军人身份证 15-警察(警官)证 21-外国人永久居留证 23-护照",
  478. "type": "integer"
  479. },
  480. "mobile": {
  481. "description": "手机号码",
  482. "type": "string"
  483. },
  484. "name": {
  485. "description": "用户姓名",
  486. "type": "string"
  487. }
  488. }
  489. },
  490. "request.LoginReq": {
  491. "type": "object",
  492. "required": [
  493. "clientType",
  494. "password",
  495. "userName"
  496. ],
  497. "properties": {
  498. "clientType": {
  499. "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果",
  500. "type": "integer"
  501. },
  502. "password": {
  503. "description": "密码",
  504. "type": "string"
  505. },
  506. "userName": {
  507. "description": "用户名,可以是LoginID/LoginCode/手机号码",
  508. "type": "string"
  509. }
  510. }
  511. },
  512. "request.MQBodyReq": {
  513. "type": "object",
  514. "required": [
  515. "data",
  516. "funCodeReq",
  517. "isEncrypted"
  518. ],
  519. "properties": {
  520. "data": {
  521. "description": "请求数据",
  522. "type": "string"
  523. },
  524. "funCodeReq": {
  525. "description": "请求功能码",
  526. "type": "integer"
  527. },
  528. "funCodeRsp": {
  529. "description": "回复功能码",
  530. "type": "integer"
  531. },
  532. "isEncrypted": {
  533. "description": "是否加密",
  534. "type": "boolean"
  535. }
  536. }
  537. },
  538. "request.MQNtfReq": {
  539. "type": "object",
  540. "required": [
  541. "data",
  542. "funCode"
  543. ],
  544. "properties": {
  545. "data": {
  546. "description": "数据",
  547. "type": "string"
  548. },
  549. "funCode": {
  550. "description": "功能码",
  551. "type": "integer"
  552. },
  553. "topic": {
  554. "description": "主题",
  555. "type": "string"
  556. }
  557. }
  558. },
  559. "request.QuoteGoods": {
  560. "type": "object",
  561. "properties": {
  562. "exchangeId": {
  563. "description": "交易所代码,一般写死250",
  564. "type": "integer"
  565. },
  566. "goodsCode": {
  567. "description": "商品代码,全大写",
  568. "type": "string"
  569. }
  570. }
  571. },
  572. "request.QuoteSubscribeReq": {
  573. "type": "object",
  574. "properties": {
  575. "quoteGoodses": {
  576. "description": "待订阅商品信息",
  577. "type": "array",
  578. "items": {
  579. "$ref": "#/definitions/request.QuoteGoods"
  580. }
  581. }
  582. }
  583. },
  584. "response.LoginRsp": {
  585. "type": "object",
  586. "properties": {
  587. "expiresAt": {
  588. "description": "过期时间",
  589. "type": "integer"
  590. },
  591. "loginId": {
  592. "description": "登录ID",
  593. "type": "integer"
  594. },
  595. "token": {
  596. "description": "新服务Token",
  597. "type": "string"
  598. },
  599. "userId": {
  600. "description": "用户ID",
  601. "type": "integer"
  602. }
  603. }
  604. },
  605. "response.MQBodyRsp": {
  606. "type": "object",
  607. "properties": {
  608. "data": {
  609. "description": "请求数据",
  610. "type": "string"
  611. },
  612. "funcode": {
  613. "description": "回复功能码",
  614. "type": "integer"
  615. },
  616. "isEncrypted": {
  617. "description": "是否加密",
  618. "type": "boolean"
  619. }
  620. }
  621. },
  622. "response.Response": {
  623. "type": "object",
  624. "properties": {
  625. "code": {
  626. "type": "integer"
  627. },
  628. "data": {},
  629. "msg": {
  630. "type": "string"
  631. }
  632. }
  633. }
  634. },
  635. "securityDefinitions": {
  636. "ApiKeyAuth": {
  637. "type": "apiKey",
  638. "name": "x-token",
  639. "in": "header"
  640. }
  641. }
  642. }`
  643. // SwaggerInfo holds exported Swagger Info so clients can modify it
  644. var SwaggerInfo = &swag.Spec{
  645. Version: "0.0.1",
  646. Host: "",
  647. BasePath: "",
  648. Schemes: []string{},
  649. Title: "Swagger Example API",
  650. Description: "新接入服务",
  651. InfoInstanceName: "swagger",
  652. SwaggerTemplate: docTemplate,
  653. }
  654. func init() {
  655. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  656. }