Skip to content

Commit

Permalink
fix: fix common_dao remove bug
Browse files Browse the repository at this point in the history
  • Loading branch information
afumu committed Jan 22, 2023
1 parent 259d3bb commit 356e1a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gplus/common_dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

type CommonDao[T any] struct{}

func NewCommonDao[T any](pk string) *CommonDao[T] {
func NewCommonDao[T any]() *CommonDao[T] {
return &CommonDao[T]{}
}

Expand All @@ -47,7 +47,7 @@ func (service CommonDao[T]) RemoveById(id any) *gorm.DB {
return DeleteById[T](id)
}

func (service CommonDao[T]) RemoveByIds(ids []any) *gorm.DB {
func (service CommonDao[T]) RemoveByIds(ids any) *gorm.DB {
return DeleteByIds[T](ids)
}

Expand Down Expand Up @@ -79,7 +79,7 @@ func (service CommonDao[T]) List(q *Query[T]) ([]*T, *gorm.DB) {
return SelectList[T](q)
}

func (service CommonDao[T]) ListByIds(ids []any) ([]*T, *gorm.DB) {
func (service CommonDao[T]) ListByIds(ids any) ([]*T, *gorm.DB) {
return SelectByIds[T](ids)
}

Expand Down

0 comments on commit 356e1a1

Please sign in to comment.