mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 14:08:30 -05:00
20 lines
445 B
Go
20 lines
445 B
Go
|
|
package archive
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"go-common/app/service/main/archive/model/archive"
|
||
|
|
)
|
||
|
|
|
||
|
|
// ViewsRPC is
|
||
|
|
func (d *Dao) ViewsRPC(c context.Context, aids []int64) (avm map[int64]*archive.View3, err error) {
|
||
|
|
avm, err = d.arcRPC.Views3(c, &archive.ArgAids2{Aids: aids})
|
||
|
|
return
|
||
|
|
}
|
||
|
|
|
||
|
|
// ViewRPC is
|
||
|
|
func (d *Dao) ViewRPC(c context.Context, aid int64) (v *archive.View3, err error) {
|
||
|
|
v, err = d.arcRPC.View3(c, &archive.ArgAid2{Aid: aid})
|
||
|
|
return
|
||
|
|
}
|