role.go 644 B

12345678910111213141516171819
  1. //go:generate reform --gofmt=false .
  2. package api12Models
  3. import (
  4. "github.com/xaionaro-go/extime"
  5. )
  6. //reform:permissions
  7. type Role struct {
  8. Id int `reform:"id" json:"id" view:"readonly"`
  9. CreatedAt *extime.Date `reform:"doc" json:"doc" view:"readonly"`
  10. PersonId int `reform:"subject_person_id" json:"subject_person_id" view:"readonly"`
  11. ServiceName string `reform:"service_name" json:"service_name" view:"readonly"`
  12. RoleName string `reform:"permission_name" json:"permission_name" view:"readonly"`
  13. Extra string `reform:"value" json:"value" view:"readonly"`
  14. }
  15. type Roles []Role