feat: add audit and app log services
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
type AuditLogFilter struct {
|
||||
Actor string `json:"actor"`
|
||||
Action string `json:"action"`
|
||||
TargetType string `json:"targetType"`
|
||||
Limit int `json:"limit"`
|
||||
Offset int `json:"offset"`
|
||||
}
|
||||
|
||||
type AppLog struct {
|
||||
ID int64 `json:"id"`
|
||||
Level string `json:"level"`
|
||||
Module string `json:"module"`
|
||||
Message string `json:"message"`
|
||||
Detail string `json:"detail"`
|
||||
CreatedAt string `json:"createdAt"`
|
||||
}
|
||||
|
||||
type AppLogFilter struct {
|
||||
Level string `json:"level"`
|
||||
Module string `json:"module"`
|
||||
Limit int `json:"limit"`
|
||||
Offset int `json:"offset"`
|
||||
}
|
||||
Reference in New Issue
Block a user