implement graphQL and init postgres
This commit is contained in:
@@ -42,7 +42,7 @@ type PermissionInfo struct {
|
||||
Active bool `json:"active"`
|
||||
System bool `json:"system"`
|
||||
RoleCount int64 `json:"roleCount"`
|
||||
DateCreated string `json:"dateCreated"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
|
||||
// BeforeCreate is called before creating a permission
|
||||
@@ -132,7 +132,7 @@ func (p *Permission) ToPermissionInfo() PermissionInfo {
|
||||
Category: p.Category,
|
||||
Active: p.Active,
|
||||
System: p.System,
|
||||
DateCreated: p.DateCreated.Format("2006-01-02T15:04:05Z"),
|
||||
CreatedAt: p.CreatedAt.Format("2006-01-02T15:04:05Z07:00"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user