22 lines
447 B
Go
22 lines
447 B
Go
package logsdomain
|
|
|
|
import (
|
|
adsdomain "legalgo-BE-go/internal/domain/ads"
|
|
)
|
|
|
|
type LogsRequest struct {
|
|
AdsID string `json:"ads_id" validate:"required"`
|
|
}
|
|
|
|
type LogsSpec struct {
|
|
ContentID string `json:"content_id" validate:"required"`
|
|
IP *string `json:"ip"`
|
|
UserID *string `json:"user_id"`
|
|
UserAgent *string `json:"user_agent"`
|
|
}
|
|
|
|
type LogResponse struct {
|
|
ID string `json:"id"`
|
|
News []adsdomain.Ads `json:"news"`
|
|
}
|