schemas

package
v0.0.0-...-1fc76d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserListSchema

type UserListSchema struct {
	Users []UserSchema `json:"users"`
}

func FromUsers

func FromUsers(users []domains.User) UserListSchema

type UserSchema

type UserSchema struct {
	ID       int    `json:"id"`
	Username string `json:"username"`
}

func FromUser

func FromUser(user *domains.User) UserSchema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL