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