mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-03 01:00:42 +08:00
52 lines
1.3 KiB
Go
52 lines
1.3 KiB
Go
package model
|
|
|
|
type InviteRequest struct {
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
Role string `json:"role"`
|
|
}
|
|
|
|
type InviteResponse struct {
|
|
Email string `json:"email"`
|
|
InviteToken string `json:"inviteToken"`
|
|
}
|
|
|
|
type InvitationResponseObject struct {
|
|
Email string `json:"email" db:"email"`
|
|
Name string `json:"name" db:"name"`
|
|
Token string `json:"token" db:"token"`
|
|
CreatedAt int64 `json:"createdAt" db:"created_at"`
|
|
Role string `json:"role" db:"role"`
|
|
Organization string `json:"organization" db:"organization"`
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
RefreshToken string `json:"refreshToken"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
AccessJwt string `json:"accessJwt"`
|
|
AccessJwtExpiry int64 `json:"accessJwtExpiry"`
|
|
RefreshJwt string `json:"refreshJwt"`
|
|
RefreshJwtExpiry int64 `json:"refreshJwtExpiry"`
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
UserId string `json:"userId"`
|
|
OldPassword string `json:"oldPassword"`
|
|
NewPassword string `json:"newPassword"`
|
|
}
|
|
|
|
type ResetPasswordEntry struct {
|
|
UserId string `json:"userId" db:"user_id"`
|
|
Token string `json:"token" db:"token"`
|
|
}
|
|
|
|
type UserRole struct {
|
|
UserId string `json:"user_id"`
|
|
GroupName string `json:"group_name"`
|
|
}
|