Documentation ¶
Index ¶
- Constants
- func ImageHandle(request *http.Request) (string, error)
- func Init(dbClient *gorm.DB)
- type Catalog
- type CatalogApi
- func (catalogApi *CatalogApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
- func (catalogApi *CatalogApi) CreateCatalog(ctx *gin.Context)
- func (catalogApi *CatalogApi) Delete(catalogId uint64) error
- func (catalogApi *CatalogApi) DeleteCatalog(ctx *gin.Context)
- func (catalogApi *CatalogApi) Get(catalogId uint64) (Catalog, error)
- func (catalogApi *CatalogApi) GetCatalog(ctx *gin.Context)
- func (catalogApi *CatalogApi) List() ([]Catalog, error)
- func (catalogApi *CatalogApi) ListCatalog(ctx *gin.Context)
- func (catalogApi *CatalogApi) Save(catalog *Catalog) error
- func (catalogApi *CatalogApi) Update(catalog *Catalog) error
- func (catalogApi *CatalogApi) UpdateCatalog(ctx *gin.Context)
Constants ¶
View Source
const ( //Catalog CodeCatalogGetCatalogError = "404-15031" CodeCatalogListCatalogError = "503-15032" CodeCatalogInvalidUser = "401-15033" CodeCatalogInvalidCatalogId = "400-15034" CodeCatalogInvalidParam = "400-15035" CodeCatalogInvalidIcon = "400-15036" CodeCatalogDeleteFailed = "503-15037" CodeCatalogForbiddenOperation = "403-15038" CodeCatalogUpdateFailed = "503-15039" CodeCatalogCreateFailed = "503-15040" )
View Source
const ( CATALOG_SYSTEM_DEFAULT = 0 CATALOG_USER_CUSTOM = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CatalogApi ¶
func (*CatalogApi) ApiRegister ¶
func (catalogApi *CatalogApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
func (*CatalogApi) CreateCatalog ¶
func (catalogApi *CatalogApi) CreateCatalog(ctx *gin.Context)
func (*CatalogApi) Delete ¶
func (catalogApi *CatalogApi) Delete(catalogId uint64) error
func (*CatalogApi) DeleteCatalog ¶
func (catalogApi *CatalogApi) DeleteCatalog(ctx *gin.Context)
func (*CatalogApi) GetCatalog ¶
func (catalogApi *CatalogApi) GetCatalog(ctx *gin.Context)
func (*CatalogApi) List ¶
func (catalogApi *CatalogApi) List() ([]Catalog, error)
func (*CatalogApi) ListCatalog ¶
func (catalogApi *CatalogApi) ListCatalog(ctx *gin.Context)
func (*CatalogApi) Save ¶
func (catalogApi *CatalogApi) Save(catalog *Catalog) error
func (*CatalogApi) Update ¶
func (catalogApi *CatalogApi) Update(catalog *Catalog) error
func (*CatalogApi) UpdateCatalog ¶
func (catalogApi *CatalogApi) UpdateCatalog(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.