mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-27 03:20:25 +08:00
refactor: 新增base.Repo与base.App,重构repo与app层代码
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package repository
|
||||
|
||||
import "mayfly-go/internal/auth/domain/entity"
|
||||
import (
|
||||
"mayfly-go/internal/auth/domain/entity"
|
||||
"mayfly-go/pkg/base"
|
||||
)
|
||||
|
||||
type Oauth2Account interface {
|
||||
// GetOAuthAccount 根据identity获取第三方账号信息
|
||||
GetOAuthAccount(condition *entity.Oauth2Account, cols ...string) error
|
||||
|
||||
SaveOAuthAccount(e *entity.Oauth2Account) error
|
||||
|
||||
DeleteBy(e *entity.Oauth2Account)
|
||||
base.Repo[*entity.Oauth2Account]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user