vaulterm/server/app/auth/schema.go

28 lines
546 B
Go
Raw Normal View History

2024-11-07 19:07:41 +00:00
package auth
2024-11-16 02:34:07 +07:00
import "rul.sh/vaulterm/server/middleware"
2024-11-12 17:17:10 +00:00
2024-11-07 19:07:41 +00:00
type LoginSchema struct {
Username string `json:"username"`
Password string `json:"password"`
}
2024-11-12 17:17:10 +00:00
type TeamWithRole struct {
ID string `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
Role string `json:"role"`
}
type GetUserResult struct {
middleware.AuthUser
Teams []TeamWithRole `json:"teams"`
}
2024-11-14 18:50:58 +07:00
type RegisterSchema struct {
Name string `json:"name"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
}