Files
d3m0k1d.ru/backend/internal/storage/models.go
d3m0k1d 9b9d45e0a6
All checks were successful
Backend ci / build (push) Successful in 7m43s
chore: coded post req for create posts on db
2026-02-03 23:21:01 +03:00

19 lines
347 B
Go

package storage
type Post struct {
ID int `db:"id"`
Title string `db:"title"`
Content string `db:"content"`
CreatedAt string `db:"created_at"`
}
type PostReq struct {
Title string `json:"title"`
Content string `json:"content"`
}
type PostCreate struct {
Title string `json:"title"`
Content string `json:"content"`
}