jacky-htg / ledger-service

General Ledger service using golang grpc and postgresql. This service is part of inventory microservices.
GNU General Public License v3.0
2 stars 0 forks source link

Purchase Service #8

Open jacky-htg opened 11 months ago

jacky-htg commented 11 months ago

see file of proto/ledgers/purchase_service.proto

jacky-htg commented 11 months ago
message Purchase {
  string id = 1;
  string code = 2;
  string date = 3;
  double amount = 4;
}

service PurchaseService {
  rpc Create(Purchase) returns (Purchase) {}
  rpc Update(Id) returns (Purchase) {}
}