From 941e09e670f307d39d749ae6edb84fbb71766cd6 Mon Sep 17 00:00:00 2001 From: u Date: Thu, 6 Apr 2023 14:28:24 +0800 Subject: [PATCH] 'fix' --- hasaki-gen-crud/template.go | 4 ++++ 1 file changed, 4 insertions(+) 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) {