Browse Source

Fix role model

Rufus Deponian 3 years ago
parent
commit
2e419412c6
1 changed files with 7 additions and 7 deletions
  1. 7 7
      api12/role.go

+ 7 - 7
api12/role.go

@@ -5,14 +5,14 @@ import (
 	"github.com/xaionaro-go/extime"
 )
 
-//reform:role_cache
+//reform:permissions
 type Role struct {
-	Id             int          `reform:"id" json:"id" view:"readonly"`
-	DateOfCreation *extime.Date `reform:"doc" json:"doc" view:"readonly"`
-	PersonId       int          `reform:"subject_person_id" json:"subject_person_id" view:"readonly"`
-	ServiceName    string       `reform:"service_name" json:"service_name" view:"readonly"`
-	RoleName       string       `reform:"permission_name" json:"permission_name" view:"readonly"`
-	Extra          string       `reform:"value" json:"value" view:"readonly"`
+	Id          int          `reform:"id" json:"id" view:"readonly"`
+	CreatedAt   *extime.Date `reform:"doc" json:"doc" view:"readonly"`
+	PersonId    int          `reform:"subject_person_id" json:"subject_person_id" view:"readonly"`
+	ServiceName string       `reform:"service_name" json:"service_name" view:"readonly"`
+	RoleName    string       `reform:"permission_name" json:"permission_name" view:"readonly"`
+	Extra       string       `reform:"value" json:"value" view:"readonly"`
 }
 
 type Roles []Role