switch to pgx driver + create merch
This commit is contained in:
parent
546fe13107
commit
97f8d27430
13 changed files with 289 additions and 69 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue