services

package
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)

Jump to

Keyboard shortcuts

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