getclasslst

package
v0.0.0-...-d881dfa Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ClassListLimit = 100

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewJsonData

func NewJsonData(list []model.Class) data.Data

Types

type Class

type Class struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

type Data

type Data struct {
	List  []Class `json:"list"`
	Total int     `json:"total"`
}

func NewData

func NewData(list []model.Class) Data

Jump to

Keyboard shortcuts

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