example

package
v0.0.0-...-37838c1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiGroup

type ApiGroup struct {
	CustomerApi
	ExcelApi
	FileUploadAndDownloadApi
}

type CustomerApi

type CustomerApi struct {
}

func (*CustomerApi) CreateExaCustomer

func (e *CustomerApi) CreateExaCustomer(c *gin.Context)

@Tags ExaCustomer @Summary 创建客户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body example.ExaCustomer true "客户用户名, 客户手机号码" @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}" @Router /customer/customer [post]

func (*CustomerApi) DeleteExaCustomer

func (e *CustomerApi) DeleteExaCustomer(c *gin.Context)

@Tags ExaCustomer @Summary 删除客户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body example.ExaCustomer true "客户ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /customer/customer [delete]

func (*CustomerApi) GetExaCustomer

func (e *CustomerApi) GetExaCustomer(c *gin.Context)

@Tags ExaCustomer @Summary 获取单一客户信息 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query example.ExaCustomer true "客户ID" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /customer/customer [get]

func (*CustomerApi) GetExaCustomerList

func (e *CustomerApi) GetExaCustomerList(c *gin.Context)

@Tags ExaCustomer @Summary 分页获取权限客户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.PageInfo true "页码, 每页大小" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /customer/customerList [get]

func (*CustomerApi) UpdateExaCustomer

func (e *CustomerApi) UpdateExaCustomer(c *gin.Context)

@Tags ExaCustomer @Summary 更新客户信息 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body example.ExaCustomer true "客户ID, 客户信息" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /customer/customer [put]

type ExcelApi

type ExcelApi struct {
}

func (*ExcelApi) DownloadTemplate

func (e *ExcelApi) DownloadTemplate(c *gin.Context)

@Tags excel @Summary 下载模板 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param fileName query string true "模板名称" @Success 200 @Router /excel/downloadTemplate [get]

func (*ExcelApi) ExportExcel

func (e *ExcelApi) ExportExcel(c *gin.Context)

@Tags excel @Summary 导出Excel @Security ApiKeyAuth @accept application/json @Produce application/octet-stream @Param data body example.ExcelInfo true "导出Excel文件信息" @Success 200 @Router /excel/exportExcel [post]

func (*ExcelApi) ImportExcel

func (e *ExcelApi) ImportExcel(c *gin.Context)

@Tags excel @Summary 导入Excel文件 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param file formData file true "导入Excel文件" @Success 200 {string} string "{"success":true,"data":{},"msg":"导入成功"}" @Router /excel/importExcel [post]

func (*ExcelApi) LoadExcel

func (e *ExcelApi) LoadExcel(c *gin.Context)

@Tags excel @Summary 加载Excel数据 @Security ApiKeyAuth @Produce application/json @Success 200 {string} string "{"success":true,"data":{},"msg":"加载数据成功"}" @Router /excel/loadExcel [get]

type FileUploadAndDownloadApi

type FileUploadAndDownloadApi struct {
}

func (*FileUploadAndDownloadApi) BreakpointContinue

func (u *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 断点续传到服务器 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param file formData file true "an example for breakpoint resume, 断点续传示例" @Success 200 {string} string "{"success":true,"data":{},"msg":"切片创建成功"}" @Router /fileUploadAndDownload/breakpointContinue [post]

func (*FileUploadAndDownloadApi) BreakpointContinueFinish

func (b *FileUploadAndDownloadApi) BreakpointContinueFinish(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 创建文件 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param file formData file true "上传文件完成" @Success 200 {string} string "{"success":true,"data":{},"msg":"file uploaded, 文件创建成功"}" @Router /fileUploadAndDownload/findFile [post]

func (*FileUploadAndDownloadApi) DeleteFile

func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 删除文件 @Security ApiKeyAuth @Produce application/json @Param data body example.ExaFileUploadAndDownload true "传入文件里面id即可" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /fileUploadAndDownload/deleteFile [post]

func (*FileUploadAndDownloadApi) FindFile

func (u *FileUploadAndDownloadApi) FindFile(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 查找文件 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param file formData file true "Find the file, 查找文件" @Success 200 {string} string "{"success":true,"data":{},"msg":"查找成功"}" @Router /fileUploadAndDownload/findFile [post]

func (*FileUploadAndDownloadApi) GetFileList

func (u *FileUploadAndDownloadApi) GetFileList(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 分页文件列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.PageInfo true "页码, 每页大小" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /fileUploadAndDownload/getFileList [post]

func (*FileUploadAndDownloadApi) RemoveChunk

func (u *FileUploadAndDownloadApi) RemoveChunk(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 删除切片 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param file formData file true "删除缓存切片" @Success 200 {string} string "{"success":true,"data":{},"msg":"缓存切片删除成功"}" @Router /fileUploadAndDownload/removeChunk [post]

func (*FileUploadAndDownloadApi) UploadFile

func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context)

@Tags ExaFileUploadAndDownload @Summary 上传文件示例 @Security ApiKeyAuth @accept multipart/form-data @Produce application/json @Param file formData file true "上传文件示例" @Success 200 {string} string "{"success":true,"data":{},"msg":"上传成功"}" @Router /fileUploadAndDownload/upload [post]

Jump to

Keyboard shortcuts

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