优化
This commit is contained in:
@@ -13,7 +13,7 @@ type AnnouncementInput struct {
|
||||
ID uint
|
||||
Title string
|
||||
Content string
|
||||
UserID *uint
|
||||
UserID *int
|
||||
Attachments json.RawMessage
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ func (s *AuditService) Operation(ctx context.Context, id uint) (*dto.OperationRe
|
||||
}
|
||||
return opDTO(v), nil
|
||||
}
|
||||
func (s *AuditService) DeleteOperations(ctx context.Context, ids []uint) error {
|
||||
func (s *AuditService) DeleteOperations(ctx context.Context, ids []int) error {
|
||||
return s.uc.DeleteOperations(ctx, ids)
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ func (s *AuditService) Login(ctx context.Context, id uint) (*dto.LoginLogRespons
|
||||
}
|
||||
return loginDTO(v), nil
|
||||
}
|
||||
func (s *AuditService) DeleteLogins(ctx context.Context, ids []uint) error {
|
||||
func (s *AuditService) DeleteLogins(ctx context.Context, ids []int) error {
|
||||
return s.uc.DeleteLogins(ctx, ids)
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ type AnnouncementRequest struct {
|
||||
ID uint `json:"ID"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
UserID *uint `json:"userID"`
|
||||
UserID *int `json:"userID"`
|
||||
Attachments json.RawMessage `json:"attachments"`
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ type AnnouncementResponse struct {
|
||||
DeletedAt any `json:"-"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
UserID *uint `json:"userID"`
|
||||
UserID *int `json:"userID"`
|
||||
Attachments any `json:"attachments"`
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,10 @@ type AuditIDQuery struct {
|
||||
ID uint `form:"ID"`
|
||||
}
|
||||
|
||||
type AuditIDsRequest struct {
|
||||
IDs []int `json:"ids"`
|
||||
}
|
||||
|
||||
type ErrorRecordRequest struct {
|
||||
Form string `json:"form"`
|
||||
Info string `json:"info"`
|
||||
|
||||
Reference in New Issue
Block a user