实现店铺联系电话精确查询与索引

This commit is contained in:
2026-07-22 15:06:06 +09:00
parent 751cb46079
commit 2fd11daaf0
14 changed files with 904 additions and 64 deletions

View File

@@ -22,8 +22,8 @@ type ShopHandler struct {
}
// NewShopHandler 创建店铺管理处理器。
func NewShopHandler(service *shopService.Service, validate *validator.Validate) *ShopHandler {
return &ShopHandler{service: service, validator: validate}
func NewShopHandler(service *shopService.Service, validator *validator.Validate) *ShopHandler {
return &ShopHandler{service: service, validator: validator}
}
// List 查询店铺列表。
@@ -73,7 +73,7 @@ func (h *ShopHandler) logListValidationFailure(c *fiber.Ctx, err error) {
func normalizeShopListPagination(req *dto.ShopListRequest) {
if req.Page == 0 {
req.Page = 1
req.Page = constants.DefaultPage
}
if req.PageSize == 0 {
req.PageSize = constants.DefaultPageSize