contentType

package
v0.0.0-...-1911959 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ContentTypeExample

type ContentTypeExample struct {
	Name        string `json:"name"`
	Id          string `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

type ContentTypeRepository

type ContentTypeRepository interface {
	Create(int, string, string) (string, error)
	DeleteById(int, string) error
	UpdateColName(int, string, string, string) error
	AddCol(int, string, string) error
	DeleteCol(int, string, string) error
	// contains filtered or unexported methods
}

type ContentTypeRepositoryDb

type ContentTypeRepositoryDb struct {
	// contains filtered or unexported fields
}

func NewContentTypeRepositoryDb

func NewContentTypeRepositoryDb(gormDb *gorm.DB, sqlDB *sql.DB, auth *authority.Authority) ContentTypeRepositoryDb

func (ContentTypeRepositoryDb) AddCol

func (r ContentTypeRepositoryDb) AddCol(intUserId int, contentTypeId, col string) error

func (ContentTypeRepositoryDb) Create

func (r ContentTypeRepositoryDb) Create(intUserId int, n, cols string) (string, error)

func (ContentTypeRepositoryDb) DeleteById

func (r ContentTypeRepositoryDb) DeleteById(intUserId int, contentTypeId string) error

func (ContentTypeRepositoryDb) DeleteCol

func (r ContentTypeRepositoryDb) DeleteCol(intUserId int, contentTypeId, col string) error

func (ContentTypeRepositoryDb) UpdateColName

func (r ContentTypeRepositoryDb) UpdateColName(intUserId int, contentTypeId, oldName, newName string) error

Jump to

Keyboard shortcuts

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