package viewmodel import ( "git.aiterp.net/AiteRP/aitestory/model" "git.aiterp.net/gisle/wrouter/auth" ) type PageForm struct { Base Page model.Page Categories []model.PageCategory Operation string Error string TagInput string } func (pf *PageForm) Setup(user *auth.User) { pf.setupBase(user, "Create") pf.Categories = model.PageCategories pf.Page.Defaults() }