28 lines
602 B
Go
28 lines
602 B
Go
package domain
|
|
|
|
type LoginFormRequest struct {
|
|
Username string `form:"username"`
|
|
Password string `form:"password"`
|
|
}
|
|
|
|
type GetSourceBySourceAndNameParamRequest struct {
|
|
Name string `query:"name"`
|
|
Source string `query:"source"`
|
|
}
|
|
|
|
type NewSourceParamRequest struct {
|
|
Name string `json:"name"`
|
|
Url string `json:"url"`
|
|
Tags string `json:"tags"`
|
|
}
|
|
|
|
type RefreshTokenRequest struct {
|
|
Username string `json:"username"`
|
|
RefreshToken string `json:"refreshToken"`
|
|
}
|
|
|
|
type UpdateScopesRequest struct {
|
|
Username string `json:"username"`
|
|
Scopes []string `json:"scopes" validate:"required"`
|
|
}
|