修正返回目录
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/postResponse"
|
||||
"hospital-admin-api/api/service"
|
||||
"hospital-admin-api/global"
|
||||
"hospital-admin-api/utils"
|
||||
@@ -45,7 +45,7 @@ func (r *Post) GetPostPage(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 处理返回值
|
||||
getPostPageResponses := postResponse.GetPostPageResponse(adminPost)
|
||||
getPostPageResponses := dto.GetAdminPostListDto(adminPost)
|
||||
|
||||
result := make(map[string]interface{})
|
||||
result["page"] = postRequest.GetPostPage.Page
|
||||
@@ -116,7 +116,7 @@ func (r *Post) GetPost(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 处理返回值
|
||||
getPostResponses := postResponse.GetPostResponse(adminPost)
|
||||
getPostResponses := dto.GetAdminPostDto(adminPost)
|
||||
|
||||
responses.OkWithData(getPostResponses, c)
|
||||
}
|
||||
@@ -241,7 +241,7 @@ func (r *Post) GetPostList(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 处理返回值
|
||||
getPostListResponses := postResponse.GetPostListResponse(adminPosts)
|
||||
getPostListResponses := dto.GetAdminPostListDto(adminPosts)
|
||||
|
||||
responses.OkWithData(getPostListResponses, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user