|
@@ -0,0 +1,345 @@
|
|
|
+package utils
|
|
|
+
|
|
|
+import "encoding/json"
|
|
|
+
|
|
|
+type ScenesDataType struct {
|
|
|
+ AppIcon string `json:"appIcon"`
|
|
|
+ BackgroundMusic struct {
|
|
|
+ ID string `json:"id"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ OssPath string `json:"ossPath"`
|
|
|
+ } `json:"backgroundMusic"`
|
|
|
+ CatalogRoot []struct {
|
|
|
+ Children []any `json:"children"`
|
|
|
+ ID string `json:"id"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ } `json:"catalogRoot"`
|
|
|
+ Catalogs []struct {
|
|
|
+ ID string `json:"id"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ } `json:"catalogs"`
|
|
|
+ CoverInfo struct {
|
|
|
+ CoverImageInWay int64 `json:"coverImageInWay"`
|
|
|
+ CoverImageOrder string `json:"coverImageOrder"`
|
|
|
+ CoverImgBac string `json:"coverImgBac"`
|
|
|
+ CoverMoLoc string `json:"coverMoLoc"`
|
|
|
+ CoverPcLoc string `json:"coverPcLoc"`
|
|
|
+ CoverSelect string `json:"coverSelect"`
|
|
|
+ CoverVideoBac string `json:"coverVideoBac"`
|
|
|
+ CoverVideoControl int64 `json:"coverVideoControl"`
|
|
|
+ CoverVideoInWay int64 `json:"coverVideoInWay"`
|
|
|
+ ImgColorSelec string `json:"imgColorSelec"`
|
|
|
+ IsShowCover int64 `json:"isShowCover"`
|
|
|
+ VideoColorSelec string `json:"videoColorSelec"`
|
|
|
+ VideoMo string `json:"videoMo"`
|
|
|
+ VideoMoIcon string `json:"videoMoIcon"`
|
|
|
+ VideoMoLoc string `json:"videoMoLoc"`
|
|
|
+ VideoPc string `json:"videoPc"`
|
|
|
+ VideoPcIcon string `json:"videoPcIcon"`
|
|
|
+ VideoPcLoc string `json:"videoPcLoc"`
|
|
|
+ } `json:"coverInfo"`
|
|
|
+ CoverMo string `json:"coverMo"`
|
|
|
+ CoverPc string `json:"coverPc"`
|
|
|
+ CoverPcLoc string `json:"coverPcLoc"`
|
|
|
+ CoverSelect string `json:"coverSelect"`
|
|
|
+ CreateTime string `json:"createTime"`
|
|
|
+ CustomButton []struct {
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ OpenMethod string `json:"openMethod"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ Value string `json:"value"`
|
|
|
+ } `json:"customButton"`
|
|
|
+ Description string `json:"description"`
|
|
|
+ Explanation struct {
|
|
|
+ AudioID string `json:"audioId"`
|
|
|
+ AudioName string `json:"audioName"`
|
|
|
+ AudioURL string `json:"audioUrl"`
|
|
|
+ OpenByDefault bool `json:"openByDefault"`
|
|
|
+ Repeat bool `json:"repeat"`
|
|
|
+ } `json:"explanation"`
|
|
|
+ FirstScene struct {
|
|
|
+ Category int64 `json:"category"`
|
|
|
+ CustomMask struct {
|
|
|
+ Earth struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"earth"`
|
|
|
+ Sky struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"sky"`
|
|
|
+ } `json:"customMask"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ ID string `json:"id"`
|
|
|
+ InitVisual struct {
|
|
|
+ Hlookat float64 `json:"hlookat"`
|
|
|
+ Vlookat float64 `json:"vlookat"`
|
|
|
+ } `json:"initVisual"`
|
|
|
+ MaterialType string `json:"materialType"`
|
|
|
+ SceneCode string `json:"sceneCode"`
|
|
|
+ SceneTitle string `json:"sceneTitle"`
|
|
|
+ SomeData struct {
|
|
|
+ Hotspots []struct {
|
|
|
+ ArticleInfo struct {
|
|
|
+ HTML string `json:"html"`
|
|
|
+ } `json:"articleInfo"`
|
|
|
+ Ath interface{} `json:"ath"`
|
|
|
+ Atv interface{} `json:"atv"`
|
|
|
+ Audio string `json:"audio"`
|
|
|
+ CustomIconInfo struct {
|
|
|
+ Img string `json:"img"`
|
|
|
+ } `json:"customIconInfo"`
|
|
|
+ FodderID []interface{} `json:"fodderId"`
|
|
|
+ FontSize int64 `json:"fontSize"`
|
|
|
+ HotspotIconType string `json:"hotspotIconType"`
|
|
|
+ HotspotTitle string `json:"hotspotTitle"`
|
|
|
+ HotspotType string `json:"hotspotType"`
|
|
|
+ Hyperlink string `json:"hyperlink"`
|
|
|
+ Icontype string `json:"icontype"`
|
|
|
+ Image []interface{} `json:"image"`
|
|
|
+ ImageTextInfo struct {
|
|
|
+ Audio struct{} `json:"audio"`
|
|
|
+ ImageList []interface{} `json:"imageList"`
|
|
|
+ IsApplyToAll bool `json:"isApplyToAll"`
|
|
|
+ Text string `json:"text"`
|
|
|
+ } `json:"imageTextInfo"`
|
|
|
+ Img string `json:"img"`
|
|
|
+ Link string `json:"link"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ PdfInfo struct {
|
|
|
+ Name string `json:"name"`
|
|
|
+ URL string `json:"url"`
|
|
|
+ } `json:"pdfInfo"`
|
|
|
+ PersonalizedTagInfo struct {
|
|
|
+ BorderColor string `json:"borderColor"`
|
|
|
+ FillColor string `json:"fillColor"`
|
|
|
+ IsShowLine bool `json:"isShowLine"`
|
|
|
+ IsTextWrap bool `json:"isTextWrap"`
|
|
|
+ LineDirection string `json:"lineDirection"`
|
|
|
+ TextColor string `json:"textColor"`
|
|
|
+ TextDirection string `json:"textDirection"`
|
|
|
+ TextNumPerLine int64 `json:"textNumPerLine"`
|
|
|
+ } `json:"personalizedTagInfo"`
|
|
|
+ PhoneInfo struct {
|
|
|
+ Phone string `json:"phone"`
|
|
|
+ } `json:"phoneInfo"`
|
|
|
+ Secne struct {
|
|
|
+ Category string `json:"category"`
|
|
|
+ CustomMask struct {
|
|
|
+ Earth struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"earth"`
|
|
|
+ Sky struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"sky"`
|
|
|
+ } `json:"customMask"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ ID string `json:"id"`
|
|
|
+ InitVisual struct {
|
|
|
+ Hlookat float64 `json:"hlookat"`
|
|
|
+ Vlookat float64 `json:"vlookat"`
|
|
|
+ Vlookatmax float64 `json:"vlookatmax"`
|
|
|
+ Vlookatmin float64 `json:"vlookatmin"`
|
|
|
+ } `json:"initVisual"`
|
|
|
+ MaterialType string `json:"materialType"`
|
|
|
+ SceneCode string `json:"sceneCode"`
|
|
|
+ SceneTitle string `json:"sceneTitle"`
|
|
|
+ SomeData struct{} `json:"someData"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ Version string `json:"version"`
|
|
|
+ } `json:"secne"`
|
|
|
+ SerialFrameInfo struct {
|
|
|
+ Duration int64 `json:"duration"`
|
|
|
+ FrameNumber int64 `json:"frameNumber"`
|
|
|
+ Img string `json:"img"`
|
|
|
+ } `json:"serialFrameInfo"`
|
|
|
+ Size json.Number `json:"size"`
|
|
|
+ Textarea string `json:"textarea"`
|
|
|
+ TitleDisplayMode string `json:"titleDisplayMode"`
|
|
|
+ TitlePosition string `json:"titlePosition"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ Video string `json:"video"`
|
|
|
+ } `json:"hotspots"`
|
|
|
+ } `json:"someData"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ } `json:"firstScene"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ ID string `json:"id"`
|
|
|
+ IsAuto int64 `json:"isAuto"`
|
|
|
+ IsLogo int64 `json:"isLogo"`
|
|
|
+ IsPassword int64 `json:"isPassword"`
|
|
|
+ IsRemind int64 `json:"isRemind"`
|
|
|
+ IsShowOpeningAnimation bool `json:"isShowOpeningAnimation"`
|
|
|
+ Logo string `json:"logo"`
|
|
|
+ LogoChange bool `json:"logoChange"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ OpeningAnimationType int64 `json:"openingAnimationType"`
|
|
|
+ OssSomeData string `json:"ossSomeData"`
|
|
|
+ Password string `json:"password"`
|
|
|
+ PcIcon string `json:"pcIcon"`
|
|
|
+ QrCode string `json:"qrCode"`
|
|
|
+ RemindTime int64 `json:"remindTime"`
|
|
|
+ SceneIndex string `json:"sceneIndex"`
|
|
|
+ Scenes []struct {
|
|
|
+ Category string `json:"category"`
|
|
|
+ CustomMask struct {
|
|
|
+ Earth struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"earth"`
|
|
|
+ Sky struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"sky"`
|
|
|
+ } `json:"customMask"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ ID string `json:"id"`
|
|
|
+ InitVisual struct {
|
|
|
+ Hlookat float64 `json:"hlookat"`
|
|
|
+ Vlookat float64 `json:"vlookat"`
|
|
|
+ Vlookatmax int64 `json:"vlookatmax"`
|
|
|
+ Vlookatmin int64 `json:"vlookatmin"`
|
|
|
+ } `json:"initVisual"`
|
|
|
+ MaterialType string `json:"materialType"`
|
|
|
+ SceneCode string `json:"sceneCode"`
|
|
|
+ SceneTitle string `json:"sceneTitle"`
|
|
|
+ SomeData struct {
|
|
|
+ Hotspots []struct {
|
|
|
+ ArticleInfo struct {
|
|
|
+ HTML string `json:"html"`
|
|
|
+ } `json:"articleInfo"`
|
|
|
+ Ath interface{} `json:"ath"`
|
|
|
+ Atv interface{} `json:"atv"`
|
|
|
+ Audio string `json:"audio"`
|
|
|
+ CustomIconInfo struct {
|
|
|
+ Img string `json:"img"`
|
|
|
+ } `json:"customIconInfo"`
|
|
|
+ FodderID []int64 `json:"fodderId"`
|
|
|
+ FontSize int64 `json:"fontSize"`
|
|
|
+ HotspotIconType string `json:"hotspotIconType"`
|
|
|
+ HotspotTitle string `json:"hotspotTitle"`
|
|
|
+ HotspotType string `json:"hotspotType"`
|
|
|
+ Hyperlink string `json:"hyperlink"`
|
|
|
+ Icontype string `json:"icontype"`
|
|
|
+ Image []interface{} `json:"image"`
|
|
|
+ ImageTextInfo struct {
|
|
|
+ Audio struct{} `json:"audio"`
|
|
|
+ ImageList []struct {
|
|
|
+ Ancestors string `json:"ancestors"`
|
|
|
+ CreateTime string `json:"createTime"`
|
|
|
+ DirID int64 `json:"dirId"`
|
|
|
+ DirName string `json:"dirName"`
|
|
|
+ Dpi string `json:"dpi"`
|
|
|
+ FileName string `json:"fileName"`
|
|
|
+ FileSize string `json:"fileSize"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ ID int64 `json:"id"`
|
|
|
+ MaterialType string `json:"materialType"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ OssPath string `json:"ossPath"`
|
|
|
+ PreviewIcon string `json:"previewIcon"`
|
|
|
+ SceneCode string `json:"sceneCode"`
|
|
|
+ Status int64 `json:"status"`
|
|
|
+ TempID string `json:"tempId"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ UpdateTime string `json:"updateTime"`
|
|
|
+ UserID string `json:"userId"`
|
|
|
+ } `json:"imageList"`
|
|
|
+ IsApplyToAll bool `json:"isApplyToAll"`
|
|
|
+ Text string `json:"text"`
|
|
|
+ } `json:"imageTextInfo"`
|
|
|
+ Img string `json:"img"`
|
|
|
+ Link string `json:"link"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ PdfInfo struct {
|
|
|
+ Name string `json:"name"`
|
|
|
+ URL string `json:"url"`
|
|
|
+ } `json:"pdfInfo"`
|
|
|
+ PersonalizedTagInfo struct {
|
|
|
+ BorderColor string `json:"borderColor"`
|
|
|
+ FillColor string `json:"fillColor"`
|
|
|
+ IsShowLine bool `json:"isShowLine"`
|
|
|
+ IsTextWrap bool `json:"isTextWrap"`
|
|
|
+ LineDirection string `json:"lineDirection"`
|
|
|
+ TextColor string `json:"textColor"`
|
|
|
+ TextDirection string `json:"textDirection"`
|
|
|
+ TextNumPerLine int64 `json:"textNumPerLine"`
|
|
|
+ } `json:"personalizedTagInfo"`
|
|
|
+ PhoneInfo struct {
|
|
|
+ Phone string `json:"phone"`
|
|
|
+ } `json:"phoneInfo"`
|
|
|
+ Secne struct {
|
|
|
+ Category string `json:"category"`
|
|
|
+ CustomMask struct {
|
|
|
+ Earth struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"earth"`
|
|
|
+ Sky struct {
|
|
|
+ Antidistorted bool `json:"antidistorted"`
|
|
|
+ FodderID string `json:"fodderId"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ IsShow bool `json:"isShow"`
|
|
|
+ Scale int64 `json:"scale"`
|
|
|
+ } `json:"sky"`
|
|
|
+ } `json:"customMask"`
|
|
|
+ Icon string `json:"icon"`
|
|
|
+ ID string `json:"id"`
|
|
|
+ InitVisual struct {
|
|
|
+ Hlookat float64 `json:"hlookat"`
|
|
|
+ Vlookat float64 `json:"vlookat"`
|
|
|
+ Vlookatmax float64 `json:"vlookatmax"`
|
|
|
+ Vlookatmin float64 `json:"vlookatmin"`
|
|
|
+ } `json:"initVisual"`
|
|
|
+ MaterialType string `json:"materialType"`
|
|
|
+ SceneCode string `json:"sceneCode"`
|
|
|
+ SceneTitle string `json:"sceneTitle"`
|
|
|
+ SomeData struct{} `json:"someData"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ Version string `json:"version"`
|
|
|
+ } `json:"secne"`
|
|
|
+ SerialFrameInfo struct {
|
|
|
+ Duration int64 `json:"duration"`
|
|
|
+ FrameNumber int64 `json:"frameNumber"`
|
|
|
+ Img string `json:"img"`
|
|
|
+ } `json:"serialFrameInfo"`
|
|
|
+ Size json.Number `json:"size"`
|
|
|
+ Textarea string `json:"textarea"`
|
|
|
+ TitleDisplayMode string `json:"titleDisplayMode"`
|
|
|
+ TitlePosition string `json:"titlePosition"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ Video string `json:"video"`
|
|
|
+ } `json:"hotspots"`
|
|
|
+ } `json:"someData"`
|
|
|
+ Type string `json:"type"`
|
|
|
+ Version string `json:"version"`
|
|
|
+ } `json:"scenes"`
|
|
|
+ Share string `json:"share"`
|
|
|
+ Status int64 `json:"status"`
|
|
|
+ UpdateTime string `json:"updateTime"`
|
|
|
+ UserID string `json:"userId"`
|
|
|
+}
|