repository

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentTemplateRepository

type ContentTemplateRepository struct {
	*gorm.DB `inject:"database"`
}

func (*ContentTemplateRepository) CreateContentTemplate

func (r *ContentTemplateRepository) CreateContentTemplate(template *domain.ContentTemplate) (*domain.ContentTemplate, error)

func (*ContentTemplateRepository) DeleteById

func (r *ContentTemplateRepository) DeleteById(id string) error

func (*ContentTemplateRepository) FindAll

func (r *ContentTemplateRepository) FindAll(conds map[string]interface{}, pageable query.Pageable) (count int64, result []*domain.ContentTemplate, err error)

func (*ContentTemplateRepository) GetAll

func (r *ContentTemplateRepository) GetAll(conds map[string]interface{}) (result []*domain.ContentTemplate, err error)

func (*ContentTemplateRepository) GetById

func (*ContentTemplateRepository) GetByTypeAndSceneAndTenantId

func (r *ContentTemplateRepository) GetByTypeAndSceneAndTenantId(typeName, scene, tenantId string) (*domain.ContentTemplate, error)

func (*ContentTemplateRepository) PatchContentTemplate

func (r *ContentTemplateRepository) PatchContentTemplate(id string, data map[string]interface{}) (result *domain.ContentTemplate, err error)

func (*ContentTemplateRepository) UpdateContentTemplate

func (r *ContentTemplateRepository) UpdateContentTemplate(template *domain.ContentTemplate) (*domain.ContentTemplate, error)

type EventRepository

type EventRepository struct {
	*gorm.DB `inject:"database"`
}

func (*EventRepository) Check

func (r *EventRepository) Check(conds map[string]interface{}) (*domain.Event, error)

func (*EventRepository) CreateEvent

func (r *EventRepository) CreateEvent(event *domain.Event) (*domain.Event, error)

func (*EventRepository) DeleteById

func (r *EventRepository) DeleteById(id int64) error

func (*EventRepository) DeleteEvent

func (r *EventRepository) DeleteEvent(event *domain.Event) error

func (*EventRepository) Find

func (r *EventRepository) Find(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.Event, error)

func (*EventRepository) GetById

func (r *EventRepository) GetById(id int64) (*domain.Event, error)

func (*EventRepository) HistoryEvents

func (r *EventRepository) HistoryEvents()

func (*EventRepository) PatchEvent

func (r *EventRepository) PatchEvent(id int64, data map[string]interface{}) (*domain.Event, error)

type LocaleFieldRepository

type LocaleFieldRepository struct {
	*gorm.DB `inject:"database"`
}

func (*LocaleFieldRepository) GetEntityAll

func (r *LocaleFieldRepository) GetEntityAll(entityName string, entityId string) []*domain.LocaleField

func (*LocaleFieldRepository) GetEntityFieldAll

func (r *LocaleFieldRepository) GetEntityFieldAll(entityName string, entityId string, field string) []*domain.LocaleField

func (*LocaleFieldRepository) GetLocaleAll

func (r *LocaleFieldRepository) GetLocaleAll(locale string, entityName string, entityIds ...string) []*domain.LocaleField

func (*LocaleFieldRepository) SaveAll

func (r *LocaleFieldRepository) SaveAll(entities []*domain.LocaleField) []*domain.LocaleField

type MessageAccessLogRepository added in v0.0.38

type MessageAccessLogRepository struct {
	*gorm.DB `inject:"database"`
}

func (*MessageAccessLogRepository) AccessMessage added in v0.0.38

func (r *MessageAccessLogRepository) AccessMessage(userId, action string, message *domain.Message)

type MessageRepository

type MessageRepository struct {
	*gorm.DB `inject:"database"`
}

func (*MessageRepository) CreateMessage

func (r *MessageRepository) CreateMessage(message *domain.Message) (*domain.Message, error)

func (*MessageRepository) DeleteById

func (r *MessageRepository) DeleteById(id int64) error

func (*MessageRepository) DeleteMessage

func (r *MessageRepository) DeleteMessage(message *domain.Message) error

func (*MessageRepository) Find

func (r *MessageRepository) Find(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.Message, error)

func (*MessageRepository) FindAvailable

func (r *MessageRepository) FindAvailable(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.Message, error)

func (*MessageRepository) FindSimples

func (r *MessageRepository) FindSimples(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.SimpleMessage, error)

func (*MessageRepository) FindSimplesAvailable

func (r *MessageRepository) FindSimplesAvailable(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.SimpleMessage, error)

func (*MessageRepository) GetById

func (r *MessageRepository) GetById(id int64) (*domain.Message, error)

func (*MessageRepository) HistoryMessages

func (r *MessageRepository) HistoryMessages()

func (*MessageRepository) PatchMessage

func (r *MessageRepository) PatchMessage(id int64, data map[string]interface{}) (*domain.Message, error)

func (*MessageRepository) UpdateMessage added in v0.0.38

func (r *MessageRepository) UpdateMessage(message *domain.Message) (*domain.Message, error)

func (*MessageRepository) ValidateMessages

func (r *MessageRepository) ValidateMessages()

type OperationLogRepository

type OperationLogRepository struct {
	*gorm.DB `inject:"database"`
}

func (*OperationLogRepository) Append

func (*OperationLogRepository) Find

func (r *OperationLogRepository) Find(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.OperationLog, error)

type SysOptionRepository

type SysOptionRepository struct {
	*gorm.DB `inject:"database"`
}

func (*SysOptionRepository) GetDefaultOptions

func (r *SysOptionRepository) GetDefaultOptions() (*domain.SysOptions, error)

func (*SysOptionRepository) GetSystemOptions

func (r *SysOptionRepository) GetSystemOptions() (*domain.SysOptions, error)

func (*SysOptionRepository) GetTenantOptions

func (r *SysOptionRepository) GetTenantOptions(tenantId string) (*domain.SysOptions, error)

func (*SysOptionRepository) RemoveAllTenantOptions

func (r *SysOptionRepository) RemoveAllTenantOptions(tenantId string) error

type UserOptionRepository

type UserOptionRepository struct {
	*gorm.DB `inject:"database"`
}

func (*UserOptionRepository) GetUserOptions

func (r *UserOptionRepository) GetUserOptions(userId string) (*domain.UserOptions, error)

func (*UserOptionRepository) RemoveAllUserOptions

func (r *UserOptionRepository) RemoveAllUserOptions(userId string) error

Jump to

Keyboard shortcuts

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