package base type ResRole struct { Uuid string `db:"uuid"` ResUuid string `db:"resource_uuid"` RoleUuid string `db:"role_uuid"` UpdatedAt string `db:"updated_at"` CreatedAt string `db:"created_at"` } type GetResRoles func(uuid string, roles ...string) []ResRole