commiting the changes did yesterday about the qr data insertion
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
mod "expenses/expenses/models"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func storeFromForm(c *gin.Context) (*mod.Store, error) {
|
||||
name := c.PostForm("store-name")
|
||||
nif := c.PostForm("store-nif")
|
||||
|
||||
store := mod.Store{
|
||||
StoreName: name,
|
||||
StoreNIF: nif,
|
||||
}
|
||||
|
||||
return &store, nil
|
||||
}
|
||||
Reference in New Issue
Block a user