swagger.json 24 KB

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