Discover Packages
somepi.ddns.net/gitea/gilex-dev/YetAnotherToDoList
graph
model
package
Version:
v0.0.0-...-efa6b18
Opens a new window with list of versions in this module.
Published: Feb 2, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type NewRefreshToken struct {
TokenName *string `json:"tokenName,omitempty"`
}
type NewRole struct {
RoleName string `json:"roleName"`
IsAdmin bool `json:"isAdmin"`
IsUserCreator bool `json:"isUserCreator"`
}
type NewTodo struct {
Text string `json:"text"`
UserID string `json:"userId"`
}
type NewUser struct {
UserName string `json:"userName"`
FullName *string `json:"fullName,omitempty"`
Password string `json:"password"`
}
const (
PrivilegeIsAdmin Privilege = "isAdmin"
PrivilegeIsUserCreator Privilege = "isUserCreator"
)
type RefreshToken struct {
ID string `json:"id"`
ExpiryDate int `json:"expiryDate"`
TokenName *string `json:"tokenName,omitempty"`
Selector *string `json:"selector,omitempty"`
Token *string `json:"token,omitempty"`
UserID string `json:"userId"`
}
type RelationRoleUser struct {
User *User `json:"user"`
UserIsRoleManager bool `json:"userIsRoleManager"`
}
type RelationUserRole struct {
Role *Role `json:"role"`
UserIsRoleManager bool `json:"userIsRoleManager"`
}
type Role struct {
ID string `json:"id"`
RoleName string `json:"roleName"`
IsAdmin bool `json:"isAdmin"`
IsUserCreator bool `json:"isUserCreator"`
RoleMembers []*RelationRoleUser `json:"roleMembers"`
}
type Todo struct {
ID string `json:"id"`
Text string `json:"text"`
Done bool `json:"done"`
User *User `json:"user"`
}
type UpdateRefreshToken struct {
TokenName *string `json:"tokenName,omitempty"`
}
type UpdateRole struct {
RoleName *string `json:"roleName,omitempty"`
IsAdmin *bool `json:"isAdmin,omitempty"`
IsUserCreator *bool `json:"isUserCreator,omitempty"`
}
type UpdateTodo struct {
Text *string `json:"text,omitempty"`
Done *bool `json:"done,omitempty"`
}
type UpdateUser struct {
UserName *string `json:"userName,omitempty"`
FullName *string `json:"fullName,omitempty"`
Password *string `json:"password,omitempty"`
}
type User struct {
ID string `json:"id"`
UserName string `json:"userName"`
FullName *string `json:"fullName,omitempty"`
Todos []*Todo `json:"todos"`
Roles []*RelationUserRole `json:"roles"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.