fusenapi/model/gmodel/fs_gerent_logic.go
laodaming 41386fca3b fix
2023-06-21 12:34:57 +08:00

11 lines
295 B
Go

package gmodel
import "context"
// TODO: 使用model的属性做你想做的
func (g *FsGerentModel) Find(ctx context.Context, authKey string) (resp *FsGerent, err error) {
err = g.db.WithContext(ctx).Model(&FsGerent{}).Where("`auth_key` = ?", authKey).Take(&resp).Error
return resp, err
}