mirror of
https://github.com/wisplite/tether.git
synced 2026-05-01 06:22:41 -05:00
19 lines
226 B
Go
19 lines
226 B
Go
package tether
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type AuthCtx struct {
|
|
UserID string
|
|
IsLoggedIn bool
|
|
}
|
|
|
|
type QueryCtx struct {
|
|
DB *gorm.DB
|
|
AuthCtx *AuthCtx
|
|
}
|
|
|
|
type MutationCtx struct {
|
|
DB *gorm.DB
|
|
AuthCtx *AuthCtx
|
|
}
|