Discover Packages
github.com/phyrwork/benevolent-dictator
pkg
api
graph
model
package
Version:
v0.0.0-...-673c5a3
Opens a new window with list of versions in this module.
Published: Jul 24, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type LikesUpdate struct {
Added []int `json:"added"`
Removed []int `json:"removed"`
}
type PageInfo struct {
HasPreviousPage bool `json:"hasPreviousPage"`
HasNextPage bool `json:"hasNextPage"`
StartCursor *int `json:"startCursor"`
EndCursor *int `json:"endCursor"`
}
type Rule struct {
ID int `json:"id"`
User *User `json:"user"`
Created string `json:"created"`
Summary string `json:"summary"`
Detail *string `json:"detail"`
Likes *UserPage `json:"likes"`
}
type RulePage struct {
Rules []*Rule `json:"rules"`
PageInfo *PageInfo `json:"pageInfo"`
}
type User struct {
ID int `json:"id"`
Name string `json:"name"`
Rules *RulePage `json:"rules"`
Likes *RulePage `json:"likes"`
}
type UserPage struct {
Users []*User `json:"users"`
PageInfo *PageInfo `json:"pageInfo"`
}
type UserToken struct {
Token string `json:"token"`
ExpiresAt int `json:"expiresAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.