2024-04-23 22:18:07 -07:00
|
|
|
package domain
|
|
|
|
|
2024-05-07 19:14:37 -07:00
|
|
|
type LoginFormRequest struct {
|
|
|
|
Username string `form:"username"`
|
|
|
|
Password string `form:"password"`
|
|
|
|
}
|
|
|
|
|
2024-04-23 22:18:07 -07:00
|
|
|
type GetSourceBySourceAndNameParamRequest struct {
|
|
|
|
Name string `query:"name"`
|
|
|
|
Source string `query:"source"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NewSourceParamRequest struct {
|
2024-07-10 07:23:01 -07:00
|
|
|
Name string `json:"name"`
|
|
|
|
Url string `json:"url"`
|
|
|
|
Tags string `json:"tags"`
|
2024-04-23 22:18:07 -07:00
|
|
|
}
|
|
|
|
|
2024-05-05 10:02:17 -07:00
|
|
|
type RefreshTokenRequest struct {
|
|
|
|
Username string `json:"username"`
|
|
|
|
RefreshToken string `json:"refreshToken"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateScopesRequest struct {
|
|
|
|
Username string `json:"username"`
|
|
|
|
Scopes []string `json:"scopes" validate:"required"`
|
2024-07-10 07:23:01 -07:00
|
|
|
}
|