Documentation
¶
Index ¶
- type Space
- func (a *Space) Create(ctx context.Context, formItem *schema.SpaceForm) (*schema.Space, error)
- func (a *Space) Delete(ctx context.Context, id string) error
- func (a *Space) EnsureDefault(ctx context.Context) error
- func (a *Space) Get(ctx context.Context, id string) (*schema.Space, error)
- func (a *Space) Query(ctx context.Context, params schema.SpaceQueryParam) (*schema.SpaceQueryResult, error)
- func (a *Space) Update(ctx context.Context, id string, formItem *schema.SpaceForm) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Space ¶
Space business logic layer
func (*Space) EnsureDefault ¶
EnsureDefault creates the built-in "default" space if it does not exist. Safe to call on every startup (idempotent).
func (*Space) Query ¶
func (a *Space) Query(ctx context.Context, params schema.SpaceQueryParam) (*schema.SpaceQueryResult, error)
Query spaces from the data access object based on the provided parameters.
Click to show internal directories.
Click to hide internal directories.