2
This commit is contained in:
parent
2fcbd1a72c
commit
f08893bff5
@ -263,14 +263,6 @@ func (r *OrderInquiry) GetOrderInquiryForAccountPage(c *gin.Context) {
|
|||||||
req.PageSize = 20
|
req.PageSize = 20
|
||||||
}
|
}
|
||||||
|
|
||||||
doctorId := c.Param("doctor_id")
|
|
||||||
if doctorId == "" {
|
|
||||||
responses.FailWithMessage("缺少参数", c)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
req.DoctorId = doctorId
|
|
||||||
|
|
||||||
orderInquiryDao := dao.OrderInquiryDao{}
|
orderInquiryDao := dao.OrderInquiryDao{}
|
||||||
orderInquiry, total, err := orderInquiryDao.GetOrderInquiryForAccountPageSearch(req, req.Page, req.PageSize)
|
orderInquiry, total, err := orderInquiryDao.GetOrderInquiryForAccountPageSearch(req, req.Page, req.PageSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -380,7 +380,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
|||||||
accountGroup.GET("/:doctor_id", api.DoctorAccount.GetDoctorAccount)
|
accountGroup.GET("/:doctor_id", api.DoctorAccount.GetDoctorAccount)
|
||||||
|
|
||||||
// 获取医生账户关联订单列表-分页
|
// 获取医生账户关联订单列表-分页
|
||||||
accountGroup.GET("/order/:doctor_id", api.OrderInquiry.GetOrderInquiryForAccountPage)
|
accountGroup.GET("/order", api.OrderInquiry.GetOrderInquiryForAccountPage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -538,7 +538,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
|||||||
withdrawalGroup.GET("/:withdrawal_id", api.DoctorWithdrawal.GetDoctorWithdrawal)
|
withdrawalGroup.GET("/:withdrawal_id", api.DoctorWithdrawal.GetDoctorWithdrawal)
|
||||||
|
|
||||||
// 提现详情-关联订单列表-分页
|
// 提现详情-关联订单列表-分页
|
||||||
withdrawalGroup.GET("/order/:withdrawal_id", api.DoctorWithdrawal.GetDoctorWithdrawalOrderPage)
|
withdrawalGroup.GET("/order", api.DoctorWithdrawal.GetDoctorWithdrawalOrderPage)
|
||||||
|
|
||||||
// 修改提现个人所得税
|
// 修改提现个人所得税
|
||||||
withdrawalGroup.PUT("/income/:withdrawal_id", api.DoctorWithdrawal.PutDoctorWithdrawalIncome)
|
withdrawalGroup.PUT("/income/:withdrawal_id", api.DoctorWithdrawal.PutDoctorWithdrawalIncome)
|
||||||
@ -592,10 +592,60 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出管理
|
// // 导出管理
|
||||||
exportGroup := adminGroup.Group("/export")
|
// exportGroup := adminGroup.Group("/export")
|
||||||
{
|
// {
|
||||||
// 提现记录
|
// // 提现
|
||||||
exportGroup.PUT("/withdrawal", api.UserCaCert.RenewUserCloudCert)
|
// withdrawalGroup := exportGroup.Group("/withdrawal")
|
||||||
}
|
// {
|
||||||
|
// // 提现记录
|
||||||
|
// withdrawalGroup.POST("", api.Export.DoctorWithdrawal)
|
||||||
|
//
|
||||||
|
// // 提现记录-关联订单
|
||||||
|
// withdrawalGroup.POST("/order", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// // 医生
|
||||||
|
// doctorGroup := exportGroup.Group("/doctor")
|
||||||
|
// {
|
||||||
|
// // 医生列表
|
||||||
|
// doctorGroup.POST("", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
//
|
||||||
|
// // 医生银行卡
|
||||||
|
// doctorGroup.POST("/bank/card", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
//
|
||||||
|
// // 医生账户
|
||||||
|
// doctorGroup.POST("/account", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
//
|
||||||
|
// // 医生账户-关联订单
|
||||||
|
// doctorGroup.POST("/account/order", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// // 患者
|
||||||
|
// patientGroup := exportGroup.Group("/patient")
|
||||||
|
// {
|
||||||
|
// // 患者列表
|
||||||
|
// patientGroup.POST("", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
//
|
||||||
|
// // 就诊人列表
|
||||||
|
// patientGroup.POST("/family", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// // 订单
|
||||||
|
// orderGroup := exportGroup.Group("/order")
|
||||||
|
// {
|
||||||
|
// // 问诊订单
|
||||||
|
// orderGroup.POST("/inquiry", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
//
|
||||||
|
// // 药品订单
|
||||||
|
// orderGroup.POST("/product", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// // 处方
|
||||||
|
// prescriptionGroup := exportGroup.Group("/prescription")
|
||||||
|
// {
|
||||||
|
// // 处方
|
||||||
|
// prescriptionGroup.POST("", api.UserCaCert.RenewUserCloudCert)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user