2022-08-26 16:13:18 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetSupplierRequest ...
|
|
|
|
type GetSupplierRequest struct {
|
2022-08-29 07:25:12 +00:00
|
|
|
ListID []primitive.ObjectID `json:"listID"`
|
|
|
|
}
|
|
|
|
|
2023-01-10 04:27:36 +00:00
|
|
|
// GetDetailSupplierRequest ...
|
|
|
|
type GetDetailSupplierRequest struct {
|
|
|
|
Supplier string `json:"supplier"`
|
|
|
|
}
|
|
|
|
|
2022-08-29 07:25:12 +00:00
|
|
|
type GetSupplierContractRequest struct {
|
|
|
|
SupplierID primitive.ObjectID `json:"supplierID"`
|
2022-08-26 16:13:18 +00:00
|
|
|
}
|
2022-08-31 07:48:24 +00:00
|
|
|
|
|
|
|
// SupplierRequestPayload ...
|
|
|
|
type SupplierRequestPayload struct {
|
|
|
|
Limit int
|
|
|
|
Page int
|
|
|
|
Keyword string
|
|
|
|
Status string
|
|
|
|
PIC string
|
|
|
|
ContractStatus string
|
|
|
|
}
|
2022-09-14 11:04:18 +00:00
|
|
|
|
2022-10-26 10:56:15 +00:00
|
|
|
// SupplierCashflowCreatePayload ...
|
|
|
|
type SupplierCashflowCreatePayload struct {
|
|
|
|
Supplier string `json:"supplier"`
|
|
|
|
Action string `json:"action"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
TargetID string `json:"targetId"`
|
|
|
|
Value float64 `json:"value"`
|
|
|
|
ClickAction *ClickAction `json:"clickAction"`
|
|
|
|
}
|
2022-10-27 02:41:38 +00:00
|
|
|
|
2022-10-27 08:52:39 +00:00
|
|
|
type SupplierFreeShipInfoRequestPayload struct {
|
2022-10-28 04:39:29 +00:00
|
|
|
SupplierIDs []string `json:"supplierIds"`
|
2022-10-25 05:00:37 +00:00
|
|
|
}
|
2022-11-03 09:03:48 +00:00
|
|
|
|
2022-11-03 09:02:43 +00:00
|
|
|
type SupplierUpdateBalanceReq struct {
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SupplierGetCurrentBalanceReq struct {
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SupplierDeleteCashflowReq struct {
|
|
|
|
CashflowID string `json:"cashflowId"`
|
|
|
|
}
|
2022-11-18 03:13:41 +00:00
|
|
|
|
|
|
|
type SupplierFindAllReq struct {
|
|
|
|
Page int64 `json:"page"`
|
|
|
|
Limit int64 `json:"limit"`
|
|
|
|
Segment string `json:"segment"`
|
|
|
|
IDs []string `json:"ids"`
|
2022-11-24 02:38:10 +00:00
|
|
|
Status string `json:"status"` // active,inactive
|
2022-11-18 03:13:41 +00:00
|
|
|
}
|
2022-11-23 03:08:52 +00:00
|
|
|
|
|
|
|
type SupplierCountReq struct {
|
|
|
|
Segment string `json:"segment"`
|
|
|
|
IDs []string `json:"ids"`
|
2022-11-24 02:38:10 +00:00
|
|
|
Status string `json:"status"` // active,inactive
|
2022-11-23 03:08:52 +00:00
|
|
|
}
|