edit types param supplier #8

Merged
anbuiselly merged 1 commits from get-location-warehouse into develop 2022-08-26 16:37:51 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit cfab692331 - Show all commits

View File

@ -12,7 +12,12 @@ import (
// Supplier ...
type Supplier struct{}
func (s Supplier) GetSupplierInfo(supplierID string) (*model.ResponseSupplierInfo, error) {
// GetSupplier ...
func GetSupplier() Supplier {
return Supplier{}
}
func (s Supplier) GetSupplierInfo(supplierID model.GetSupplierRequest) (*model.ResponseSupplierInfo, error) {
msg, err := natsio.GetServer().Request(subject.Supplier.GetSupplierInfo, toBytes(supplierID))
if err != nil {
return nil, err