新增 提现详情-关联订单列表-分页

This commit is contained in:
2023-10-31 14:23:33 +08:00
parent 2e4363a7d4
commit dda86b626d
5 changed files with 267 additions and 11 deletions
+4 -4
View File
@@ -85,7 +85,7 @@ func (r *DoctorWithdrawal) GetDoctorWithdrawal(c *gin.Context) {
// GetDoctorWithdrawalOrderPage 提现详情-关联订单列表-分页
func (r *DoctorWithdrawal) GetDoctorWithdrawalOrderPage(c *gin.Context) {
doctorWithdrawalRequest := requests.DoctorWithdrawalRequest{}
req := doctorWithdrawalRequest.GetDoctorWithdrawalPage
req := doctorWithdrawalRequest.GetDoctorWithdrawalOrderPage
if err := c.ShouldBind(&req); err != nil {
responses.FailWithMessage(err.Error(), c)
return
@@ -105,15 +105,15 @@ func (r *DoctorWithdrawal) GetDoctorWithdrawalOrderPage(c *gin.Context) {
req.PageSize = 20
}
doctorWithdrawalDao := dao.DoctorWithdrawalDao{}
doctorWithdrawal, total, err := doctorWithdrawalDao.GetDoctorWithdrawalPageSearch(req, req.Page, req.PageSize)
doctorWithdrawalOrderDao := dao.DoctorWithdrawalOrderDao{}
doctorWithdrawalOrder, total, err := doctorWithdrawalOrderDao.GetDoctorWithdrawalOrderPageSearch(req, req.Page, req.PageSize)
if err != nil {
responses.FailWithMessage(err.Error(), c)
return
}
// 处理返回值
res := dto.GetDoctorWithdrawalListDto(doctorWithdrawal)
res := dto.GetDoctorWithdrawalOrderListDto(doctorWithdrawalOrder)
result := make(map[string]interface{})
result["page"] = req.Page