Documentation ¶
Overview ¶
@formatter:off package handlers provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
@formatter:off package handlers provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type AccessToken
- type AssignPermissions204Response
- type AssignPermissions400JSONResponse
- type AssignPermissions401JSONResponse
- type AssignPermissions403JSONResponse
- type AssignPermissions404JSONResponse
- type AssignPermissions500JSONResponse
- type AssignPermissionsJSONBody
- type AssignPermissionsJSONRequestBody
- type AssignPermissionsRequestObject
- type AssignPermissionsResponseObject
- type AssignRoles204Response
- type AssignRoles400JSONResponse
- type AssignRoles401JSONResponse
- type AssignRoles403JSONResponse
- type AssignRoles404JSONResponse
- type AssignRoles500JSONResponse
- type AssignRolesJSONBody
- type AssignRolesJSONRequestBody
- type AssignRolesRequestObject
- type AssignRolesResponseObject
- type CheckAccessToken204Response
- type CheckAccessToken400JSONResponse
- type CheckAccessToken401JSONResponse
- type CheckAccessToken403JSONResponse
- type CheckAccessToken500JSONResponse
- type CheckAccessTokenRequestObject
- type CheckAccessTokenResponseObject
- type CreatePermission201JSONResponse
- type CreatePermission400JSONResponse
- type CreatePermission401JSONResponse
- type CreatePermission403JSONResponse
- type CreatePermission409JSONResponse
- type CreatePermission500JSONResponse
- type CreatePermissionJSONBody
- type CreatePermissionJSONRequestBody
- type CreatePermissionRequestObject
- type CreatePermissionResponseObject
- type CreatePersonalToken201JSONResponse
- type CreatePersonalToken400JSONResponse
- type CreatePersonalToken401JSONResponse
- type CreatePersonalToken403JSONResponse
- type CreatePersonalToken409JSONResponse
- type CreatePersonalToken500JSONResponse
- type CreatePersonalTokenJSONBody
- type CreatePersonalTokenJSONRequestBody
- type CreatePersonalTokenRequestObject
- type CreatePersonalTokenResponseObject
- type CreateRole201JSONResponse
- type CreateRole400JSONResponse
- type CreateRole401JSONResponse
- type CreateRole403JSONResponse
- type CreateRole409JSONResponse
- type CreateRole500JSONResponse
- type CreateRoleJSONBody
- type CreateRoleJSONRequestBody
- type CreateRoleRequestObject
- type CreateRoleResponseObject
- type CreateUser201JSONResponse
- type CreateUser400JSONResponse
- type CreateUser401JSONResponse
- type CreateUser403JSONResponse
- type CreateUser409JSONResponse
- type CreateUser500JSONResponse
- type CreateUserJSONBody
- type CreateUserJSONRequestBody
- type CreateUserRequestObject
- type CreateUserResponseObject
- type DeletePermission204Response
- type DeletePermission400JSONResponse
- type DeletePermission401JSONResponse
- type DeletePermission403JSONResponse
- type DeletePermission404JSONResponse
- type DeletePermission409JSONResponse
- type DeletePermission500JSONResponse
- type DeletePermissionRequestObject
- type DeletePermissionResponseObject
- type DeletePersonalToken204Response
- type DeletePersonalToken400JSONResponse
- type DeletePersonalToken401JSONResponse
- type DeletePersonalToken403JSONResponse
- type DeletePersonalToken404JSONResponse
- type DeletePersonalToken409JSONResponse
- type DeletePersonalToken500JSONResponse
- type DeletePersonalTokenRequestObject
- type DeletePersonalTokenResponseObject
- type DeleteRole204Response
- type DeleteRole400JSONResponse
- type DeleteRole401JSONResponse
- type DeleteRole403JSONResponse
- type DeleteRole404JSONResponse
- type DeleteRole409JSONResponse
- type DeleteRole500JSONResponse
- type DeleteRoleRequestObject
- type DeleteRoleResponseObject
- type DeleteUser204Response
- type DeleteUser400JSONResponse
- type DeleteUser401JSONResponse
- type DeleteUser403JSONResponse
- type DeleteUser404JSONResponse
- type DeleteUser409JSONResponse
- type DeleteUser500JSONResponse
- type DeleteUserParams
- type DeleteUserRequestObject
- type DeleteUserResponseObject
- type GinServerOptions
- type HintPermissions200JSONResponse
- type HintPermissions400JSONResponse
- type HintPermissions401JSONResponse
- type HintPermissions403JSONResponse
- type HintPermissions500JSONResponse
- type HintPermissionsParams
- type HintPermissionsRequestObject
- type HintPermissionsResponseObject
- type HintRoles200JSONResponse
- type HintRoles400JSONResponse
- type HintRoles401JSONResponse
- type HintRoles403JSONResponse
- type HintRoles500JSONResponse
- type HintRolesParams
- type HintRolesRequestObject
- type HintRolesResponseObject
- type HintUsers200JSONResponse
- type HintUsers400JSONResponse
- type HintUsers401JSONResponse
- type HintUsers403JSONResponse
- type HintUsers500JSONResponse
- type HintUsersParams
- type HintUsersRequestObject
- type HintUsersResponseObject
- type ListPermission200JSONResponse
- type ListPermission400JSONResponse
- type ListPermission401JSONResponse
- type ListPermission403JSONResponse
- type ListPermission404JSONResponse
- type ListPermission409JSONResponse
- type ListPermission500JSONResponse
- type ListPermissionPaginateResponse
- type ListPermissionParams
- type ListPermissionRequestObject
- type ListPermissionResponseObject
- type ListPersonalToken200JSONResponse
- type ListPersonalToken400JSONResponse
- type ListPersonalToken401JSONResponse
- type ListPersonalToken403JSONResponse
- type ListPersonalToken404JSONResponse
- type ListPersonalToken409JSONResponse
- type ListPersonalToken500JSONResponse
- type ListPersonalTokenPaginateResponse
- type ListPersonalTokenParams
- type ListPersonalTokenRequestObject
- type ListPersonalTokenResponseObject
- type ListRole200JSONResponse
- type ListRole400JSONResponse
- type ListRole401JSONResponse
- type ListRole403JSONResponse
- type ListRole404JSONResponse
- type ListRole409JSONResponse
- type ListRole500JSONResponse
- type ListRolePaginateResponse
- type ListRoleParams
- type ListRolePermissions200JSONResponse
- type ListRolePermissions400JSONResponse
- type ListRolePermissions401JSONResponse
- type ListRolePermissions403JSONResponse
- type ListRolePermissions404JSONResponse
- type ListRolePermissions409JSONResponse
- type ListRolePermissions500JSONResponse
- type ListRolePermissionsPaginateResponse
- type ListRolePermissionsParams
- type ListRolePermissionsRequestObject
- type ListRolePermissionsResponseObject
- type ListRoleRequestObject
- type ListRoleResponseObject
- type ListRoleUsers200JSONResponse
- type ListRoleUsers400JSONResponse
- type ListRoleUsers401JSONResponse
- type ListRoleUsers403JSONResponse
- type ListRoleUsers404JSONResponse
- type ListRoleUsers409JSONResponse
- type ListRoleUsers500JSONResponse
- type ListRoleUsersPaginateResponse
- type ListRoleUsersParams
- type ListRoleUsersRequestObject
- type ListRoleUsersResponseObject
- type ListUser200JSONResponse
- type ListUser400JSONResponse
- type ListUser401JSONResponse
- type ListUser403JSONResponse
- type ListUser404JSONResponse
- type ListUser409JSONResponse
- type ListUser500JSONResponse
- type ListUserPaginateResponse
- type ListUserParams
- type ListUserRequestObject
- type ListUserResponseObject
- type ListUserRoles200JSONResponse
- type ListUserRoles400JSONResponse
- type ListUserRoles401JSONResponse
- type ListUserRoles403JSONResponse
- type ListUserRoles404JSONResponse
- type ListUserRoles409JSONResponse
- type ListUserRoles500JSONResponse
- type ListUserRolesPaginateResponse
- type ListUserRolesParams
- type ListUserRolesRequestObject
- type ListUserRolesResponseObject
- type Login200JSONResponse
- type Login400JSONResponse
- type Login401JSONResponse
- type Login403JSONResponse
- type Login500JSONResponse
- type LoginJSONBody
- type LoginJSONRequestBody
- type LoginRequestObject
- type LoginResponseObject
- type Logout204Response
- type Logout401JSONResponse
- type Logout403JSONResponse
- type Logout500JSONResponse
- type LogoutRequestObject
- type LogoutResponseObject
- type MiddlewareFunc
- type N400
- type N400JSONResponse
- type N401
- type N401JSONResponse
- type N403
- type N403JSONResponse
- type N404
- type N404JSONResponse
- type N409
- type N409JSONResponse
- type N422
- type N422JSONResponse
- type N500
- type N500JSONResponse
- type Permission
- type PermissionCreate
- type PermissionList
- type PermissionRead
- type PermissionUpdate
- type PersonalToken
- type PersonalTokenCreate
- type PersonalTokenList
- type PersonalTokenRead
- type Ping204Response
- type Ping500JSONResponse
- type PingRequestObject
- type PingResponseObject
- type ReadPermission200JSONResponse
- type ReadPermission400JSONResponse
- type ReadPermission401JSONResponse
- type ReadPermission403JSONResponse
- type ReadPermission404JSONResponse
- type ReadPermission409JSONResponse
- type ReadPermission500JSONResponse
- type ReadPermissionParams
- type ReadPermissionRequestObject
- type ReadPermissionResponseObject
- type ReadPersonalToken200JSONResponse
- type ReadPersonalToken400JSONResponse
- type ReadPersonalToken401JSONResponse
- type ReadPersonalToken403JSONResponse
- type ReadPersonalToken404JSONResponse
- type ReadPersonalToken409JSONResponse
- type ReadPersonalToken500JSONResponse
- type ReadPersonalTokenRequestObject
- type ReadPersonalTokenResponseObject
- type ReadRole200JSONResponse
- type ReadRole400JSONResponse
- type ReadRole401JSONResponse
- type ReadRole403JSONResponse
- type ReadRole404JSONResponse
- type ReadRole409JSONResponse
- type ReadRole500JSONResponse
- type ReadRoleRequestObject
- type ReadRoleResponseObject
- type ReadUser200JSONResponse
- type ReadUser400JSONResponse
- type ReadUser401JSONResponse
- type ReadUser403JSONResponse
- type ReadUser404JSONResponse
- type ReadUser409JSONResponse
- type ReadUser500JSONResponse
- type ReadUserParams
- type ReadUserRequestObject
- type ReadUserResponseObject
- type RefreshAccessToken204Response
- type RefreshAccessToken400JSONResponse
- type RefreshAccessToken401JSONResponse
- type RefreshAccessToken403JSONResponse
- type RefreshAccessToken500JSONResponse
- type RefreshAccessTokenRequestObject
- type RefreshAccessTokenResponseObject
- type RestoreUser204Response
- type RestoreUser400JSONResponse
- type RestoreUser401JSONResponse
- type RestoreUser403JSONResponse
- type RestoreUser404JSONResponse
- type RestoreUser409JSONResponse
- type RestoreUser500JSONResponse
- type RestoreUserRequestObject
- type RestoreUserResponseObject
- type RevokeAccessToken204Response
- type RevokeAccessToken400JSONResponse
- type RevokeAccessToken401JSONResponse
- type RevokeAccessToken403JSONResponse
- type RevokeAccessToken500JSONResponse
- type RevokeAccessTokenRequestObject
- type RevokeAccessTokenResponseObject
- type Role
- type RoleCreate
- type RoleList
- type RolePermissionsList
- type RoleRead
- type RoleUpdate
- type RoleUsersList
- type Server
- func (s Server) AssignPermissions(_ context.Context, request AssignPermissionsRequestObject) (AssignPermissionsResponseObject, error)
- func (s Server) AssignRoles(_ context.Context, request AssignRolesRequestObject) (AssignRolesResponseObject, error)
- func (s Server) CheckAccessToken(ctx context.Context, _ CheckAccessTokenRequestObject) (CheckAccessTokenResponseObject, error)
- func (s Server) CreatePermission(_ context.Context, request CreatePermissionRequestObject) (CreatePermissionResponseObject, error)
- func (s Server) CreatePersonalToken(ctx context.Context, request CreatePersonalTokenRequestObject) (CreatePersonalTokenResponseObject, error)
- func (s Server) CreateRole(_ context.Context, request CreateRoleRequestObject) (CreateRoleResponseObject, error)
- func (s Server) CreateUser(_ context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
- func (s Server) DeletePermission(ctx context.Context, request DeletePermissionRequestObject) (DeletePermissionResponseObject, error)
- func (s Server) DeletePersonalToken(_ context.Context, request DeletePersonalTokenRequestObject) (DeletePersonalTokenResponseObject, error)
- func (s Server) DeleteRole(_ context.Context, request DeleteRoleRequestObject) (DeleteRoleResponseObject, error)
- func (s Server) DeleteUser(_ context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
- func (s Server) Domain() string
- func (s Server) HintPermissions(_ context.Context, request HintPermissionsRequestObject) (HintPermissionsResponseObject, error)
- func (s Server) HintRoles(_ context.Context, request HintRolesRequestObject) (HintRolesResponseObject, error)
- func (s Server) HintUsers(_ context.Context, request HintUsersRequestObject) (HintUsersResponseObject, error)
- func (s Server) ListPermission(ctx context.Context, request ListPermissionRequestObject) (ListPermissionResponseObject, error)
- func (s Server) ListPersonalToken(ctx context.Context, _ ListPersonalTokenRequestObject) (ListPersonalTokenResponseObject, error)
- func (s Server) ListRole(ctx context.Context, request ListRoleRequestObject) (ListRoleResponseObject, error)
- func (s Server) ListRolePermissions(ctx context.Context, request ListRolePermissionsRequestObject) (ListRolePermissionsResponseObject, error)
- func (s Server) ListRoleUsers(ctx context.Context, request ListRoleUsersRequestObject) (ListRoleUsersResponseObject, error)
- func (s Server) ListUser(ctx context.Context, request ListUserRequestObject) (ListUserResponseObject, error)
- func (s Server) ListUserRoles(ctx context.Context, request ListUserRolesRequestObject) (ListUserRolesResponseObject, error)
- func (s Server) Login(ctx context.Context, req LoginRequestObject) (LoginResponseObject, error)
- func (s Server) Logout(ctx context.Context, _ LogoutRequestObject) (LogoutResponseObject, error)
- func (s Server) Ping(_ context.Context, _ PingRequestObject) (PingResponseObject, error)
- func (s Server) ReadPermission(ctx context.Context, request ReadPermissionRequestObject) (ReadPermissionResponseObject, error)
- func (s Server) ReadPersonalToken(ctx context.Context, request ReadPersonalTokenRequestObject) (ReadPersonalTokenResponseObject, error)
- func (s Server) ReadRole(ctx context.Context, request ReadRoleRequestObject) (ReadRoleResponseObject, error)
- func (s Server) ReadUser(ctx context.Context, request ReadUserRequestObject) (ReadUserResponseObject, error)
- func (s Server) RefreshAccessToken(ctx context.Context, _ RefreshAccessTokenRequestObject) (RefreshAccessTokenResponseObject, error)
- func (s Server) RestoreUser(_ context.Context, request RestoreUserRequestObject) (RestoreUserResponseObject, error)
- func (s Server) RevokeAccessToken(ctx context.Context, _ RevokeAccessTokenRequestObject) (RevokeAccessTokenResponseObject, error)
- func (s Server) UpdatePermission(ctx context.Context, request UpdatePermissionRequestObject) (UpdatePermissionResponseObject, error)
- func (s Server) UpdateRole(_ context.Context, request UpdateRoleRequestObject) (UpdateRoleResponseObject, error)
- func (s Server) UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AssignPermissions(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AssignRoles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CheckAccessToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreatePermission(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreatePersonalToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateRole(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateUser(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeletePermission(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeletePersonalToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteRole(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteUser(c *gin.Context)
- func (siw *ServerInterfaceWrapper) HintPermissions(c *gin.Context)
- func (siw *ServerInterfaceWrapper) HintRoles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) HintUsers(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListPermission(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListPersonalToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListRole(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListRolePermissions(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListRoleUsers(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListUser(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListUserRoles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) Login(c *gin.Context)
- func (siw *ServerInterfaceWrapper) Logout(c *gin.Context)
- func (siw *ServerInterfaceWrapper) Ping(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadPermission(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadPersonalToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadRole(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadUser(c *gin.Context)
- func (siw *ServerInterfaceWrapper) RefreshAccessToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) RestoreUser(c *gin.Context)
- func (siw *ServerInterfaceWrapper) RevokeAccessToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdatePermission(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateRole(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateUser(c *gin.Context)
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type UpdatePermission200JSONResponse
- type UpdatePermission400JSONResponse
- type UpdatePermission401JSONResponse
- type UpdatePermission403JSONResponse
- type UpdatePermission404JSONResponse
- type UpdatePermission409JSONResponse
- type UpdatePermission422JSONResponse
- type UpdatePermission500JSONResponse
- type UpdatePermissionJSONBody
- type UpdatePermissionJSONRequestBody
- type UpdatePermissionRequestObject
- type UpdatePermissionResponseObject
- type UpdateRole200JSONResponse
- type UpdateRole400JSONResponse
- type UpdateRole401JSONResponse
- type UpdateRole403JSONResponse
- type UpdateRole404JSONResponse
- type UpdateRole409JSONResponse
- type UpdateRole422JSONResponse
- type UpdateRole500JSONResponse
- type UpdateRoleJSONBody
- type UpdateRoleJSONRequestBody
- type UpdateRoleRequestObject
- type UpdateRoleResponseObject
- type UpdateUser200JSONResponse
- type UpdateUser400JSONResponse
- type UpdateUser401JSONResponse
- type UpdateUser403JSONResponse
- type UpdateUser404JSONResponse
- type UpdateUser409JSONResponse
- type UpdateUser422JSONResponse
- type UpdateUser500JSONResponse
- type UpdateUserJSONBody
- type UpdateUserJSONRequestBody
- type UpdateUserRequestObject
- type UpdateUserResponseObject
- type User
- type UserCreate
- type UserList
- type UserRead
- type UserRolesList
- type UserUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AccessToken ¶
type AccessToken struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id uint64 `json:"id"` Owner *User `json:"owner,omitempty"` UserId uint64 `json:"user_id"` }
AccessToken defines model for AccessToken.
type AssignPermissions204Response ¶
type AssignPermissions204Response struct { }
func (AssignPermissions204Response) VisitAssignPermissionsResponse ¶
func (response AssignPermissions204Response) VisitAssignPermissionsResponse(w http.ResponseWriter) error
type AssignPermissions400JSONResponse ¶
type AssignPermissions400JSONResponse struct{ N400JSONResponse }
func (AssignPermissions400JSONResponse) VisitAssignPermissionsResponse ¶
func (response AssignPermissions400JSONResponse) VisitAssignPermissionsResponse(w http.ResponseWriter) error
type AssignPermissions401JSONResponse ¶
type AssignPermissions401JSONResponse struct{ N401JSONResponse }
func (AssignPermissions401JSONResponse) VisitAssignPermissionsResponse ¶
func (response AssignPermissions401JSONResponse) VisitAssignPermissionsResponse(w http.ResponseWriter) error
type AssignPermissions403JSONResponse ¶
type AssignPermissions403JSONResponse struct{ N403JSONResponse }
func (AssignPermissions403JSONResponse) VisitAssignPermissionsResponse ¶
func (response AssignPermissions403JSONResponse) VisitAssignPermissionsResponse(w http.ResponseWriter) error
type AssignPermissions404JSONResponse ¶
type AssignPermissions404JSONResponse struct{ N404JSONResponse }
func (AssignPermissions404JSONResponse) VisitAssignPermissionsResponse ¶
func (response AssignPermissions404JSONResponse) VisitAssignPermissionsResponse(w http.ResponseWriter) error
type AssignPermissions500JSONResponse ¶
type AssignPermissions500JSONResponse struct{ N500JSONResponse }
func (AssignPermissions500JSONResponse) VisitAssignPermissionsResponse ¶
func (response AssignPermissions500JSONResponse) VisitAssignPermissionsResponse(w http.ResponseWriter) error
type AssignPermissionsJSONBody ¶
type AssignPermissionsJSONBody = []uint32
AssignPermissionsJSONBody defines parameters for AssignPermissions.
type AssignPermissionsJSONRequestBody ¶
type AssignPermissionsJSONRequestBody = AssignPermissionsJSONBody
AssignPermissionsJSONRequestBody defines body for AssignPermissions for application/json ContentType.
type AssignPermissionsRequestObject ¶
type AssignPermissionsRequestObject struct { Id uint32 `json:"id"` Body *AssignPermissionsJSONRequestBody }
type AssignPermissionsResponseObject ¶
type AssignPermissionsResponseObject interface {
VisitAssignPermissionsResponse(w http.ResponseWriter) error
}
type AssignRoles204Response ¶
type AssignRoles204Response struct { }
func (AssignRoles204Response) VisitAssignRolesResponse ¶
func (response AssignRoles204Response) VisitAssignRolesResponse(w http.ResponseWriter) error
type AssignRoles400JSONResponse ¶
type AssignRoles400JSONResponse struct{ N400JSONResponse }
func (AssignRoles400JSONResponse) VisitAssignRolesResponse ¶
func (response AssignRoles400JSONResponse) VisitAssignRolesResponse(w http.ResponseWriter) error
type AssignRoles401JSONResponse ¶
type AssignRoles401JSONResponse struct{ N401JSONResponse }
func (AssignRoles401JSONResponse) VisitAssignRolesResponse ¶
func (response AssignRoles401JSONResponse) VisitAssignRolesResponse(w http.ResponseWriter) error
type AssignRoles403JSONResponse ¶
type AssignRoles403JSONResponse struct{ N403JSONResponse }
func (AssignRoles403JSONResponse) VisitAssignRolesResponse ¶
func (response AssignRoles403JSONResponse) VisitAssignRolesResponse(w http.ResponseWriter) error
type AssignRoles404JSONResponse ¶
type AssignRoles404JSONResponse struct{ N404JSONResponse }
func (AssignRoles404JSONResponse) VisitAssignRolesResponse ¶
func (response AssignRoles404JSONResponse) VisitAssignRolesResponse(w http.ResponseWriter) error
type AssignRoles500JSONResponse ¶
type AssignRoles500JSONResponse struct{ N500JSONResponse }
func (AssignRoles500JSONResponse) VisitAssignRolesResponse ¶
func (response AssignRoles500JSONResponse) VisitAssignRolesResponse(w http.ResponseWriter) error
type AssignRolesJSONBody ¶
type AssignRolesJSONBody = []uint32
AssignRolesJSONBody defines parameters for AssignRoles.
type AssignRolesJSONRequestBody ¶
type AssignRolesJSONRequestBody = AssignRolesJSONBody
AssignRolesJSONRequestBody defines body for AssignRoles for application/json ContentType.
type AssignRolesRequestObject ¶
type AssignRolesRequestObject struct { Id uint64 `json:"id"` Body *AssignRolesJSONRequestBody }
type AssignRolesResponseObject ¶
type AssignRolesResponseObject interface {
VisitAssignRolesResponse(w http.ResponseWriter) error
}
type CheckAccessToken204Response ¶
type CheckAccessToken204Response struct { }
func (CheckAccessToken204Response) VisitCheckAccessTokenResponse ¶
func (response CheckAccessToken204Response) VisitCheckAccessTokenResponse(w http.ResponseWriter) error
type CheckAccessToken400JSONResponse ¶
type CheckAccessToken400JSONResponse struct{ N400JSONResponse }
func (CheckAccessToken400JSONResponse) VisitCheckAccessTokenResponse ¶
func (response CheckAccessToken400JSONResponse) VisitCheckAccessTokenResponse(w http.ResponseWriter) error
type CheckAccessToken401JSONResponse ¶
type CheckAccessToken401JSONResponse struct{ N401JSONResponse }
func (CheckAccessToken401JSONResponse) VisitCheckAccessTokenResponse ¶
func (response CheckAccessToken401JSONResponse) VisitCheckAccessTokenResponse(w http.ResponseWriter) error
type CheckAccessToken403JSONResponse ¶
type CheckAccessToken403JSONResponse struct{ N403JSONResponse }
func (CheckAccessToken403JSONResponse) VisitCheckAccessTokenResponse ¶
func (response CheckAccessToken403JSONResponse) VisitCheckAccessTokenResponse(w http.ResponseWriter) error
type CheckAccessToken500JSONResponse ¶
type CheckAccessToken500JSONResponse struct{ N500JSONResponse }
func (CheckAccessToken500JSONResponse) VisitCheckAccessTokenResponse ¶
func (response CheckAccessToken500JSONResponse) VisitCheckAccessTokenResponse(w http.ResponseWriter) error
type CheckAccessTokenRequestObject ¶
type CheckAccessTokenRequestObject struct { }
type CheckAccessTokenResponseObject ¶
type CheckAccessTokenResponseObject interface {
VisitCheckAccessTokenResponse(w http.ResponseWriter) error
}
type CreatePermission201JSONResponse ¶
type CreatePermission201JSONResponse PermissionCreate
func (CreatePermission201JSONResponse) VisitCreatePermissionResponse ¶
func (response CreatePermission201JSONResponse) VisitCreatePermissionResponse(w http.ResponseWriter) error
type CreatePermission400JSONResponse ¶
type CreatePermission400JSONResponse struct{ N400JSONResponse }
func (CreatePermission400JSONResponse) VisitCreatePermissionResponse ¶
func (response CreatePermission400JSONResponse) VisitCreatePermissionResponse(w http.ResponseWriter) error
type CreatePermission401JSONResponse ¶
type CreatePermission401JSONResponse struct{ N401JSONResponse }
func (CreatePermission401JSONResponse) VisitCreatePermissionResponse ¶
func (response CreatePermission401JSONResponse) VisitCreatePermissionResponse(w http.ResponseWriter) error
type CreatePermission403JSONResponse ¶
type CreatePermission403JSONResponse struct{ N403JSONResponse }
func (CreatePermission403JSONResponse) VisitCreatePermissionResponse ¶
func (response CreatePermission403JSONResponse) VisitCreatePermissionResponse(w http.ResponseWriter) error
type CreatePermission409JSONResponse ¶
type CreatePermission409JSONResponse struct{ N409JSONResponse }
func (CreatePermission409JSONResponse) VisitCreatePermissionResponse ¶
func (response CreatePermission409JSONResponse) VisitCreatePermissionResponse(w http.ResponseWriter) error
type CreatePermission500JSONResponse ¶
type CreatePermission500JSONResponse struct{ N500JSONResponse }
func (CreatePermission500JSONResponse) VisitCreatePermissionResponse ¶
func (response CreatePermission500JSONResponse) VisitCreatePermissionResponse(w http.ResponseWriter) error
type CreatePermissionJSONBody ¶
type CreatePermissionJSONBody struct { Description *string `json:"description,omitempty"` Name string `json:"name"` Roles *[]uint32 `json:"roles,omitempty"` }
CreatePermissionJSONBody defines parameters for CreatePermission.
type CreatePermissionJSONRequestBody ¶
type CreatePermissionJSONRequestBody CreatePermissionJSONBody
CreatePermissionJSONRequestBody defines body for CreatePermission for application/json ContentType.
type CreatePermissionRequestObject ¶
type CreatePermissionRequestObject struct {
Body *CreatePermissionJSONRequestBody
}
type CreatePermissionResponseObject ¶
type CreatePermissionResponseObject interface {
VisitCreatePermissionResponse(w http.ResponseWriter) error
}
type CreatePersonalToken201JSONResponse ¶
type CreatePersonalToken201JSONResponse PersonalTokenCreate
func (CreatePersonalToken201JSONResponse) VisitCreatePersonalTokenResponse ¶
func (response CreatePersonalToken201JSONResponse) VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
type CreatePersonalToken400JSONResponse ¶
type CreatePersonalToken400JSONResponse struct{ N400JSONResponse }
func (CreatePersonalToken400JSONResponse) VisitCreatePersonalTokenResponse ¶
func (response CreatePersonalToken400JSONResponse) VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
type CreatePersonalToken401JSONResponse ¶
type CreatePersonalToken401JSONResponse struct{ N401JSONResponse }
func (CreatePersonalToken401JSONResponse) VisitCreatePersonalTokenResponse ¶
func (response CreatePersonalToken401JSONResponse) VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
type CreatePersonalToken403JSONResponse ¶
type CreatePersonalToken403JSONResponse struct{ N403JSONResponse }
func (CreatePersonalToken403JSONResponse) VisitCreatePersonalTokenResponse ¶
func (response CreatePersonalToken403JSONResponse) VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
type CreatePersonalToken409JSONResponse ¶
type CreatePersonalToken409JSONResponse struct{ N409JSONResponse }
func (CreatePersonalToken409JSONResponse) VisitCreatePersonalTokenResponse ¶
func (response CreatePersonalToken409JSONResponse) VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
type CreatePersonalToken500JSONResponse ¶
type CreatePersonalToken500JSONResponse struct{ N500JSONResponse }
func (CreatePersonalToken500JSONResponse) VisitCreatePersonalTokenResponse ¶
func (response CreatePersonalToken500JSONResponse) VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
type CreatePersonalTokenJSONBody ¶
type CreatePersonalTokenJSONBody struct { Description string `json:"description"` Scopes []string `json:"scopes"` // Ttl Time to live in seconds Ttl uint32 `json:"ttl"` }
CreatePersonalTokenJSONBody defines parameters for CreatePersonalToken.
type CreatePersonalTokenJSONRequestBody ¶
type CreatePersonalTokenJSONRequestBody CreatePersonalTokenJSONBody
CreatePersonalTokenJSONRequestBody defines body for CreatePersonalToken for application/json ContentType.
type CreatePersonalTokenRequestObject ¶
type CreatePersonalTokenRequestObject struct {
Body *CreatePersonalTokenJSONRequestBody
}
type CreatePersonalTokenResponseObject ¶
type CreatePersonalTokenResponseObject interface {
VisitCreatePersonalTokenResponse(w http.ResponseWriter) error
}
type CreateRole201JSONResponse ¶
type CreateRole201JSONResponse RoleCreate
func (CreateRole201JSONResponse) VisitCreateRoleResponse ¶
func (response CreateRole201JSONResponse) VisitCreateRoleResponse(w http.ResponseWriter) error
type CreateRole400JSONResponse ¶
type CreateRole400JSONResponse struct{ N400JSONResponse }
func (CreateRole400JSONResponse) VisitCreateRoleResponse ¶
func (response CreateRole400JSONResponse) VisitCreateRoleResponse(w http.ResponseWriter) error
type CreateRole401JSONResponse ¶
type CreateRole401JSONResponse struct{ N401JSONResponse }
func (CreateRole401JSONResponse) VisitCreateRoleResponse ¶
func (response CreateRole401JSONResponse) VisitCreateRoleResponse(w http.ResponseWriter) error
type CreateRole403JSONResponse ¶
type CreateRole403JSONResponse struct{ N403JSONResponse }
func (CreateRole403JSONResponse) VisitCreateRoleResponse ¶
func (response CreateRole403JSONResponse) VisitCreateRoleResponse(w http.ResponseWriter) error
type CreateRole409JSONResponse ¶
type CreateRole409JSONResponse struct{ N409JSONResponse }
func (CreateRole409JSONResponse) VisitCreateRoleResponse ¶
func (response CreateRole409JSONResponse) VisitCreateRoleResponse(w http.ResponseWriter) error
type CreateRole500JSONResponse ¶
type CreateRole500JSONResponse struct{ N500JSONResponse }
func (CreateRole500JSONResponse) VisitCreateRoleResponse ¶
func (response CreateRole500JSONResponse) VisitCreateRoleResponse(w http.ResponseWriter) error
type CreateRoleJSONBody ¶
type CreateRoleJSONBody struct { Description *string `json:"description,omitempty"` Name string `json:"name"` Permissions *[]uint32 `json:"permissions,omitempty"` Users *[]uint64 `json:"users,omitempty"` }
CreateRoleJSONBody defines parameters for CreateRole.
type CreateRoleJSONRequestBody ¶
type CreateRoleJSONRequestBody CreateRoleJSONBody
CreateRoleJSONRequestBody defines body for CreateRole for application/json ContentType.
type CreateRoleRequestObject ¶
type CreateRoleRequestObject struct {
Body *CreateRoleJSONRequestBody
}
type CreateRoleResponseObject ¶
type CreateRoleResponseObject interface {
VisitCreateRoleResponse(w http.ResponseWriter) error
}
type CreateUser201JSONResponse ¶
type CreateUser201JSONResponse UserCreate
func (CreateUser201JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser201JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser400JSONResponse ¶
type CreateUser400JSONResponse struct{ N400JSONResponse }
func (CreateUser400JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser400JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser401JSONResponse ¶
type CreateUser401JSONResponse struct{ N401JSONResponse }
func (CreateUser401JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser401JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser403JSONResponse ¶
type CreateUser403JSONResponse struct{ N403JSONResponse }
func (CreateUser403JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser403JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser409JSONResponse ¶
type CreateUser409JSONResponse struct{ N409JSONResponse }
func (CreateUser409JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser500JSONResponse ¶
type CreateUser500JSONResponse struct{ N500JSONResponse }
func (CreateUser500JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser500JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUserJSONBody ¶
type CreateUserJSONBody struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Password string `json:"password"` Roles *[]uint32 `json:"roles,omitempty"` Username string `json:"username"` }
CreateUserJSONBody defines parameters for CreateUser.
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody CreateUserJSONBody
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserRequestObject ¶
type CreateUserRequestObject struct {
Body *CreateUserJSONRequestBody
}
type CreateUserResponseObject ¶
type CreateUserResponseObject interface {
VisitCreateUserResponse(w http.ResponseWriter) error
}
type DeletePermission204Response ¶
type DeletePermission204Response struct { }
func (DeletePermission204Response) VisitDeletePermissionResponse ¶
func (response DeletePermission204Response) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermission400JSONResponse ¶
type DeletePermission400JSONResponse struct{ N400JSONResponse }
func (DeletePermission400JSONResponse) VisitDeletePermissionResponse ¶
func (response DeletePermission400JSONResponse) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermission401JSONResponse ¶
type DeletePermission401JSONResponse struct{ N401JSONResponse }
func (DeletePermission401JSONResponse) VisitDeletePermissionResponse ¶
func (response DeletePermission401JSONResponse) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermission403JSONResponse ¶
type DeletePermission403JSONResponse struct{ N403JSONResponse }
func (DeletePermission403JSONResponse) VisitDeletePermissionResponse ¶
func (response DeletePermission403JSONResponse) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermission404JSONResponse ¶
type DeletePermission404JSONResponse struct{ N404JSONResponse }
func (DeletePermission404JSONResponse) VisitDeletePermissionResponse ¶
func (response DeletePermission404JSONResponse) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermission409JSONResponse ¶
type DeletePermission409JSONResponse struct{ N409JSONResponse }
func (DeletePermission409JSONResponse) VisitDeletePermissionResponse ¶
func (response DeletePermission409JSONResponse) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermission500JSONResponse ¶
type DeletePermission500JSONResponse struct{ N500JSONResponse }
func (DeletePermission500JSONResponse) VisitDeletePermissionResponse ¶
func (response DeletePermission500JSONResponse) VisitDeletePermissionResponse(w http.ResponseWriter) error
type DeletePermissionRequestObject ¶
type DeletePermissionRequestObject struct {
Id uint32 `json:"id"`
}
type DeletePermissionResponseObject ¶
type DeletePermissionResponseObject interface {
VisitDeletePermissionResponse(w http.ResponseWriter) error
}
type DeletePersonalToken204Response ¶
type DeletePersonalToken204Response struct { }
func (DeletePersonalToken204Response) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken204Response) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalToken400JSONResponse ¶
type DeletePersonalToken400JSONResponse struct{ N400JSONResponse }
func (DeletePersonalToken400JSONResponse) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken400JSONResponse) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalToken401JSONResponse ¶
type DeletePersonalToken401JSONResponse struct{ N401JSONResponse }
func (DeletePersonalToken401JSONResponse) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken401JSONResponse) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalToken403JSONResponse ¶
type DeletePersonalToken403JSONResponse struct{ N403JSONResponse }
func (DeletePersonalToken403JSONResponse) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken403JSONResponse) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalToken404JSONResponse ¶
type DeletePersonalToken404JSONResponse struct{ N404JSONResponse }
func (DeletePersonalToken404JSONResponse) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken404JSONResponse) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalToken409JSONResponse ¶
type DeletePersonalToken409JSONResponse struct{ N409JSONResponse }
func (DeletePersonalToken409JSONResponse) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken409JSONResponse) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalToken500JSONResponse ¶
type DeletePersonalToken500JSONResponse struct{ N500JSONResponse }
func (DeletePersonalToken500JSONResponse) VisitDeletePersonalTokenResponse ¶
func (response DeletePersonalToken500JSONResponse) VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
type DeletePersonalTokenRequestObject ¶
type DeletePersonalTokenRequestObject struct {
Id uint64 `json:"id"`
}
type DeletePersonalTokenResponseObject ¶
type DeletePersonalTokenResponseObject interface {
VisitDeletePersonalTokenResponse(w http.ResponseWriter) error
}
type DeleteRole204Response ¶
type DeleteRole204Response struct { }
func (DeleteRole204Response) VisitDeleteRoleResponse ¶
func (response DeleteRole204Response) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRole400JSONResponse ¶
type DeleteRole400JSONResponse struct{ N400JSONResponse }
func (DeleteRole400JSONResponse) VisitDeleteRoleResponse ¶
func (response DeleteRole400JSONResponse) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRole401JSONResponse ¶
type DeleteRole401JSONResponse struct{ N401JSONResponse }
func (DeleteRole401JSONResponse) VisitDeleteRoleResponse ¶
func (response DeleteRole401JSONResponse) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRole403JSONResponse ¶
type DeleteRole403JSONResponse struct{ N403JSONResponse }
func (DeleteRole403JSONResponse) VisitDeleteRoleResponse ¶
func (response DeleteRole403JSONResponse) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRole404JSONResponse ¶
type DeleteRole404JSONResponse struct{ N404JSONResponse }
func (DeleteRole404JSONResponse) VisitDeleteRoleResponse ¶
func (response DeleteRole404JSONResponse) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRole409JSONResponse ¶
type DeleteRole409JSONResponse struct{ N409JSONResponse }
func (DeleteRole409JSONResponse) VisitDeleteRoleResponse ¶
func (response DeleteRole409JSONResponse) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRole500JSONResponse ¶
type DeleteRole500JSONResponse struct{ N500JSONResponse }
func (DeleteRole500JSONResponse) VisitDeleteRoleResponse ¶
func (response DeleteRole500JSONResponse) VisitDeleteRoleResponse(w http.ResponseWriter) error
type DeleteRoleRequestObject ¶
type DeleteRoleRequestObject struct {
Id uint32 `json:"id"`
}
type DeleteRoleResponseObject ¶
type DeleteRoleResponseObject interface {
VisitDeleteRoleResponse(w http.ResponseWriter) error
}
type DeleteUser204Response ¶
type DeleteUser204Response struct { }
func (DeleteUser204Response) VisitDeleteUserResponse ¶
func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser400JSONResponse ¶
type DeleteUser400JSONResponse struct{ N400JSONResponse }
func (DeleteUser400JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser400JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser401JSONResponse ¶
type DeleteUser401JSONResponse struct{ N401JSONResponse }
func (DeleteUser401JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser401JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser403JSONResponse ¶
type DeleteUser403JSONResponse struct{ N403JSONResponse }
func (DeleteUser403JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser404JSONResponse ¶
type DeleteUser404JSONResponse struct{ N404JSONResponse }
func (DeleteUser404JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser409JSONResponse ¶
type DeleteUser409JSONResponse struct{ N409JSONResponse }
func (DeleteUser409JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser409JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser500JSONResponse ¶
type DeleteUser500JSONResponse struct{ N500JSONResponse }
func (DeleteUser500JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser500JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUserParams ¶
type DeleteUserParams struct { // Trashed Whether to include trashed items Trashed *bool `form:"trashed,omitempty" json:"trashed,omitempty"` }
DeleteUserParams defines parameters for DeleteUser.
type DeleteUserRequestObject ¶
type DeleteUserRequestObject struct { Id uint64 `json:"id"` Params DeleteUserParams }
type DeleteUserResponseObject ¶
type DeleteUserResponseObject interface {
VisitDeleteUserResponse(w http.ResponseWriter) error
}
type GinServerOptions ¶
type GinServerOptions struct { BaseURL string Middlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
GinServerOptions provides options for the Gin server.
type HintPermissions200JSONResponse ¶
type HintPermissions200JSONResponse []PermissionList
func (HintPermissions200JSONResponse) VisitHintPermissionsResponse ¶
func (response HintPermissions200JSONResponse) VisitHintPermissionsResponse(w http.ResponseWriter) error
type HintPermissions400JSONResponse ¶
type HintPermissions400JSONResponse struct{ N400JSONResponse }
func (HintPermissions400JSONResponse) VisitHintPermissionsResponse ¶
func (response HintPermissions400JSONResponse) VisitHintPermissionsResponse(w http.ResponseWriter) error
type HintPermissions401JSONResponse ¶
type HintPermissions401JSONResponse struct{ N401JSONResponse }
func (HintPermissions401JSONResponse) VisitHintPermissionsResponse ¶
func (response HintPermissions401JSONResponse) VisitHintPermissionsResponse(w http.ResponseWriter) error
type HintPermissions403JSONResponse ¶
type HintPermissions403JSONResponse struct{ N403JSONResponse }
func (HintPermissions403JSONResponse) VisitHintPermissionsResponse ¶
func (response HintPermissions403JSONResponse) VisitHintPermissionsResponse(w http.ResponseWriter) error
type HintPermissions500JSONResponse ¶
type HintPermissions500JSONResponse struct{ N500JSONResponse }
func (HintPermissions500JSONResponse) VisitHintPermissionsResponse ¶
func (response HintPermissions500JSONResponse) VisitHintPermissionsResponse(w http.ResponseWriter) error
type HintPermissionsParams ¶
type HintPermissionsParams struct { // Q text to search Q string `form:"q" json:"q"` }
HintPermissionsParams defines parameters for HintPermissions.
type HintPermissionsRequestObject ¶
type HintPermissionsRequestObject struct {
Params HintPermissionsParams
}
type HintPermissionsResponseObject ¶
type HintPermissionsResponseObject interface {
VisitHintPermissionsResponse(w http.ResponseWriter) error
}
type HintRoles200JSONResponse ¶
type HintRoles200JSONResponse []RoleList
func (HintRoles200JSONResponse) VisitHintRolesResponse ¶
func (response HintRoles200JSONResponse) VisitHintRolesResponse(w http.ResponseWriter) error
type HintRoles400JSONResponse ¶
type HintRoles400JSONResponse struct{ N400JSONResponse }
func (HintRoles400JSONResponse) VisitHintRolesResponse ¶
func (response HintRoles400JSONResponse) VisitHintRolesResponse(w http.ResponseWriter) error
type HintRoles401JSONResponse ¶
type HintRoles401JSONResponse struct{ N401JSONResponse }
func (HintRoles401JSONResponse) VisitHintRolesResponse ¶
func (response HintRoles401JSONResponse) VisitHintRolesResponse(w http.ResponseWriter) error
type HintRoles403JSONResponse ¶
type HintRoles403JSONResponse struct{ N403JSONResponse }
func (HintRoles403JSONResponse) VisitHintRolesResponse ¶
func (response HintRoles403JSONResponse) VisitHintRolesResponse(w http.ResponseWriter) error
type HintRoles500JSONResponse ¶
type HintRoles500JSONResponse struct{ N500JSONResponse }
func (HintRoles500JSONResponse) VisitHintRolesResponse ¶
func (response HintRoles500JSONResponse) VisitHintRolesResponse(w http.ResponseWriter) error
type HintRolesParams ¶
type HintRolesParams struct { // Q text to search Q string `form:"q" json:"q"` }
HintRolesParams defines parameters for HintRoles.
type HintRolesRequestObject ¶
type HintRolesRequestObject struct {
Params HintRolesParams
}
type HintRolesResponseObject ¶
type HintRolesResponseObject interface {
VisitHintRolesResponse(w http.ResponseWriter) error
}
type HintUsers200JSONResponse ¶
type HintUsers200JSONResponse []UserList
func (HintUsers200JSONResponse) VisitHintUsersResponse ¶
func (response HintUsers200JSONResponse) VisitHintUsersResponse(w http.ResponseWriter) error
type HintUsers400JSONResponse ¶
type HintUsers400JSONResponse struct{ N400JSONResponse }
func (HintUsers400JSONResponse) VisitHintUsersResponse ¶
func (response HintUsers400JSONResponse) VisitHintUsersResponse(w http.ResponseWriter) error
type HintUsers401JSONResponse ¶
type HintUsers401JSONResponse struct{ N401JSONResponse }
func (HintUsers401JSONResponse) VisitHintUsersResponse ¶
func (response HintUsers401JSONResponse) VisitHintUsersResponse(w http.ResponseWriter) error
type HintUsers403JSONResponse ¶
type HintUsers403JSONResponse struct{ N403JSONResponse }
func (HintUsers403JSONResponse) VisitHintUsersResponse ¶
func (response HintUsers403JSONResponse) VisitHintUsersResponse(w http.ResponseWriter) error
type HintUsers500JSONResponse ¶
type HintUsers500JSONResponse struct{ N500JSONResponse }
func (HintUsers500JSONResponse) VisitHintUsersResponse ¶
func (response HintUsers500JSONResponse) VisitHintUsersResponse(w http.ResponseWriter) error
type HintUsersParams ¶
type HintUsersParams struct { // Q text to search Q string `form:"q" json:"q"` }
HintUsersParams defines parameters for HintUsers.
type HintUsersRequestObject ¶
type HintUsersRequestObject struct {
Params HintUsersParams
}
type HintUsersResponseObject ¶
type HintUsersResponseObject interface {
VisitHintUsersResponse(w http.ResponseWriter) error
}
type ListPermission200JSONResponse ¶
type ListPermission200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []PermissionList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListPermission200JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission200JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermission400JSONResponse ¶
type ListPermission400JSONResponse struct{ N400JSONResponse }
func (ListPermission400JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission400JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermission401JSONResponse ¶
type ListPermission401JSONResponse struct{ N401JSONResponse }
func (ListPermission401JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission401JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermission403JSONResponse ¶
type ListPermission403JSONResponse struct{ N403JSONResponse }
func (ListPermission403JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission403JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermission404JSONResponse ¶
type ListPermission404JSONResponse struct{ N404JSONResponse }
func (ListPermission404JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission404JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermission409JSONResponse ¶
type ListPermission409JSONResponse struct{ N409JSONResponse }
func (ListPermission409JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission409JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermission500JSONResponse ¶
type ListPermission500JSONResponse struct{ N500JSONResponse }
func (ListPermission500JSONResponse) VisitListPermissionResponse ¶
func (response ListPermission500JSONResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermissionPaginateResponse ¶
type ListPermissionPaginateResponse struct { *paginate.PaginatedList[ent.Permission] }
func (ListPermissionPaginateResponse) VisitListPermissionResponse ¶
func (response ListPermissionPaginateResponse) VisitListPermissionResponse(w http.ResponseWriter) error
type ListPermissionParams ¶
type ListPermissionParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Name Name of the permission Name *string `form:"name,omitempty" json:"name,omitempty"` }
ListPermissionParams defines parameters for ListPermission.
type ListPermissionRequestObject ¶
type ListPermissionRequestObject struct {
Params ListPermissionParams
}
type ListPermissionResponseObject ¶
type ListPermissionResponseObject interface {
VisitListPermissionResponse(w http.ResponseWriter) error
}
type ListPersonalToken200JSONResponse ¶
type ListPersonalToken200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []PersonalTokenList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListPersonalToken200JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken200JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalToken400JSONResponse ¶
type ListPersonalToken400JSONResponse struct{ N400JSONResponse }
func (ListPersonalToken400JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken400JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalToken401JSONResponse ¶
type ListPersonalToken401JSONResponse struct{ N401JSONResponse }
func (ListPersonalToken401JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken401JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalToken403JSONResponse ¶
type ListPersonalToken403JSONResponse struct{ N403JSONResponse }
func (ListPersonalToken403JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken403JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalToken404JSONResponse ¶
type ListPersonalToken404JSONResponse struct{ N404JSONResponse }
func (ListPersonalToken404JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken404JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalToken409JSONResponse ¶
type ListPersonalToken409JSONResponse struct{ N409JSONResponse }
func (ListPersonalToken409JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken409JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalToken500JSONResponse ¶
type ListPersonalToken500JSONResponse struct{ N500JSONResponse }
func (ListPersonalToken500JSONResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalToken500JSONResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalTokenPaginateResponse ¶
type ListPersonalTokenPaginateResponse struct { *paginate.PaginatedList[ent.PersonalToken] }
func (ListPersonalTokenPaginateResponse) VisitListPersonalTokenResponse ¶
func (response ListPersonalTokenPaginateResponse) VisitListPersonalTokenResponse(w http.ResponseWriter) error
type ListPersonalTokenParams ¶
type ListPersonalTokenParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` }
ListPersonalTokenParams defines parameters for ListPersonalToken.
type ListPersonalTokenRequestObject ¶
type ListPersonalTokenRequestObject struct {
Params ListPersonalTokenParams
}
type ListPersonalTokenResponseObject ¶
type ListPersonalTokenResponseObject interface {
VisitListPersonalTokenResponse(w http.ResponseWriter) error
}
type ListRole200JSONResponse ¶
type ListRole200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []RoleList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListRole200JSONResponse) VisitListRoleResponse ¶
func (response ListRole200JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRole400JSONResponse ¶
type ListRole400JSONResponse struct{ N400JSONResponse }
func (ListRole400JSONResponse) VisitListRoleResponse ¶
func (response ListRole400JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRole401JSONResponse ¶
type ListRole401JSONResponse struct{ N401JSONResponse }
func (ListRole401JSONResponse) VisitListRoleResponse ¶
func (response ListRole401JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRole403JSONResponse ¶
type ListRole403JSONResponse struct{ N403JSONResponse }
func (ListRole403JSONResponse) VisitListRoleResponse ¶
func (response ListRole403JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRole404JSONResponse ¶
type ListRole404JSONResponse struct{ N404JSONResponse }
func (ListRole404JSONResponse) VisitListRoleResponse ¶
func (response ListRole404JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRole409JSONResponse ¶
type ListRole409JSONResponse struct{ N409JSONResponse }
func (ListRole409JSONResponse) VisitListRoleResponse ¶
func (response ListRole409JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRole500JSONResponse ¶
type ListRole500JSONResponse struct{ N500JSONResponse }
func (ListRole500JSONResponse) VisitListRoleResponse ¶
func (response ListRole500JSONResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRolePaginateResponse ¶
type ListRolePaginateResponse struct { *paginate.PaginatedList[ent.Role] }
func (ListRolePaginateResponse) VisitListRoleResponse ¶
func (response ListRolePaginateResponse) VisitListRoleResponse(w http.ResponseWriter) error
type ListRoleParams ¶
type ListRoleParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Name Name of the role Name *string `form:"name,omitempty" json:"name,omitempty"` }
ListRoleParams defines parameters for ListRole.
type ListRolePermissions200JSONResponse ¶
type ListRolePermissions200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []RolePermissionsList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListRolePermissions200JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions200JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissions400JSONResponse ¶
type ListRolePermissions400JSONResponse struct{ N400JSONResponse }
func (ListRolePermissions400JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions400JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissions401JSONResponse ¶
type ListRolePermissions401JSONResponse struct{ N401JSONResponse }
func (ListRolePermissions401JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions401JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissions403JSONResponse ¶
type ListRolePermissions403JSONResponse struct{ N403JSONResponse }
func (ListRolePermissions403JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions403JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissions404JSONResponse ¶
type ListRolePermissions404JSONResponse struct{ N404JSONResponse }
func (ListRolePermissions404JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions404JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissions409JSONResponse ¶
type ListRolePermissions409JSONResponse struct{ N409JSONResponse }
func (ListRolePermissions409JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions409JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissions500JSONResponse ¶
type ListRolePermissions500JSONResponse struct{ N500JSONResponse }
func (ListRolePermissions500JSONResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissions500JSONResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissionsPaginateResponse ¶
type ListRolePermissionsPaginateResponse struct { *paginate.PaginatedList[ent.Permission] }
func (ListRolePermissionsPaginateResponse) VisitListRolePermissionsResponse ¶
func (response ListRolePermissionsPaginateResponse) VisitListRolePermissionsResponse(w http.ResponseWriter) error
type ListRolePermissionsParams ¶
type ListRolePermissionsParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Name Name of the permission Name *string `form:"name,omitempty" json:"name,omitempty"` }
ListRolePermissionsParams defines parameters for ListRolePermissions.
type ListRolePermissionsRequestObject ¶
type ListRolePermissionsRequestObject struct { Id uint32 `json:"id"` Params ListRolePermissionsParams }
type ListRolePermissionsResponseObject ¶
type ListRolePermissionsResponseObject interface {
VisitListRolePermissionsResponse(w http.ResponseWriter) error
}
type ListRoleRequestObject ¶
type ListRoleRequestObject struct {
Params ListRoleParams
}
type ListRoleResponseObject ¶
type ListRoleResponseObject interface {
VisitListRoleResponse(w http.ResponseWriter) error
}
type ListRoleUsers200JSONResponse ¶
type ListRoleUsers200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []RoleUsersList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListRoleUsers200JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers200JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsers400JSONResponse ¶
type ListRoleUsers400JSONResponse struct{ N400JSONResponse }
func (ListRoleUsers400JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers400JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsers401JSONResponse ¶
type ListRoleUsers401JSONResponse struct{ N401JSONResponse }
func (ListRoleUsers401JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers401JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsers403JSONResponse ¶
type ListRoleUsers403JSONResponse struct{ N403JSONResponse }
func (ListRoleUsers403JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers403JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsers404JSONResponse ¶
type ListRoleUsers404JSONResponse struct{ N404JSONResponse }
func (ListRoleUsers404JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers404JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsers409JSONResponse ¶
type ListRoleUsers409JSONResponse struct{ N409JSONResponse }
func (ListRoleUsers409JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers409JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsers500JSONResponse ¶
type ListRoleUsers500JSONResponse struct{ N500JSONResponse }
func (ListRoleUsers500JSONResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsers500JSONResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsersPaginateResponse ¶
type ListRoleUsersPaginateResponse struct { *paginate.PaginatedList[ent.User] }
func (ListRoleUsersPaginateResponse) VisitListRoleUsersResponse ¶
func (response ListRoleUsersPaginateResponse) VisitListRoleUsersResponse(w http.ResponseWriter) error
type ListRoleUsersParams ¶
type ListRoleUsersParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Name Name of the user Name *string `form:"name,omitempty" json:"name,omitempty"` }
ListRoleUsersParams defines parameters for ListRoleUsers.
type ListRoleUsersRequestObject ¶
type ListRoleUsersRequestObject struct { Id uint32 `json:"id"` Params ListRoleUsersParams }
type ListRoleUsersResponseObject ¶
type ListRoleUsersResponseObject interface {
VisitListRoleUsersResponse(w http.ResponseWriter) error
}
type ListUser200JSONResponse ¶
type ListUser200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []UserList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListUser200JSONResponse) VisitListUserResponse ¶
func (response ListUser200JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUser400JSONResponse ¶
type ListUser400JSONResponse struct{ N400JSONResponse }
func (ListUser400JSONResponse) VisitListUserResponse ¶
func (response ListUser400JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUser401JSONResponse ¶
type ListUser401JSONResponse struct{ N401JSONResponse }
func (ListUser401JSONResponse) VisitListUserResponse ¶
func (response ListUser401JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUser403JSONResponse ¶
type ListUser403JSONResponse struct{ N403JSONResponse }
func (ListUser403JSONResponse) VisitListUserResponse ¶
func (response ListUser403JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUser404JSONResponse ¶
type ListUser404JSONResponse struct{ N404JSONResponse }
func (ListUser404JSONResponse) VisitListUserResponse ¶
func (response ListUser404JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUser409JSONResponse ¶
type ListUser409JSONResponse struct{ N409JSONResponse }
func (ListUser409JSONResponse) VisitListUserResponse ¶
func (response ListUser409JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUser500JSONResponse ¶
type ListUser500JSONResponse struct{ N500JSONResponse }
func (ListUser500JSONResponse) VisitListUserResponse ¶
func (response ListUser500JSONResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUserPaginateResponse ¶
type ListUserPaginateResponse struct { *paginate.PaginatedList[ent.User] }
func (ListUserPaginateResponse) VisitListUserResponse ¶
func (response ListUserPaginateResponse) VisitListUserResponse(w http.ResponseWriter) error
type ListUserParams ¶
type ListUserParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Name Name of the user Name *string `form:"name,omitempty" json:"name,omitempty"` }
ListUserParams defines parameters for ListUser.
type ListUserRequestObject ¶
type ListUserRequestObject struct {
Params ListUserParams
}
type ListUserResponseObject ¶
type ListUserResponseObject interface {
VisitListUserResponse(w http.ResponseWriter) error
}
type ListUserRoles200JSONResponse ¶
type ListUserRoles200JSONResponse struct { // CurrentPage Page number (1-based) CurrentPage int `json:"current_page"` // Data List of items Data []UserRolesList `json:"data"` // FirstPageUrl URL to the first page FirstPageUrl string `json:"first_page_url"` // From Index (1-based) of the first item in the current page From int `json:"from"` // LastPage Last page number LastPage int `json:"last_page"` // LastPageUrl URL to the last page LastPageUrl string `json:"last_page_url"` // NextPageUrl URL to the next page NextPageUrl string `json:"next_page_url"` // Path Base path of the request Path string `json:"path"` // PerPage Number of items per page PerPage int `json:"per_page"` // PrevPageUrl URL to the previous page PrevPageUrl string `json:"prev_page_url"` // To Index (1-based) of the last item in the current page To int `json:"to"` // Total Total number of items Total int `json:"total"` }
func (ListUserRoles200JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles200JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRoles400JSONResponse ¶
type ListUserRoles400JSONResponse struct{ N400JSONResponse }
func (ListUserRoles400JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles400JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRoles401JSONResponse ¶
type ListUserRoles401JSONResponse struct{ N401JSONResponse }
func (ListUserRoles401JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles401JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRoles403JSONResponse ¶
type ListUserRoles403JSONResponse struct{ N403JSONResponse }
func (ListUserRoles403JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles403JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRoles404JSONResponse ¶
type ListUserRoles404JSONResponse struct{ N404JSONResponse }
func (ListUserRoles404JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles404JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRoles409JSONResponse ¶
type ListUserRoles409JSONResponse struct{ N409JSONResponse }
func (ListUserRoles409JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles409JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRoles500JSONResponse ¶
type ListUserRoles500JSONResponse struct{ N500JSONResponse }
func (ListUserRoles500JSONResponse) VisitListUserRolesResponse ¶
func (response ListUserRoles500JSONResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRolesPaginateResponse ¶
type ListUserRolesPaginateResponse struct { *paginate.PaginatedList[ent.Role] }
func (ListUserRolesPaginateResponse) VisitListUserRolesResponse ¶
func (response ListUserRolesPaginateResponse) VisitListUserRolesResponse(w http.ResponseWriter) error
type ListUserRolesParams ¶
type ListUserRolesParams struct { // Page what page to render Page *int `form:"page,omitempty" json:"page,omitempty"` // PerPage item count to render per page PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` // Name Name of the role Name *string `form:"name,omitempty" json:"name,omitempty"` }
ListUserRolesParams defines parameters for ListUserRoles.
type ListUserRolesRequestObject ¶
type ListUserRolesRequestObject struct { Id uint64 `json:"id"` Params ListUserRolesParams }
type ListUserRolesResponseObject ¶
type ListUserRolesResponseObject interface {
VisitListUserRolesResponse(w http.ResponseWriter) error
}
type Login200JSONResponse ¶
type Login200JSONResponse UserRead
func (Login200JSONResponse) VisitLoginResponse ¶
func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login400JSONResponse ¶
type Login400JSONResponse struct{ N400JSONResponse }
func (Login400JSONResponse) VisitLoginResponse ¶
func (response Login400JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login401JSONResponse ¶
type Login401JSONResponse struct{ N401JSONResponse }
func (Login401JSONResponse) VisitLoginResponse ¶
func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login403JSONResponse ¶
type Login403JSONResponse struct{ N403JSONResponse }
func (Login403JSONResponse) VisitLoginResponse ¶
func (response Login403JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login500JSONResponse ¶
type Login500JSONResponse struct{ N500JSONResponse }
func (Login500JSONResponse) VisitLoginResponse ¶
func (response Login500JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type LoginJSONBody ¶
LoginJSONBody defines parameters for Login.
type LoginJSONRequestBody ¶
type LoginJSONRequestBody LoginJSONBody
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequestObject ¶
type LoginRequestObject struct {
Body *LoginJSONRequestBody
}
type LoginResponseObject ¶
type LoginResponseObject interface {
VisitLoginResponse(w http.ResponseWriter) error
}
type Logout204Response ¶
type Logout204Response struct { }
func (Logout204Response) VisitLogoutResponse ¶
func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error
type Logout401JSONResponse ¶
type Logout401JSONResponse struct{ N401JSONResponse }
func (Logout401JSONResponse) VisitLogoutResponse ¶
func (response Logout401JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type Logout403JSONResponse ¶
type Logout403JSONResponse struct{ N403JSONResponse }
func (Logout403JSONResponse) VisitLogoutResponse ¶
func (response Logout403JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type Logout500JSONResponse ¶
type Logout500JSONResponse struct{ N500JSONResponse }
func (Logout500JSONResponse) VisitLogoutResponse ¶
func (response Logout500JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type LogoutRequestObject ¶
type LogoutRequestObject struct { }
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type MiddlewareFunc ¶
type N400 ¶
type N400 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N400 defines model for 400.
type N400JSONResponse ¶
type N401 ¶
type N401 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N401 defines model for 401.
type N401JSONResponse ¶
type N403 ¶
type N403 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N403 defines model for 403.
type N403JSONResponse ¶
type N404 ¶
type N404 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N404 defines model for 404.
type N404JSONResponse ¶
type N409 ¶
type N409 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N409 defines model for 409.
type N409JSONResponse ¶
type N422 ¶
type N422 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N422 defines model for 422.
type N422JSONResponse ¶
type N500 ¶
type N500 struct { Code int `json:"code"` Errors *interface{} `json:"errors,omitempty"` Status string `json:"status"` }
N500 defines model for 500.
type N500JSONResponse ¶
type Permission ¶
type Permission struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` Roles *[]Role `json:"roles,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
Permission defines model for Permission.
type PermissionCreate ¶
type PermissionCreate struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
PermissionCreate defines model for PermissionCreate.
type PermissionList ¶
type PermissionList struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
PermissionList defines model for PermissionList.
type PermissionRead ¶
type PermissionRead struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
PermissionRead defines model for PermissionRead.
type PermissionUpdate ¶
type PermissionUpdate struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
PermissionUpdate defines model for PermissionUpdate.
type PersonalToken ¶
type PersonalToken struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description string `json:"description"` Id uint64 `json:"id"` Owner *User `json:"owner,omitempty"` UserId uint64 `json:"user_id"` }
PersonalToken defines model for PersonalToken.
type PersonalTokenCreate ¶
type PersonalTokenCreate struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description string `json:"description"` Id uint64 `json:"id"` Token string `json:"token"` UserId uint64 `json:"user_id"` }
PersonalTokenCreate defines model for PersonalTokenCreate.
type PersonalTokenList ¶
type PersonalTokenList struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description string `json:"description"` Id uint64 `json:"id"` UserId uint64 `json:"user_id"` }
PersonalTokenList defines model for PersonalTokenList.
type PersonalTokenRead ¶
type PersonalTokenRead struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description string `json:"description"` Id uint64 `json:"id"` UserId uint64 `json:"user_id"` }
PersonalTokenRead defines model for PersonalTokenRead.
type Ping204Response ¶
type Ping204Response struct { }
func (Ping204Response) VisitPingResponse ¶
func (response Ping204Response) VisitPingResponse(w http.ResponseWriter) error
type Ping500JSONResponse ¶
type Ping500JSONResponse struct{ N500JSONResponse }
func (Ping500JSONResponse) VisitPingResponse ¶
func (response Ping500JSONResponse) VisitPingResponse(w http.ResponseWriter) error
type PingRequestObject ¶
type PingRequestObject struct { }
type PingResponseObject ¶
type PingResponseObject interface {
VisitPingResponse(w http.ResponseWriter) error
}
type ReadPermission200JSONResponse ¶
type ReadPermission200JSONResponse PermissionRead
func (ReadPermission200JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission200JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermission400JSONResponse ¶
type ReadPermission400JSONResponse struct{ N400JSONResponse }
func (ReadPermission400JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission400JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermission401JSONResponse ¶
type ReadPermission401JSONResponse struct{ N401JSONResponse }
func (ReadPermission401JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission401JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermission403JSONResponse ¶
type ReadPermission403JSONResponse struct{ N403JSONResponse }
func (ReadPermission403JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission403JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermission404JSONResponse ¶
type ReadPermission404JSONResponse struct{ N404JSONResponse }
func (ReadPermission404JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission404JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermission409JSONResponse ¶
type ReadPermission409JSONResponse struct{ N409JSONResponse }
func (ReadPermission409JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission409JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermission500JSONResponse ¶
type ReadPermission500JSONResponse struct{ N500JSONResponse }
func (ReadPermission500JSONResponse) VisitReadPermissionResponse ¶
func (response ReadPermission500JSONResponse) VisitReadPermissionResponse(w http.ResponseWriter) error
type ReadPermissionParams ¶
type ReadPermissionParams struct { // Username Username of the user Username *string `form:"username,omitempty" json:"username,omitempty"` }
ReadPermissionParams defines parameters for ReadPermission.
type ReadPermissionRequestObject ¶
type ReadPermissionRequestObject struct { Id uint32 `json:"id"` Params ReadPermissionParams }
type ReadPermissionResponseObject ¶
type ReadPermissionResponseObject interface {
VisitReadPermissionResponse(w http.ResponseWriter) error
}
type ReadPersonalToken200JSONResponse ¶
type ReadPersonalToken200JSONResponse PersonalTokenRead
func (ReadPersonalToken200JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken200JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalToken400JSONResponse ¶
type ReadPersonalToken400JSONResponse struct{ N400JSONResponse }
func (ReadPersonalToken400JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken400JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalToken401JSONResponse ¶
type ReadPersonalToken401JSONResponse struct{ N401JSONResponse }
func (ReadPersonalToken401JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken401JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalToken403JSONResponse ¶
type ReadPersonalToken403JSONResponse struct{ N403JSONResponse }
func (ReadPersonalToken403JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken403JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalToken404JSONResponse ¶
type ReadPersonalToken404JSONResponse struct{ N404JSONResponse }
func (ReadPersonalToken404JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken404JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalToken409JSONResponse ¶
type ReadPersonalToken409JSONResponse struct{ N409JSONResponse }
func (ReadPersonalToken409JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken409JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalToken500JSONResponse ¶
type ReadPersonalToken500JSONResponse struct{ N500JSONResponse }
func (ReadPersonalToken500JSONResponse) VisitReadPersonalTokenResponse ¶
func (response ReadPersonalToken500JSONResponse) VisitReadPersonalTokenResponse(w http.ResponseWriter) error
type ReadPersonalTokenRequestObject ¶
type ReadPersonalTokenRequestObject struct {
Id uint64 `json:"id"`
}
type ReadPersonalTokenResponseObject ¶
type ReadPersonalTokenResponseObject interface {
VisitReadPersonalTokenResponse(w http.ResponseWriter) error
}
type ReadRole200JSONResponse ¶
type ReadRole200JSONResponse RoleRead
func (ReadRole200JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole200JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRole400JSONResponse ¶
type ReadRole400JSONResponse struct{ N400JSONResponse }
func (ReadRole400JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole400JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRole401JSONResponse ¶
type ReadRole401JSONResponse struct{ N401JSONResponse }
func (ReadRole401JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole401JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRole403JSONResponse ¶
type ReadRole403JSONResponse struct{ N403JSONResponse }
func (ReadRole403JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole403JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRole404JSONResponse ¶
type ReadRole404JSONResponse struct{ N404JSONResponse }
func (ReadRole404JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole404JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRole409JSONResponse ¶
type ReadRole409JSONResponse struct{ N409JSONResponse }
func (ReadRole409JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole409JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRole500JSONResponse ¶
type ReadRole500JSONResponse struct{ N500JSONResponse }
func (ReadRole500JSONResponse) VisitReadRoleResponse ¶
func (response ReadRole500JSONResponse) VisitReadRoleResponse(w http.ResponseWriter) error
type ReadRoleRequestObject ¶
type ReadRoleRequestObject struct {
Id uint32 `json:"id"`
}
type ReadRoleResponseObject ¶
type ReadRoleResponseObject interface {
VisitReadRoleResponse(w http.ResponseWriter) error
}
type ReadUser200JSONResponse ¶
type ReadUser200JSONResponse UserRead
func (ReadUser200JSONResponse) VisitReadUserResponse ¶
func (response ReadUser200JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUser400JSONResponse ¶
type ReadUser400JSONResponse struct{ N400JSONResponse }
func (ReadUser400JSONResponse) VisitReadUserResponse ¶
func (response ReadUser400JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUser401JSONResponse ¶
type ReadUser401JSONResponse struct{ N401JSONResponse }
func (ReadUser401JSONResponse) VisitReadUserResponse ¶
func (response ReadUser401JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUser403JSONResponse ¶
type ReadUser403JSONResponse struct{ N403JSONResponse }
func (ReadUser403JSONResponse) VisitReadUserResponse ¶
func (response ReadUser403JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUser404JSONResponse ¶
type ReadUser404JSONResponse struct{ N404JSONResponse }
func (ReadUser404JSONResponse) VisitReadUserResponse ¶
func (response ReadUser404JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUser409JSONResponse ¶
type ReadUser409JSONResponse struct{ N409JSONResponse }
func (ReadUser409JSONResponse) VisitReadUserResponse ¶
func (response ReadUser409JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUser500JSONResponse ¶
type ReadUser500JSONResponse struct{ N500JSONResponse }
func (ReadUser500JSONResponse) VisitReadUserResponse ¶
func (response ReadUser500JSONResponse) VisitReadUserResponse(w http.ResponseWriter) error
type ReadUserParams ¶
type ReadUserParams struct { // Trashed Whether to include trashed items Trashed *bool `form:"trashed,omitempty" json:"trashed,omitempty"` }
ReadUserParams defines parameters for ReadUser.
type ReadUserRequestObject ¶
type ReadUserRequestObject struct { Id uint64 `json:"id"` Params ReadUserParams }
type ReadUserResponseObject ¶
type ReadUserResponseObject interface {
VisitReadUserResponse(w http.ResponseWriter) error
}
type RefreshAccessToken204Response ¶
type RefreshAccessToken204Response struct { }
func (RefreshAccessToken204Response) VisitRefreshAccessTokenResponse ¶
func (response RefreshAccessToken204Response) VisitRefreshAccessTokenResponse(w http.ResponseWriter) error
type RefreshAccessToken400JSONResponse ¶
type RefreshAccessToken400JSONResponse struct{ N400JSONResponse }
func (RefreshAccessToken400JSONResponse) VisitRefreshAccessTokenResponse ¶
func (response RefreshAccessToken400JSONResponse) VisitRefreshAccessTokenResponse(w http.ResponseWriter) error
type RefreshAccessToken401JSONResponse ¶
type RefreshAccessToken401JSONResponse struct{ N401JSONResponse }
func (RefreshAccessToken401JSONResponse) VisitRefreshAccessTokenResponse ¶
func (response RefreshAccessToken401JSONResponse) VisitRefreshAccessTokenResponse(w http.ResponseWriter) error
type RefreshAccessToken403JSONResponse ¶
type RefreshAccessToken403JSONResponse struct{ N403JSONResponse }
func (RefreshAccessToken403JSONResponse) VisitRefreshAccessTokenResponse ¶
func (response RefreshAccessToken403JSONResponse) VisitRefreshAccessTokenResponse(w http.ResponseWriter) error
type RefreshAccessToken500JSONResponse ¶
type RefreshAccessToken500JSONResponse struct{ N500JSONResponse }
func (RefreshAccessToken500JSONResponse) VisitRefreshAccessTokenResponse ¶
func (response RefreshAccessToken500JSONResponse) VisitRefreshAccessTokenResponse(w http.ResponseWriter) error
type RefreshAccessTokenRequestObject ¶
type RefreshAccessTokenRequestObject struct { }
type RefreshAccessTokenResponseObject ¶
type RefreshAccessTokenResponseObject interface {
VisitRefreshAccessTokenResponse(w http.ResponseWriter) error
}
type RestoreUser204Response ¶
type RestoreUser204Response struct { }
func (RestoreUser204Response) VisitRestoreUserResponse ¶
func (response RestoreUser204Response) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUser400JSONResponse ¶
type RestoreUser400JSONResponse struct{ N400JSONResponse }
func (RestoreUser400JSONResponse) VisitRestoreUserResponse ¶
func (response RestoreUser400JSONResponse) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUser401JSONResponse ¶
type RestoreUser401JSONResponse struct{ N401JSONResponse }
func (RestoreUser401JSONResponse) VisitRestoreUserResponse ¶
func (response RestoreUser401JSONResponse) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUser403JSONResponse ¶
type RestoreUser403JSONResponse struct{ N403JSONResponse }
func (RestoreUser403JSONResponse) VisitRestoreUserResponse ¶
func (response RestoreUser403JSONResponse) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUser404JSONResponse ¶
type RestoreUser404JSONResponse struct{ N404JSONResponse }
func (RestoreUser404JSONResponse) VisitRestoreUserResponse ¶
func (response RestoreUser404JSONResponse) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUser409JSONResponse ¶
type RestoreUser409JSONResponse struct{ N409JSONResponse }
func (RestoreUser409JSONResponse) VisitRestoreUserResponse ¶
func (response RestoreUser409JSONResponse) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUser500JSONResponse ¶
type RestoreUser500JSONResponse struct{ N500JSONResponse }
func (RestoreUser500JSONResponse) VisitRestoreUserResponse ¶
func (response RestoreUser500JSONResponse) VisitRestoreUserResponse(w http.ResponseWriter) error
type RestoreUserRequestObject ¶
type RestoreUserRequestObject struct {
Id uint64 `json:"id"`
}
type RestoreUserResponseObject ¶
type RestoreUserResponseObject interface {
VisitRestoreUserResponse(w http.ResponseWriter) error
}
type RevokeAccessToken204Response ¶
type RevokeAccessToken204Response struct { }
func (RevokeAccessToken204Response) VisitRevokeAccessTokenResponse ¶
func (response RevokeAccessToken204Response) VisitRevokeAccessTokenResponse(w http.ResponseWriter) error
type RevokeAccessToken400JSONResponse ¶
type RevokeAccessToken400JSONResponse struct{ N400JSONResponse }
func (RevokeAccessToken400JSONResponse) VisitRevokeAccessTokenResponse ¶
func (response RevokeAccessToken400JSONResponse) VisitRevokeAccessTokenResponse(w http.ResponseWriter) error
type RevokeAccessToken401JSONResponse ¶
type RevokeAccessToken401JSONResponse struct{ N401JSONResponse }
func (RevokeAccessToken401JSONResponse) VisitRevokeAccessTokenResponse ¶
func (response RevokeAccessToken401JSONResponse) VisitRevokeAccessTokenResponse(w http.ResponseWriter) error
type RevokeAccessToken403JSONResponse ¶
type RevokeAccessToken403JSONResponse struct{ N403JSONResponse }
func (RevokeAccessToken403JSONResponse) VisitRevokeAccessTokenResponse ¶
func (response RevokeAccessToken403JSONResponse) VisitRevokeAccessTokenResponse(w http.ResponseWriter) error
type RevokeAccessToken500JSONResponse ¶
type RevokeAccessToken500JSONResponse struct{ N500JSONResponse }
func (RevokeAccessToken500JSONResponse) VisitRevokeAccessTokenResponse ¶
func (response RevokeAccessToken500JSONResponse) VisitRevokeAccessTokenResponse(w http.ResponseWriter) error
type RevokeAccessTokenRequestObject ¶
type RevokeAccessTokenRequestObject struct { }
type RevokeAccessTokenResponseObject ¶
type RevokeAccessTokenResponseObject interface {
VisitRevokeAccessTokenResponse(w http.ResponseWriter) error
}
type Role ¶
type Role struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` Permissions *[]Permission `json:"permissions,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Users *[]User `json:"users,omitempty"` }
Role defines model for Role.
type RoleCreate ¶
type RoleCreate struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
RoleCreate defines model for RoleCreate.
type RoleList ¶
type RoleList struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
RoleList defines model for RoleList.
type RolePermissionsList ¶
type RolePermissionsList struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
RolePermissionsList defines model for Role_PermissionsList.
type RoleRead ¶
type RoleRead struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
RoleRead defines model for RoleRead.
type RoleUpdate ¶
type RoleUpdate struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
RoleUpdate defines model for RoleUpdate.
type RoleUsersList ¶
type RoleUsersList struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Id uint64 `json:"id"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username string `json:"username"` }
RoleUsersList defines model for Role_UsersList.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (Server) AssignPermissions ¶
func (s Server) AssignPermissions( _ context.Context, request AssignPermissionsRequestObject, ) (AssignPermissionsResponseObject, error)
AssignPermissions assigns permissions to a role.
Endpoint: POST /role/{id}/permissions
func (Server) AssignRoles ¶
func (s Server) AssignRoles( _ context.Context, request AssignRolesRequestObject, ) (AssignRolesResponseObject, error)
AssignRoles assigns roles to a user.
Endpoint: POST /users/{id}/roles
func (Server) CheckAccessToken ¶
func (s Server) CheckAccessToken( ctx context.Context, _ CheckAccessTokenRequestObject, ) (CheckAccessTokenResponseObject, error)
CheckAccessToken checks whether current access token is valid.
Endpoint: GET /access-token
func (Server) CreatePermission ¶
func (s Server) CreatePermission( _ context.Context, request CreatePermissionRequestObject, ) (CreatePermissionResponseObject, error)
CreatePermission creates a permission.
Endpoint: POST /permissions
func (Server) CreatePersonalToken ¶
func (s Server) CreatePersonalToken( ctx context.Context, request CreatePersonalTokenRequestObject, ) (CreatePersonalTokenResponseObject, error)
CreatePersonalToken creates a personal token.
Endpoint: POST /personal-tokens
func (Server) CreateRole ¶
func (s Server) CreateRole( _ context.Context, request CreateRoleRequestObject, ) (CreateRoleResponseObject, error)
CreateRole creates a role.
Endpoint: POST /roles
func (Server) CreateUser ¶
func (s Server) CreateUser( _ context.Context, request CreateUserRequestObject, ) (CreateUserResponseObject, error)
CreateUser creates a user.
Endpoint: POST /users
func (Server) DeletePermission ¶
func (s Server) DeletePermission( ctx context.Context, request DeletePermissionRequestObject, ) (DeletePermissionResponseObject, error)
DeletePermission deletes a permission.
Endpoint: DELETE /permission/{id}
func (Server) DeletePersonalToken ¶
func (s Server) DeletePersonalToken( _ context.Context, request DeletePersonalTokenRequestObject, ) (DeletePersonalTokenResponseObject, error)
DeletePersonalToken revokes a personal token.
Endpoint: DELETE /personal-token/:id
func (Server) DeleteRole ¶
func (s Server) DeleteRole( _ context.Context, request DeleteRoleRequestObject, ) (DeleteRoleResponseObject, error)
DeleteRole deletes a role.
Endpoint: DELETE /role/{id}
func (Server) DeleteUser ¶
func (s Server) DeleteUser( _ context.Context, request DeleteUserRequestObject, ) (DeleteUserResponseObject, error)
DeleteUser deletes a user.
Endpoint: DELETE /user/{id}
func (Server) HintPermissions ¶
func (s Server) HintPermissions( _ context.Context, request HintPermissionsRequestObject, ) (HintPermissionsResponseObject, error)
HintPermissions returns a short list of permissions.
Endpoint: GET /q/permissions
func (Server) HintRoles ¶
func (s Server) HintRoles( _ context.Context, request HintRolesRequestObject, ) (HintRolesResponseObject, error)
HintRoles returns a short list of roles.
Endpoint: GET /q/roles
func (Server) HintUsers ¶
func (s Server) HintUsers( _ context.Context, request HintUsersRequestObject, ) (HintUsersResponseObject, error)
HintUsers returns a short list of users.
Endpoint: GET /q/users
func (Server) ListPermission ¶
func (s Server) ListPermission( ctx context.Context, request ListPermissionRequestObject, ) (ListPermissionResponseObject, error)
ListPermission lists permissions.
Endpoint: GET /permissions
func (Server) ListPersonalToken ¶
func (s Server) ListPersonalToken( ctx context.Context, _ ListPersonalTokenRequestObject, ) (ListPersonalTokenResponseObject, error)
ListPersonalToken lists personal tokens.
Endpoint: GET "/personal-tokens"
func (Server) ListRole ¶
func (s Server) ListRole( ctx context.Context, request ListRoleRequestObject, ) (ListRoleResponseObject, error)
ListRole lists roles.
Endpoint: GET /roles
func (Server) ListRolePermissions ¶
func (s Server) ListRolePermissions( ctx context.Context, request ListRolePermissionsRequestObject, ) (ListRolePermissionsResponseObject, error)
ListRolePermissions lists permissions of a role.
Endpoint: GET /role/{id}/permissions
func (Server) ListRoleUsers ¶
func (s Server) ListRoleUsers( ctx context.Context, request ListRoleUsersRequestObject, ) (ListRoleUsersResponseObject, error)
ListRoleUsers lists roles of a user
Endpoint: GET /role/{id}/users
func (Server) ListUser ¶
func (s Server) ListUser( ctx context.Context, request ListUserRequestObject, ) (ListUserResponseObject, error)
ListUser lists users.
Endpoint: GET /users
func (Server) ListUserRoles ¶
func (s Server) ListUserRoles( ctx context.Context, request ListUserRolesRequestObject, ) (ListUserRolesResponseObject, error)
ListUserRoles lists roles of a user
Endpoint: GET /user/{id}/roles
func (Server) Login ¶
func (s Server) Login( ctx context.Context, req LoginRequestObject, ) (LoginResponseObject, error)
Login authenticates the user and sets the access and refresh token cookie.
TODO login using personal token?
Endpoint: POST /login
func (Server) Logout ¶
func (s Server) Logout( ctx context.Context, _ LogoutRequestObject, ) (LogoutResponseObject, error)
Logout revokes the current access token and its corresponding refresh token. and clears the access and refresh token cookie.
Endpoint: POST /logout
func (Server) Ping ¶
func (s Server) Ping( _ context.Context, _ PingRequestObject, ) (PingResponseObject, error)
Ping checks whether the server is alive.
Endpoint: GET /ping
func (Server) ReadPermission ¶
func (s Server) ReadPermission( ctx context.Context, request ReadPermissionRequestObject, ) (ReadPermissionResponseObject, error)
ReadPermission reads a permission.
Endpoint: GET /permission/{id}
func (Server) ReadPersonalToken ¶
func (s Server) ReadPersonalToken( ctx context.Context, request ReadPersonalTokenRequestObject, ) (ReadPersonalTokenResponseObject, error)
ReadPersonalToken verifies the specified personal token and returns its user.
Endpoint: GET "/personal-token/{id}"
func (Server) ReadRole ¶
func (s Server) ReadRole( ctx context.Context, request ReadRoleRequestObject, ) (ReadRoleResponseObject, error)
ReadRole reads a role.
Endpoint: GET /role/{id}
func (Server) ReadUser ¶
func (s Server) ReadUser( ctx context.Context, request ReadUserRequestObject, ) (ReadUserResponseObject, error)
ReadUser reads a user.
Endpoint: GET /user/{id}
func (Server) RefreshAccessToken ¶
func (s Server) RefreshAccessToken( ctx context.Context, _ RefreshAccessTokenRequestObject, ) (RefreshAccessTokenResponseObject, error)
RefreshAccessToken refreshes the current access token.
Endpoint: POST /access-token/refresh
func (Server) RestoreUser ¶
func (s Server) RestoreUser( _ context.Context, request RestoreUserRequestObject, ) (RestoreUserResponseObject, error)
RestoreUser restores a user.
Endpoint: POST /user/{id}/restore
func (Server) RevokeAccessToken ¶
func (s Server) RevokeAccessToken( ctx context.Context, _ RevokeAccessTokenRequestObject, ) (RevokeAccessTokenResponseObject, error)
RevokeAccessToken revokes the current access token and its corresponding refresh token.
Endpoint: DELETE /access-token
func (Server) UpdatePermission ¶
func (s Server) UpdatePermission( ctx context.Context, request UpdatePermissionRequestObject, ) (UpdatePermissionResponseObject, error)
UpdatePermission updates a permission.
Endpoint: PATCH /permission/{id}
func (Server) UpdateRole ¶
func (s Server) UpdateRole( _ context.Context, request UpdateRoleRequestObject, ) (UpdateRoleResponseObject, error)
UpdateRole updates a role.
Endpoint: PATCH /role/{id}
func (Server) UpdateUser ¶
func (s Server) UpdateUser( ctx context.Context, request UpdateUserRequestObject, ) (UpdateUserResponseObject, error)
UpdateUser updates a user.
Endpoint: PATCH /user/{id}
type ServerInterface ¶
type ServerInterface interface { // Revoke current access token // (DELETE /access-token) RevokeAccessToken(c *gin.Context) // Validate current access token // (GET /access-token) CheckAccessToken(c *gin.Context) // Refresh current access token // (POST /access-token/refresh) RefreshAccessToken(c *gin.Context) // Login // (POST /login) Login(c *gin.Context) // Logout // (POST /logout) Logout(c *gin.Context) // Deletes a Permission by ID // (DELETE /permission/{id}) DeletePermission(c *gin.Context, id uint32) // Find a Permission by ID // (GET /permission/{id}) ReadPermission(c *gin.Context, id uint32, params ReadPermissionParams) // Updates a Permission // (PATCH /permission/{id}) UpdatePermission(c *gin.Context, id uint32) // List Permissions // (GET /permissions) ListPermission(c *gin.Context, params ListPermissionParams) // Create a new Permission // (POST /permissions) CreatePermission(c *gin.Context) // Deletes a PersonalToken by ID // (DELETE /personal-token/{id}) DeletePersonalToken(c *gin.Context, id uint64) // Find a PersonalToken by ID // (GET /personal-token/{id}) ReadPersonalToken(c *gin.Context, id uint64) // List PersonalTokens // (GET /personal-tokens) ListPersonalToken(c *gin.Context, params ListPersonalTokenParams) // Create a new PersonalToken // (POST /personal-tokens) CreatePersonalToken(c *gin.Context) // Ping // (GET /ping) Ping(c *gin.Context) // quick search permissions // (GET /q/permissions) HintPermissions(c *gin.Context, params HintPermissionsParams) // quick search roles // (GET /q/roles) HintRoles(c *gin.Context, params HintRolesParams) // quick search users // (GET /q/users) HintUsers(c *gin.Context, params HintUsersParams) // Deletes a Role by ID // (DELETE /role/{id}) DeleteRole(c *gin.Context, id uint32) // Find a Role by ID // (GET /role/{id}) ReadRole(c *gin.Context, id uint32) // Updates a Role // (PATCH /role/{id}) UpdateRole(c *gin.Context, id uint32) // List attached Permissions // (GET /role/{id}/permissions) ListRolePermissions(c *gin.Context, id uint32, params ListRolePermissionsParams) // Assign permissions to role // (POST /role/{id}/permissions) AssignPermissions(c *gin.Context, id uint32) // List attached Users // (GET /role/{id}/users) ListRoleUsers(c *gin.Context, id uint32, params ListRoleUsersParams) // List Roles // (GET /roles) ListRole(c *gin.Context, params ListRoleParams) // Create a new Role // (POST /roles) CreateRole(c *gin.Context) // Deletes a User by ID // (DELETE /user/{id}) DeleteUser(c *gin.Context, id uint64, params DeleteUserParams) // Find a User by ID // (GET /user/{id}) ReadUser(c *gin.Context, id uint64, params ReadUserParams) // Updates a User // (PATCH /user/{id}) UpdateUser(c *gin.Context, id uint64) // Restore a trashed record // (POST /user/{id}/restore) RestoreUser(c *gin.Context, id uint64) // List attached Roles // (GET /user/{id}/roles) ListUserRoles(c *gin.Context, id uint64, params ListUserRolesParams) // Assign roles to user // (POST /user/{id}/roles) AssignRoles(c *gin.Context, id uint64) // List Users // (GET /users) ListUser(c *gin.Context, params ListUserParams) // Create a new User // (POST /users) CreateUser(c *gin.Context) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AssignPermissions ¶
func (siw *ServerInterfaceWrapper) AssignPermissions(c *gin.Context)
AssignPermissions operation middleware
func (*ServerInterfaceWrapper) AssignRoles ¶
func (siw *ServerInterfaceWrapper) AssignRoles(c *gin.Context)
AssignRoles operation middleware
func (*ServerInterfaceWrapper) CheckAccessToken ¶
func (siw *ServerInterfaceWrapper) CheckAccessToken(c *gin.Context)
CheckAccessToken operation middleware
func (*ServerInterfaceWrapper) CreatePermission ¶
func (siw *ServerInterfaceWrapper) CreatePermission(c *gin.Context)
CreatePermission operation middleware
func (*ServerInterfaceWrapper) CreatePersonalToken ¶
func (siw *ServerInterfaceWrapper) CreatePersonalToken(c *gin.Context)
CreatePersonalToken operation middleware
func (*ServerInterfaceWrapper) CreateRole ¶
func (siw *ServerInterfaceWrapper) CreateRole(c *gin.Context)
CreateRole operation middleware
func (*ServerInterfaceWrapper) CreateUser ¶
func (siw *ServerInterfaceWrapper) CreateUser(c *gin.Context)
CreateUser operation middleware
func (*ServerInterfaceWrapper) DeletePermission ¶
func (siw *ServerInterfaceWrapper) DeletePermission(c *gin.Context)
DeletePermission operation middleware
func (*ServerInterfaceWrapper) DeletePersonalToken ¶
func (siw *ServerInterfaceWrapper) DeletePersonalToken(c *gin.Context)
DeletePersonalToken operation middleware
func (*ServerInterfaceWrapper) DeleteRole ¶
func (siw *ServerInterfaceWrapper) DeleteRole(c *gin.Context)
DeleteRole operation middleware
func (*ServerInterfaceWrapper) DeleteUser ¶
func (siw *ServerInterfaceWrapper) DeleteUser(c *gin.Context)
DeleteUser operation middleware
func (*ServerInterfaceWrapper) HintPermissions ¶
func (siw *ServerInterfaceWrapper) HintPermissions(c *gin.Context)
HintPermissions operation middleware
func (*ServerInterfaceWrapper) HintRoles ¶
func (siw *ServerInterfaceWrapper) HintRoles(c *gin.Context)
HintRoles operation middleware
func (*ServerInterfaceWrapper) HintUsers ¶
func (siw *ServerInterfaceWrapper) HintUsers(c *gin.Context)
HintUsers operation middleware
func (*ServerInterfaceWrapper) ListPermission ¶
func (siw *ServerInterfaceWrapper) ListPermission(c *gin.Context)
ListPermission operation middleware
func (*ServerInterfaceWrapper) ListPersonalToken ¶
func (siw *ServerInterfaceWrapper) ListPersonalToken(c *gin.Context)
ListPersonalToken operation middleware
func (*ServerInterfaceWrapper) ListRole ¶
func (siw *ServerInterfaceWrapper) ListRole(c *gin.Context)
ListRole operation middleware
func (*ServerInterfaceWrapper) ListRolePermissions ¶
func (siw *ServerInterfaceWrapper) ListRolePermissions(c *gin.Context)
ListRolePermissions operation middleware
func (*ServerInterfaceWrapper) ListRoleUsers ¶
func (siw *ServerInterfaceWrapper) ListRoleUsers(c *gin.Context)
ListRoleUsers operation middleware
func (*ServerInterfaceWrapper) ListUser ¶
func (siw *ServerInterfaceWrapper) ListUser(c *gin.Context)
ListUser operation middleware
func (*ServerInterfaceWrapper) ListUserRoles ¶
func (siw *ServerInterfaceWrapper) ListUserRoles(c *gin.Context)
ListUserRoles operation middleware
func (*ServerInterfaceWrapper) Login ¶
func (siw *ServerInterfaceWrapper) Login(c *gin.Context)
Login operation middleware
func (*ServerInterfaceWrapper) Logout ¶
func (siw *ServerInterfaceWrapper) Logout(c *gin.Context)
Logout operation middleware
func (*ServerInterfaceWrapper) Ping ¶
func (siw *ServerInterfaceWrapper) Ping(c *gin.Context)
Ping operation middleware
func (*ServerInterfaceWrapper) ReadPermission ¶
func (siw *ServerInterfaceWrapper) ReadPermission(c *gin.Context)
ReadPermission operation middleware
func (*ServerInterfaceWrapper) ReadPersonalToken ¶
func (siw *ServerInterfaceWrapper) ReadPersonalToken(c *gin.Context)
ReadPersonalToken operation middleware
func (*ServerInterfaceWrapper) ReadRole ¶
func (siw *ServerInterfaceWrapper) ReadRole(c *gin.Context)
ReadRole operation middleware
func (*ServerInterfaceWrapper) ReadUser ¶
func (siw *ServerInterfaceWrapper) ReadUser(c *gin.Context)
ReadUser operation middleware
func (*ServerInterfaceWrapper) RefreshAccessToken ¶
func (siw *ServerInterfaceWrapper) RefreshAccessToken(c *gin.Context)
RefreshAccessToken operation middleware
func (*ServerInterfaceWrapper) RestoreUser ¶
func (siw *ServerInterfaceWrapper) RestoreUser(c *gin.Context)
RestoreUser operation middleware
func (*ServerInterfaceWrapper) RevokeAccessToken ¶
func (siw *ServerInterfaceWrapper) RevokeAccessToken(c *gin.Context)
RevokeAccessToken operation middleware
func (*ServerInterfaceWrapper) UpdatePermission ¶
func (siw *ServerInterfaceWrapper) UpdatePermission(c *gin.Context)
UpdatePermission operation middleware
func (*ServerInterfaceWrapper) UpdateRole ¶
func (siw *ServerInterfaceWrapper) UpdateRole(c *gin.Context)
UpdateRole operation middleware
func (*ServerInterfaceWrapper) UpdateUser ¶
func (siw *ServerInterfaceWrapper) UpdateUser(c *gin.Context)
UpdateUser operation middleware
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictgin.StrictGinHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Revoke current access token // (DELETE /access-token) RevokeAccessToken(ctx context.Context, request RevokeAccessTokenRequestObject) (RevokeAccessTokenResponseObject, error) // Validate current access token // (GET /access-token) CheckAccessToken(ctx context.Context, request CheckAccessTokenRequestObject) (CheckAccessTokenResponseObject, error) // Refresh current access token // (POST /access-token/refresh) RefreshAccessToken(ctx context.Context, request RefreshAccessTokenRequestObject) (RefreshAccessTokenResponseObject, error) // Login // (POST /login) Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error) // Logout // (POST /logout) Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error) // Deletes a Permission by ID // (DELETE /permission/{id}) DeletePermission(ctx context.Context, request DeletePermissionRequestObject) (DeletePermissionResponseObject, error) // Find a Permission by ID // (GET /permission/{id}) ReadPermission(ctx context.Context, request ReadPermissionRequestObject) (ReadPermissionResponseObject, error) // Updates a Permission // (PATCH /permission/{id}) UpdatePermission(ctx context.Context, request UpdatePermissionRequestObject) (UpdatePermissionResponseObject, error) // List Permissions // (GET /permissions) ListPermission(ctx context.Context, request ListPermissionRequestObject) (ListPermissionResponseObject, error) // Create a new Permission // (POST /permissions) CreatePermission(ctx context.Context, request CreatePermissionRequestObject) (CreatePermissionResponseObject, error) // Deletes a PersonalToken by ID // (DELETE /personal-token/{id}) DeletePersonalToken(ctx context.Context, request DeletePersonalTokenRequestObject) (DeletePersonalTokenResponseObject, error) // Find a PersonalToken by ID // (GET /personal-token/{id}) ReadPersonalToken(ctx context.Context, request ReadPersonalTokenRequestObject) (ReadPersonalTokenResponseObject, error) // List PersonalTokens // (GET /personal-tokens) ListPersonalToken(ctx context.Context, request ListPersonalTokenRequestObject) (ListPersonalTokenResponseObject, error) // Create a new PersonalToken // (POST /personal-tokens) CreatePersonalToken(ctx context.Context, request CreatePersonalTokenRequestObject) (CreatePersonalTokenResponseObject, error) // Ping // (GET /ping) Ping(ctx context.Context, request PingRequestObject) (PingResponseObject, error) // quick search permissions // (GET /q/permissions) HintPermissions(ctx context.Context, request HintPermissionsRequestObject) (HintPermissionsResponseObject, error) // quick search roles // (GET /q/roles) HintRoles(ctx context.Context, request HintRolesRequestObject) (HintRolesResponseObject, error) // quick search users // (GET /q/users) HintUsers(ctx context.Context, request HintUsersRequestObject) (HintUsersResponseObject, error) // Deletes a Role by ID // (DELETE /role/{id}) DeleteRole(ctx context.Context, request DeleteRoleRequestObject) (DeleteRoleResponseObject, error) // Find a Role by ID // (GET /role/{id}) ReadRole(ctx context.Context, request ReadRoleRequestObject) (ReadRoleResponseObject, error) // Updates a Role // (PATCH /role/{id}) UpdateRole(ctx context.Context, request UpdateRoleRequestObject) (UpdateRoleResponseObject, error) // List attached Permissions // (GET /role/{id}/permissions) ListRolePermissions(ctx context.Context, request ListRolePermissionsRequestObject) (ListRolePermissionsResponseObject, error) // Assign permissions to role // (POST /role/{id}/permissions) AssignPermissions(ctx context.Context, request AssignPermissionsRequestObject) (AssignPermissionsResponseObject, error) // List attached Users // (GET /role/{id}/users) ListRoleUsers(ctx context.Context, request ListRoleUsersRequestObject) (ListRoleUsersResponseObject, error) // List Roles // (GET /roles) ListRole(ctx context.Context, request ListRoleRequestObject) (ListRoleResponseObject, error) // Create a new Role // (POST /roles) CreateRole(ctx context.Context, request CreateRoleRequestObject) (CreateRoleResponseObject, error) // Deletes a User by ID // (DELETE /user/{id}) DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error) // Find a User by ID // (GET /user/{id}) ReadUser(ctx context.Context, request ReadUserRequestObject) (ReadUserResponseObject, error) // Updates a User // (PATCH /user/{id}) UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error) // Restore a trashed record // (POST /user/{id}/restore) RestoreUser(ctx context.Context, request RestoreUserRequestObject) (RestoreUserResponseObject, error) // List attached Roles // (GET /user/{id}/roles) ListUserRoles(ctx context.Context, request ListUserRolesRequestObject) (ListUserRolesResponseObject, error) // Assign roles to user // (POST /user/{id}/roles) AssignRoles(ctx context.Context, request AssignRolesRequestObject) (AssignRolesResponseObject, error) // List Users // (GET /users) ListUser(ctx context.Context, request ListUserRequestObject) (ListUserResponseObject, error) // Create a new User // (POST /users) CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error) }
StrictServerInterface represents all server handlers.
type UpdatePermission200JSONResponse ¶
type UpdatePermission200JSONResponse PermissionUpdate
func (UpdatePermission200JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission200JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission400JSONResponse ¶
type UpdatePermission400JSONResponse struct{ N400JSONResponse }
func (UpdatePermission400JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission400JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission401JSONResponse ¶
type UpdatePermission401JSONResponse struct{ N401JSONResponse }
func (UpdatePermission401JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission401JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission403JSONResponse ¶
type UpdatePermission403JSONResponse struct{ N403JSONResponse }
func (UpdatePermission403JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission403JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission404JSONResponse ¶
type UpdatePermission404JSONResponse struct{ N404JSONResponse }
func (UpdatePermission404JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission404JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission409JSONResponse ¶
type UpdatePermission409JSONResponse struct{ N409JSONResponse }
func (UpdatePermission409JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission409JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission422JSONResponse ¶
type UpdatePermission422JSONResponse struct{ N422JSONResponse }
func (UpdatePermission422JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission422JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermission500JSONResponse ¶
type UpdatePermission500JSONResponse struct{ N500JSONResponse }
func (UpdatePermission500JSONResponse) VisitUpdatePermissionResponse ¶
func (response UpdatePermission500JSONResponse) VisitUpdatePermissionResponse(w http.ResponseWriter) error
type UpdatePermissionJSONBody ¶
type UpdatePermissionJSONBody struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` Roles *[]uint32 `json:"roles,omitempty"` }
UpdatePermissionJSONBody defines parameters for UpdatePermission.
type UpdatePermissionJSONRequestBody ¶
type UpdatePermissionJSONRequestBody UpdatePermissionJSONBody
UpdatePermissionJSONRequestBody defines body for UpdatePermission for application/json ContentType.
type UpdatePermissionRequestObject ¶
type UpdatePermissionRequestObject struct { Id uint32 `json:"id"` Body *UpdatePermissionJSONRequestBody }
type UpdatePermissionResponseObject ¶
type UpdatePermissionResponseObject interface {
VisitUpdatePermissionResponse(w http.ResponseWriter) error
}
type UpdateRole200JSONResponse ¶
type UpdateRole200JSONResponse RoleUpdate
func (UpdateRole200JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole200JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole400JSONResponse ¶
type UpdateRole400JSONResponse struct{ N400JSONResponse }
func (UpdateRole400JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole400JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole401JSONResponse ¶
type UpdateRole401JSONResponse struct{ N401JSONResponse }
func (UpdateRole401JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole401JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole403JSONResponse ¶
type UpdateRole403JSONResponse struct{ N403JSONResponse }
func (UpdateRole403JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole403JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole404JSONResponse ¶
type UpdateRole404JSONResponse struct{ N404JSONResponse }
func (UpdateRole404JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole404JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole409JSONResponse ¶
type UpdateRole409JSONResponse struct{ N409JSONResponse }
func (UpdateRole409JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole409JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole422JSONResponse ¶
type UpdateRole422JSONResponse struct{ N422JSONResponse }
func (UpdateRole422JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole422JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRole500JSONResponse ¶
type UpdateRole500JSONResponse struct{ N500JSONResponse }
func (UpdateRole500JSONResponse) VisitUpdateRoleResponse ¶
func (response UpdateRole500JSONResponse) VisitUpdateRoleResponse(w http.ResponseWriter) error
type UpdateRoleJSONBody ¶
type UpdateRoleJSONBody struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` Permissions *[]uint32 `json:"permissions,omitempty"` Users *[]uint64 `json:"users,omitempty"` }
UpdateRoleJSONBody defines parameters for UpdateRole.
type UpdateRoleJSONRequestBody ¶
type UpdateRoleJSONRequestBody UpdateRoleJSONBody
UpdateRoleJSONRequestBody defines body for UpdateRole for application/json ContentType.
type UpdateRoleRequestObject ¶
type UpdateRoleRequestObject struct { Id uint32 `json:"id"` Body *UpdateRoleJSONRequestBody }
type UpdateRoleResponseObject ¶
type UpdateRoleResponseObject interface {
VisitUpdateRoleResponse(w http.ResponseWriter) error
}
type UpdateUser200JSONResponse ¶
type UpdateUser200JSONResponse UserUpdate
func (UpdateUser200JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser200JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser400JSONResponse ¶
type UpdateUser400JSONResponse struct{ N400JSONResponse }
func (UpdateUser400JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser400JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser401JSONResponse ¶
type UpdateUser401JSONResponse struct{ N401JSONResponse }
func (UpdateUser401JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser401JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser403JSONResponse ¶
type UpdateUser403JSONResponse struct{ N403JSONResponse }
func (UpdateUser403JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser403JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser404JSONResponse ¶
type UpdateUser404JSONResponse struct{ N404JSONResponse }
func (UpdateUser404JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser404JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser409JSONResponse ¶
type UpdateUser409JSONResponse struct{ N409JSONResponse }
func (UpdateUser409JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser409JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser422JSONResponse ¶
type UpdateUser422JSONResponse struct{ N422JSONResponse }
func (UpdateUser422JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser422JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser500JSONResponse ¶
type UpdateUser500JSONResponse struct{ N500JSONResponse }
func (UpdateUser500JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser500JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUserJSONBody ¶
type UpdateUserJSONBody struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Roles *[]uint32 `json:"roles,omitempty"` }
UpdateUserJSONBody defines parameters for UpdateUser.
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody UpdateUserJSONBody
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserRequestObject ¶
type UpdateUserRequestObject struct { Id uint64 `json:"id"` Body *UpdateUserJSONRequestBody }
type UpdateUserResponseObject ¶
type UpdateUserResponseObject interface {
VisitUpdateUserResponse(w http.ResponseWriter) error
}
type User ¶
type User struct { AccessTokens *[]AccessToken `json:"access_tokens,omitempty"` Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Id uint64 `json:"id"` PersonalTokens *[]PersonalToken `json:"personal_tokens,omitempty"` RefreshTokens *[]AccessToken `json:"refresh_tokens,omitempty"` Roles *[]Role `json:"roles,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username string `json:"username"` }
User defines model for User.
type UserCreate ¶
type UserCreate struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Id uint64 `json:"id"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username string `json:"username"` }
UserCreate defines model for UserCreate.
type UserList ¶
type UserList struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Id uint64 `json:"id"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username string `json:"username"` }
UserList defines model for UserList.
type UserRead ¶
type UserRead struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` // DeletedAt Date and time when the record was deleted DeletedAt *time.Time `json:"deleted_at"` Email *openapi_types.Email `json:"email,omitempty"` Id uint64 `json:"id"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username string `json:"username"` }
UserRead defines model for UserRead.
type UserRolesList ¶
type UserRolesList struct { CreatedAt *time.Time `json:"created_at,omitempty"` Description *string `json:"description,omitempty"` Id uint32 `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
UserRolesList defines model for User_RolesList.
type UserUpdate ¶
type UserUpdate struct { Attr *struct { Dept uint32 `json:"dept"` Level uint8 `json:"level"` } `json:"attr,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *openapi_types.Email `json:"email,omitempty"` Id uint64 `json:"id"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username string `json:"username"` }
UserUpdate defines model for UserUpdate.
Source Files ¶
- assignpermissions.go
- assignroles.go
- checkaccesstoken.go
- config.go
- createpermission.go
- createpersonaltoken.go
- createrole.go
- createuser.go
- db.go
- deletepermission.go
- deletepersonaltoken.go
- deleterole.go
- deleteuser.go
- globals.go
- hintpermission.go
- hintrole.go
- hintuser.go
- listpermission.go
- listpersonaltoken.go
- listrole.go
- listrolepermissions.go
- listroleusers.go
- listuser.go
- listuserroles.go
- login.go
- logout.go
- middleware.go
- ping.go
- readpermission.go
- readpersonaltoken.go
- readrole.go
- readuser.go
- refreshaccesstoken.go
- restoreuser.go
- revokeaccesstoken.go
- server.go
- services.gen.go
- token.go
- types.gen.go
- types.go
- updatepermission.go
- updaterole.go
- updateuser.go