request

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileCreateRequest

type ProfileCreateRequest struct {
	Login string `json:"login" binding:"required"`
	Name  string `json:"name" binding:"required"`
}

type ProfileRequest

type ProfileRequest[CreateInput service.ProfileCreateInput, UpdateInput service.ProfileUpdateInput, UpdateProfileInput service.ProfileUpdateProfileInput] struct {
}

func NewProfileRequest

func NewProfileRequest[CreateInput service.ProfileCreateInput, UpdateInput service.ProfileUpdateInput, UpdateProfileInput service.ProfileUpdateProfileInput]() *ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]

func (ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]) CreateRequest

func (r ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]) CreateRequest(c *gin.Context) (*CreateInput, error)

func (ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]) UpdateProfileRequest

func (r ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]) UpdateProfileRequest(c *gin.Context) (*UpdateProfileInput, error)

func (ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]) UpdateRequest

func (r ProfileRequest[CreateInput, UpdateInput, UpdateProfileInput]) UpdateRequest(c *gin.Context) (*UpdateInput, error)

type ProfileUpdateProfileInput

type ProfileUpdateProfileInput struct {
	Login *string `json:"login" binding:"omitempty"`
	Name  *string `json:"name" binding:"omitempty"`
}

type ProfileUpdateRequest

type ProfileUpdateRequest struct {
	Login *string `json:"login" binding:"omitempty"`
	Name  *string `json:"name" binding:"omitempty"`
}

Jump to

Keyboard shortcuts

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