model

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Error string `json:"error"`
}

type PingPongResponse

type PingPongResponse struct {
	Message string `json:"message" example:"pong"`
}

type UserPatchRequest

type UserPatchRequest struct {
	ID string `json:"-" param:"id" validate:"required"`
	// User Full Name
	Name string `json:"name" validate:"required"`
	// User Status
	Status string `json:"status" validate:"required,oneof=active inactive"`
}

type UserRequest

type UserRequest struct {
	ID string `json:"id" validate:"required"`
}

type UserResponse

type UserResponse struct {
	ID     string `json:"user_id"`
	Status string `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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