docs.go 24 KB

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