IncreaseHit 增加点击量
(hash string)
| 385 | |
| 386 | // IncreaseHit 增加点击量 |
| 387 | func (this *SQLiteFileList) IncreaseHit(hash string) error { |
| 388 | var db = this.GetDB(hash) |
| 389 | |
| 390 | if !db.IsReady() { |
| 391 | return nil |
| 392 | } |
| 393 | |
| 394 | return db.IncreaseHitAsync(hash) |
| 395 | } |
| 396 | |
| 397 | // OnAdd 添加事件 |
| 398 | func (this *SQLiteFileList) OnAdd(f func(item *Item)) { |
nothing calls this directly
no test coverage detected