swagger.yml 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700
  1. openapi: 3.0.0
  2. info:
  3. title: micro_learning
  4. description: CRM
  5. version: 0.0.1
  6. paths:
  7. /Test.Nullable:
  8. post:
  9. tags:
  10. - 测试
  11. operationId: Test.Nullable
  12. summary: 测试空值参数
  13. requestBody:
  14. required: true
  15. content:
  16. application/json:
  17. schema:
  18. oneOf:
  19. - $ref: '#/components/schemas/Nullable'
  20. examples:
  21. AllPass:
  22. $ref: '#/components/examples/NullableReqAllPass'
  23. responses:
  24. 200:
  25. description: 请求成功
  26. content:
  27. application/json:
  28. examples:
  29. success:
  30. $ref: "#/components/examples/success"
  31. /CtrContract.Get:
  32. post:
  33. tags:
  34. - 合同
  35. operationId: CtrContractGet
  36. summary: 合同详情
  37. requestBody:
  38. required: true
  39. content:
  40. application/json:
  41. schema:
  42. oneOf:
  43. - $ref: '#/components/schemas/IdReq'
  44. examples:
  45. IdReq:
  46. $ref: '#/components/examples/IdReq'
  47. responses:
  48. 200:
  49. description: 请求成功
  50. content:
  51. application/json:
  52. examples:
  53. success:
  54. $ref: "#/components/examples/success"
  55. /CtrContract.List:
  56. post:
  57. tags:
  58. - 合同
  59. operationId: CtrContractList
  60. summary: 查询合同
  61. requestBody:
  62. required: true
  63. content:
  64. application/json:
  65. schema:
  66. oneOf:
  67. - $ref: '#/components/schemas/CtrContractList'
  68. examples:
  69. CtrContractList:
  70. $ref: '#/components/examples/CtrContractList'
  71. responses:
  72. 200:
  73. description: 请求成功
  74. content:
  75. application/json:
  76. schema:
  77. oneOf:
  78. - $ref: '#/components/schemas/CtrContractListRsp'
  79. examples:
  80. success:
  81. $ref: "#/components/examples/success"
  82. /CtrContract.DynamicsList:
  83. post:
  84. tags:
  85. - 合同
  86. operationId: CtrContractDynamicsList
  87. summary: 查询合同活动
  88. requestBody:
  89. required: true
  90. content:
  91. application/json:
  92. schema:
  93. oneOf:
  94. - $ref: '#/components/schemas/CtrContractDynamicsList'
  95. examples:
  96. CtrContractDynamicsList:
  97. $ref: '#/components/examples/CtrContractDynamicsList'
  98. responses:
  99. 200:
  100. description: 请求成功
  101. content:
  102. application/json:
  103. examples:
  104. success:
  105. $ref: "#/components/examples/success"
  106. /CtrContract.Add:
  107. post:
  108. tags:
  109. - 合同
  110. operationId: CtrContractAdd
  111. summary: 新增合同
  112. requestBody:
  113. required: true
  114. content:
  115. application/json:
  116. schema:
  117. oneOf:
  118. - $ref: '#/components/schemas/CtrContractAdd'
  119. examples:
  120. CtrContractAdd:
  121. $ref: '#/components/examples/CtrContractAdd'
  122. responses:
  123. 200:
  124. description: 请求成功
  125. content:
  126. application/json:
  127. examples:
  128. success:
  129. $ref: "#/components/examples/success"
  130. /CtrContract.Update:
  131. post:
  132. tags:
  133. - 合同
  134. operationId: CtrContractUpdate
  135. summary: 更新合同
  136. requestBody:
  137. required: true
  138. content:
  139. application/json:
  140. schema:
  141. oneOf:
  142. - $ref: '#/components/schemas/CtrContractUpdate'
  143. examples:
  144. CtrContractUpdate:
  145. $ref: '#/components/examples/CtrContractUpdate'
  146. responses:
  147. 200:
  148. description: 请求成功
  149. content:
  150. application/json:
  151. examples:
  152. success:
  153. $ref: "#/components/examples/success"
  154. /CtrContract.Transfer:
  155. post:
  156. tags:
  157. - 合同
  158. operationId: CtrContractTransfer
  159. summary: 转移合同
  160. requestBody:
  161. required: true
  162. content:
  163. application/json:
  164. schema:
  165. oneOf:
  166. - $ref: '#/components/schemas/CtrContractTransfer'
  167. examples:
  168. CtrContractTransfer:
  169. $ref: '#/components/examples/CtrContractTransfer'
  170. responses:
  171. 200:
  172. description: 请求成功
  173. content:
  174. application/json:
  175. examples:
  176. success:
  177. $ref: "#/components/examples/success"
  178. /CtrContract.Delete:
  179. post:
  180. tags:
  181. - 合同
  182. operationId: CtrContractDelete
  183. summary: 删除合同
  184. requestBody:
  185. required: true
  186. content:
  187. application/json:
  188. schema:
  189. oneOf:
  190. - $ref: '#/components/schemas/IdsReq'
  191. examples:
  192. IdsReq:
  193. $ref: '#/components/examples/IdsReq'
  194. responses:
  195. 200:
  196. description: 请求成功
  197. content:
  198. application/json:
  199. examples:
  200. success:
  201. $ref: "#/components/examples/success"
  202. /CtrContractCollectionPlan.Get:
  203. post:
  204. tags:
  205. - 回款计划
  206. operationId: CtrContractCollectionPlanGet
  207. summary: 回款计划详情
  208. requestBody:
  209. required: true
  210. content:
  211. application/json:
  212. schema:
  213. oneOf:
  214. - $ref: '#/components/schemas/IdReq'
  215. examples:
  216. IdReq:
  217. $ref: '#/components/examples/IdReq'
  218. responses:
  219. 200:
  220. description: 请求成功
  221. content:
  222. application/json:
  223. examples:
  224. success:
  225. $ref: "#/components/examples/success"
  226. /CtrContractCollectionPlan.List:
  227. post:
  228. tags:
  229. - 回款计划
  230. operationId: CtrContractCollectionPlanList
  231. summary: 查询回款计划
  232. requestBody:
  233. required: true
  234. content:
  235. application/json:
  236. schema:
  237. oneOf:
  238. - $ref: '#/components/schemas/CtrContractCollectionPlanList'
  239. examples:
  240. CtrContractCollectionPlanList:
  241. $ref: '#/components/examples/CtrContractCollectionPlanList'
  242. responses:
  243. 200:
  244. description: 请求成功
  245. content:
  246. application/json:
  247. schema:
  248. oneOf:
  249. - $ref: '#/components/schemas/CtrContractCollectionPlanListRsp'
  250. examples:
  251. success:
  252. $ref: "#/components/examples/success"
  253. /CtrContractCollectionPlan.Add:
  254. post:
  255. tags:
  256. - 回款计划
  257. operationId: CtrContractCollectionPlanAdd
  258. summary: 新增回款计划
  259. requestBody:
  260. required: true
  261. content:
  262. application/json:
  263. schema:
  264. oneOf:
  265. - $ref: '#/components/schemas/CtrContractCollectionPlanAdd'
  266. examples:
  267. CtrContractCollectionPlanAdd:
  268. $ref: '#/components/examples/CtrContractCollectionPlanAdd'
  269. responses:
  270. 200:
  271. description: 请求成功
  272. content:
  273. application/json:
  274. examples:
  275. success:
  276. $ref: "#/components/examples/success"
  277. /CtrContractCollectionPlan.Update:
  278. post:
  279. tags:
  280. - 回款计划
  281. operationId: CtrContractCollectionPlanUpdate
  282. summary: 更新回款计划
  283. requestBody:
  284. required: true
  285. content:
  286. application/json:
  287. schema:
  288. oneOf:
  289. - $ref: '#/components/schemas/CtrContractCollectionPlanUpdate'
  290. examples:
  291. CtrContractCollectionPlanUpdate:
  292. $ref: '#/components/examples/CtrContractCollectionPlanUpdate'
  293. responses:
  294. 200:
  295. description: 请求成功
  296. content:
  297. application/json:
  298. examples:
  299. success:
  300. $ref: "#/components/examples/success"
  301. /CtrContractCollectionPlan.Delete:
  302. post:
  303. tags:
  304. - 回款计划
  305. operationId: CtrContractCollectionPlanDelete
  306. summary: 删除回款计划
  307. requestBody:
  308. required: true
  309. content:
  310. application/json:
  311. schema:
  312. oneOf:
  313. - $ref: '#/components/schemas/IdsReq'
  314. examples:
  315. IdsReq:
  316. $ref: '#/components/examples/IdsReq'
  317. responses:
  318. 200:
  319. description: 请求成功
  320. content:
  321. application/json:
  322. examples:
  323. success:
  324. $ref: "#/components/examples/success"
  325. /CtrContractCollection.List:
  326. post:
  327. tags:
  328. - 回款
  329. operationId: CtrContractCollectionList
  330. summary: 查询回款
  331. requestBody:
  332. required: true
  333. content:
  334. application/json:
  335. schema:
  336. oneOf:
  337. - $ref: '#/components/schemas/CtrContractCollectionList'
  338. examples:
  339. CtrContractCollectionList:
  340. $ref: '#/components/examples/CtrContractCollectionList'
  341. responses:
  342. 200:
  343. description: 请求成功
  344. content:
  345. application/json:
  346. schema:
  347. oneOf:
  348. - $ref: '#/components/schemas/CtrContractCollectionListRsp'
  349. examples:
  350. success:
  351. $ref: "#/components/examples/success"
  352. /CtrContractCollection.Add:
  353. post:
  354. tags:
  355. - 回款
  356. operationId: CtrContractCollectionAdd
  357. summary: 新增回款
  358. requestBody:
  359. required: true
  360. content:
  361. application/json:
  362. schema:
  363. oneOf:
  364. - $ref: '#/components/schemas/CtrContractCollectionAdd'
  365. examples:
  366. CtrContractCollectionAdd:
  367. $ref: '#/components/examples/CtrContractCollectionAdd'
  368. responses:
  369. 200:
  370. description: 请求成功
  371. content:
  372. application/json:
  373. examples:
  374. success:
  375. $ref: "#/components/examples/success"
  376. /CtrContractCollection.Update:
  377. post:
  378. tags:
  379. - 回款
  380. operationId: CtrContractCollectionUpdate
  381. summary: 更新回款
  382. requestBody:
  383. required: true
  384. content:
  385. application/json:
  386. schema:
  387. oneOf:
  388. - $ref: '#/components/schemas/CtrContractCollectionUpdate'
  389. examples:
  390. CtrContractCollectionUpdate:
  391. $ref: '#/components/examples/CtrContractCollectionUpdate'
  392. responses:
  393. 200:
  394. description: 请求成功
  395. content:
  396. application/json:
  397. examples:
  398. success:
  399. $ref: "#/components/examples/success"
  400. /CtrContractCollection.Delete:
  401. post:
  402. tags:
  403. - 回款
  404. operationId: CtrContractCollectionDelete
  405. summary: 删除回款
  406. requestBody:
  407. required: true
  408. content:
  409. application/json:
  410. schema:
  411. oneOf:
  412. - $ref: '#/components/schemas/IdsReq'
  413. examples:
  414. IdsReq:
  415. $ref: '#/components/examples/IdsReq'
  416. responses:
  417. 200:
  418. description: 请求成功
  419. content:
  420. application/json:
  421. examples:
  422. success:
  423. $ref: "#/components/examples/success"
  424. /CtrContractAppend.List:
  425. post:
  426. tags:
  427. - 合同附件
  428. operationId: CtrContractAppendList
  429. summary: 查询合同附件
  430. requestBody:
  431. required: true
  432. content:
  433. application/json:
  434. schema:
  435. oneOf:
  436. - $ref: '#/components/schemas/CtrContractAppendList'
  437. examples:
  438. CtrContractAppendList:
  439. $ref: '#/components/examples/CtrContractAppendList'
  440. responses:
  441. 200:
  442. description: 请求成功
  443. content:
  444. application/json:
  445. schema:
  446. oneOf:
  447. - $ref: '#/components/schemas/CtrContractAppendListRsp'
  448. examples:
  449. success:
  450. $ref: "#/components/examples/success"
  451. /CtrContractAppend.Add:
  452. post:
  453. tags:
  454. - 合同附件
  455. operationId: CtrContractAppendAdd
  456. summary: 新增合同附件
  457. requestBody:
  458. required: true
  459. content:
  460. application/json:
  461. schema:
  462. oneOf:
  463. - $ref: '#/components/schemas/CtrContractAppendAdd'
  464. examples:
  465. CtrContractAppendAdd:
  466. $ref: '#/components/examples/CtrContractAppendAdd'
  467. responses:
  468. 200:
  469. description: 请求成功
  470. content:
  471. application/json:
  472. examples:
  473. success:
  474. $ref: "#/components/examples/success"
  475. /CtrContractAppend.Update:
  476. post:
  477. tags:
  478. - 合同附件
  479. operationId: CtrContractAppendUpdate
  480. summary: 更新合同附件
  481. requestBody:
  482. required: true
  483. content:
  484. application/json:
  485. schema:
  486. oneOf:
  487. - $ref: '#/components/schemas/CtrContractAppendUpdate'
  488. examples:
  489. CtrContractAppendUpdate:
  490. $ref: '#/components/examples/CtrContractAppendUpdate'
  491. responses:
  492. 200:
  493. description: 请求成功
  494. content:
  495. application/json:
  496. examples:
  497. success:
  498. $ref: "#/components/examples/success"
  499. /CtrContractAppend.Delete:
  500. post:
  501. tags:
  502. - 合同附件
  503. operationId: CtrContractAppendDelete
  504. summary: 删除合同附件
  505. requestBody:
  506. required: true
  507. content:
  508. application/json:
  509. schema:
  510. oneOf:
  511. - $ref: '#/components/schemas/IdsReq'
  512. examples:
  513. IdsReq:
  514. $ref: '#/components/examples/IdsReq'
  515. responses:
  516. 200:
  517. description: 请求成功
  518. content:
  519. application/json:
  520. examples:
  521. success:
  522. $ref: "#/components/examples/success"
  523. /CtrContractInvoice.List:
  524. post:
  525. tags:
  526. - 合同发票
  527. operationId: CtrContractInvoiceList
  528. summary: 查询合同发票
  529. requestBody:
  530. required: true
  531. content:
  532. application/json:
  533. schema:
  534. oneOf:
  535. - $ref: '#/components/schemas/CtrContractInvoiceList'
  536. examples:
  537. CtrContractInvoiceList:
  538. $ref: '#/components/examples/CtrContractInvoiceList'
  539. responses:
  540. 200:
  541. description: 请求成功
  542. content:
  543. application/json:
  544. schema:
  545. oneOf:
  546. - $ref: '#/components/schemas/CtrContractInvoiceListRsp'
  547. examples:
  548. success:
  549. $ref: "#/components/examples/success"
  550. /CtrContractInvoice.Add:
  551. post:
  552. tags:
  553. - 合同发票
  554. operationId: CtrContractInvoiceAdd
  555. summary: 新增合同发票
  556. requestBody:
  557. required: true
  558. content:
  559. application/json:
  560. schema:
  561. oneOf:
  562. - $ref: '#/components/schemas/CtrContractInvoiceAdd'
  563. examples:
  564. CtrContractInvoiceAdd:
  565. $ref: '#/components/examples/CtrContractInvoiceAdd'
  566. responses:
  567. 200:
  568. description: 请求成功
  569. content:
  570. application/json:
  571. examples:
  572. success:
  573. $ref: "#/components/examples/success"
  574. /CtrContractInvoice.Update:
  575. post:
  576. tags:
  577. - 合同发票
  578. operationId: CtrContractInvoiceUpdate
  579. summary: 更新合同发票
  580. requestBody:
  581. required: true
  582. content:
  583. application/json:
  584. schema:
  585. oneOf:
  586. - $ref: '#/components/schemas/CtrContractInvoiceUpdate'
  587. examples:
  588. CtrContractInvoiceUpdate:
  589. $ref: '#/components/examples/CtrContractInvoiceUpdate'
  590. responses:
  591. 200:
  592. description: 请求成功
  593. content:
  594. application/json:
  595. examples:
  596. success:
  597. $ref: "#/components/examples/success"
  598. /CtrContractInvoice.Delete:
  599. post:
  600. tags:
  601. - 合同发票
  602. operationId: CtrContractInvoiceDelete
  603. summary: 删除合同发票
  604. requestBody:
  605. required: true
  606. content:
  607. application/json:
  608. schema:
  609. oneOf:
  610. - $ref: '#/components/schemas/IdsReq'
  611. examples:
  612. IdsReq:
  613. $ref: '#/components/examples/IdsReq'
  614. responses:
  615. 200:
  616. description: 请求成功
  617. content:
  618. application/json:
  619. examples:
  620. success:
  621. $ref: "#/components/examples/success"
  622. # 添加这个 swagger ui 会显示授权按钮
  623. security:
  624. - bearerAuth: []
  625. components:
  626. securitySchemes:
  627. basicAuth:
  628. type: http
  629. scheme: basic
  630. bearerAuth:
  631. type: http
  632. scheme: bearer
  633. schemas:
  634. Nullable:
  635. type: object
  636. required:
  637. - Str
  638. - Int
  639. - Bool
  640. - Slice
  641. properties:
  642. Str:
  643. type: string
  644. description: 字符串参数
  645. Int:
  646. type: integer
  647. description: Int 参数
  648. Bool:
  649. type: boolean
  650. description: Bool 参数
  651. Slice:
  652. type: array
  653. description: Slice 参数
  654. items:
  655. type: integer
  656. NoArgs:
  657. type: object
  658. properties:
  659. noargs:
  660. type: string
  661. description: 无参数,但是 body 中必须传输一个 json 空对象 "{}"
  662. IdReq:
  663. type: object
  664. required:
  665. - id
  666. properties:
  667. id:
  668. type: integer
  669. description: ID
  670. IdsReq:
  671. type: object
  672. required:
  673. - id
  674. properties:
  675. id:
  676. type: array
  677. description: ID
  678. items:
  679. type: integer
  680. CtrContractList:
  681. type: object
  682. properties:
  683. beginTime:
  684. type: string
  685. description: 开始时间
  686. endTime:
  687. type: string
  688. description: 结束时间
  689. pageNum:
  690. type: integer
  691. description: 当前页码
  692. pageSize:
  693. type: integer
  694. description: 每页数
  695. orderBy:
  696. type: string
  697. description: 排序方式
  698. searchText:
  699. type: string
  700. description: 按合同编号,合同名称,客户名称,项目名称搜索
  701. contractCode:
  702. type: string
  703. description: 合同编号
  704. contractName:
  705. type: string
  706. description: 合同名称
  707. custId:
  708. type: integer
  709. description: 关联客户
  710. custName:
  711. type: string
  712. description: 客户名称
  713. nboId:
  714. type: integer
  715. description: 关联项目
  716. nboName:
  717. type: string
  718. description: 项目名称
  719. approStatus:
  720. type: string
  721. description: 审批状态
  722. contractType:
  723. type: string
  724. description: 合同类型
  725. contractAmount:
  726. type: number
  727. description: 合同金额
  728. invoiceAmount:
  729. type: number
  730. description: 已开票金额
  731. collectedAmount:
  732. type: number
  733. description: 已回款金额
  734. # contractStartTime:
  735. # type: string
  736. # description: 合同开始时间
  737. # contractEndTime:
  738. # type: string
  739. # description: 合同结束时间
  740. inchargeId:
  741. type: integer
  742. description: 负责人ID
  743. inchargeName:
  744. type: string
  745. description: 负责人
  746. signatoryId:
  747. type: integer
  748. description: 公司签约人ID
  749. signatoryName:
  750. type: string
  751. description: 公司签约人
  752. distributorId:
  753. type: integer
  754. description: 经销商ID
  755. distributorName:
  756. type: string
  757. description: 经销商
  758. CtrContractDynamicsList:
  759. type: object
  760. properties:
  761. beginTime:
  762. type: string
  763. description: 开始时间
  764. endTime:
  765. type: string
  766. description: 结束时间
  767. pageNum:
  768. type: integer
  769. description: 当前页码
  770. pageSize:
  771. type: integer
  772. description: 每页数
  773. orderBy:
  774. type: string
  775. description: 排序方式
  776. searchText:
  777. type: string
  778. description: 操作人,操作内容
  779. contractId:
  780. type: integer
  781. description: 合同ID
  782. opnPeopleId:
  783. type: integer
  784. description: 操作人ID
  785. opnPeople:
  786. type: string
  787. description: 操作人
  788. opnType:
  789. type: string
  790. description: 操作类型
  791. # opnContent:
  792. # type: string
  793. # description: 操作内容
  794. CtrContractAdd:
  795. type: object
  796. required:
  797. properties:
  798. contractCode:
  799. type: string
  800. description: 合同编号
  801. contractName:
  802. type: string
  803. description: 合同名称
  804. # custId:
  805. # type: integer
  806. # description: 关联客户
  807. # custName:
  808. # type: string
  809. # description: 客户名称
  810. nboId:
  811. type: integer
  812. description: 关联项目
  813. # nboName:
  814. # type: string
  815. # description: 项目名称
  816. # approStatus:
  817. # type: string
  818. # description: 审批状态
  819. contractType:
  820. type: string
  821. description: 合同类型
  822. # contractAmount:
  823. # type: number
  824. # description: 合同金额
  825. # invoiceAmount:
  826. # type: number
  827. # description: 已开票金额
  828. # collectedAmount:
  829. # type: number
  830. # description: 已回款金额
  831. contractStartTime:
  832. type: string
  833. description: 合同开始时间
  834. contractEndTime:
  835. type: string
  836. description: 合同结束时间
  837. inchargeId:
  838. type: integer
  839. description: 负责人ID
  840. inchargeName:
  841. type: string
  842. description: 负责人
  843. signatoryId:
  844. type: integer
  845. description: 公司签约人ID
  846. signatoryName:
  847. type: string
  848. description: 公司签约人
  849. custSignatoryId:
  850. type: integer
  851. description: 客户签约人ID
  852. custSignatoryName:
  853. type: string
  854. description: 客户签约人
  855. distributorId:
  856. type: integer
  857. description: 经销商ID
  858. distributorName:
  859. type: string
  860. description: 经销商
  861. remark:
  862. type: string
  863. description: 备注
  864. product:
  865. type: array
  866. description: 产品
  867. items:
  868. type: object
  869. properties:
  870. prodId:
  871. type: integer
  872. description: 关联产品
  873. prodNum:
  874. type: integer
  875. description: 产品数量
  876. maintTerm:
  877. type: integer
  878. description: 维保期
  879. sugSalesPrice:
  880. type: number
  881. description: 建议成交价
  882. tranPrice:
  883. type: number
  884. description: 成交价格
  885. remark:
  886. type: string
  887. description: 备注
  888. CtrContractUpdate:
  889. type: object
  890. required:
  891. - id
  892. properties:
  893. id:
  894. type: integer
  895. description: Id
  896. # contractCode:
  897. # type: string
  898. # description: 合同编号
  899. contractName:
  900. type: string
  901. description: 合同名称
  902. # custId:
  903. # type: integer
  904. # description: 关联客户
  905. # custName:
  906. # type: string
  907. # description: 客户名称
  908. nboId:
  909. type: integer
  910. description: 关联项目
  911. # nboName:
  912. # type: string
  913. # description: 项目名称
  914. # approStatus:
  915. # type: string
  916. # description: 审批状态
  917. contractType:
  918. type: string
  919. description: 合同类型
  920. # contractAmount:
  921. # type: number
  922. # description: 合同金额
  923. # invoiceAmount:
  924. # type: number
  925. # description: 已开票金额
  926. # collectedAmount:
  927. # type: number
  928. # description: 已回款金额
  929. contractStartTime:
  930. type: string
  931. description: 合同开始时间
  932. contractEndTime:
  933. type: string
  934. description: 合同结束时间
  935. # inchargeId:
  936. # type: integer
  937. # description: 负责人ID
  938. # inchargeName:
  939. # type: string
  940. # description: 负责人
  941. signatoryId:
  942. type: integer
  943. description: 公司签约人ID
  944. signatoryName:
  945. type: string
  946. description: 公司签约人
  947. custSignatoryId:
  948. type: integer
  949. description: 客户签约人ID
  950. custSignatoryName:
  951. type: string
  952. description: 客户签约人
  953. distributorId:
  954. type: integer
  955. description: 经销商ID
  956. distributorName:
  957. type: string
  958. description: 经销商
  959. remark:
  960. type: string
  961. description: 备注
  962. product:
  963. type: array
  964. description: 产品
  965. items:
  966. type: object
  967. properties:
  968. prodId:
  969. type: integer
  970. description: 关联产品
  971. prodNum:
  972. type: integer
  973. description: 产品数量
  974. maintTerm:
  975. type: integer
  976. description: 维保期
  977. sugSalesPrice:
  978. type: number
  979. description: 建议成交价
  980. tranPrice:
  981. type: number
  982. description: 成交价格
  983. remark:
  984. type: string
  985. description: 备注
  986. CtrContractTransfer:
  987. type: object
  988. required:
  989. - id
  990. properties:
  991. id:
  992. type: integer
  993. description: Id
  994. inchargeId:
  995. type: integer
  996. description: 负责人ID
  997. inchargeName:
  998. type: string
  999. description: 负责人
  1000. CtrContractCollectionPlanList:
  1001. type: object
  1002. properties:
  1003. beginTime:
  1004. type: string
  1005. description: 开始时间
  1006. endTime:
  1007. type: string
  1008. description: 结束时间
  1009. pageNum:
  1010. type: integer
  1011. description: 当前页码
  1012. pageSize:
  1013. type: integer
  1014. description: 每页数
  1015. orderBy:
  1016. type: string
  1017. description: 排序方式
  1018. searchText:
  1019. type: string
  1020. description: 按合同编号,客户名称搜索
  1021. custId:
  1022. type: integer
  1023. description: 关联客户
  1024. custName:
  1025. type: string
  1026. description: 客户名称
  1027. contractId:
  1028. type: integer
  1029. description: 关联合同
  1030. contractCode:
  1031. type: string
  1032. description: 合同编号
  1033. contractStatus:
  1034. type: string
  1035. description: 回款状态(10待回款20部分回款30全部回款)
  1036. # planAmount:
  1037. # type: number
  1038. # description: 计划回款金额
  1039. # planDatetime:
  1040. # type: string
  1041. # description: 计划回款日期
  1042. # cashedAmount:
  1043. # type: number
  1044. # description: 实际回款金额
  1045. # cashedDatetime:
  1046. # type: string
  1047. # description: 实际回款日期
  1048. CtrContractCollectionPlanAdd:
  1049. type: object
  1050. required:
  1051. properties:
  1052. # custId:
  1053. # type: integer
  1054. # description: 关联客户
  1055. # custName:
  1056. # type: string
  1057. # description: 客户名称
  1058. contractId:
  1059. type: integer
  1060. description: 关联合同
  1061. # contractCode:
  1062. # type: string
  1063. # description: 合同编号
  1064. # contractStatus:
  1065. # type: string
  1066. # description: 回款状态(10待回款20部分回款30全部回款)
  1067. planAmount:
  1068. type: number
  1069. description: 计划回款金额
  1070. planDatetime:
  1071. type: string
  1072. description: 计划回款日期
  1073. # cashedAmount:
  1074. # type: number
  1075. # description: 实际回款金额
  1076. # cashedDatetime:
  1077. # type: string
  1078. # description: 实际回款日期
  1079. remark:
  1080. type: string
  1081. description: 备注
  1082. CtrContractCollectionPlanUpdate:
  1083. type: object
  1084. required:
  1085. - id
  1086. properties:
  1087. id:
  1088. type: integer
  1089. description: Id
  1090. # custId:
  1091. # type: integer
  1092. # description: 关联客户
  1093. # custName:
  1094. # type: string
  1095. # description: 客户名称
  1096. # contractId:
  1097. # type: integer
  1098. # description: 关联合同
  1099. # contractCode:
  1100. # type: string
  1101. # description: 合同编号
  1102. # contractStatus:
  1103. # type: string
  1104. # description: 回款状态(10待回款20部分回款30全部回款)
  1105. planAmount:
  1106. type: number
  1107. description: 计划回款金额
  1108. planDatetime:
  1109. type: string
  1110. description: 计划回款日期
  1111. # cashedAmount:
  1112. # type: number
  1113. # description: 实际回款金额
  1114. # cashedDatetime:
  1115. # type: string
  1116. # description: 实际回款日期
  1117. remark:
  1118. type: string
  1119. description: 备注
  1120. CtrContractCollectionList:
  1121. type: object
  1122. properties:
  1123. beginTime:
  1124. type: string
  1125. description: 开始时间
  1126. endTime:
  1127. type: string
  1128. description: 结束时间
  1129. pageNum:
  1130. type: integer
  1131. description: 当前页码
  1132. pageSize:
  1133. type: integer
  1134. description: 每页数
  1135. orderBy:
  1136. type: string
  1137. description: 排序方式
  1138. searchText:
  1139. type: string
  1140. description: 按合同编号,客户名称搜索
  1141. planId:
  1142. type: integer
  1143. description: 合同回款计划
  1144. custId:
  1145. type: integer
  1146. description: 关联客户
  1147. custName:
  1148. type: string
  1149. description: 客户名称
  1150. contractId:
  1151. type: integer
  1152. description: 关联合同
  1153. contractCode:
  1154. type: string
  1155. description: 合同编号
  1156. # collectionDatetime:
  1157. # type: string
  1158. # description: 回款日期
  1159. # collectionAmount:
  1160. # type: number
  1161. # description: 回款金额
  1162. collectionType:
  1163. type: string
  1164. description: 回款方式
  1165. approStatus:
  1166. type: string
  1167. description: 审核状态 10 未回款 20 已回款
  1168. # contractAmount:
  1169. # type: number
  1170. # description: 合同金额
  1171. CtrContractCollectionAdd:
  1172. type: object
  1173. required:
  1174. properties:
  1175. planId:
  1176. type: integer
  1177. description: 合同回款计划
  1178. # custId:
  1179. # type: integer
  1180. # description: 关联客户
  1181. # custName:
  1182. # type: string
  1183. # description: 客户名称
  1184. contractId:
  1185. type: integer
  1186. description: 关联合同
  1187. # contractCode:
  1188. # type: string
  1189. # description: 合同编号
  1190. collectionDatetime:
  1191. type: string
  1192. description: 回款日期
  1193. collectionAmount:
  1194. type: number
  1195. description: 回款金额
  1196. collectionType:
  1197. type: string
  1198. description: 回款方式
  1199. # approStatus:
  1200. # type: string
  1201. # description: 审核状态 10 未回款 20 已回款
  1202. # contractAmount:
  1203. # type: number
  1204. # description: 合同金额
  1205. remark:
  1206. type: string
  1207. description: 备注
  1208. CtrContractCollectionUpdate:
  1209. type: object
  1210. required:
  1211. - id
  1212. properties:
  1213. id:
  1214. type: integer
  1215. description: Id
  1216. planId:
  1217. type: integer
  1218. description: 合同回款计划
  1219. # custId:
  1220. # type: integer
  1221. # description: 关联客户
  1222. # custName:
  1223. # type: string
  1224. # description: 客户名称
  1225. # contractId:
  1226. # type: integer
  1227. # description: 关联合同
  1228. # contractCode:
  1229. # type: string
  1230. # description: 合同编号
  1231. collectionDatetime:
  1232. type: string
  1233. description: 回款日期
  1234. collectionAmount:
  1235. type: number
  1236. description: 回款金额
  1237. collectionType:
  1238. type: string
  1239. description: 回款方式
  1240. approStatus:
  1241. type: string
  1242. description: 审核状态 10 未回款 20 已回款
  1243. # contractAmount:
  1244. # type: number
  1245. # description: 合同金额
  1246. remark:
  1247. type: string
  1248. description: 备注
  1249. CtrContractAppendList:
  1250. type: object
  1251. properties:
  1252. beginTime:
  1253. type: string
  1254. description: 开始时间
  1255. endTime:
  1256. type: string
  1257. description: 结束时间
  1258. pageNum:
  1259. type: integer
  1260. description: 当前页码
  1261. pageSize:
  1262. type: integer
  1263. description: 每页数
  1264. orderBy:
  1265. type: string
  1266. description: 排序方式
  1267. contractId:
  1268. type: integer
  1269. description: 关联合同
  1270. fileName:
  1271. type: string
  1272. description: 文件名称
  1273. # fileType:
  1274. # type: string
  1275. # description: 文件类型
  1276. # fileUrl:
  1277. # type: string
  1278. # description: 文件地址
  1279. CtrContractAppendAdd:
  1280. type: object
  1281. required:
  1282. properties:
  1283. contractId:
  1284. type: integer
  1285. description: 关联合同
  1286. fileName:
  1287. type: string
  1288. description: 文件名称
  1289. fileType:
  1290. type: string
  1291. description: 文件类型
  1292. fileUrl:
  1293. type: string
  1294. description: 文件地址
  1295. remark:
  1296. type: string
  1297. description: 备注
  1298. CtrContractAppendUpdate:
  1299. type: object
  1300. required:
  1301. - id
  1302. properties:
  1303. id:
  1304. type: integer
  1305. description: Id
  1306. contractId:
  1307. type: integer
  1308. description: 关联合同
  1309. fileName:
  1310. type: string
  1311. description: 文件名称
  1312. fileType:
  1313. type: string
  1314. description: 文件类型
  1315. fileUrl:
  1316. type: string
  1317. description: 文件地址
  1318. remark:
  1319. type: string
  1320. description: 备注
  1321. CtrContractInvoiceList:
  1322. type: object
  1323. properties:
  1324. beginTime:
  1325. type: string
  1326. description: 开始时间
  1327. endTime:
  1328. type: string
  1329. description: 结束时间
  1330. pageNum:
  1331. type: integer
  1332. description: 当前页码
  1333. pageSize:
  1334. type: integer
  1335. description: 每页数
  1336. orderBy:
  1337. type: string
  1338. description: 排序方式
  1339. searchText:
  1340. type: string
  1341. description: 合同编号,客户名称
  1342. custId:
  1343. type: integer
  1344. description: 关联客户
  1345. custName:
  1346. type: string
  1347. description: 客户名称
  1348. contractId:
  1349. type: integer
  1350. description: 关联合同
  1351. contractCode:
  1352. type: string
  1353. description: 合同编号
  1354. # contractAmount:
  1355. # type: number
  1356. # description: 合同金额
  1357. # invoiceAmount:
  1358. # type: number
  1359. # description: 开票金额
  1360. # invoiceDate:
  1361. # type: string
  1362. # description: 开票日期
  1363. invoiceType:
  1364. type: string
  1365. description: 开票类型
  1366. approStatus:
  1367. type: string
  1368. description: 审核状态 10 未通过 20 已通过
  1369. invoiceCode:
  1370. type: string
  1371. description: 发票号码
  1372. # actualInvoiceDate:
  1373. # type: string
  1374. # description: 实际开票日期
  1375. courierCode:
  1376. type: string
  1377. description: 快递单号
  1378. CtrContractInvoiceAdd:
  1379. type: object
  1380. required:
  1381. properties:
  1382. # custId:
  1383. # type: integer
  1384. # description: 关联客户
  1385. # custName:
  1386. # type: string
  1387. # description: 客户名称
  1388. contractId:
  1389. type: integer
  1390. description: 关联合同
  1391. # contractCode:
  1392. # type: string
  1393. # description: 合同编号
  1394. # contractAmount:
  1395. # type: number
  1396. # description: 合同金额
  1397. invoiceAmount:
  1398. type: number
  1399. description: 开票金额
  1400. invoiceDate:
  1401. type: string
  1402. description: 开票日期
  1403. invoiceType:
  1404. type: string
  1405. description: 开票类型
  1406. # approStatus:
  1407. # type: string
  1408. # description: 审核状态
  1409. invoiceCode:
  1410. type: string
  1411. description: 发票号码
  1412. actualInvoiceDate:
  1413. type: string
  1414. description: 实际开票日期
  1415. courierCode:
  1416. type: string
  1417. description: 快递单号
  1418. remark:
  1419. type: string
  1420. description: 备注
  1421. CtrContractInvoiceUpdate:
  1422. type: object
  1423. required:
  1424. - id
  1425. properties:
  1426. id:
  1427. type: integer
  1428. description: Id
  1429. # custId:
  1430. # type: integer
  1431. # description: 关联客户
  1432. # custName:
  1433. # type: string
  1434. # description: 客户名称
  1435. # contractId:
  1436. # type: integer
  1437. # description: 关联合同
  1438. # contractCode:
  1439. # type: string
  1440. # description: 合同编号
  1441. # contractAmount:
  1442. # type: number
  1443. # description: 合同金额
  1444. invoiceAmount:
  1445. type: number
  1446. description: 开票金额
  1447. invoiceDate:
  1448. type: string
  1449. description: 开票日期
  1450. invoiceType:
  1451. type: string
  1452. description: 开票类型
  1453. approStatus:
  1454. type: string
  1455. description: 审核状态
  1456. invoiceCode:
  1457. type: string
  1458. description: 发票号码
  1459. actualInvoiceDate:
  1460. type: string
  1461. description: 实际开票日期
  1462. courierCode:
  1463. type: string
  1464. description: 快递单号
  1465. remark:
  1466. type: string
  1467. description: 备注
  1468. examples:
  1469. success:
  1470. summary: 请求成功
  1471. value:
  1472. code: 200,
  1473. msg: "success"
  1474. NullableReqAllPass:
  1475. value:
  1476. Str: ""
  1477. Int: 0
  1478. Bool: false
  1479. Slice: []
  1480. NoArgs:
  1481. value:
  1482. noargs: ""
  1483. IdReq:
  1484. value:
  1485. id: 2
  1486. IdsReq:
  1487. value:
  1488. id: [1]
  1489. CtrContractList:
  1490. value:
  1491. searchText: ""
  1492. CtrContractDynamicsList:
  1493. value:
  1494. searchText: ""
  1495. CtrContractAdd:
  1496. value:
  1497. contractCode: "1"
  1498. contractName: "1"
  1499. nboId: 1
  1500. contractType: "1"
  1501. contractStartTime: "2020-01-01 01:01:01"
  1502. contractEndTime: "2020-01-01 01:01:01"
  1503. inchargeId: 1
  1504. inchargeName: "管理员"
  1505. signatoryId: 1
  1506. signatoryName: "管理员"
  1507. custSignatoryId: 1
  1508. custSignatoryName: "客户联系人1"
  1509. distributorId: 1
  1510. distributorName: "管理员"
  1511. remark: "备注"
  1512. product:
  1513. -
  1514. prodId: 2
  1515. prodNum: 1
  1516. maintTerm: 1
  1517. sugSalesPrice: 1
  1518. tranPrice: 1
  1519. remark: "备注"
  1520. CtrContractUpdate:
  1521. value:
  1522. id: 2
  1523. # contractCode: "2"
  1524. contractName: "2"
  1525. nboId: 2
  1526. contractType: "2"
  1527. contractStartTime: "2020-01-01 02:02:02"
  1528. contractEndTime: "2020-01-01 02:02:02"
  1529. signatoryId: 1
  1530. signatoryName: "管理员"
  1531. custSignatoryId: 2
  1532. custSignatoryName: "客户联系人2"
  1533. distributorId: 1
  1534. distributorName: "管理员"
  1535. remark: "备注2"
  1536. product: []
  1537. CtrContractTransfer:
  1538. value:
  1539. id: 2
  1540. inchargeId: 2
  1541. inchargeName: "管理员2"
  1542. CtrContractCollectionPlanList:
  1543. value:
  1544. searchText: ""
  1545. CtrContractCollectionPlanAdd:
  1546. value:
  1547. # custId: 1
  1548. # custName: 1
  1549. contractId: 1
  1550. # contractCode: 1
  1551. # contractStatus: 1
  1552. planAmount: 1
  1553. planDatetime: "2020-01-01 01:01:01"
  1554. # cashedAmount: 1
  1555. # cashedDatetime: "2020-01-01 02:02:02"
  1556. remark: "备注"
  1557. CtrContractCollectionPlanUpdate:
  1558. value:
  1559. id: 2
  1560. # custId: 2
  1561. # custName: 2
  1562. # contractId: 2
  1563. # contractCode: 2
  1564. # contractStatus: 2
  1565. planAmount: 2
  1566. planDatetime: "2020-01-01 02:02:02"
  1567. # cashedAmount: 2
  1568. # cashedDatetime: 2
  1569. remark: "备注2"
  1570. CtrContractCollectionList:
  1571. value:
  1572. searchText: ""
  1573. CtrContractCollectionAdd:
  1574. value:
  1575. planId: 1
  1576. # custId: 1
  1577. # custName: 1
  1578. contractId: 1
  1579. # contractCode: 1
  1580. collectionDatetime: "2020-01-01 01:01:01"
  1581. collectionAmount: 1
  1582. collectionType: "1"
  1583. # approStatus: 1
  1584. # contractAmount: 1
  1585. remark: "备注"
  1586. CtrContractCollectionUpdate:
  1587. value:
  1588. id: 2
  1589. # planId: 2
  1590. # custId: 2
  1591. # custName: 2
  1592. # contractId: 2
  1593. # contractCode: 2
  1594. collectionDatetime: "2020-01-01 02:02:02"
  1595. collectionAmount: 2
  1596. collectionType: "2"
  1597. approStatus: "20"
  1598. # contractAmount: 2
  1599. remark: "备注2"
  1600. CtrContractAppendList:
  1601. value:
  1602. fileName: ""
  1603. CtrContractAppendAdd:
  1604. value:
  1605. contractId: 1
  1606. fileName: "1"
  1607. fileType: "1"
  1608. fileUrl: "1"
  1609. remark: "1"
  1610. CtrContractAppendUpdate:
  1611. value:
  1612. id: 2
  1613. contractId: 2
  1614. fileName: "2"
  1615. fileType: "2"
  1616. fileUrl: "2"
  1617. remark: "2"
  1618. CtrContractInvoiceList:
  1619. value:
  1620. searchText: ""
  1621. CtrContractInvoiceAdd:
  1622. value:
  1623. # custId: 1
  1624. # custName: 1
  1625. contractId: 1
  1626. # contractCode: 1
  1627. # contractAmount: 1
  1628. invoiceAmount: 1
  1629. invoiceDate: "2020-01-01 01:01:01"
  1630. invoiceType: "1"
  1631. # approStatus: 1
  1632. invoiceCode: "1"
  1633. actualInvoiceDate: "2020-01-01 01:01:01"
  1634. courierCode: "1"
  1635. remark: "备注"
  1636. CtrContractInvoiceUpdate:
  1637. value:
  1638. id: 2
  1639. # custId: 2
  1640. # custName: 2
  1641. # contractId: 2
  1642. # contractCode: 2
  1643. # contractAmount: 2
  1644. invoiceAmount: 2
  1645. invoiceDate: "2020-01-01 02:02:02"
  1646. invoiceType: "2"
  1647. approStatus: "20"
  1648. invoiceCode: "2"
  1649. actualInvoiceDate: "2020-01-01 02:02:02"
  1650. courierCode: "2"
  1651. remark: "备注2"