Saner file names

This commit is contained in:
Simon Martens
2024-12-21 11:15:03 +01:00
parent 977d7331d5
commit ff3ed74b5e
14 changed files with 19 additions and 23 deletions

16
viewmodels/piece_view.go Normal file
View File

@@ -0,0 +1,16 @@
package viewmodels
import (
"github.com/Theodor-Springmann-Stiftung/kgpz_web/providers/xmlprovider"
)
type PieceViewModel struct {
*xmlprovider.Piece
// TODO: this is a bit hacky, but it refences the page number of the piece in the issue
Von int
Bis int
}
func NewPieceView(p *xmlprovider.Piece) (PieceViewModel, error) {
return PieceViewModel{Piece: p}, nil
}