31 lines
768 B
Go
31 lines
768 B
Go
package dto
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
type AnnouncementRequest struct {
|
|
ID uint `json:"ID"`
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
UserID *uint `json:"userID"`
|
|
Attachments json.RawMessage `json:"attachments"`
|
|
}
|
|
|
|
type AnnouncementResponse struct {
|
|
ID uint `json:"ID"`
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
DeletedAt any `json:"DeletedAt"`
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
UserID *uint `json:"userID"`
|
|
Attachments any `json:"attachments"`
|
|
}
|
|
|
|
type SelectOptionResponse struct {
|
|
Label string `json:"label"`
|
|
Value uint `json:"value"`
|
|
}
|