File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
24
24
type CommonDao [T any ] struct {}
25
25
26
- func NewCommonDao [T any ](pk string ) * CommonDao [T ] {
26
+ func NewCommonDao [T any ]() * CommonDao [T ] {
27
27
return & CommonDao [T ]{}
28
28
}
29
29
@@ -47,7 +47,7 @@ func (service CommonDao[T]) RemoveById(id any) *gorm.DB {
47
47
return DeleteById [T ](id )
48
48
}
49
49
50
- func (service CommonDao [T ]) RemoveByIds (ids [] any ) * gorm.DB {
50
+ func (service CommonDao [T ]) RemoveByIds (ids any ) * gorm.DB {
51
51
return DeleteByIds [T ](ids )
52
52
}
53
53
@@ -79,7 +79,7 @@ func (service CommonDao[T]) List(q *Query[T]) ([]*T, *gorm.DB) {
79
79
return SelectList [T ](q )
80
80
}
81
81
82
- func (service CommonDao [T ]) ListByIds (ids [] any ) ([]* T , * gorm.DB ) {
82
+ func (service CommonDao [T ]) ListByIds (ids any ) ([]* T , * gorm.DB ) {
83
83
return SelectByIds [T ](ids )
84
84
}
85
85
You can’t perform that action at this time.
0 commit comments