Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson
2023-06-20 19:37:08 +08:00
22 changed files with 406 additions and 485 deletions

View File

@@ -1,2 +1,10 @@
package gmodel
// TODO: 使用model的属性做你想做的
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
}