mysql_dao

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKeysDAO

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

func NewAuthKeysDAO

func NewAuthKeysDAO(db *sqlx.DB) *AuthKeysDAO

func (*AuthKeysDAO) Insert

func (dao *AuthKeysDAO) Insert(do *dataobject.AuthKeysDO) (int64, error)

insert into auth_keys(auth_id, body) values (:auth_id, :body) TODO(@benqi): sqlmap

func (*AuthKeysDAO) SelectByAuthId

func (dao *AuthKeysDAO) SelectByAuthId(auth_id int64) (*dataobject.AuthKeysDO, error)

select body from auth_keys where auth_id = :auth_id TODO(@benqi): sqlmap

type AuthUsersDAO

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

func NewAuthUsersDAO

func NewAuthUsersDAO(db *sqlx.DB) *AuthUsersDAO

func (*AuthUsersDAO) Insert

func (dao *AuthUsersDAO) Insert(do *dataobject.AuthUsersDO) (int64, error)

insert into auth_users(auth_id, user_id, hash, device_model, platform, system_version, api_id, app_name, app_version, date_created, date_active, ip, country, region) values (:auth_id, :user_id, :hash, :device_model, :platform, :system_version, :api_id, :app_name, :app_version, :date_created, :date_active, :ip, :country, :region) TODO(@benqi): sqlmap

func (*AuthUsersDAO) SelectByAuthId

func (dao *AuthUsersDAO) SelectByAuthId(auth_id int64) (*dataobject.AuthUsersDO, error)

select auth_id, user_id, hash, device_model, platform, system_version, api_id, app_name, app_version, date_created, date_active, ip, country, region from auth_users where auth_id = :auth_id TODO(@benqi): sqlmap

Jump to

Keyboard shortcuts

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