fix import conflict
This commit is contained in:
parent
8e132dbdcd
commit
a130a826bc
@ -12,7 +12,7 @@ import (
|
||||
"git.nochill.in/nochill/hiling_go/util"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/lib/pq"
|
||||
"github.com/yiplee/sqlc"
|
||||
ysqlc "github.com/yiplee/sqlc"
|
||||
)
|
||||
|
||||
type createLocationReq struct {
|
||||
@ -96,7 +96,7 @@ func (server *Server) getListLocations(ctx *gin.Context) {
|
||||
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.Offset(int(req.Page-1) * int(req.PageSize))
|
||||
builder.Order("created_at ASC")
|
||||
|
Loading…
Reference in New Issue
Block a user