d32c3d0fa8
modelHelper for getting value from request and apply it to a Form Getting value from a Form and apply to a Model
8 lignes
218 o
Go
8 lignes
218 o
Go
package model
|
|
|
|
// Role is a role model for user permission.
|
|
type Role struct {
|
|
Id uint `json:"id"`
|
|
Name string `json:"name",sql:"size:255"`
|
|
Description string `json:"description",sql:"size:255"`
|
|
}
|