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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
type CreateSupplierWarehousePayload struct {
|
|
|
|
Supplier string `json:"supplier"`
|
|
|
|
Warehouse string `json:"warehouse"`
|
|
|
|
ProvinceCode int `json:"provinceCode"`
|
|
|
|
DistrictCode int `json:"districtCode"`
|
|
|
|
WardCode int `json:"wardCode"`
|
|
|
|
}
|
2022-09-14 16:30:22 +00:00
|
|
|
|
|
|
|
type UpdateSupplierWarehousePayload struct {
|
|
|
|
Supplier string `json:"supplier"`
|
|
|
|
Warehouse string `json:"warehouse"`
|
|
|
|
ProvinceCode int `json:"provinceCode"`
|
|
|
|
DistrictCode int `json:"districtCode"`
|
|
|
|
WardCode int `json:"wardCode"`
|
|
|
|
}
|
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-23 03:08:52 +00:00
|
|
|
|
|
|
|
type SupplierCountReq struct {
|
|
|
|
Segment string `json:"segment"`
|
|
|
|
IDs []string `json:"ids"`
|
|
|
|
}
|