Initial commit
This commit is contained in:
commit
c0cb826917
63 changed files with 2069 additions and 0 deletions
8
internal/application/common/image_result.go
Normal file
8
internal/application/common/image_result.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package common
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type ImageResult struct {
|
||||
Id uuid.UUID
|
||||
Path string
|
||||
}
|
||||
21
internal/application/common/post_result.go
Normal file
21
internal/application/common/post_result.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type PostResult struct {
|
||||
Id uuid.UUID
|
||||
UserId uuid.UUID
|
||||
Title string
|
||||
Description string
|
||||
Content string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type PostResultList struct {
|
||||
Result []*PostResult
|
||||
}
|
||||
13
internal/application/common/posts_result.go
Normal file
13
internal/application/common/posts_result.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package common
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type PostsResult struct {
|
||||
Id uuid.UUID
|
||||
UserId uuid.UUID
|
||||
PostId uuid.UUID
|
||||
}
|
||||
|
||||
type PostsResultList struct {
|
||||
Result []*PostsResult
|
||||
}
|
||||
13
internal/application/common/user_result.go
Normal file
13
internal/application/common/user_result.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package common
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type UserResult struct {
|
||||
Id uuid.UUID
|
||||
UserName string
|
||||
Password string
|
||||
}
|
||||
|
||||
type UserResultList struct {
|
||||
Result []*UserResult
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue