dao

package
v0.0.0-...-a91c245 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountKey

func CountKey(_number string) (int, error)

func CreateApp

func CreateApp(_appname string) error

func CreateKey

func CreateKey(_key model.Key) error

func CreateLicense

func CreateLicense(_license model.License) error

func FilterLicense

func FilterLicense(_number string) ([]*model.License, error)

func FindApp

func FindApp(_appkey string, _appsecret string) (*model.Application, error)

func FindKey

func FindKey(_appname string, _number string) (*model.Key, error)

func FindLicense

func FindLicense(_code string) ([]*model.License, error)

func ListApp

func ListApp() ([]*model.Application, error)

func ListKey

func ListKey(_appname string) ([]*model.Key, error)

func QueryApp

func QueryApp(_appname string) (*model.Application, error)

func QueryKey

func QueryKey(_number string) (*model.Key, error)

func QueryLicense

func QueryLicense(_uid string) (*model.License, error)

func UpdateAppProfile

func UpdateAppProfile(_appname string, _profile string) error

func UpdateAppSecurity

func UpdateAppSecurity(_appname string, _appKey string, _appSecret string, _privateKey string, _publicKey string) error

func UpdateKeyProfile

func UpdateKeyProfile(_number string, _profile string) error

func UpdateKeyStatus

func UpdateKeyStatus(_number string, _status int) error

func UpdateLicenseUpdatedAt

func UpdateLicenseUpdatedAt(_uid string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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