Versions in this module Expand all Collapse all v1 v1.0.6 Oct 31, 2016 Changes in this version + const CodeCatalogCreateFailed + const CodeCatalogDeleteFailed + const CodeCatalogUpdateFailed v1.0.5 Sep 28, 2016 Changes in this version + const CATALOG_SYSTEM_DEFAULT + const CATALOG_USER_CUSTOM + const CodeCatalogCreateFaild + const CodeCatalogDeleteFaild + const CodeCatalogForbiddenOperation + const CodeCatalogGetCatalogError + const CodeCatalogInvalidCatalogId + const CodeCatalogInvalidIcon + const CodeCatalogInvalidParam + const CodeCatalogInvalidUser + const CodeCatalogListCatalogError + const CodeCatalogUpdateFaild + func ImageHandle(request *http.Request) (string, error) + func Init(dbClient *gorm.DB) + type Catalog struct + AccountId uint64 + Bundle string + Description string + ID uint64 + IconData string + Name string + Type uint8 + type CatalogApi struct + CatalogPath string + DbClient *gorm.DB + 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)