service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(info interface{}, condition interface{}, args ...interface{}) (int64, error)

func DonateInfoFind

func DonateInfoFind(info *model.DonateInfo) (model.DonateInfo, error)

func DonateInfoIsExist

func DonateInfoIsExist(info *model.DonateInfo) (bool, error)

func DonateInfoRandomGet

func DonateInfoRandomGet(prevId uint) (model.DonateInfo, error)

func DonateInfoSave

func DonateInfoSave(info *model.DonateInfo) error

func GetUserById added in v1.0.2

func GetUserById(id uint) (model.User, error)

func GetUserBySession added in v1.1.0

func GetUserBySession(c *gin.Context) (*model.User, error)

func Login added in v1.0.2

func Login(login string, pass string) (model.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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