|
@@ -2,8 +2,130 @@ package utils
|
|
|
|
|
|
import "encoding/json"
|
|
|
|
|
|
+type FirstSceneType struct {
|
|
|
+ Category interface{} `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 json.Number `json:"hlookat"`
|
|
|
+ Vlookat json.Number `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 interface{} `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 json.Number `json:"hlookat"`
|
|
|
+ Vlookat json.Number `json:"vlookat"`
|
|
|
+ Vlookatmax json.Number `json:"vlookatmax"`
|
|
|
+ Vlookatmin json.Number `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"`
|
|
|
+}
|
|
|
+
|
|
|
type ScenesDataType struct {
|
|
|
- AppIcon string `json:"appIcon"`
|
|
|
+ FirstScene *FirstSceneType `json:"firstScenes,string,omitempty"`
|
|
|
+ AppIcon string `json:"appIcon"`
|
|
|
BackgroundMusic struct {
|
|
|
ID string `json:"id"`
|
|
|
Name string `json:"name"`
|
|
@@ -58,126 +180,7 @@ type ScenesDataType struct {
|
|
|
OpenByDefault bool `json:"openByDefault"`
|
|
|
Repeat bool `json:"repeat"`
|
|
|
} `json:"explanation"`
|
|
|
- FirstScene struct {
|
|
|
- Category interface{} `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 json.Number `json:"hlookat"`
|
|
|
- Vlookat json.Number `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 interface{} `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 json.Number `json:"hlookat"`
|
|
|
- Vlookat json.Number `json:"vlookat"`
|
|
|
- Vlookatmax json.Number `json:"vlookatmax"`
|
|
|
- Vlookatmin json.Number `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"`
|