实现店铺联系电话精确查询与索引
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user