fix import conflict

This commit is contained in:
nochill 2023-09-14 14:58:16 +07:00
parent 8e132dbdcd
commit a130a826bc

View File

@ -12,7 +12,7 @@ import (
"git.nochill.in/nochill/hiling_go/util" "git.nochill.in/nochill/hiling_go/util"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/lib/pq" "github.com/lib/pq"
"github.com/yiplee/sqlc" ysqlc "github.com/yiplee/sqlc"
) )
type createLocationReq struct { type createLocationReq struct {
@ -96,7 +96,7 @@ func (server *Server) getListLocations(ctx *gin.Context) {
return return
} }
locations, err := server.Store.GetListLocations(sqlc.Build(ctx, func(builder *sqlc.Builder) { locations, err := server.Store.GetListLocations(ysqlc.Build(ctx, func(builder *ysqlc.Builder) {
builder.Limit(int(req.PageSize)) builder.Limit(int(req.PageSize))
builder.Offset(int(req.Page-1) * int(req.PageSize)) builder.Offset(int(req.Page-1) * int(req.PageSize))
builder.Order("created_at ASC") builder.Order("created_at ASC")