build nats supplier
This commit is contained in:
parent
c491945395
commit
ed48d80665
|
@ -17,8 +17,8 @@ func GetSupplier() Supplier {
|
||||||
return Supplier{}
|
return Supplier{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Supplier) GetListSupplierInfo(supplierID model.GetSupplierRequest) ([]*model.ResponseSupplierInfo, error) {
|
func (s Supplier) GetListSupplierInfo(p model.GetSupplierRequest) ([]*model.ResponseSupplierInfo, error) {
|
||||||
msg, err := natsio.GetServer().Request(subject.Supplier.GetListSupplierInfo, toBytes(supplierID))
|
msg, err := natsio.GetServer().Request(subject.Supplier.GetListSupplierInfo, toBytes(p))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue