notice

package
v0.0.0-...-2ad7833 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID                    = 0
	UIDOrAll              = 1
	UIDOrGIDOrAll         = 2
	UIDOrGIDOrNOCAllOrAll = 3
	NOCAll                = 4
	Important             = 10
	Fault                 = 11
	Info                  = 12
	UpdateAll             = 150
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	UserID    []uint  `json:"user_id"`
	GroupID   []uint  `json:"group_id"`
	NOCID     []uint  `json:"noc_id"`
	Everyone  *bool   `json:"everyone"`
	StartTime string  `json:"start_time"`
	EndTime   *string `json:"end_time"`
	Important *bool   `json:"important"`
	Fault     *bool   `json:"fault"`
	Info      *bool   `json:"info"`
	Title     string  `json:"title"`
	Body      string  `json:"body"`
}

type Notice

type Notice struct {
	ID        uint   `json:"ID"`
	UserID    uint   `json:"user_id"`
	GroupID   uint   `json:"group_id"`
	NOCID     uint   `json:"noc_id"`
	Everyone  bool   `json:"everyone"`
	StartTime string `json:"start_time"`
	EndTime   string `json:"end_time"`
	Important bool   `json:"important"`
	Fault     bool   `json:"fault"`
	Info      bool   `json:"info"`
	Title     string `json:"title"`
	Data      string `json:"data" gorm:"size:65535"`
}

type Result

type Result struct {
	Notice []Notice `json:"notice"`
}

type ResultAdmin

type ResultAdmin struct {
	Notice []core.Notice `json:"notice"`
}

type ResultDatabase

type ResultDatabase struct {
	Err    error
	Notice []core.Notice
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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