responses

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryDuplicateResponse

type CategoryDuplicateResponse struct {
	Response string `example:"category with this title already exists"`
}

type CategoryExistsResponse

type CategoryExistsResponse struct {
	Response string `example:"this category already exists"`
}

type CategoryNotFoundResponse

type CategoryNotFoundResponse struct {
	Response string `example:"category not found"`
}

type CategoryResponse

type CategoryResponse models.Category

type CommentNotFoundResponse

type CommentNotFoundResponse struct {
	Response string `example:"comment not found"`
}

type CommentResponse

type CommentResponse models.Comments

type CreateProductImagesResponse

type CreateProductImagesResponse struct {
	Response string `example:"Created Successfully"`
}

type DeleteRecordResponse

type DeleteRecordResponse struct{}

type InterServerErrorResponse

type InterServerErrorResponse struct {
	Response string `example:"Internal server error"`
}

type LoginOKResponse

type LoginOKResponse struct {
	Response string `example:"Success, otp was sent"`
}

type OtpExpiredResponse

type OtpExpiredResponse struct {
	Response string `example:"otp expired"`
}

type OtpIncorrectResponse

type OtpIncorrectResponse struct {
	Response string `example:"code is incorrect"`
}

type OwnerCantLikeCommentResponse

type OwnerCantLikeCommentResponse struct {
	Response string `example:"owner can't like"`
}

type PermissionAdminAllowedResponse

type PermissionAdminAllowedResponse struct {
	Response string `example:"permission not allowed, just admin user can perform this action"`
}

type PermissionNotAllowedResponse

type PermissionNotAllowedResponse struct {
	Response string `example:"permission not allowed, you can not perform this action"`
}

type ProductExistsResponse

type ProductExistsResponse struct {
	Response string `example:"this product already exists"`
}

type ProductNOTExistsResponse

type ProductNOTExistsResponse struct {
	Response string `example:"product not found"`
}

type ProductResponse

type ProductResponse models.Products

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Response string `` /* 166-byte string literal not displayed */
}

type RegisterOKResponse

type RegisterOKResponse struct {
	Response string `example:"Success, otp was sent"`
}

type SendOtpOkResponse

type SendOtpOkResponse struct {
	Response string `example:"otp was sent"`
}

type Success

type Success struct {
	Response string `example:"Success"`
}

type Token

type Token struct {
	Access  string `json:"access-token"`
	Refresh string `json:"refresh-token"`
}

type UserNotFoundResponse

type UserNotFoundResponse struct {
	Response string `example:"user not found"`
}

type UserResponse

type UserResponse models.Users

type VerifyOTPResponse

type VerifyOTPResponse struct {
	Response Token
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL