Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. syntax = "proto3";
  2.  
  3. option java_multiple_files = true;
  4. option java_package = "hyperledger.fabric.bmt.point";
  5. option java_outer_classname = "BmtPoint";
  6.  
  7. package point;
  8.  
  9. service BmtPointService {
  10. // createAccount
  11. // requestArgs: accountNo, accountType, issuerAccount, accountAmount
  12. // replyData: result, errorMsg
  13. rpc createAccount(PointRequest) returns (PointReply) {}
  14.  
  15. // payPoint
  16. // requestArgs: transactionDate(currentDate), fromAccountNo, toAccountNo, transactionAmount
  17. // replyData: result, errorMsg, accountAmount
  18. rpc payPoint(PointRequest) returns (PointReply) {}
  19. }
  20.  
  21. message PointRequest {
  22. string accountNo = 1;
  23. string accountType = 2;
  24. string issuerAccount = 3; // 발행은행 계좌
  25. string accountAmount = 4;
  26. string transactionDate = 5;
  27. string fromAccountNo = 6;
  28. string toAccountNo = 7;
  29. string transactionAmount = 8;
  30. }
  31.  
  32. message PointReply {
  33. bool result = 1;
  34. string errorMsg = 2;
  35. string accountAmount = 3;
  36. }
  37.  
  38.  
  39. message Empty {
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement