MM-51321 Refactor audit log application. (#22481)
* Refactor audit log application. * Fix incorrect API Usage for Auditing * Fixups. * Rename Object audit to Auditable. Some small fixes. --------- Co-authored-by: Daniel Schalla <daniel@schalla.me>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9a38a52392
Коммит
7804debb7f
@@ -68,10 +68,24 @@ type SchemePatch struct {
|
||||
Description *string `json:"description"`
|
||||
}
|
||||
|
||||
func (scheme *SchemePatch) Auditable() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"name": scheme.Name,
|
||||
"display_name": scheme.DisplayName,
|
||||
"description": scheme.Description,
|
||||
}
|
||||
}
|
||||
|
||||
type SchemeIDPatch struct {
|
||||
SchemeID *string `json:"scheme_id"`
|
||||
}
|
||||
|
||||
func (p *SchemeIDPatch) Auditable() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"scheme_id": p.SchemeID,
|
||||
}
|
||||
}
|
||||
|
||||
// SchemeConveyor is used for importing and exporting a Scheme and its associated Roles.
|
||||
type SchemeConveyor struct {
|
||||
Name string `json:"name"`
|
||||
|
||||
Ссылка в новой задаче
Block a user