new
This commit is contained in:
@@ -204,6 +204,13 @@ func (obj *_{{$obj.StructName}}Mgr) Gets() (results []*{{$obj.StructName}}, err
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////// gorm replace /////////////////////////////////
|
||||||
|
func (obj *_{{$obj.StructName}}Mgr) Count(count *int64) (tx *gorm.DB) {
|
||||||
|
return obj.DB.WithContext(obj.ctx).Model({{$obj.StructName}}{}).Count(count)
|
||||||
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
//////////////////////////option case ////////////////////////////////////////////
|
//////////////////////////option case ////////////////////////////////////////////
|
||||||
{{range $oem := $obj.Em}}
|
{{range $oem := $obj.Em}}
|
||||||
// With{{$oem.ColStructName}} {{$oem.ColName}}获取 {{$oem.Notes}}
|
// With{{$oem.ColStructName}} {{$oem.ColName}}获取 {{$oem.Notes}}
|
||||||
|
|||||||
Reference in New Issue
Block a user