diff --git a/hasaki-gen-crud/template.go b/hasaki-gen-crud/template.go index 83d39a5..fe82dd6 100644 --- a/hasaki-gen-crud/template.go +++ b/hasaki-gen-crud/template.go @@ -164,6 +164,10 @@ func (TempLowHead3A60 *Temp3A60) Save(mustCols ...string) (err error) { } return err } +func (TempLowHead3A60 *Temp3A60) Service(key string) *Temp3A60 { + TempLowHead3A60.service = key + return TempLowHead3A60 +} // Load 为实例载入数据,数据来源取决于wherePrimaryKey查找实例中的数据 func (TempLowHead3A60 *Temp3A60) Load() (err error) {