admingetclass

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

Documentation

Index

Constants

View Source
const (
	CoddClassNotFound data.CodeType = -3
)

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewClassEmptyJsonData

func NewClassEmptyJsonData() data.Data

func NewJsonData

func NewJsonData(cls *model.Class) data.Data

Types

type Class

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

func NewClassEmptyData

func NewClassEmptyData() Class

func NewData

func NewData(cls *model.Class) Class

type Query

type Query struct {
	ID uint `json:"ID"`
}

Jump to

Keyboard shortcuts

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