69 lines
7.2 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package requests
type OrderProductRequest struct {
GetOrderProductPage // 获取药品订单列表-分页
CancelOrderProduct // 取消药品订单
OrderProductExportList // 获取药品订单列表-导出
}
// GetOrderProductPage 获取药品订单列表-分页
type GetOrderProductPage struct {
Page int `json:"page" form:"page" label:"页码"`
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
DoctorName string `json:"doctor_name" form:"doctor_name" label:"医生姓名"`
OrderProductNo string `json:"order_product_no" form:"order_product_no" label:"订单编号"`
EscrowTradeNo string `json:"escrow_trade_no" form:"escrow_trade_no" label:"第三方支付流水号"`
OrderProductStatus *int `json:"order_product_status" form:"order_product_status" label:"订单状态"` // 1:1:待支付 2:待发货 3:已发货 4:已签收 5:已取消
PayChannel *int `json:"pay_channel" form:"pay_channel" label:"支付渠道"` // 1:小程序支付 2:微信扫码支付
PayStatus *int `json:"pay_status" form:"pay_status" label:"支付状态"` // 1:未支付 2:已支付 3:支付中 4:支付失败 5:支付超时 6:支付关闭 7:已撤销 8:转入退款)
CancelReason *int `json:"cancel_reason" form:"cancel_reason" label:"订单取消原因"` // 1:主动取消 2:复核失败/库存不足 3:支付超时 4:客服取消
LogisticsNo string `json:"logistics_no" form:"logistics_no" label:"物流编号"`
LogisticsCompanyCode string `json:"logistics_company_code" form:"logistics_company_code" label:"快递公司编码"`
Remarks string `json:"remarks" form:"remarks" label:"订单备注"`
RefundStatus *int `json:"refund_status" form:"refund_status" label:"退款状态"` // 0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭 6:退款异常
ReportPreStatus *int `json:"report_pre_status" form:"report_pre_status" label:"上报处方平台状态"` // 0:未上报 1:已上报 2:上报失败
DeliveryTime string `json:"delivery_time" form:"delivery_time" label:"发货时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
CancelTime string `json:"cancel_time" form:"cancel_time" label:"订单取消时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
PayTime string `json:"pay_time" form:"pay_time" label:"支付时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
ReportPreTime string `json:"report_pre_time" form:"report_pre_time" label:"上报处方平台时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
CreatedAt string `json:"created_at" form:"created_at" label:"订单创建时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
ConsigneeName string `json:"consignee_name" form:"consignee_name" label:"收货人姓名"`
ConsigneeTel string `json:"consignee_tel" form:"cancel_reason" label:"收货人电话"`
PatientName string `json:"patient_name" form:"patient_name" label:"患者姓名-就诊人"`
Mobile string `json:"mobile" form:"mobile" label:"手机号-医生/患者"`
ProductName string `json:"product_name" form:"product_name" label:"药品名称"`
CommonName string `json:"common_name" form:"common_name" label:"药品通用名"`
}
// CancelOrderProduct 取消药品订单
type CancelOrderProduct struct {
CancelRemarks string `json:"cancel_remarks" form:"cancel_remarks" validate:"required" label:"取消订单备注"`
}
// OrderProductExportList 获取药品订单列表-导出
type OrderProductExportList struct {
Type int `json:"type" form:"type" label:"类型" validate:"required,oneof=1 2 3"` // 1:当前搜索数据 2:当前选择数据 3:全部数据
Id string `json:"id" form:"id" label:"id"` // 选择数据的id逗号分隔当type为2时必填
DoctorName string `json:"doctor_name" form:"doctor_name" label:"医生姓名"`
OrderProductNo string `json:"order_product_no" form:"order_product_no" label:"订单编号"`
EscrowTradeNo string `json:"escrow_trade_no" form:"escrow_trade_no" label:"第三方支付流水号"`
OrderProductStatus *int `json:"order_product_status" form:"order_product_status" label:"订单状态"` // 1:1:待支付 2:待发货 3:已发货 4:已签收 5:已取消
PayChannel *int `json:"pay_channel" form:"pay_channel" label:"支付渠道"` // 1:小程序支付 2:微信扫码支付
PayStatus *int `json:"pay_status" form:"pay_status" label:"支付状态"` // 1:未支付 2:已支付 3:支付中 4:支付失败 5:支付超时 6:支付关闭 7:已撤销 8:转入退款)
CancelReason *int `json:"cancel_reason" form:"cancel_reason" label:"订单取消原因"` // 1:主动取消 2:复核失败/库存不足 3:支付超时 4:客服取消
LogisticsNo string `json:"logistics_no" form:"logistics_no" label:"物流编号"`
LogisticsCompanyCode string `json:"logistics_company_code" form:"logistics_company_code" label:"快递公司编码"`
Remarks string `json:"remarks" form:"remarks" label:"订单备注"`
RefundStatus *int `json:"refund_status" form:"refund_status" label:"退款状态"` // 0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭 6:退款异常
ReportPreStatus *int `json:"report_pre_status" form:"report_pre_status" label:"上报处方平台状态"` // 0:未上报 1:已上报 2:上报失败
DeliveryTime string `json:"delivery_time" form:"delivery_time" label:"发货时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
CancelTime string `json:"cancel_time" form:"cancel_time" label:"订单取消时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
PayTime string `json:"pay_time" form:"pay_time" label:"支付时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
ReportPreTime string `json:"report_pre_time" form:"report_pre_time" label:"上报处方平台时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
CreatedAt string `json:"created_at" form:"created_at" label:"订单创建时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
ConsigneeName string `json:"consignee_name" form:"consignee_name" label:"收货人姓名"`
ConsigneeTel string `json:"consignee_tel" form:"cancel_reason" label:"收货人电话"`
PatientName string `json:"patient_name" form:"patient_name" label:"患者姓名-就诊人"`
Mobile string `json:"mobile" form:"mobile" label:"手机号-医生/患者"`
}