entities

package
v0.0.0-...-00e58af Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 0 Imported by: 0

README

Put project domain entities in this place

Documentation

Index

Constants

View Source
const (
	UserNameField  string = "NAME"
	UserEmailField string = "EMAIL"
	UserAgeField   string = "AGE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NewUser

type NewUser struct {
	Name  *string
	Pwd   *string
	Email *string
	Age   *int
}

type OrderDirection

type OrderDirection int
const (
	ASC OrderDirection = iota
	DESC
)

type User

type User struct {
	Id    *int
	Name  *string
	Pwd   *string
	Email *string
	Age   *int
}

type UserFilter

type UserFilter struct {
	Name  *string
	Email *string
	Age   *int
}

type UserOrder

type UserOrder struct {
	Direction *OrderDirection
	Field     *string
}

type UserPagination

type UserPagination struct {
	First   *int
	Last    *int
	OrderBy *UserOrder
}

Jump to

Keyboard shortcuts

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