handlers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSubjectExistence

func CheckSubjectExistence(externalURL string) error

func GetRecentSubjects

func GetRecentSubjects() (map[string][]models.SubjectSummary, error)

func GetSearchResult

func GetSearchResult(query string, page int, pageSize int) ([]models.SubjectSummary, int64, error)

func GetStatusCounts

func GetStatusCounts(subjectType string) (models.StatusCounts, error)

func GetSubject

func GetSubject(uuidStr string) (models.Subject, error)

func GetSubjectsByType

func GetSubjectsByType(subjectType string, status int, page int, pageSize int) ([]models.SubjectSummary, error)

func ManageDelSubject

func ManageDelSubject(uuidStr, subjectType string) error

func ManageSubject

func ManageSubject(w http.ResponseWriter, r *http.Request, uuidStr string) (string, error)

处理新增和编辑

Types

This section is empty.

Jump to

Keyboard shortcuts

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