dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao dao

func New

func New(c *conf.Config) (dao *Dao)

New init mysql db

func (*Dao) AllAppInfo

func (d *Dao) AllAppInfo(c context.Context) (res []*model.AppInfo, err error)

AllAppInfo all appinfo.

func (*Dao) Close

func (dao *Dao) Close()

Close close the resource.

func (*Dao) Ping

func (dao *Dao) Ping(c context.Context) error

Ping dao ping

func (*Dao) PointCoinAdd

func (d *Dao) PointCoinAdd(c context.Context, pc *model.PointConf) (id int64, err error)

PointCoinAdd .

func (*Dao) PointCoinEdit

func (d *Dao) PointCoinEdit(c context.Context, mp *model.PointConf) (eff int64, err error)

PointCoinEdit .

func (*Dao) PointCoinInfo

func (d *Dao) PointCoinInfo(c context.Context, id int64) (r *model.PointConf, err error)

PointCoinInfo .

func (*Dao) PointConfList

func (d *Dao) PointConfList(c context.Context) (res []*model.PointConf, err error)

PointConfList .

func (*Dao) PointHistory

func (d *Dao) PointHistory(c context.Context, arg *model.ArgPointHistory) (res *model.SearchData, err error)

PointHistory get point change history from es.

Jump to

Keyboard shortcuts

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