usermngmt/model/permission_response.go

26 lines
502 B
Go
Raw Permalink Normal View History

2021-11-10 09:06:33 +00:00
package model
import (
"time"
)
// Permission ...
type Permission struct {
ID string `json:"_id"`
Name string `json:"name"`
Code string `json:"code"`
RoleID string `json:"roleId"`
Desc string `json:"desc"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type (
// PermissionAll ...
PermissionAll struct {
List []Permission `json:"list"`
Total int64 `json:"total"`
2021-11-16 10:47:54 +00:00
Limit int64 `json:"limit"`
2021-11-10 09:06:33 +00:00
}
)