From 65847688d68bac9cc9a800e9a68b870296e89a40 Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Mon, 27 Mar 2023 10:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/logic/artistinfo_artwork.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {