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:
@@ -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(¶ms); err != nil {
|
||||
apiErr := apierror.BadRequest("invalid_params", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user