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.
23 lines
453 B
23 lines
453 B
package dao |
|
|
|
import ( |
|
"context" |
|
|
|
acc "go-common/app/service/main/account/api" |
|
accmdl "go-common/app/service/main/account/model" |
|
) |
|
|
|
// AccountCards get cards by mids |
|
func (d *Dao) AccountCards(ctx context.Context, mids []int64) (cards map[int64]*accmdl.Card, err error) { |
|
var ( |
|
req = &acc.MidsReq{ |
|
Mids: mids, |
|
} |
|
reply *acc.CardsReply |
|
) |
|
if reply, err = d.accountAPI.Cards3(ctx, req); err != nil { |
|
return |
|
} |
|
cards = reply.Cards |
|
return |
|
}
|
|
|