controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCodeResp

func ErrorCodeResp(c *gin.Context, code int, err error)

func ErrorResp

func ErrorResp(c *gin.Context, err error)

func Events

func Events(c *gin.Context)

func SetRouter

func SetRouter(g *gin.Engine)

func SucceedResp

func SucceedResp(c *gin.Context, data any)

Types

type ApiData

type ApiData struct {
	Code int    `json:"code"`
	Data any    `json:"data"`
	Msg  string `json:"msg"`
}

type ApiListData

type ApiListData struct {
	List  any   `json:"list"`
	Total int64 `json:"total"`
}

type Event

type Event struct {
	Id               string `json:"id"`
	Title            string `json:"title"`
	Start            string `json:"start"`
	End              string `json:"end"`
	AllDay           bool   `json:"allDay,omitempty"`
	Editable         bool   `json:"editable,omitempty"`
	StartEditable    bool   `json:"startEditable,omitempty"`
	DurationEditable bool   `json:"durationEditable,omitempty"`
	BackgroundColor  string `json:"backgroundColor,omitempty"`
	TextColor        string `json:"textColor,omitempty"`
}

Jump to

Keyboard shortcuts

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