Documentation ¶
Index ¶
- type ContentTemplateRepository
- func (r *ContentTemplateRepository) CreateContentTemplate(template *domain.ContentTemplate) (*domain.ContentTemplate, error)
- func (r *ContentTemplateRepository) DeleteById(id string) error
- func (r *ContentTemplateRepository) FindAll(conds map[string]interface{}, pageable query.Pageable) (count int64, result []*domain.ContentTemplate, err error)
- func (r *ContentTemplateRepository) GetAll(conds map[string]interface{}) (result []*domain.ContentTemplate, err error)
- func (r *ContentTemplateRepository) GetById(id string) (*domain.ContentTemplate, error)
- func (r *ContentTemplateRepository) GetByTypeAndSceneAndTenantId(typeName, scene, tenantId string) (*domain.ContentTemplate, error)
- func (r *ContentTemplateRepository) PatchContentTemplate(id string, data map[string]interface{}) (result *domain.ContentTemplate, err error)
- func (r *ContentTemplateRepository) UpdateContentTemplate(template *domain.ContentTemplate) (*domain.ContentTemplate, error)
- type EventRepository
- func (r *EventRepository) Check(conds map[string]interface{}) (*domain.Event, error)
- func (r *EventRepository) CreateEvent(event *domain.Event) (*domain.Event, error)
- func (r *EventRepository) DeleteById(id int64) error
- func (r *EventRepository) DeleteEvent(event *domain.Event) error
- func (r *EventRepository) Find(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.Event, error)
- func (r *EventRepository) GetById(id int64) (*domain.Event, error)
- func (r *EventRepository) HistoryEvents()
- func (r *EventRepository) PatchEvent(id int64, data map[string]interface{}) (*domain.Event, error)
- type LocaleFieldRepository
- func (r *LocaleFieldRepository) GetEntityAll(entityName string, entityId string) []*domain.LocaleField
- func (r *LocaleFieldRepository) GetEntityFieldAll(entityName string, entityId string, field string) []*domain.LocaleField
- func (r *LocaleFieldRepository) GetLocaleAll(locale string, entityName string, entityIds ...string) []*domain.LocaleField
- func (r *LocaleFieldRepository) SaveAll(entities []*domain.LocaleField) []*domain.LocaleField
- type MessageAccessLogRepository
- type MessageRepository
- func (r *MessageRepository) CreateMessage(message *domain.Message) (*domain.Message, error)
- func (r *MessageRepository) DeleteById(id int64) error
- func (r *MessageRepository) DeleteMessage(message *domain.Message) error
- func (r *MessageRepository) Find(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.Message, error)
- func (r *MessageRepository) FindAvailable(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.Message, error)
- func (r *MessageRepository) FindSimples(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.SimpleMessage, error)
- func (r *MessageRepository) FindSimplesAvailable(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.SimpleMessage, error)
- func (r *MessageRepository) GetById(id int64) (*domain.Message, error)
- func (r *MessageRepository) HistoryMessages()
- func (r *MessageRepository) PatchMessage(id int64, data map[string]interface{}) (*domain.Message, error)
- func (r *MessageRepository) UpdateMessage(message *domain.Message) (*domain.Message, error)
- func (r *MessageRepository) ValidateMessages()
- type OperationLogRepository
- type SysOptionRepository
- func (r *SysOptionRepository) GetDefaultOptions() (*domain.SysOptions, error)
- func (r *SysOptionRepository) GetSystemOptions() (*domain.SysOptions, error)
- func (r *SysOptionRepository) GetTenantOptions(tenantId string) (*domain.SysOptions, error)
- func (r *SysOptionRepository) RemoveAllTenantOptions(tenantId string) error
- type UserOptionRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentTemplateRepository ¶
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 (r *ContentTemplateRepository) GetById(id string) (*domain.ContentTemplate, error)
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 ¶
func (*EventRepository) Check ¶
func (r *EventRepository) Check(conds map[string]interface{}) (*domain.Event, error)
func (*EventRepository) CreateEvent ¶
func (*EventRepository) DeleteById ¶
func (r *EventRepository) DeleteById(id int64) error
func (*EventRepository) DeleteEvent ¶
func (r *EventRepository) DeleteEvent(event *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 ¶
type LocaleFieldRepository ¶
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
func (*MessageAccessLogRepository) AccessMessage ¶ added in v0.0.38
func (r *MessageAccessLogRepository) AccessMessage(userId, action string, message *domain.Message)
type MessageRepository ¶
func (*MessageRepository) CreateMessage ¶
func (*MessageRepository) DeleteById ¶
func (r *MessageRepository) DeleteById(id int64) error
func (*MessageRepository) DeleteMessage ¶
func (r *MessageRepository) DeleteMessage(message *domain.Message) error
func (*MessageRepository) FindAvailable ¶
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 (*MessageRepository) UpdateMessage ¶ added in v0.0.38
func (*MessageRepository) ValidateMessages ¶
func (r *MessageRepository) ValidateMessages()
type OperationLogRepository ¶
func (*OperationLogRepository) Append ¶
func (r *OperationLogRepository) Append(log *domain.OperationLog) error
func (*OperationLogRepository) Find ¶
func (r *OperationLogRepository) Find(conds map[string]interface{}, pageable query.Pageable) (int64, []*domain.OperationLog, error)
type SysOptionRepository ¶
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 ¶
func (*UserOptionRepository) GetUserOptions ¶
func (r *UserOptionRepository) GetUserOptions(userId string) (*domain.UserOptions, error)
func (*UserOptionRepository) RemoveAllUserOptions ¶
func (r *UserOptionRepository) RemoveAllUserOptions(userId string) error
Click to show internal directories.
Click to hide internal directories.