add signup resolver

This commit is contained in:
Lakhan Samani
2021-07-12 23:52:16 +05:30
parent 54bb923e9a
commit 04a522c947
19 changed files with 2828 additions and 311 deletions

17
server/enum/dbType.go Normal file
View 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]
}

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