docs.go 24 KB

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