syntax = "proto3"; import "google/protobuf/timestamp.proto"; option go_package = "./;wallet"; message WalletReq { string id = 1; // @gotags: validate:"required" } message ListWalletReq { string id = 1; // @gotags: validate:"required" int32 limit = 2; } message WalletResp { string id = 1; string username = 2; string email = 3; string avatar = 4; int32 status = 5; google.protobuf.Timestamp created_at = 6; google.protobuf.Timestamp updated_at = 7; } message ListWalletResp { repeated WalletResp list = 1; int32 limit = 2; } service Wallet { rpc GetWallet(WalletReq) returns (WalletResp){}; rpc ListWallet(ListWalletReq) returns (ListWalletResp){}; }