You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
456 B
20 lines
456 B
package bangumi |
|
|
|
import ( |
|
"context" |
|
|
|
episodegrpc "go-common/app/service/openplatform/pgc-season/api/grpc/episode/v1" |
|
|
|
"github.com/pkg/errors" |
|
) |
|
|
|
func (d *Dao) CardsInfoReply(c context.Context, episodeIds []int32) (res map[int32]*episodegrpc.EpisodeCardsProto, err error) { |
|
arg := &episodegrpc.EpReq{Epids: episodeIds} |
|
info, err := d.rpcClient.Cards(c, arg) |
|
if err != nil { |
|
err = errors.Wrapf(err, "%v", arg) |
|
return |
|
} |
|
res = info.Cards |
|
return |
|
}
|
|
|