Expose GET /admin/users/:user_id/subscriptions with full plan history and payments, and GET /admin/users/:user_id/learning-activity with LMS and exam-prep progress, completions, and recent timeline. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
304 B
Go
12 lines
304 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
dbgen "Yimaru-Backend/gen/db"
|
|
)
|
|
|
|
func (s *Store) ListUserExamPrepFlatLearningActivity(ctx context.Context, userID int64) ([]dbgen.ListUserExamPrepFlatLearningActivityByUserRow, error) {
|
|
return s.queries.ListUserExamPrepFlatLearningActivityByUser(ctx, userID)
|
|
}
|