43 lines
530 B
Go
43 lines
530 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Audit struct {
|
|
Id int
|
|
UserId int
|
|
Message string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type AuditResponse struct {
|
|
TotalCount int
|
|
Items []Audit
|
|
}
|
|
|
|
type AuditPageRequest struct {
|
|
LimitOffestParams
|
|
|
|
Order *OrderParams
|
|
Query *AuditQuery
|
|
}
|
|
|
|
type AuditQuery struct {
|
|
Id *int
|
|
UserId *int
|
|
Message *string
|
|
CreatedAt *DateFromToParams
|
|
}
|
|
|
|
type SetAuditEvent struct {
|
|
Event string
|
|
Enabled bool
|
|
}
|
|
|
|
type AuditEvent struct {
|
|
Event string
|
|
Name string
|
|
Enabled bool
|
|
}
|