services

package
Version: v0.0.0-...-f2de229 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOne

func CreateOne(data interface{}) error

func DeleteUser

func DeleteUser(condition interface{}) error

func FindOneUser

func FindOneUser(condition interface{}) (models.User, error)

func FindOneUserBySlug

func FindOneUserBySlug(slug string) (models.User, error)

func UpdateUser

func UpdateUser(slug string, data interface{}) (models.User, error)

Types

type PageMeta

type PageMeta struct {
	TotalItemsCount   int `json:"totalItemsCount"`
	CurrentItemsCount int `json:"currentItemsCount"`
	PageSize          int `json:"pageSize"`
	Page              int `json:"page"`
}

func FindAllUsers

func FindAllUsers(pageSizeStr, pageStr string) ([]models.User, PageMeta, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL