summaryrefslogtreecommitdiff
path: root/pkg/domain/user.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 11:00:53 -0600
committermo khan <mo@mokhan.ca>2025-04-25 11:00:53 -0600
commit0053db0d265af313dd281db5cf1e73236cde30c6 (patch)
tree2ec76a6d42fc903aaa1d0e135addd95d1fd945e4 /pkg/domain/user.go
parent33981e04bebe39c16d3bbb3af84c8772b00102fd (diff)
refactor: move domain package into app
Diffstat (limited to 'pkg/domain/user.go')
-rw-r--r--pkg/domain/user.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/pkg/domain/user.go b/pkg/domain/user.go
deleted file mode 100644
index aae17f6..0000000
--- a/pkg/domain/user.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package domain
-
-type User struct {
- ID ID `json:"id" jsonapi:"primary,users"`
- Username string `json:"username" jsonapi:"attr,username"`
- Email string `json:"email" jsonapi:"attr,email"`
- ProfileURL string `json:"profile" jsonapi:"attr,profile"`
- Picture string `json:"picture" jsonapi:"attr,picture"`
-}
-
-func NewUser() *User {
- return &User{}
-}
-
-func (u *User) GetID() ID {
- return u.ID
-}
-
-func (u *User) SetID(id ID) error {
- u.ID = id
- return nil
-}
-
-func (u *User) Validate() error {
- return nil
-}
-
-func (self *User) Sparkle(sparklee string, reason string) *Sparkle {
- return &Sparkle{
- Sparklee: sparklee,
- Author: self,
- Reason: reason,
- }
-}