修改im路由

This commit is contained in:
2023-10-17 10:21:35 +08:00
parent 9d65658ebe
commit adad73a9b7
5 changed files with 61 additions and 17 deletions
+39
View File
@@ -81,3 +81,42 @@ func (r *InquiryConfig) GetDoctorInquiryConfig(c *gin.Context) {
responses.OkWithData(getUserDoctorResponses, c)
}
// PutDoctorInquiryConfig 修改医生问诊配置
func (r *InquiryConfig) PutDoctorInquiryConfig(c *gin.Context) {
// inquiryConfigRequest := requests.InquiryConfigRequest{}
// req := inquiryConfigRequest.PutDoctorInquiryConfig
// if err := c.ShouldBindJSON(&req); err != nil {
// responses.FailWithMessage(err.Error(), c)
// return
// }
//
// // 参数验证
// if err := global.Validate.Struct(req); err != nil {
// responses.FailWithMessage(utils.Translate(err), c)
// return
// }
//
// id := c.Param("doctor_id")
// if id == "" {
// responses.FailWithMessage("缺少参数", c)
// return
// }
//
// // 将 id 转换为 int64 类型
// doctorId, err := strconv.ParseInt(id, 10, 64)
// if err != nil {
// responses.Fail(c)
// return
// }
//
// // 业务处理
// userDoctorService := service.UserDoctorService{}
// _, err = userDoctorService.PutUserDoctor(doctorId, req)
// if err != nil {
// responses.FailWithMessage(err.Error(), c)
// return
// }
responses.Ok(c)
}