p2u-wallet-3-4.uml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @startuml
  2. title "P2U Wallet API(Transaction)"
  3. boundary User_Page as up
  4. participant Frontend_Server as fe
  5. participant Backend_Server as be
  6. autonumber
  7. note over up
  8. (3) Get Transactions
  9. end note
  10. up->fe: P2U Transaction Page
  11. note over fe
  12. request
  13. {
  14. "QueryVars": {
  15. "TokenType": "MSQXP",
  16. "StartDate": "YYYYMMDD",
  17. "EndDate" : "YYYYMMDD"
  18. },
  19. "PageVars": { "Asc": "aaa","Desc": "bbb",
  20. "Limit": 10,"Offset": 10 },
  21. }
  22. end note
  23. fe->be: /p2u-transaction-get
  24. note over be
  25. Get transaction list specified period for Tokens
  26. end note
  27. be->fe: transaction page
  28. note over fe
  29. response
  30. {
  31. "QueryVars": {
  32. "TokenType": "MSQXP",
  33. "StartDate": "YYYYMMDD",
  34. "EndDate" : "YYYYMMDD"
  35. },
  36. "PageVars": { "Asc": "aaa","Desc": "bbb",
  37. "Limit": 10,"Offset": 10 },
  38. "TokenInfo": {
  39. "UnitPoint": "12,
  40. "DecimalPoint":"2"
  41. "TokenType": "MSQXP"
  42. }
  43. "Page": [
  44. {
  45. "TransterTime": Unixtime,
  46. "FromAddr": "aaa",
  47. "ToAddr": "bbb",
  48. "TransactionAmt": "23408330234",
  49. "Status": "0" // 0:success, 1:Failed
  50. },
  51. {
  52. "TransterTime": Unixtime,
  53. "FromAddr": "aaa",
  54. "ToAddr": "bbb",
  55. "TransactionAmt": "23408330234",
  56. "Status": "0" // 0:success, 1:Failed
  57. }
  58. ]
  59. }
  60. end note
  61. fe->up: show transaction page by pagination
  62. @enduml