entity

package
v0.0.0-...-4db77b6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID          *value.ID
	UserID      *value.ID
	Name        string
	IsCompleted bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func (*Task) Validate

func (t *Task) Validate() error

フィールドの妥当性を検証する

type User

type User struct {
	ID        *value.ID
	Email     *value.Email
	Password  *value.Password
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (*User) Validate

func (u *User) Validate() error

フィールドの妥当性を検証する

Jump to

Keyboard shortcuts

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