新增解密收货人

This commit is contained in:
2023-09-11 17:29:39 +08:00
parent 615982cd19
commit a05fd1d50d
4 changed files with 69 additions and 2 deletions
@@ -90,6 +90,19 @@ type GetOrderProduct struct {
OrderInquiryCase *orderInquiryCaseResponse.OrderInquiryCase `json:"order_inquiry_case"` // 问诊病例
}
// GetOrderProductConsignee 获取药品订单收货人数据
type GetOrderProductConsignee struct {
ProvinceId int `json:"province_id"` // 省份id
Province string `json:"province"` // 省份
CityId int `json:"city_id"` // 城市id
City string `json:"city"` // 城市
CountyId int `json:"county_id"` // county_id
County string `json:"county"` // 区县
Address string `json:"address"` // 详细地址
ConsigneeName string `json:"consignee_name"` // 收货人姓名
ConsigneeTel string `json:"consignee_tel"` // 收货人电话
}
// GetOrderProductPageResponse 获取药品订单列表-分页
func GetOrderProductPageResponse(orderProduct []*model.OrderProduct) []getOrderProductPage {
// 处理返回值
@@ -144,3 +157,18 @@ func GetOrderProductPageResponse(orderProduct []*model.OrderProduct) []getOrderP
return getOrderProductPages
}
// GetOrderProductConsigneeResponse 获取药品订单收货人数据
func GetOrderProductConsigneeResponse(orderProduct *model.OrderProduct) *GetOrderProductConsignee {
return &GetOrderProductConsignee{
ProvinceId: orderProduct.ProvinceId,
Province: orderProduct.Province,
CityId: orderProduct.CityId,
City: orderProduct.City,
CountyId: orderProduct.CountyId,
County: orderProduct.County,
Address: orderProduct.Address,
ConsigneeName: orderProduct.ConsigneeName,
ConsigneeTel: orderProduct.ConsigneeTel,
}
}