(ctx context.Context, arg database.GetChatCostPerUserParams)
| 2861 | } |
| 2862 | |
| 2863 | func (q *querier) GetChatCostPerUser(ctx context.Context, arg database.GetChatCostPerUserParams) ([]database.GetChatCostPerUserRow, error) { |
| 2864 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceChat); err != nil { |
| 2865 | return nil, err |
| 2866 | } |
| 2867 | return q.db.GetChatCostPerUser(ctx, arg) |
| 2868 | } |
| 2869 | |
| 2870 | func (q *querier) GetChatCostSummary(ctx context.Context, arg database.GetChatCostSummaryParams) (database.GetChatCostSummaryRow, error) { |
| 2871 | // See GetChatCostPerChat for the authorization rationale. |
nothing calls this directly
no test coverage detected