controller

package
v0.1.0-beta.27 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

Auth 鉴权

func Courses

func Courses(c *gin.Context)

Courses 获取这个平台的所有课程名称

func CreateQuestion

func CreateQuestion(c *gin.Context)

CreateQuestion 创建题目

func CreateUser

func CreateUser(c *gin.Context)

CreateUser 创建用户

func DeleteQuestion

func DeleteQuestion(c *gin.Context)

DeleteQuestion 删除题目

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser 删除用户

func GetQuestions

func GetQuestions(c *gin.Context)

GetQuestions 获取题库

func LogList

func LogList(c *gin.Context)

LogList - 日志列表

func Parser

func Parser(c *gin.Context)

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

func Plat

func Plat(c *gin.Context)

Plat -

func Proxy

func Proxy(c *gin.Context)

Proxy -

func Search(c *gin.Context)

Search 搜题接口

func UpdateQuestions

func UpdateQuestions(c *gin.Context)

UpdateQuestions 更新题库

func UploadFile

func UploadFile(c *gin.Context)

UploadFile -

func UserInfo

func UserInfo(c *gin.Context)

UserInfo 获取用户信息

func UserList

func UserList(c *gin.Context)

UserList 自己开通的用户的列表

func UserLogin

func UserLogin(c *gin.Context)

UserLogin 用户登录

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"`
	CourseName          string `json:"courseName" form:"courseName"`

	Type int32 `json:"type" form:"type"`
	Plat int32 `json:"plat" form:"plat"`
}

SearchValue 搜索参数

Jump to

Keyboard shortcuts

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