package basic

import (
	"context"

	pb "bsm/full/module/social/group/pb"
	"git.apinb.com/bsm-sdk/core/errcode"
	"git.apinb.com/bsm-sdk/core/service"
)

// 搜索
func Search(ctx context.Context, in *pb.SearchRequest) (reply *pb.GroupsReply, err error) {
	_, err = service.ParseMetaCtx(ctx, nil)
	if err != nil {
		return nil, err
	}
	if in.Keyword == "" {
		return nil, errcode.ErrInvalidArgument
	}

	return &pb.GroupsReply{}, nil
}
