dao

package
v0.0.0-...-32fa971 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDao

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

func NewClientDao

func NewClientDao(querier wrapper.GddDB) ClientDao

func (ClientDao) AfterBulkSaveHook

func (receiver ClientDao) AfterBulkSaveHook(ctx context.Context, data []*domain.Client, lastInsertID int64, affected int64)

func (ClientDao) AfterDeleteManyHook

func (receiver ClientDao) AfterDeleteManyHook(ctx context.Context, data []*domain.Client, where *query.Where, affected int64)

func (ClientDao) AfterSaveHook

func (receiver ClientDao) AfterSaveHook(ctx context.Context, data *domain.Client, lastInsertID int64, affected int64)

func (ClientDao) AfterUpdateManyHook

func (receiver ClientDao) AfterUpdateManyHook(ctx context.Context, data []*domain.Client, where *query.Where, affected int64)

func (ClientDao) BeforeBulkSaveHook

func (receiver ClientDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.Client)

func (ClientDao) BeforeDeleteManyHook

func (receiver ClientDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.Client, where *query.Where)

func (ClientDao) BeforeReadManyHook

func (receiver ClientDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)

func (ClientDao) BeforeSaveHook

func (receiver ClientDao) BeforeSaveHook(ctx context.Context, data *domain.Client)

func (ClientDao) BeforeUpdateManyHook

func (receiver ClientDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.Client, where *query.Where)

func (ClientDao) BulkInsert

func (receiver ClientDao) BulkInsert(ctx context.Context, data []*domain.Client) (int64, error)

func (ClientDao) BulkInsertIgnore

func (receiver ClientDao) BulkInsertIgnore(ctx context.Context, data []*domain.Client) (int64, error)

func (ClientDao) BulkUpsert

func (receiver ClientDao) BulkUpsert(ctx context.Context, data []*domain.Client) (int64, error)

func (ClientDao) BulkUpsertSelect

func (receiver ClientDao) BulkUpsertSelect(ctx context.Context, data []*domain.Client, columns []string) (int64, error)

func (ClientDao) CountMany

func (receiver ClientDao) CountMany(ctx context.Context, where query.Where) (int, error)

func (ClientDao) DeleteMany

func (receiver ClientDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)

func (ClientDao) DeleteManySoft

func (receiver ClientDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)

func (ClientDao) Get

func (receiver ClientDao) Get(ctx context.Context, dest *domain.Client, id int) error

func (ClientDao) Insert

func (receiver ClientDao) Insert(ctx context.Context, data *domain.Client) (int64, error)

func (ClientDao) InsertIgnore

func (receiver ClientDao) InsertIgnore(ctx context.Context, data *domain.Client) (int64, error)

func (ClientDao) PageMany

func (receiver ClientDao) PageMany(ctx context.Context, dest *ClientPageRet, page query.Page, where query.Where) error

func (ClientDao) SelectMany

func (receiver ClientDao) SelectMany(ctx context.Context, dest *[]domain.Client, where query.Where) error

func (ClientDao) Update

func (receiver ClientDao) Update(ctx context.Context, data *domain.Client) (int64, error)

func (ClientDao) UpdateMany

func (receiver ClientDao) UpdateMany(ctx context.Context, data []*domain.Client, where query.Where) (int64, error)

func (ClientDao) UpdateManyNoneZero

func (receiver ClientDao) UpdateManyNoneZero(ctx context.Context, data []*domain.Client, where query.Where) (int64, error)

func (ClientDao) UpdateNoneZero

func (receiver ClientDao) UpdateNoneZero(ctx context.Context, data *domain.Client) (int64, error)

func (ClientDao) Upsert

func (receiver ClientDao) Upsert(ctx context.Context, data *domain.Client) (int64, error)

Upsert With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, 2 if an existing row is updated, and 0 if an existing row is set to its current values. If you specify the CLIENT_FOUND_ROWS flag to the mysql_real_connect() C API function when connecting to mysqld, the affected-rows value is 1 (not 0) if an existing row is set to its current values. https://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html

func (ClientDao) UpsertNoneZero

func (receiver ClientDao) UpsertNoneZero(ctx context.Context, data *domain.Client) (int64, error)

type ClientPageRet

type ClientPageRet struct {
	Items    []domain.Client
	PageNo   int
	PageSize int
	Total    int
	HasNext  bool
}

type InvalidTokenDao

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

func NewInvalidTokenDao

func NewInvalidTokenDao(querier wrapper.GddDB) InvalidTokenDao

func (InvalidTokenDao) AfterBulkSaveHook

func (receiver InvalidTokenDao) AfterBulkSaveHook(ctx context.Context, data []*domain.InvalidToken, lastInsertID int64, affected int64)

func (InvalidTokenDao) AfterDeleteManyHook

func (receiver InvalidTokenDao) AfterDeleteManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where, affected int64)

func (InvalidTokenDao) AfterSaveHook

func (receiver InvalidTokenDao) AfterSaveHook(ctx context.Context, data *domain.InvalidToken, lastInsertID int64, affected int64)

func (InvalidTokenDao) AfterUpdateManyHook

func (receiver InvalidTokenDao) AfterUpdateManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where, affected int64)

func (InvalidTokenDao) BeforeBulkSaveHook

func (receiver InvalidTokenDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.InvalidToken)

func (InvalidTokenDao) BeforeDeleteManyHook

func (receiver InvalidTokenDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where)

func (InvalidTokenDao) BeforeReadManyHook

func (receiver InvalidTokenDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)

func (InvalidTokenDao) BeforeSaveHook

func (receiver InvalidTokenDao) BeforeSaveHook(ctx context.Context, data *domain.InvalidToken)

func (InvalidTokenDao) BeforeUpdateManyHook

func (receiver InvalidTokenDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where)

func (InvalidTokenDao) BulkInsert

func (receiver InvalidTokenDao) BulkInsert(ctx context.Context, data []*domain.InvalidToken) (int64, error)

func (InvalidTokenDao) BulkInsertIgnore

func (receiver InvalidTokenDao) BulkInsertIgnore(ctx context.Context, data []*domain.InvalidToken) (int64, error)

func (InvalidTokenDao) BulkUpsert

func (receiver InvalidTokenDao) BulkUpsert(ctx context.Context, data []*domain.InvalidToken) (int64, error)

func (InvalidTokenDao) BulkUpsertSelect

func (receiver InvalidTokenDao) BulkUpsertSelect(ctx context.Context, data []*domain.InvalidToken, columns []string) (int64, error)

func (InvalidTokenDao) CountMany

func (receiver InvalidTokenDao) CountMany(ctx context.Context, where query.Where) (int, error)

func (InvalidTokenDao) DeleteMany

func (receiver InvalidTokenDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)

func (InvalidTokenDao) DeleteManySoft

func (receiver InvalidTokenDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)

func (InvalidTokenDao) Get

func (receiver InvalidTokenDao) Get(ctx context.Context, dest *domain.InvalidToken, id int) error

func (InvalidTokenDao) Insert

func (receiver InvalidTokenDao) Insert(ctx context.Context, data *domain.InvalidToken) (int64, error)

func (InvalidTokenDao) InsertIgnore

func (receiver InvalidTokenDao) InsertIgnore(ctx context.Context, data *domain.InvalidToken) (int64, error)

func (InvalidTokenDao) PageMany

func (receiver InvalidTokenDao) PageMany(ctx context.Context, dest *InvalidTokenPageRet, page query.Page, where query.Where) error

func (InvalidTokenDao) SelectMany

func (receiver InvalidTokenDao) SelectMany(ctx context.Context, dest *[]domain.InvalidToken, where query.Where) error

func (InvalidTokenDao) Update

func (receiver InvalidTokenDao) Update(ctx context.Context, data *domain.InvalidToken) (int64, error)

func (InvalidTokenDao) UpdateMany

func (receiver InvalidTokenDao) UpdateMany(ctx context.Context, data []*domain.InvalidToken, where query.Where) (int64, error)

func (InvalidTokenDao) UpdateManyNoneZero

func (receiver InvalidTokenDao) UpdateManyNoneZero(ctx context.Context, data []*domain.InvalidToken, where query.Where) (int64, error)

func (InvalidTokenDao) UpdateNoneZero

func (receiver InvalidTokenDao) UpdateNoneZero(ctx context.Context, data *domain.InvalidToken) (int64, error)

func (InvalidTokenDao) Upsert

func (receiver InvalidTokenDao) Upsert(ctx context.Context, data *domain.InvalidToken) (int64, error)

Upsert With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, 2 if an existing row is updated, and 0 if an existing row is set to its current values. If you specify the CLIENT_FOUND_ROWS flag to the mysql_real_connect() C API function when connecting to mysqld, the affected-rows value is 1 (not 0) if an existing row is set to its current values. https://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html

func (InvalidTokenDao) UpsertNoneZero

func (receiver InvalidTokenDao) UpsertNoneZero(ctx context.Context, data *domain.InvalidToken) (int64, error)

type InvalidTokenPageRet

type InvalidTokenPageRet struct {
	Items    []domain.InvalidToken
	PageNo   int
	PageSize int
	Total    int
	HasNext  bool
}

type UserDao

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

func NewUserDao

func NewUserDao(querier wrapper.GddDB) UserDao

func (UserDao) AfterBulkSaveHook

func (receiver UserDao) AfterBulkSaveHook(ctx context.Context, data []*domain.User, lastInsertID int64, affected int64)

func (UserDao) AfterDeleteManyHook

func (receiver UserDao) AfterDeleteManyHook(ctx context.Context, data []*domain.User, where *query.Where, affected int64)

func (UserDao) AfterSaveHook

func (receiver UserDao) AfterSaveHook(ctx context.Context, data *domain.User, lastInsertID int64, affected int64)

func (UserDao) AfterUpdateManyHook

func (receiver UserDao) AfterUpdateManyHook(ctx context.Context, data []*domain.User, where *query.Where, affected int64)

func (UserDao) BeforeBulkSaveHook

func (receiver UserDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.User)

func (UserDao) BeforeDeleteManyHook

func (receiver UserDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.User, where *query.Where)

func (UserDao) BeforeReadManyHook

func (receiver UserDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)

func (UserDao) BeforeSaveHook

func (receiver UserDao) BeforeSaveHook(ctx context.Context, data *domain.User)

func (UserDao) BeforeUpdateManyHook

func (receiver UserDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.User, where *query.Where)

func (UserDao) BulkInsert

func (receiver UserDao) BulkInsert(ctx context.Context, data []*domain.User) (int64, error)

func (UserDao) BulkInsertIgnore

func (receiver UserDao) BulkInsertIgnore(ctx context.Context, data []*domain.User) (int64, error)

func (UserDao) BulkUpsert

func (receiver UserDao) BulkUpsert(ctx context.Context, data []*domain.User) (int64, error)

func (UserDao) BulkUpsertSelect

func (receiver UserDao) BulkUpsertSelect(ctx context.Context, data []*domain.User, columns []string) (int64, error)

func (UserDao) CheckUsernameExists

func (receiver UserDao) CheckUsernameExists(ctx context.Context, username string) (bool, error)

func (UserDao) CountMany

func (receiver UserDao) CountMany(ctx context.Context, where query.Where) (int, error)

func (UserDao) DeleteMany

func (receiver UserDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)

func (UserDao) DeleteManySoft

func (receiver UserDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)

func (UserDao) Get

func (receiver UserDao) Get(ctx context.Context, dest *domain.User, id int) error

func (UserDao) Insert

func (receiver UserDao) Insert(ctx context.Context, data *domain.User) (int64, error)

func (UserDao) InsertIgnore

func (receiver UserDao) InsertIgnore(ctx context.Context, data *domain.User) (int64, error)

func (UserDao) PageMany

func (receiver UserDao) PageMany(ctx context.Context, dest *UserPageRet, page query.Page, where query.Where) error

func (UserDao) SelectMany

func (receiver UserDao) SelectMany(ctx context.Context, dest *[]domain.User, where query.Where) error

func (UserDao) Update

func (receiver UserDao) Update(ctx context.Context, data *domain.User) (int64, error)

func (UserDao) UpdateMany

func (receiver UserDao) UpdateMany(ctx context.Context, data []*domain.User, where query.Where) (int64, error)

func (UserDao) UpdateManyNoneZero

func (receiver UserDao) UpdateManyNoneZero(ctx context.Context, data []*domain.User, where query.Where) (int64, error)

func (UserDao) UpdateNoneZero

func (receiver UserDao) UpdateNoneZero(ctx context.Context, data *domain.User) (int64, error)

func (UserDao) Upsert

func (receiver UserDao) Upsert(ctx context.Context, data *domain.User) (int64, error)

Upsert With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, 2 if an existing row is updated, and 0 if an existing row is set to its current values. If you specify the CLIENT_FOUND_ROWS flag to the mysql_real_connect() C API function when connecting to mysqld, the affected-rows value is 1 (not 0) if an existing row is set to its current values. https://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html

func (UserDao) UpsertNoneZero

func (receiver UserDao) UpsertNoneZero(ctx context.Context, data *domain.User) (int64, error)

type UserPageRet

type UserPageRet struct {
	Items    []domain.User
	PageNo   int
	PageSize int
	Total    int
	HasNext  bool
}

Jump to

Keyboard shortcuts

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