natsio/subject/supplier.go

24 lines
861 B
Go
Raw Normal View History

2022-08-26 10:15:49 +00:00
package subject
2022-08-26 10:36:02 +00:00
import "fmt"
func getSupplierValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Supplier, val)
}
var Supplier = struct {
2022-08-29 07:25:12 +00:00
GetListSupplierInfo string
GetSupplierContractBySupplierID string
FindAll string
2022-10-17 08:09:50 +00:00
GetListWarehouseFreeship string
2022-10-26 10:56:15 +00:00
CreateCashflow string
2022-10-27 08:52:39 +00:00
GetFreeShipInfo string
2022-08-26 10:36:02 +00:00
}{
2022-08-29 07:25:12 +00:00
GetListSupplierInfo: getSupplierValue("get_list_supplier_info"),
GetSupplierContractBySupplierID: getSupplierValue("get_supplier_contract_by_supplier_id"),
FindAll: getSupplierValue("find_all"),
2022-10-17 08:09:50 +00:00
GetListWarehouseFreeship: getSupplierValue("get_list_warehouse_freeship"),
2022-10-26 10:56:15 +00:00
CreateCashflow: getSupplierValue("create_cashflow"),
2022-10-27 08:52:39 +00:00
GetFreeShipInfo: getSupplierValue("get_free_ship_info"),
2022-08-26 10:36:02 +00:00
}