fusenapi/model/gmodel/fs_contact_logic.go

10 lines
243 B
Go
Raw Normal View History

2023-06-19 18:27:31 +08:00
package gmodel
2023-07-11 17:08:19 +08:00
2023-10-11 12:23:41 +08:00
import "context"
2023-07-11 17:08:19 +08:00
// TODO: 使用model的属性做你想做的
2023-10-11 12:23:41 +08:00
func (contact *FsContactModel) Save(ctx context.Context, obj *FsContact) (err error) {
return contact.db.WithContext(ctx).Model(&FsContact{}).Create(obj).Error
}