diff --git a/Dockerfile b/Dockerfile index 2effc0e..27f6748 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ ADD . . RUN go build -ldflags "-s -w" -o ./dist/cacheproxy cmd/cacheproxy/main.go -FROM nginx:alpine +FROM ubuntu:20.04 WORKDIR /app diff --git a/page/page.go b/page/page.go index da5b559..b1c7b5e 100644 --- a/page/page.go +++ b/page/page.go @@ -17,7 +17,7 @@ import ( type Paginate struct { Page int64 `json:"page,omitempty" form:"page"` PageSize int64 `json:"page_size,omitempty" form:"page_size"` - Total int64 `json:"total,omitempty"form:"total" ` + Total int64 `json:"total,omitempty" form:"total" ` Sort string `json:"sort,omitempty" form:"sort"` Search string `json:"search,omitempty" form:"search"` }