bnj.go 445 B

12345678910111213141516171819
  1. package archive
  2. import (
  3. "context"
  4. "go-common/app/service/main/archive/model/archive"
  5. )
  6. // ViewsRPC is
  7. func (d *Dao) ViewsRPC(c context.Context, aids []int64) (avm map[int64]*archive.View3, err error) {
  8. avm, err = d.arcRPC.Views3(c, &archive.ArgAids2{Aids: aids})
  9. return
  10. }
  11. // ViewRPC is
  12. func (d *Dao) ViewRPC(c context.Context, aid int64) (v *archive.View3, err error) {
  13. v, err = d.arcRPC.View3(c, &archive.ArgAid2{Aid: aid})
  14. return
  15. }