init
This commit is contained in:
24
network/http/web/api/channel_dto.go
Normal file
24
network/http/web/api/channel_dto.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"go_oxspeak_server/models"
|
||||
)
|
||||
|
||||
// DTOs pour Channel
|
||||
|
||||
type CreateChannelRequest struct {
|
||||
ServerID *uuid.UUID `json:"server_id,omitempty"`
|
||||
CategoryID *uuid.UUID `json:"category_id,omitempty"`
|
||||
Position *int32 `json:"position,omitempty"`
|
||||
Type models.ChannelType `json:"type" binding:"required"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
type UpdateChannelRequest struct {
|
||||
ServerID *uuid.UUID `json:"server_id,omitempty"`
|
||||
CategoryID *uuid.UUID `json:"category_id,omitempty"`
|
||||
Position *int32 `json:"position,omitempty"`
|
||||
Type *models.ChannelType `json:"type,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user