add signup resolver
This commit is contained in:
17
server/enum/dbType.go
Normal file
17
server/enum/dbType.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package enum
|
||||
|
||||
type DbType int
|
||||
|
||||
const (
|
||||
Postgres DbType = iota
|
||||
Sqlite
|
||||
Mysql
|
||||
)
|
||||
|
||||
func (d DbType) String() string {
|
||||
return [...]string{
|
||||
"postgres",
|
||||
"sqlit",
|
||||
"mysql",
|
||||
}[d]
|
||||
}
|
21
server/enum/signUpMethod.go
Normal file
21
server/enum/signUpMethod.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package enum
|
||||
|
||||
type SignupMethod int
|
||||
|
||||
const (
|
||||
Basic SignupMethod = iota
|
||||
MagicLink
|
||||
Google
|
||||
Github
|
||||
Facebook
|
||||
)
|
||||
|
||||
func (d SignupMethod) String() string {
|
||||
return [...]string{
|
||||
"basic",
|
||||
"magiclink",
|
||||
"google",
|
||||
"github",
|
||||
"facebook",
|
||||
}[d]
|
||||
}
|
Reference in New Issue
Block a user