Add query args passing to API endpoints

This commit is contained in:
Eli Ribble 2026-03-06 14:12:47 +00:00
parent 7723f03915
commit de63a47c64
No known key found for this signature in database
3 changed files with 21 additions and 4 deletions

View file

@ -34,7 +34,7 @@ type lead struct {
ID int32 `json:"id"`
}
func listLead(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*contentListLead, *nhttp.ErrorWithStatus) {
func listLead(ctx context.Context, r *http.Request, org *models.Organization, user *models.User, query queryParams) (*contentListLead, *nhttp.ErrorWithStatus) {
return &contentListLead{
Leads: make([]lead, 0),
}, nil