This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-30 08:35:45 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
type Server struct {
|
2020-06-26 07:47:33 +00:00
|
|
|
tableName struct{} `pg:",alias:server"`
|
|
|
|
|
2020-08-09 15:20:23 +00:00
|
|
|
ID string `pg:",pk" json:"id" gqlgen:"id"`
|
|
|
|
Lang string `pg:",use_zero"`
|
|
|
|
CoordsTranslation string `pg:",use_zero"`
|
|
|
|
Groups []*Group
|
2020-05-30 08:35:45 +00:00
|
|
|
}
|
2020-08-09 15:20:23 +00:00
|
|
|
|
2020-05-30 08:35:45 +00:00
|
|
|
type ServerFilter struct {
|
2020-07-19 14:21:32 +00:00
|
|
|
tableName struct{} `urlstruct:"server"`
|
|
|
|
|
2020-05-30 08:35:45 +00:00
|
|
|
ID []string
|
|
|
|
Limit int `urlstruct:",nowhere"`
|
|
|
|
Offset int `urlstruct:",nowhere"`
|
|
|
|
Order []string `urlstruct:",nowhere"`
|
|
|
|
}
|