0e7890a465
Run gofmt -w across the backend, normalising the manually-aligned := blocks to the gofmt standard. No code behaviour changes. Add Prettier (+ prettier-plugin-svelte) to the frontend with the SvelteKit default config (tabs, single quotes) so formatting is reproducible, then run it over the whole tree. Add format / format:check npm scripts and a .prettierignore (build output, generated schema.ts, static assets). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
396 B
Go
20 lines
396 B
Go
package domain
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
// ObjectType is a reference entity (file, tag, category, pool).
|
|
type ObjectType struct {
|
|
ID int16
|
|
Name string
|
|
}
|
|
|
|
// Permission represents a per-object access entry for a user.
|
|
type Permission struct {
|
|
UserID int16
|
|
UserName string // denormalized
|
|
ObjectTypeID int16
|
|
ObjectID uuid.UUID
|
|
CanView bool
|
|
CanEdit bool
|
|
}
|