16 lines
454 B
Go
16 lines
454 B
Go
|
|
package request
|
||
|
|
|
||
|
|
type CreateNotificationRequest struct {
|
||
|
|
SentTo int `json:"sentTo" validate:"required"`
|
||
|
|
SendBy int `json:"sendBy" validate:"required"`
|
||
|
|
SendByName string `json:"sendByName" validate:"required"`
|
||
|
|
Message string `json:"message" validate:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ListNotificationQuery struct {
|
||
|
|
Page int `query:"page"`
|
||
|
|
Limit int `query:"limit"`
|
||
|
|
IsRead *bool `query:"isRead"`
|
||
|
|
IsActive *bool `query:"isActive"`
|
||
|
|
}
|