2026-01-15 09:04:49 +00:00
|
|
|
package request
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"netidhub-saas-be/utils/paginator"
|
2026-01-18 19:58:10 +00:00
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
2026-01-15 09:04:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type MenuModulesQueryRequest struct {
|
2026-01-18 19:58:10 +00:00
|
|
|
MenuId *uint `query:"menu_id"`
|
|
|
|
|
ModuleId *uint `query:"module_id"`
|
|
|
|
|
ClientId *uuid.UUID `query:"client_id"`
|
|
|
|
|
Pagination *paginator.Pagination `query:"pagination"`
|
2026-01-15 09:04:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MenuModulesCreateRequest struct {
|
|
|
|
|
MenuId uint `json:"menu_id" validate:"required"`
|
|
|
|
|
ModuleId uint `json:"module_id" validate:"required"`
|
|
|
|
|
Position *int `json:"position"`
|
|
|
|
|
ClientId *uuid.UUID `json:"client_id"`
|
|
|
|
|
IsActive *bool `json:"is_active"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MenuModulesBatchCreateRequest struct {
|
|
|
|
|
MenuId uint `json:"menu_id" validate:"required"`
|
|
|
|
|
ModuleIds []uint `json:"module_ids" validate:"required,min=1"`
|
|
|
|
|
ClientId *uuid.UUID `json:"client_id"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MenuModulesUpdateRequest struct {
|
|
|
|
|
MenuId *uint `json:"menu_id"`
|
|
|
|
|
ModuleId *uint `json:"module_id"`
|
|
|
|
|
Position *int `json:"position"`
|
|
|
|
|
ClientId *uuid.UUID `json:"client_id"`
|
|
|
|
|
IsActive *bool `json:"is_active"`
|
|
|
|
|
}
|