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,8 @@
package common
import "github.com/google/uuid"
type ImageResult struct {
Id uuid.UUID
Path string
}

View 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
}

View 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
}

View 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
}