func PermissionWithId(id string) PermissionModel {
	idInt, _ := strconv.Atoi(id)
	return PermissionModel{Base: Base{TableName: "goadmin_permissions"}, Id: int64(idInt)}
}
PermissionWithId return a default permission model of given id.
package models
import (
	"strconv"
	"strings"
	"github.com/GoAdminGroup/go-admin/modules/db"
)
type PermissionModel struct {
	Base
	Id         int64
	Name       string
	Slug       string
	HttpMethod []string
	HttpPath   []string
	CreatedAt  string
	UpdatedAt  string
}
func Permission() PermissionModel {
	return PermissionModel{Base: Base{TableName: "goadmin_permissions"}}
}