Initial commit

This commit is contained in:
KamilM1205 2025-09-16 13:26:27 +04:00
commit c0cb826917
63 changed files with 2069 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package commands
type CreateImageCommand struct {
Path string
}

View file

@ -0,0 +1,10 @@
package commands
import "github.com/google/uuid"
type CreatePostCommand struct {
UserId uuid.UUID
Title string
Description string
Content string
}

View file

@ -0,0 +1,8 @@
package commands
import "github.com/google/uuid"
type CreatePostsCommand struct {
PostId uuid.UUID
UserId uuid.UUID
}

View file

@ -0,0 +1,6 @@
package commands
type CreateUserCommand struct {
Username string
Password string
}

View file

@ -0,0 +1,7 @@
package commands
import "github.com/google/uuid"
type DeleteImageCommand struct {
Id uuid.UUID
}

View file

@ -0,0 +1,7 @@
package commands
import "github.com/google/uuid"
type DeletePostCommand struct {
Id uuid.UUID
}

View file

@ -0,0 +1,7 @@
package commands
import "github.com/google/uuid"
type DeletePostsCommand struct {
Id uuid.UUID
}

View file

@ -0,0 +1,7 @@
package commands
import "github.com/google/uuid"
type DeleteUserCommand struct {
Id uuid.UUID
}

View file

@ -0,0 +1,10 @@
package commands
import "github.com/google/uuid"
type UpdatePostCommand struct {
Id uuid.UUID
Title string
Description string
Content string
}

View file

@ -0,0 +1,9 @@
package commands
import "github.com/google/uuid"
type UpdateUserCommand struct {
Id uuid.UUID
Username string
Password string
}