model

package
v0.0.0-...-26782db Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	// contains filtered or unexported fields
}

Example - Example storage

func NewExample

func NewExample(db *gorm.DB) *Example

NewExample - Create a Example storage instance

func (*Example) Create

func (a *Example) Create(ctx context.Context, item schema.Example) error

Create - Create data

func (*Example) Delete

func (a *Example) Delete(ctx context.Context, UUID string) error

Delete - delete data

func (*Example) Get

func (a *Example) Get(ctx context.Context, UUID string, opts ...schema.ExampleQueryOptions) (*schema.Example, error)

Get - Query specified data

func (*Example) Query

Query - Query data

func (*Example) Update

func (a *Example) Update(ctx context.Context, UUID string, item schema.Example) error

Update - Update data

func (*Example) UpdateStatus

func (a *Example) UpdateStatus(ctx context.Context, UUID string, status int) error

UpdateStatus - update status

Jump to

Keyboard shortcuts

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