mergeDev/campaign #73
|
@ -18,14 +18,14 @@ func GetBank() Bank {
|
|||
}
|
||||
|
||||
// GetBankInfo ...
|
||||
func (s Bank) GetBankInfo(p model.GetBankInfoRequest) (*model.ResponseBankInfo, error) {
|
||||
func (s Bank) GetBankInfo(p []model.GetBankInfoRequest) ([]*model.ResponseBankInfo, error) {
|
||||
msg, err := natsio.GetServer().Request(subject.Bank.GetBankInfo, toBytes(p))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var r struct {
|
||||
Data *model.ResponseBankInfo `json:"data"`
|
||||
Data []*model.ResponseBankInfo `json:"data"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue