chore: import clean Agent Desk snapshot (2/7)
This commit is contained in:
30
internal/pkg/dto/response/auth_response.go
Normal file
30
internal/pkg/dto/response/auth_response.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package response
|
||||
|
||||
import "agent-desk/internal/pkg/enums"
|
||||
|
||||
type AuthUserResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Nickname string `json:"nickname"`
|
||||
Avatar string `json:"avatar"`
|
||||
Email string `json:"email,omitempty"`
|
||||
UserType enums.UserType `json:"userType"`
|
||||
Status enums.Status `json:"status"`
|
||||
Roles []string `json:"roles"`
|
||||
}
|
||||
|
||||
type LoginResponse struct {
|
||||
AccessToken string `json:"accessToken"`
|
||||
ExpiresAt string `json:"expiresAt"`
|
||||
User *AuthUserResponse `json:"user"`
|
||||
Permissions []string `json:"permissions"`
|
||||
Roles []string `json:"roles"`
|
||||
}
|
||||
|
||||
type PublicConfigResponse struct {
|
||||
Language string `json:"language"`
|
||||
CompanyName string `json:"companyName,omitempty"`
|
||||
CompanyLogoURL string `json:"companyLogoUrl,omitempty"`
|
||||
PasswordLoginEnabled bool `json:"passwordLoginEnabled"`
|
||||
OIDCEnabled bool `json:"oidcEnabled"`
|
||||
}
|
||||
Reference in New Issue
Block a user