diff --git a/hasaki-gen-crud/template.go b/hasaki-gen-crud/template.go index afc5609..93ae784 100644 --- a/hasaki-gen-crud/template.go +++ b/hasaki-gen-crud/template.go @@ -312,6 +312,7 @@ func (TempLowHead3A60 *Temp3A60) Data() (data []Temp3A60) { } } for i := range data { + data[i].service = TempLowHead3A60.service data[i].init() } return @@ -372,6 +373,7 @@ func (TempLowHead3A60 *Temp3A60) PageData(page, pageSize int) (data []Temp3A60, } for i := range data { + data[i].service = TempLowHead3A60.service data[i].init() } return