Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocEndpoint ¶ added in v0.0.13
func DocEndpoint(config config.Config, control Controller, router *gin.Engine)
func ImportTypesEndpoints ¶
func ImportTypesEndpoints(config config.Config, control Controller, router *gin.Engine)
Types ¶
type Controller ¶
type Controller interface {
ReadImportType(id string, token jwt.Token) (result model.ImportType, err error, errCode int)
ListImportTypes(token jwt.Token, options model.ImportTypeListOptions) (result []model.ImportType, total int64, err error, errCode int)
CreateImportType(importType model.ImportType, token jwt.Token) (result model.ImportType, err error, code int)
SetImportType(importType model.ImportType, token jwt.Token) (err error, code int)
DeleteImportType(id string, token jwt.Token) (err error, errCode int)
}
type ErrorResponse ¶ added in v0.0.13
type ErrorResponse string
Click to show internal directories.
Click to hide internal directories.