controller

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateQuestion

func CreateQuestion(c *gin.Context)

CreateQuestion 创建题目

func DeleteQuestion

func DeleteQuestion(c *gin.Context)

DeleteQuestion 删除题目

func GetQuestions

func GetQuestions(c *gin.Context)

GetQuestions 获取题库

func Parser

func Parser(c *gin.Context)

Parser 解析文件接口 支持解析docx和xlsx

func Search(c *gin.Context)

Search 搜题接口

func UpdateQuestions

func UpdateQuestions(c *gin.Context)

UpdateQuestions 更新题库

Types

type Page

type Page struct {
	PageNo   int            `json:"pageNo" form:"pageNo"`
	PageSize int            `json:"pageSize" form:"pageSize"`
	Total    int64          `json:"total" form:"total"`
	Items    []*entity.Tiku `json:"items" form:"items"`
}

Page 分页

Jump to

Keyboard shortcuts

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