example

package
v0.0.0-...-73f8a9c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 10 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 {
	ExcelApi
	CustomerApi
}

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 {object} response.Response{msg=string} "创建客户" @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 {object} response.Response{msg=string} "删除客户" @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 {object} response.Response{data=exampleRes.ExaCustomerResponse,msg=string} "获取单一客户信息,返回包括客户详情" @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 {object} response.Response{data=response.PageResult,msg=string} "分页获取权限客户列表,返回包括列表,总数,页码,每页数量" @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 {object} response.Response{msg=string} "更新客户信息" @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 {object} response.Response{msg=string} "导入Excel文件" @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 {object} response.Response{data=response.PageResult,msg=string} "加载Excel数据,返回包括列表,总数,页码,每页数量" @Router /excel/loadExcel [get]

Jump to

Keyboard shortcuts

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