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: 13 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

New new dao.

func (*Dao) AllAppsAuth

func (d *Dao) AllAppsAuth(c context.Context) (res map[int64]map[int64]*model.AppAuth, err error)

AllAppsAuth get all app auth info.

func (*Dao) AllAppsInfo

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

AllAppsInfo AllAppsInfo.

func (*Dao) Close

func (d *Dao) Close()

Close close mysql resource.

func (*Dao) Codes

func (d *Dao) Codes(c context.Context) (codes map[int]string, lcode *model.Code, err error)

Codes get all codes.

func (*Dao) CodesLang

func (d *Dao) CodesLang(c context.Context) (codes map[int]map[string]string, lcode *model.CodeLangs, err error)

CodesLang get all codes.

func (*Dao) Diff

func (d *Dao) Diff(c context.Context, ver int64) (vers *list.List, err error)

Diff get change codes.

func (*Dao) TreeAppInfo

func (d *Dao) TreeAppInfo(c context.Context) (appInfo map[int64]*model.AppToken, err error)

TreeAppInfo TreeAppInfo.

Jump to

Keyboard shortcuts

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