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
|
2023-01-10 04:27:36 +00:00
|
|
|
GetDetailSupplierInfo string
|
2022-08-29 07:25:12 +00:00
|
|
|
GetSupplierContractBySupplierID string
|
2022-08-31 07:48:24 +00:00
|
|
|
FindAll string
|
2022-10-28 04:19:15 +00:00
|
|
|
GetListWarehouseFreeShip string
|
2022-10-26 10:56:15 +00:00
|
|
|
CreateCashflow string
|
2022-11-03 09:02:43 +00:00
|
|
|
DeleteCashflow string
|
|
|
|
UpdateBalance string
|
|
|
|
GetCurrentBalance string
|
2022-10-27 08:52:39 +00:00
|
|
|
GetFreeShipInfo string
|
2022-11-18 03:13:41 +00:00
|
|
|
FindAllOld string
|
2022-11-23 03:08:52 +00:00
|
|
|
Count string
|
2022-08-26 10:36:02 +00:00
|
|
|
}{
|
2022-08-29 07:25:12 +00:00
|
|
|
GetListSupplierInfo: getSupplierValue("get_list_supplier_info"),
|
2023-01-10 04:27:36 +00:00
|
|
|
GetDetailSupplierInfo: getSupplierValue("get_detail_supplier_info"),
|
2022-08-29 07:25:12 +00:00
|
|
|
GetSupplierContractBySupplierID: getSupplierValue("get_supplier_contract_by_supplier_id"),
|
2022-08-31 07:48:24 +00:00
|
|
|
FindAll: getSupplierValue("find_all"),
|
2022-10-28 04:19:15 +00:00
|
|
|
GetListWarehouseFreeShip: getSupplierValue("get_list_warehouse_free_ship"),
|
2022-10-26 10:56:15 +00:00
|
|
|
CreateCashflow: getSupplierValue("create_cashflow"),
|
2022-11-03 09:02:43 +00:00
|
|
|
DeleteCashflow: getSupplierValue("delete_cashflow"),
|
|
|
|
UpdateBalance: getSupplierValue("update_balance"),
|
|
|
|
GetCurrentBalance: getSupplierValue("get_current_balance"),
|
2022-10-27 08:52:39 +00:00
|
|
|
GetFreeShipInfo: getSupplierValue("get_free_ship_info"),
|
2022-11-18 03:13:41 +00:00
|
|
|
FindAllOld: getSupplierValue("find_all_old"),
|
2022-11-23 03:08:52 +00:00
|
|
|
Count: getSupplierValue("count"),
|
2022-08-26 10:36:02 +00:00
|
|
|
}
|