Merge branch 'feature/get-freeship-by-supplierids' of git.selly.red:Selly-Modules/natsio into develop
This commit is contained in:
commit
ebb3cd070a
|
@ -18,14 +18,14 @@ func GetBank() Bank {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBankInfo ...
|
// 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))
|
msg, err := natsio.GetServer().Request(subject.Bank.GetBankInfo, toBytes(p))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var r struct {
|
var r struct {
|
||||||
Data *model.ResponseBankInfo `json:"data"`
|
Data []*model.ResponseBankInfo `json:"data"`
|
||||||
Error string `json:"error"`
|
Error string `json:"error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue