admingetclasslst

package
v0.0.0-...-64e5d5b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPageSize = 20

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewJsonData

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

Types

type Class

type Class struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
	Show bool   `json:"show"`
	Down bool   `json:"down"`
}

type Data

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

func NewData

func NewData(list []model.Class, maxcount int) Data

type Query

type Query struct {
	Page     int `form:"page"`
	PageSize int `form:"pagesize"`
}

Jump to

Keyboard shortcuts

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