2026-01-15 13:51:44 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
// Permission 权限模型
|
|
|
|
|
type Permission struct {
|
2026-01-16 13:01:21 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Resource string `json:"resource"`
|
|
|
|
|
Action string `json:"action"`
|
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
|
|
|
DeletedAt int64 `json:"deletedAt"`
|
2026-01-15 13:51:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PermissionResponse 权限响应模型
|
|
|
|
|
type PermissionResponse struct {
|
|
|
|
|
ID uint `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Resource string `json:"resource"`
|
|
|
|
|
Action string `json:"action"`
|
|
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
|
|
UpdatedAt string `json:"updatedAt"`
|
|
|
|
|
}
|