Initial commit
This commit is contained in:
commit
c0cb826917
63 changed files with 2069 additions and 0 deletions
5
internal/application/commands/create_image_command.go
Normal file
5
internal/application/commands/create_image_command.go
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package commands
|
||||
|
||||
type CreateImageCommand struct {
|
||||
Path string
|
||||
}
|
||||
10
internal/application/commands/create_post_command.go
Normal file
10
internal/application/commands/create_post_command.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type CreatePostCommand struct {
|
||||
UserId uuid.UUID
|
||||
Title string
|
||||
Description string
|
||||
Content string
|
||||
}
|
||||
8
internal/application/commands/create_posts_command.go
Normal file
8
internal/application/commands/create_posts_command.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type CreatePostsCommand struct {
|
||||
PostId uuid.UUID
|
||||
UserId uuid.UUID
|
||||
}
|
||||
6
internal/application/commands/create_user_command.go
Normal file
6
internal/application/commands/create_user_command.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package commands
|
||||
|
||||
type CreateUserCommand struct {
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
7
internal/application/commands/delete_image_command.go
Normal file
7
internal/application/commands/delete_image_command.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type DeleteImageCommand struct {
|
||||
Id uuid.UUID
|
||||
}
|
||||
7
internal/application/commands/delete_post_command.go
Normal file
7
internal/application/commands/delete_post_command.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type DeletePostCommand struct {
|
||||
Id uuid.UUID
|
||||
}
|
||||
7
internal/application/commands/delete_posts_command.go
Normal file
7
internal/application/commands/delete_posts_command.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type DeletePostsCommand struct {
|
||||
Id uuid.UUID
|
||||
}
|
||||
7
internal/application/commands/delete_user_command.go
Normal file
7
internal/application/commands/delete_user_command.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type DeleteUserCommand struct {
|
||||
Id uuid.UUID
|
||||
}
|
||||
10
internal/application/commands/update_post_command.go
Normal file
10
internal/application/commands/update_post_command.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type UpdatePostCommand struct {
|
||||
Id uuid.UUID
|
||||
Title string
|
||||
Description string
|
||||
Content string
|
||||
}
|
||||
9
internal/application/commands/update_user_command.go
Normal file
9
internal/application/commands/update_user_command.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package commands
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type UpdateUserCommand struct {
|
||||
Id uuid.UUID
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue