mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-21 00:30:25 +08:00
refactor: oauth2登录重构
This commit is contained in:
20
server/internal/auth/domain/entity/oauth2.go
Normal file
20
server/internal/auth/domain/entity/oauth2.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"mayfly-go/pkg/model"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Oauth2Account struct {
|
||||
model.DeletedModel
|
||||
|
||||
AccountId uint64 `json:"accountId" gorm:"column:account_id;index:account_id,unique"`
|
||||
Identity string `json:"identity" gorm:"column:identity;index:identity,unique"`
|
||||
|
||||
CreateTime *time.Time `json:"createTime"`
|
||||
UpdateTime *time.Time `json:"updateTime"`
|
||||
}
|
||||
|
||||
func (Oauth2Account) TableName() string {
|
||||
return "t_oauth2_account"
|
||||
}
|
||||
Reference in New Issue
Block a user