public vars?
Closed this issue · 1 comments
khoogheem commented
any reason not to make the vars public?
public struct Position: Content {
var current: Int
var next: Int?
var previous: Int?
var max: Int
}
public struct PageData: Content {
var per: Int
var total: Int
}
public struct PageInfo: Content {
var position: Position
var data: PageData
}
public struct Paginated<M: Content>: Content {
var page: PageInfo
var data: [M]
}
khoogheem commented
sorry wrong project :(