refactor: 新增base.Repo与base.App,重构repo与app层代码

This commit is contained in:
meilin.huang
2023-10-26 17:15:49 +08:00
parent 10f6b03fb5
commit a1303b52eb
115 changed files with 1867 additions and 1696 deletions

View File

@@ -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]
}