divisiongrp

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: 8 Imported by: 0

Documentation

Overview

Package divisiongrp ...

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidID = errors.New("invalid id")
)

Set of error variables for handling group errors.

Functions

This section is empty.

Types

type AppDivision

type AppDivision struct {
	ID       int    `json:"id"`
	ParentID int    `json:"parentID"`
	Level    uint8  `json:"level"`
	Name     string `json:"name"`
}

type Handlers

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

Handlers manages the set of user endpoints.

func New

func New(division *division.Core) *Handlers

New constructs a handlers for route access.

func (*Handlers) QueryByParentID

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

func (*Handlers) QueryProvinces

func (h *Handlers) QueryProvinces(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