Merge pull request #8 from Selly-Modules/get-location-warehouse

edit types param supplier
This commit is contained in:
anbuiselly 2022-08-26 23:37:51 +07:00 committed by GitHub
commit df340fefda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -12,7 +12,12 @@ import (
// Supplier ... // Supplier ...
type Supplier struct{} 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)) msg, err := natsio.GetServer().Request(subject.Supplier.GetSupplierInfo, toBytes(supplierID))
if err != nil { if err != nil {
return nil, err return nil, err