blob: 0379f21dfe796c82e0bf2afb762de360c8183641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package dto
type LoginBasicRequest struct {
Username string `json:"username" validate:"required"`
Password string `json:"password" validate:"required"`
}
type LoginOAuthCallbackRequest struct {
Code string `json:"code" validate:"required"`
State string `json:"state" validate:"required"`
}
type LoginOAuthOutboundResponse struct {
URL string `json:"url" validate:"required"`
}
type LoginResponse struct {
ID int32 `json:"id"`
Username string `json:"username"`
}
type LoginOptionsResponse struct {
Options []LoginOption `json:"options"`
}
type LoginOption struct {
Name string `json:"name"`
Identifier string `json:"identifier"`
Type string `json:"type"`
}
|