dto
This commit is contained in:
parent
052c90373d
commit
2d965d53ac
1 changed files with 16 additions and 0 deletions
16
internal/merch/dto.go
Normal file
16
internal/merch/dto.go
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
package merch
|
||||||
|
|
||||||
|
type newOriginDTO struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
|
type originsDTO struct {
|
||||||
|
Origins []originItem `json:"origins"`
|
||||||
|
}
|
||||||
|
type originItem struct {
|
||||||
|
Id uint `json:"id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type deleteOriginDTO struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue