mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 21:55:08 +00:00
add currency codes endpoint
This commit is contained in:
@@ -56,8 +56,8 @@ func (c *Currency) Codes(ctx context.Context, req *pb.CodesRequest, rsp *pb.Code
|
||||
for _, code := range codes {
|
||||
c := code.([]interface{})
|
||||
rsp.Codes = append(rsp.Codes, &pb.Code{
|
||||
Symbol: c[0].(string),
|
||||
Name: c[1].(string),
|
||||
Name: c[0].(string),
|
||||
Currency: c[1].(string),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user