mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-09 09:20:25 +08:00
refactor: 消息模块重构,infra包路径简写等
This commit is contained in:
@@ -268,17 +268,6 @@ func (br *RepoImpl[T]) NewModel() T {
|
||||
return newModel.(T)
|
||||
}
|
||||
|
||||
// func (br *RepoImpl[T]) NewModes() *[]T {
|
||||
// // 创建一个空的切片
|
||||
// slice := reflect.MakeSlice(reflect.SliceOf(reflect.PointerTo(br.getModelType())), 0, 0)
|
||||
// // 创建指向切片的指针
|
||||
// ptrToSlice := reflect.New(slice.Type())
|
||||
// // 设置指向切片的指针为创建的空切片
|
||||
// ptrToSlice.Elem().Set(slice)
|
||||
// // 转换指向切片的指针
|
||||
// return ptrToSlice.Interface().(*[]T)
|
||||
// }
|
||||
|
||||
// getModel 获取表的模型实例
|
||||
func (br *RepoImpl[T]) GetModel() T {
|
||||
if br.model != nil {
|
||||
|
||||
Reference in New Issue
Block a user