Versions in this module Expand all Collapse all v1 v1.0.0 Jul 8, 2023 Changes in this version + type StringController struct + Interactor StringInteractor + Logger logging.Logger + func (s *StringController) CreateOne(c *gin.Context) + func (s *StringController) DeleteById(c *gin.Context) + func (s *StringController) FindAll(c *gin.Context) + func (s *StringController) RegisterRoutes(router *gin.RouterGroup) + func (s *StringController) UpdateName(c *gin.Context) + func (s *StringController) UpdateOrder(c *gin.Context) + type StringInteractor interface + CreateOne func(core.String) (core.String, error) + DeleteById func(id uuid.UUID) error + FindAll func() ([]core.String, error) + FindAllByThread func(threadId uuid.UUID) ([]core.String, error) + UpdateName func(stringId uuid.UUID, name string) error + UpdateOrder func(stringOrders []core.StringOrder) error + type StringOrderDTO struct + Id string + Order int + type StringRepository struct + DB api.PgxConn + Logger logging.Logger + func (s *StringRepository) CreateOne(coreString core.String) (core.String, error) + func (s *StringRepository) DeleteAllByThread(threadId uuid.UUID) error + func (s *StringRepository) DeleteById(id uuid.UUID) error + func (s *StringRepository) FindAll() ([]core.String, error) + func (s *StringRepository) FindAllByThread(threadId uuid.UUID) ([]core.String, error) + func (s *StringRepository) UpdateName(stringId uuid.UUID, name string) error + func (s *StringRepository) UpdateOrder(stringOrders []core.StringOrder) error