switch to pgx driver + create merch

This commit is contained in:
nquidox 2026-03-04 17:02:11 +03:00
parent 546fe13107
commit 97f8d27430
13 changed files with 289 additions and 69 deletions

View file

@ -1,5 +1,6 @@
package merch
// Origins
type newOriginDTO struct {
Name string `json:"name"`
}
@ -7,10 +8,21 @@ type originsDTO struct {
Origins []originItem `json:"origins"`
}
type originItem struct {
Id uint `json:"id"`
Id int64 `json:"id"`
Name string `json:"name"`
}
type deleteOriginDTO struct {
Name string `json:"name"`
}
// Merch
type newMerchDTO struct {
Name string `json:"name"`
Links []originLink `json:"links"`
}
type originLink struct {
Name string `json:"origin_name"`
Link string `json:"origin_link"`
}