57 lines
3.5 KiB
Go
57 lines
3.5 KiB
Go
package request
|
||
|
||
type QueryLogisticsRequest struct {
|
||
Keyword string `form:"keyword"` // 物流模板名称
|
||
Status *int `form:"status"` // 物流模板状态
|
||
Page int `form:"page,default=1"` // 页码
|
||
PageSize int `form:"page_size,default=10"` // 每页数量
|
||
AboutID int64 `form:"-"` // 租户ID,从JWT中获取,不参与表单绑定
|
||
}
|
||
|
||
type CreateLogisticsRequest struct {
|
||
TemplateName string `form:"template_name" binding:"required,max=255"`
|
||
DeliveryProvince string `form:"delivery_province" binding:"required,max=255"`
|
||
DeliveryCity string `form:"delivery_city" binding:"required,max=255"`
|
||
DeliveryArea string `form:"delivery_area" binding:"required,max=255"`
|
||
DeliveryAddress string `form:"delivery_address" binding:"required,max=255"`
|
||
PricingMethod string `form:"pricing_method" binding:"required,oneof=0 1 2 3"`
|
||
Shipping string `form:"shipping" binding:"required,oneof=0 1 2"`
|
||
FirWbv float64 `form:"fir_wbv"`
|
||
FirPrice float64 `form:"fir_price"`
|
||
ContinueWbv float64 `form:"continue_wbv"`
|
||
ContinuePrice float64 `form:"continue_price"`
|
||
Contact string `form:"contact" binding:"required,max=14"`
|
||
PhoneNumber uint64 `form:"phone_number" binding:"required"`
|
||
FullAddress string `form:"full_address" binding:"required,max=255"`
|
||
ShippingRange string `form:"shipping_range" binding:"required"`
|
||
WarehouseId uint64 `form:"warehouse_id"`
|
||
Remark string `form:"remark" binding:"max=255"`
|
||
Status string `form:"status" binding:"oneof=0 1"`
|
||
}
|
||
|
||
type UpdateLogisticsRequest struct {
|
||
Id uint64 `form:"id" binding:"required"` // 物流模板ID
|
||
TemplateName string `form:"template_name" binding:"required,max=255"` // 物流模板名称
|
||
DeliveryProvince string `form:"delivery_province" binding:"required,max=255"` // 发货省
|
||
DeliveryCity string `form:"delivery_city" binding:"required,max=255"` // 发货市
|
||
DeliveryArea string `form:"delivery_area" binding:"required,max=255"` // 发货区
|
||
DeliveryAddress string `form:"delivery_address" binding:"required,max=255"` // 发货地址
|
||
PricingMethod string `form:"pricing_method" binding:"required,oneof=0 1 2 3"` // 计费方式
|
||
Shipping string `form:"shipping" binding:"required,oneof=0 1 2"` // 配送方式
|
||
FirWbv float64 `form:"fir_wbv"` // 首件
|
||
FirPrice float64 `form:"fir_price"` // 首费
|
||
ContinueWbv float64 `form:"continue_wbv"` // 续件
|
||
ContinuePrice float64 `form:"continue_price"` // 续费
|
||
Contact string `form:"contact" binding:"required,max=14"` // 联系人
|
||
PhoneNumber uint64 `form:"phone_number" binding:"required"` // 联系电话
|
||
FullAddress string `form:"full_address" binding:"required,max=255"` // 收货地址
|
||
ShippingRange string `form:"shipping_range" binding:"required"` // 配送范围
|
||
WarehouseId uint64 `form:"warehouse_id"` // 仓库ID
|
||
Remark string `form:"remark" binding:"max=255"` // 备注
|
||
Status string `form:"status" binding:"oneof=0 1"` // 状态
|
||
}
|
||
|
||
type DeleteLogisticsRequest struct {
|
||
Id uint64 `form:"id" binding:"required"`
|
||
}
|