fix: suppress dupl lint for Search handler

The public Search and admin List handlers share structure but use
different types (SearchParams/AdminSearchParams, MarketSummary/
AdminMarketSummary). This is intentional, not a refactoring target.
This commit is contained in:
2026-02-27 13:34:37 +01:00
parent 2e5d7b726b
commit ac892720df

View File

@@ -17,7 +17,7 @@ func NewHandler(service *Service) *Handler {
return &Handler{service: service}
}
func (h *Handler) Search(c *gin.Context) {
func (h *Handler) Search(c *gin.Context) { //nolint:dupl // similar structure to AdminHandler.List but different types
var params SearchParams
if err := c.ShouldBindQuery(&params); err != nil {
apiErr := apierror.BadRequest("invalid_params", err.Error())