ExampleModel

package
v0.0.0-...-10bdaf9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TableName = "example"

Functions

func BlogDelete

func BlogDelete(ctx context.Context, initDb *db.Client, id string) error

func GetAll

func GetAll(ctx context.Context, initDb *db.Client) (map[string]Example, error)

Types

type Example

type Example struct {
	ID        uuid.UUID
	URI       string
	ImageURL  string
	Category  string
	Title     string
	Author    string
	Content   string
	Key       string
	TotalView int64
	IsActive  bool
	CreatedAt time.Time
	UpdatedAt time.Time
	CreatedBy int
	UpdatedBy uuid.UUID
}

firebase model

func GetOneBlog

func GetOneBlog(ctx context.Context, initDb *db.Client, param string) (Example, error)

func Insert

func Insert(ctx context.Context, initDb *db.Client) (*Example, error)

func (*Example) Update

func (blog *Example) Update(ctx context.Context, initDb *db.Client) error

Jump to

Keyboard shortcuts

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