mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-28 16:49:39 +07:00
28 lines
539 B
Go
28 lines
539 B
Go
package auth
|
|
|
|
import "rul.sh/vaulterm/middleware"
|
|
|
|
type LoginSchema struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
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"`
|
|
}
|
|
|
|
type RegisterSchema struct {
|
|
Name string `json:"name"`
|
|
Username string `json:"username"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|