后台“资金流水
This commit is contained in:
@@ -25,3 +25,10 @@ func (s *Service) Ledger(userID uint64) ([]LedgerDTO, error) {
|
||||
}
|
||||
return s.repo.Ledger(userID)
|
||||
}
|
||||
|
||||
func (s *Service) AdminLedger(query AdminLedgerQuery) ([]AdminLedgerDTO, error) {
|
||||
if s.repo == nil {
|
||||
return nil, ErrDependencyUnavailable
|
||||
}
|
||||
return s.repo.AdminLedger(query)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user