2023-06-19 10:27:31 +00:00
|
|
|
package gmodel
|
2023-06-20 10:05:29 +00:00
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
// TODO: 使用model的属性做你想做的
|
|
|
|
|
2023-06-21 04:34:57 +00:00
|
|
|
func (g *FsGerentModel) Find(ctx context.Context, authKey string) (resp *FsGerent, err error) {
|
2023-06-20 10:05:29 +00:00
|
|
|
err = g.db.WithContext(ctx).Model(&FsGerent{}).Where("`auth_key` = ?", authKey).Take(&resp).Error
|
|
|
|
return resp, err
|
|
|
|
}
|