优化筛选条件

This commit is contained in:
徐俊杰 2023-03-24 12:13:09 +08:00
parent 4c810fe81f
commit 62b33d09bb

View File

@ -10,6 +10,8 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"strings"
"github.com/fonchain/fonchain-artistinfo/cmd/internal/dao" "github.com/fonchain/fonchain-artistinfo/cmd/internal/dao"
"github.com/fonchain/fonchain-artistinfo/cmd/model" "github.com/fonchain/fonchain-artistinfo/cmd/model"
"github.com/fonchain/fonchain-artistinfo/pb/artist" "github.com/fonchain/fonchain-artistinfo/pb/artist"
@ -20,7 +22,6 @@ import (
"github.com/fonchain/fonchain-artistinfo/pkg/service" "github.com/fonchain/fonchain-artistinfo/pkg/service"
"github.com/fonchain/fonchain-artistinfo/pkg/util/stime" "github.com/fonchain/fonchain-artistinfo/pkg/util/stime"
"google.golang.org/protobuf/types/known/emptypb" "google.golang.org/protobuf/types/known/emptypb"
"strings"
) )
type IArtistInfoArtwork interface { type IArtistInfoArtwork interface {
@ -211,10 +212,11 @@ func (a ArtistInfoArtworkLogic) GenerateArtworkSupplementInfo(request *artistInf
func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistArtworkStaticRequest) (res *artistInfoArtwork.ArtistArtworkStaticResponse, err error) { func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistArtworkStaticRequest) (res *artistInfoArtwork.ArtistArtworkStaticResponse, err error) {
//查询画家宝中认证成功的用户 //查询画家宝中认证成功的用户
userList, _, err := dao.GetViewUserList(&artistInfoUser.FindUsersRequest{ userList, _, err := dao.GetViewUserList(&artistInfoUser.FindUsersRequest{
ArtistRealName: request.ArtistKeyWords, // ArtistRealName: request.ArtistKeyWords,
Page: int32(request.Page), Keyword: request.ArtistKeyWords,
PageSize: int32(request.PageSize), Page: int32(request.Page),
IsArtist: true, PageSize: int32(request.PageSize),
IsArtist: true,
}) })
if err != nil { if err != nil {
return nil, err return nil, err