api

package
v0.0.0-...-d808fcf Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	ID

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	Deleted   bool      `json:"deleted"`
	DeletedAt time.Time `json:"deleted_at"`
}

Basic handles api basic data

func (*Basic) FromDB

func (b *Basic) FromDB(db db.Basic)

FromDB sets db data to api data

func (Basic) ToDB

func (b Basic) ToDB(db *db.Basic)

ToDB sets api data to db data

type ID

type ID struct {
	ID string `json:"id"`
}

ID handles api id data

func (*ID) FromDB

func (i *ID) FromDB(db db.Basic)

FromDB sets db data to api data

func (ID) ToDB

func (i ID) ToDB(db *db.Basic)

ToDB sets api data to db data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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