Files
d3m0k1d.ru/backend/internal/storage/models.go
d3m0k1d 01b6ab746e
Some checks failed
Backend ci / build (push) Has been cancelled
chore: Add logic for put and get by id handler
2026-02-04 12:14:35 +03:00

20 lines
375 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 {
ID int `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
}
type PostCreate struct {
Title string `json:"title"`
Content string `json:"content"`
}