This commit is contained in:
2026-08-17 02:39:40 +08:00
parent 6a05803e08
commit d09e6b42bd
16 changed files with 74 additions and 19 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ type Announcement struct {
UpdatedAt time.Time
Title string
Content string
UserID *uint
UserID *int
Attachments json.RawMessage
}
+2 -2
View File
@@ -100,10 +100,10 @@ type AuditRecordRepo interface {
type AuditQueryRepo interface {
ListOperations(context.Context, int, int, *OperationRecord) ([]*OperationRecord, int64, error)
FindOperation(context.Context, uint) (*OperationRecord, error)
DeleteOperations(context.Context, []uint) error
DeleteOperations(context.Context, []int) error
ListLogins(context.Context, int, int, *LoginLog) ([]*LoginLog, int64, error)
FindLogin(context.Context, uint) (*LoginLog, error)
DeleteLogins(context.Context, []uint) error
DeleteLogins(context.Context, []int) error
ListDataAccess(context.Context, int, int, *DataAccessLog) ([]*DataAccessLog, int64, error)
DeleteDataAccess(context.Context, []uint) error
UpdateError(context.Context, *ErrorRecord) error