controller

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 23 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 Proxy

func Proxy(c *gin.Context)

Proxy -

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 分页

type SearchValue

type SearchValue struct {
	PageNo              int    `json:"pageNo" form:"pageNo"`
	PageSize            int    `json:"pageSize" form:"pageSize"`
	Source              int32  `json:"source" form:"source"`
	Extra               string `json:"extra" form:"extra"`
	OnlyShowEmptyAnswer bool   `json:"onlyShowEmptyAnswer" form:"onlyShowEmptyAnswer"`
	Question            string `json:"question" form:"question"`
}

SearchValue 搜索参数

Jump to

Keyboard shortcuts

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