unitgrp

package
v0.0.0-...-c2300e3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppNewUnit

type AppNewUnit struct {
	Name    string `json:"name" validate:"required"`
	BlockID string `json:"blockID" validate:"required"`
	FloorID string `json:"floorID" validate:"required"`
}

func (AppNewUnit) Validate

func (r AppNewUnit) Validate() error

type AppUnit

type AppUnit struct {
	ID         string `json:"id"`
	PropertyID string `json:"propertyID"`
	BlockID    string `json:"blockID"`
	FloorID    string `json:"floorID"`
	Name       string `json:"name"`
	Status     string `json:"status"`
	CreatedAt  string `json:"createdAt"`
	UpdatedAt  string `json:"updatedAt"`
}

type AppUpdateUnit

type AppUpdateUnit struct {
	Name *string `json:"name"`
}

func (AppUpdateUnit) Validate

func (r AppUpdateUnit) Validate() error

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func New

func New(unit *unit.Core) *Handlers

func (*Handlers) Create

func (h *Handlers) Create(ctx context.Context, w http.ResponseWriter, r *http.Request) error

func (*Handlers) Delete

func (h *Handlers) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request) error

func (*Handlers) Update

func (h *Handlers) Update(ctx context.Context, w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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