implement

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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	ExampleModel model.IExample
}

Example - Sample program

func NewExample

func NewExample(mExample model.IExample) *Example

NewExample - Create a Example

func (*Example) Create

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

Create - Create Example 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 - Get specified data

func (*Example) Query

Query - Query data

func (*Example) Update

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

Update - Update Example 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