2022-08-26 16:13:18 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
// ResponseSupplierInfo ...
|
|
|
|
type ResponseSupplierInfo struct {
|
2022-09-14 07:39:16 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
BusinessType string `json:"businessType"`
|
2022-08-26 16:13:18 +00:00
|
|
|
}
|
2022-08-29 07:25:12 +00:00
|
|
|
|
|
|
|
// ResponseSupplierContract ...
|
|
|
|
type ResponseSupplierContract struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Supplier string `json:"supplier"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
}
|
2022-08-31 07:48:24 +00:00
|
|
|
|
|
|
|
// SupplierBrief ...
|
|
|
|
type SupplierBrief struct {
|
2022-09-14 07:39:16 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
BusinessType string `json:"businessType"`
|
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
|
UpdatedAt string `json:"updatedAt"`
|
2022-08-31 07:48:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SupplierAll struct {
|
|
|
|
Suppliers []SupplierBrief `json:"suppliers"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
2022-10-17 08:09:50 +00:00
|
|
|
|
2022-10-28 04:19:15 +00:00
|
|
|
type SupplierListWarehouseFreeShipResponse struct {
|
2022-10-17 08:09:50 +00:00
|
|
|
Warehouses []string `json:"warehouses"`
|
|
|
|
}
|
2022-10-26 10:58:34 +00:00
|
|
|
|
2022-10-26 10:56:15 +00:00
|
|
|
type SupplierCashflowCreateResponse struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
}
|
2022-10-27 02:41:38 +00:00
|
|
|
|
2022-10-27 08:52:39 +00:00
|
|
|
type FreeShip struct {
|
2022-10-28 04:19:15 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
ShortName string `json:"shortName"`
|
|
|
|
ListMilestoneText []string `json:"milestoneText"`
|
|
|
|
Order int `json:"-"`
|
2022-10-25 05:00:37 +00:00
|
|
|
}
|
|
|
|
|
2022-10-27 08:52:39 +00:00
|
|
|
type SupplierFreeShipInfoResponse struct {
|
2022-10-27 09:16:09 +00:00
|
|
|
SupplierID string `json:"supplierId"`
|
2022-10-27 10:16:45 +00:00
|
|
|
FreeShips []FreeShip `json:"freeShips"`
|
2022-10-25 05:00:37 +00:00
|
|
|
}
|
2022-11-01 03:43:20 +00:00
|
|
|
|
|
|
|
type SupplierShort struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Logo interface{} `json:"logo"`
|
|
|
|
}
|
2022-11-03 09:02:43 +00:00
|
|
|
|
|
|
|
type SupplierUpdateBalanceRes struct {
|
|
|
|
CurrentCash float64 `json:"currentCash"`
|
|
|
|
TotalPendingCash float64 `json:"totalPendingCash"`
|
|
|
|
OrderPendingCash float64 `json:"orderPendingCash"`
|
|
|
|
OrderWaitingForReconcileCash float64 `json:"orderWaitingForReconcileCash"`
|
|
|
|
OrderReconciledCash float64 `json:"orderReconciledCash"`
|
|
|
|
WithdrawPendingCash float64 `json:"withdrawPendingCash"`
|
|
|
|
WithdrawSuccessCash float64 `json:"withdrawSuccessCash"`
|
|
|
|
WithdrawRejectCash float64 `json:"withdrawRejectCash"`
|
|
|
|
ChangeBalanceRequestApproved float64 `json:"changeBalanceRequestApproved"`
|
|
|
|
UpdatedAt string `json:"updatedAt"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SupplierGetCurrentBalanceRes struct {
|
|
|
|
CurrentCash float64 `json:"currentCash"`
|
|
|
|
}
|
2022-11-08 07:20:05 +00:00
|
|
|
|
|
|
|
type SyncSupplierWarehousePayload struct {
|
|
|
|
Supplier string `json:"supplier"`
|
|
|
|
Warehouse string `json:"warehouse"`
|
|
|
|
ProvinceCode int `json:"provinceCode"`
|
|
|
|
DistrictCode int `json:"districtCode"`
|
|
|
|
WardCode int `json:"wardCode"`
|
|
|
|
}
|