contracts/base/res_role.go

12 lines
277 B
Go
Raw Normal View History

2023-04-12 16:56:55 +08:00
package base
type ResRole struct {
2023-04-21 17:36:35 +08:00
Uuid string `db:"uuid"`
2023-04-12 16:56:55 +08:00
ResUuid string `db:"resource_uuid"`
RoleUuid string `db:"role_uuid"`
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
}
2023-04-12 19:50:25 +08:00
type GetResRoles func(uuid string, roles ...string) []ResRole