diff --git a/cmd/internal/logic/artistinfo_artwork.go b/cmd/internal/logic/artistinfo_artwork.go index 409ca5f..1d3a56b 100644 --- a/cmd/internal/logic/artistinfo_artwork.go +++ b/cmd/internal/logic/artistinfo_artwork.go @@ -211,7 +211,7 @@ func (a ArtistInfoArtworkLogic) GenerateArtworkSupplementInfo(request *artistInf func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistArtworkStaticRequest) (res *artistInfoArtwork.ArtistArtworkStaticResponse, err error) { //查询画家宝中认证成功的用户 - userList, _, err := dao.GetViewUserList(&artistInfoUser.FindUsersRequest{ + userList, total, err := dao.GetViewUserList(&artistInfoUser.FindUsersRequest{ // ArtistRealName: request.ArtistKeyWords, Keyword: request.ArtistKeyWords, Page: int32(request.Page), @@ -237,7 +237,7 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA } //查询匹配的画家数据列表 artistList, err := service.GrpcArtistImpl.ArtistList(context.Background(), &artist.ArtistListRequest{ - Keyword: request.ArtistKeyWords, + // Keyword: request.ArtistKeyWords, Page: 1, PageSize: -1, Gender: gender, @@ -264,7 +264,7 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA res = &artistInfoArtwork.ArtistArtworkStaticResponse{ Page: int64(artistList.Page), PageSize: int64(request.PageSize), - Total: int64(artistList.Count), + Total: total, } viewDatas, err := dao.PassedArtworkStatic(request, artistUids) if err != nil {