model

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationModel

type NotificationModel struct {
	ID      int
	Title   string
	Content string
}

type TaskModel

type TaskModel struct {
	ID     int
	UserID int
	Title  string
}

func (*TaskModel) User

func (t *TaskModel) User() *UserModel

type UserModel

type UserModel struct {
	ID  int
	Tag *string
}

func (*UserModel) CreatedAt

func (u *UserModel) CreatedAt() time.Time

func (*UserModel) Fullname

func (u *UserModel) Fullname() string

func (*UserModel) Notifications

func (u *UserModel) Notifications() (result []*NotificationModel)

func (*UserModel) UpdatedAt

func (u *UserModel) UpdatedAt() time.Time

Jump to

Keyboard shortcuts

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