优化
This commit is contained in:
@@ -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