package validate_service

type AdminRole struct {
	Uid    uint8 `json:"uid" validate:"required"`
	RoleId uint8 `json:"role_id" validate:"required"`
}

type SetRole struct {
	Type      string `json:"type" validate:"required"`
	Value     string `json:"value" validate:"required"`
	AllowRole string `json:"allow_role" validate:"required"`
}

type SetPermission struct {
	Type       string `json:"type" validate:"required"`
	Value      string `json:"value" validate:"required"`
	Permission struct {
		Path   string `json:"path" validate:"required"`
		Method string `json:"method" validate:"required"`
	} `json:"permission" validate:"required"`
}
