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 ¶
- type ClientDao
- func (receiver ClientDao) AfterBulkSaveHook(ctx context.Context, data []*domain.Client, lastInsertID int64, affected int64)
- func (receiver ClientDao) AfterDeleteManyHook(ctx context.Context, data []*domain.Client, where *query.Where, affected int64)
- func (receiver ClientDao) AfterSaveHook(ctx context.Context, data *domain.Client, lastInsertID int64, affected int64)
- func (receiver ClientDao) AfterUpdateManyHook(ctx context.Context, data []*domain.Client, where *query.Where, affected int64)
- func (receiver ClientDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.Client)
- func (receiver ClientDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.Client, where *query.Where)
- func (receiver ClientDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)
- func (receiver ClientDao) BeforeSaveHook(ctx context.Context, data *domain.Client)
- func (receiver ClientDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.Client, where *query.Where)
- func (receiver ClientDao) BulkInsert(ctx context.Context, data []*domain.Client) (int64, error)
- func (receiver ClientDao) BulkInsertIgnore(ctx context.Context, data []*domain.Client) (int64, error)
- func (receiver ClientDao) BulkUpsert(ctx context.Context, data []*domain.Client) (int64, error)
- func (receiver ClientDao) BulkUpsertSelect(ctx context.Context, data []*domain.Client, columns []string) (int64, error)
- func (receiver ClientDao) CountMany(ctx context.Context, where query.Where) (int, error)
- func (receiver ClientDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)
- func (receiver ClientDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)
- func (receiver ClientDao) Get(ctx context.Context, dest *domain.Client, id int) error
- func (receiver ClientDao) Insert(ctx context.Context, data *domain.Client) (int64, error)
- func (receiver ClientDao) InsertIgnore(ctx context.Context, data *domain.Client) (int64, error)
- func (receiver ClientDao) PageMany(ctx context.Context, dest *ClientPageRet, page query.Page, where query.Where) error
- func (receiver ClientDao) SelectMany(ctx context.Context, dest *[]domain.Client, where query.Where) error
- func (receiver ClientDao) Update(ctx context.Context, data *domain.Client) (int64, error)
- func (receiver ClientDao) UpdateMany(ctx context.Context, data []*domain.Client, where query.Where) (int64, error)
- func (receiver ClientDao) UpdateManyNoneZero(ctx context.Context, data []*domain.Client, where query.Where) (int64, error)
- func (receiver ClientDao) UpdateNoneZero(ctx context.Context, data *domain.Client) (int64, error)
- func (receiver ClientDao) Upsert(ctx context.Context, data *domain.Client) (int64, error)
- func (receiver ClientDao) UpsertNoneZero(ctx context.Context, data *domain.Client) (int64, error)
- type ClientPageRet
- type InvalidTokenDao
- func (receiver InvalidTokenDao) AfterBulkSaveHook(ctx context.Context, data []*domain.InvalidToken, lastInsertID int64, ...)
- func (receiver InvalidTokenDao) AfterDeleteManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where, ...)
- func (receiver InvalidTokenDao) AfterSaveHook(ctx context.Context, data *domain.InvalidToken, lastInsertID int64, ...)
- func (receiver InvalidTokenDao) AfterUpdateManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where, ...)
- func (receiver InvalidTokenDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.InvalidToken)
- func (receiver InvalidTokenDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where)
- func (receiver InvalidTokenDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)
- func (receiver InvalidTokenDao) BeforeSaveHook(ctx context.Context, data *domain.InvalidToken)
- func (receiver InvalidTokenDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.InvalidToken, where *query.Where)
- func (receiver InvalidTokenDao) BulkInsert(ctx context.Context, data []*domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) BulkInsertIgnore(ctx context.Context, data []*domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) BulkUpsert(ctx context.Context, data []*domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) BulkUpsertSelect(ctx context.Context, data []*domain.InvalidToken, columns []string) (int64, error)
- func (receiver InvalidTokenDao) CountMany(ctx context.Context, where query.Where) (int, error)
- func (receiver InvalidTokenDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)
- func (receiver InvalidTokenDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)
- func (receiver InvalidTokenDao) Get(ctx context.Context, dest *domain.InvalidToken, id int) error
- func (receiver InvalidTokenDao) Insert(ctx context.Context, data *domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) InsertIgnore(ctx context.Context, data *domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) PageMany(ctx context.Context, dest *InvalidTokenPageRet, page query.Page, ...) error
- func (receiver InvalidTokenDao) SelectMany(ctx context.Context, dest *[]domain.InvalidToken, where query.Where) error
- func (receiver InvalidTokenDao) Update(ctx context.Context, data *domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) UpdateMany(ctx context.Context, data []*domain.InvalidToken, where query.Where) (int64, error)
- func (receiver InvalidTokenDao) UpdateManyNoneZero(ctx context.Context, data []*domain.InvalidToken, where query.Where) (int64, error)
- func (receiver InvalidTokenDao) UpdateNoneZero(ctx context.Context, data *domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) Upsert(ctx context.Context, data *domain.InvalidToken) (int64, error)
- func (receiver InvalidTokenDao) UpsertNoneZero(ctx context.Context, data *domain.InvalidToken) (int64, error)
- type InvalidTokenPageRet
- type UserDao
- func (receiver UserDao) AfterBulkSaveHook(ctx context.Context, data []*domain.User, lastInsertID int64, affected int64)
- func (receiver UserDao) AfterDeleteManyHook(ctx context.Context, data []*domain.User, where *query.Where, affected int64)
- func (receiver UserDao) AfterSaveHook(ctx context.Context, data *domain.User, lastInsertID int64, affected int64)
- func (receiver UserDao) AfterUpdateManyHook(ctx context.Context, data []*domain.User, where *query.Where, affected int64)
- func (receiver UserDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.User)
- func (receiver UserDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.User, where *query.Where)
- func (receiver UserDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)
- func (receiver UserDao) BeforeSaveHook(ctx context.Context, data *domain.User)
- func (receiver UserDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.User, where *query.Where)
- func (receiver UserDao) BulkInsert(ctx context.Context, data []*domain.User) (int64, error)
- func (receiver UserDao) BulkInsertIgnore(ctx context.Context, data []*domain.User) (int64, error)
- func (receiver UserDao) BulkUpsert(ctx context.Context, data []*domain.User) (int64, error)
- func (receiver UserDao) BulkUpsertSelect(ctx context.Context, data []*domain.User, columns []string) (int64, error)
- func (receiver UserDao) CheckUsernameExists(ctx context.Context, username string) (bool, error)
- func (receiver UserDao) CountMany(ctx context.Context, where query.Where) (int, error)
- func (receiver UserDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)
- func (receiver UserDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)
- func (receiver UserDao) Get(ctx context.Context, dest *domain.User, id int) error
- func (receiver UserDao) Insert(ctx context.Context, data *domain.User) (int64, error)
- func (receiver UserDao) InsertIgnore(ctx context.Context, data *domain.User) (int64, error)
- func (receiver UserDao) PageMany(ctx context.Context, dest *UserPageRet, page query.Page, where query.Where) error
- func (receiver UserDao) SelectMany(ctx context.Context, dest *[]domain.User, where query.Where) error
- func (receiver UserDao) Update(ctx context.Context, data *domain.User) (int64, error)
- func (receiver UserDao) UpdateMany(ctx context.Context, data []*domain.User, where query.Where) (int64, error)
- func (receiver UserDao) UpdateManyNoneZero(ctx context.Context, data []*domain.User, where query.Where) (int64, error)
- func (receiver UserDao) UpdateNoneZero(ctx context.Context, data *domain.User) (int64, error)
- func (receiver UserDao) Upsert(ctx context.Context, data *domain.User) (int64, error)
- func (receiver UserDao) UpsertNoneZero(ctx context.Context, data *domain.User) (int64, error)
- type UserPageRet
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 (ClientDao) AfterBulkSaveHook ¶
func (ClientDao) AfterDeleteManyHook ¶
func (ClientDao) AfterSaveHook ¶
func (ClientDao) AfterUpdateManyHook ¶
func (ClientDao) BeforeBulkSaveHook ¶
func (ClientDao) BeforeDeleteManyHook ¶
func (ClientDao) BeforeReadManyHook ¶
func (ClientDao) BeforeSaveHook ¶
func (ClientDao) BeforeUpdateManyHook ¶
func (ClientDao) BulkInsert ¶
func (ClientDao) BulkInsertIgnore ¶
func (ClientDao) BulkUpsert ¶
func (ClientDao) BulkUpsertSelect ¶
func (ClientDao) DeleteMany ¶
func (ClientDao) DeleteManySoft ¶
func (ClientDao) InsertIgnore ¶
func (ClientDao) SelectMany ¶
func (ClientDao) UpdateMany ¶
func (ClientDao) UpdateManyNoneZero ¶
func (ClientDao) UpdateNoneZero ¶
func (ClientDao) Upsert ¶
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
type ClientPageRet ¶
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 (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) DeleteMany ¶
func (InvalidTokenDao) DeleteManySoft ¶
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 UserDao ¶
type UserDao struct {
// contains filtered or unexported fields
}
func NewUserDao ¶
func (UserDao) AfterBulkSaveHook ¶
func (UserDao) AfterDeleteManyHook ¶
func (UserDao) AfterSaveHook ¶
func (UserDao) AfterUpdateManyHook ¶
func (UserDao) BeforeBulkSaveHook ¶
func (UserDao) BeforeDeleteManyHook ¶
func (UserDao) BeforeReadManyHook ¶
func (UserDao) BeforeSaveHook ¶
func (UserDao) BeforeUpdateManyHook ¶
func (UserDao) BulkInsert ¶
func (UserDao) BulkInsertIgnore ¶
func (UserDao) BulkUpsert ¶
func (UserDao) BulkUpsertSelect ¶
func (UserDao) CheckUsernameExists ¶
func (UserDao) DeleteMany ¶
func (UserDao) DeleteManySoft ¶
func (UserDao) InsertIgnore ¶
func (UserDao) SelectMany ¶
func (UserDao) UpdateMany ¶
func (UserDao) UpdateManyNoneZero ¶
func (UserDao) UpdateNoneZero ¶
func (UserDao) Upsert ¶
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