Documentation
¶
Index ¶
- type Dictionary
- func (a *Dictionary) Create(ctx context.Context, formItem *schema.DictionaryForm) (*schema.Dictionary, error)
- func (a *Dictionary) Delete(ctx context.Context, id string) error
- func (a *Dictionary) Get(ctx context.Context, id string) (*schema.Dictionary, error)
- func (a *Dictionary) Query(ctx context.Context, params schema.DictionaryQueryParam) (*schema.DictionaryQueryResult, error)
- func (a *Dictionary) Update(ctx context.Context, id string, formItem *schema.DictionaryForm) error
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
type Dictionary struct { Trans *util.Trans DictionaryDAL *dal.Dictionary }
Dictionaries management
func (*Dictionary) Create ¶
func (a *Dictionary) Create(ctx context.Context, formItem *schema.DictionaryForm) (*schema.Dictionary, error)
Create a new dictionary in the data access object.
func (*Dictionary) Delete ¶
func (a *Dictionary) Delete(ctx context.Context, id string) error
Delete the specified dictionary from the data access object.
func (*Dictionary) Get ¶
func (a *Dictionary) Get(ctx context.Context, id string) (*schema.Dictionary, error)
Get the specified dictionary from the data access object.
func (*Dictionary) Query ¶
func (a *Dictionary) Query(ctx context.Context, params schema.DictionaryQueryParam) (*schema.DictionaryQueryResult, error)
Query dictionaries from the data access object based on the provided parameters and options.
func (*Dictionary) Update ¶
func (a *Dictionary) Update(ctx context.Context, id string, formItem *schema.DictionaryForm) error
Update the specified dictionary in the data access object.
Click to show internal directories.
Click to hide internal directories.