Function
NewInteractiveRepository
(dao dao.InteractiveDAO, l *zap.Logger, cache cache.InteractiveCache)
Source from the content-addressed store, hash-verified
| 31 | } |
| 32 | |
| 33 | func NewInteractiveRepository(dao dao.InteractiveDAO, l *zap.Logger, cache cache.InteractiveCache) InteractiveRepository { |
| 34 | return &InteractiveRepositoryImpl{ |
| 35 | dao: dao, |
| 36 | cache: cache, |
| 37 | l: l, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // IncrReadCnt 增加阅读计数 |
| 42 | func (i *InteractiveRepositoryImpl) IncrReadCnt(ctx context.Context, postId uint) error { |
Tested by
no test coverage detected