修正返回目录
This commit is contained in:
@@ -3,9 +3,9 @@ package controller
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"hospital-admin-api/api/dao"
|
||||
"hospital-admin-api/api/dto"
|
||||
"hospital-admin-api/api/requests"
|
||||
"hospital-admin-api/api/responses"
|
||||
"hospital-admin-api/api/responses/adminUserResponse"
|
||||
"hospital-admin-api/api/service"
|
||||
"hospital-admin-api/global"
|
||||
"hospital-admin-api/utils"
|
||||
@@ -49,7 +49,7 @@ func (r *AdminUser) GetUserPage(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 处理返回值
|
||||
getUserPageResponses := adminUserResponse.GetUserPageResponse(adminUser)
|
||||
getUserPageResponses := dto.GetAdminUserListDto(adminUser)
|
||||
|
||||
result := make(map[string]interface{})
|
||||
result["page"] = UserRequest.GetUserPage.Page
|
||||
@@ -120,9 +120,9 @@ func (r *AdminUser) GetUser(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 处理返回值
|
||||
getUserResponses := adminUserResponse.GetUserResponse(adminUser)
|
||||
result := dto.GetAdminUserDto(adminUser)
|
||||
|
||||
responses.OkWithData(getUserResponses, c)
|
||||
responses.OkWithData(result, c)
|
||||
}
|
||||
|
||||
// DeleteUser 删除用户-批量
|
||||
|
||||
Reference in New Issue
Block a user