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.
22 lines
501 B
22 lines
501 B
package bangumi |
|
|
|
import ( |
|
"context" |
|
|
|
seasongrpc "go-common/app/service/openplatform/pgc-season/api/grpc/season/v1" |
|
"go-common/library/log" |
|
) |
|
|
|
// Cards get bangumis. |
|
func (d *Dao) Cards(ctx context.Context, seasonIds []int32) (res map[int32]*seasongrpc.CardInfoProto, err error) { |
|
arg := &seasongrpc.SeasonInfoReq{ |
|
SeasonIds: seasonIds, |
|
} |
|
info, err := d.rpcClient.Cards(ctx, arg) |
|
if err != nil { |
|
log.Error("d.rpcClient.Cards error(%v)", err) |
|
return nil, err |
|
} |
|
res = info.Cards |
|
return |
|
}
|
|
|