新增审核-医生列表-详情
This commit is contained in:
@@ -116,3 +116,24 @@ func (b *Admin) GetDecryptCardNum(c *gin.Context) {
|
||||
userCardNum, _ := userService.GetUserCardNum(userId, familyId)
|
||||
responses.OkWithData(userCardNum, c)
|
||||
}
|
||||
|
||||
// GetDecryptBank 获取解密银行卡号
|
||||
func (b *Admin) GetDecryptBank(c *gin.Context) {
|
||||
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
|
||||
}
|
||||
|
||||
// 获取解密银行卡号
|
||||
userService := service.UserService{}
|
||||
userCardNum, _ := userService.GetUserBankNumByDoctorId(doctorId)
|
||||
responses.OkWithData(userCardNum, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user