118 lines
3.4 KiB
Go
118 lines
3.4 KiB
Go
// Package api provides primitives to interact with the openapi HTTP API.
|
|
//
|
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
|
|
package api
|
|
|
|
const (
|
|
CookieAuthScopes = "cookieAuth.Scopes"
|
|
)
|
|
|
|
// Defines values for UserTeamRole.
|
|
const (
|
|
Captain UserTeamRole = "captain"
|
|
Member UserTeamRole = "member"
|
|
)
|
|
|
|
// TeamListItem defines model for teamListItem.
|
|
type TeamListItem struct {
|
|
CreatedAt string `json:"createdAt"`
|
|
CurrentTeam bool `json:"currentTeam"`
|
|
Id int `json:"id"`
|
|
Members int `json:"members"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// TeamMember defines model for teamMember.
|
|
type TeamMember struct {
|
|
CreatedAt string `json:"createdAt"`
|
|
Role UserTeamRole `json:"role"`
|
|
User UserView `json:"user"`
|
|
}
|
|
|
|
// TeamRequest defines model for teamRequest.
|
|
type TeamRequest struct {
|
|
CreatedAt string `json:"createdAt"`
|
|
User UserView `json:"user"`
|
|
}
|
|
|
|
// UserTeam defines model for userTeam.
|
|
type UserTeam struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
Role UserTeamRole `json:"role"`
|
|
}
|
|
|
|
// UserTeamRole defines model for userTeamRole.
|
|
type UserTeamRole string
|
|
|
|
// UserView defines model for userView.
|
|
type UserView struct {
|
|
Id int `json:"id"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
// ErrorResponse defines model for errorResponse.
|
|
type ErrorResponse struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// TeamResponse defines model for teamResponse.
|
|
type TeamResponse struct {
|
|
CreatedAt string `json:"createdAt"`
|
|
Id int `json:"id"`
|
|
Members []TeamMember `json:"members"`
|
|
Name string `json:"name"`
|
|
Requests []TeamRequest `json:"requests"`
|
|
}
|
|
|
|
// TeamsListResponse defines model for teamsListResponse.
|
|
type TeamsListResponse = []TeamListItem
|
|
|
|
// UserResponse defines model for userResponse.
|
|
type UserResponse struct {
|
|
Email string `json:"email"`
|
|
Id int `json:"id"`
|
|
Team *UserTeam `json:"team,omitempty"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
// Login defines model for login.
|
|
type Login struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// Register defines model for register.
|
|
type Register struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Password2 string `json:"password2"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
// DeleteTeamsTeamIDMembersJSONBody defines parameters for DeleteTeamsTeamIDMembers.
|
|
type DeleteTeamsTeamIDMembersJSONBody = interface{}
|
|
|
|
// PostUserLoginJSONBody defines parameters for PostUserLogin.
|
|
type PostUserLoginJSONBody struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// PostUserRegisterJSONBody defines parameters for PostUserRegister.
|
|
type PostUserRegisterJSONBody struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Password2 string `json:"password2"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
// DeleteTeamsTeamIDMembersJSONRequestBody defines body for DeleteTeamsTeamIDMembers for application/json ContentType.
|
|
type DeleteTeamsTeamIDMembersJSONRequestBody = DeleteTeamsTeamIDMembersJSONBody
|
|
|
|
// PostUserLoginJSONRequestBody defines body for PostUserLogin for application/json ContentType.
|
|
type PostUserLoginJSONRequestBody PostUserLoginJSONBody
|
|
|
|
// PostUserRegisterJSONRequestBody defines body for PostUserRegister for application/json ContentType.
|
|
type PostUserRegisterJSONRequestBody PostUserRegisterJSONBody
|