fix
This commit is contained in:
@@ -12,6 +12,9 @@ service map-library {
|
||||
//获取贴图库列表
|
||||
@handler GetMapLibraryListHandler
|
||||
get /map-library/list ( ) returns (response);
|
||||
//保存贴图信息
|
||||
@handler SaveMapLibraryHandler
|
||||
post /map-library/save (SaveMapLibraryReq) returns (response);
|
||||
}
|
||||
|
||||
//获取贴图库列表
|
||||
@@ -19,9 +22,78 @@ type GetMapLibraryListRsp {
|
||||
Mid int64 `json:"mid"`
|
||||
Ctime string `json:"ctime"`
|
||||
Tag MapLibraryListTag `json:"tag"`
|
||||
Info string `json:"info"`
|
||||
Info Info `json:"info"`
|
||||
}
|
||||
type MapLibraryListTag {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
|
||||
//保存贴图信息
|
||||
type SaveMapLibraryReq {
|
||||
Data []SaveMapLibraryData `json:"-"`
|
||||
}
|
||||
type SaveMapLibraryData {
|
||||
Mid string `json:"mid"`
|
||||
Tid string `json:"tid"`
|
||||
Ctime string `json:"ctime"`
|
||||
Tag Tag `json:"tag"`
|
||||
Info Info `json:"info"`
|
||||
}
|
||||
|
||||
type Tag {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
type Info {
|
||||
Id string `json:"id"`
|
||||
Tag string `json:"tag"`
|
||||
Title string `json:"title"`
|
||||
Type string `json:"type"`
|
||||
Text string `json:"text"`
|
||||
Fill string `json:"fill"`
|
||||
FontSize int64 `json:"fontSize"`
|
||||
FontFamily string `json:"fontFamily"`
|
||||
IfBr bool `json:"ifBr"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
IfGroup bool `json:"ifGroup"`
|
||||
MaxNum int64 `json:"maxNum"`
|
||||
Rotation int64 `json:"rotation"`
|
||||
Align string `json:"align"`
|
||||
VerticalAlign string `json:"verticalAlign"`
|
||||
Material string `json:"material"`
|
||||
Width float64 `json:"width"`
|
||||
Height float64 `json:"height"`
|
||||
X float64 `json:"x"`
|
||||
Y float64 `json:"Y"`
|
||||
Opacity float64 `json:"opacity"`
|
||||
OptionalColor []OptionalColor `json:"optionalColor"`
|
||||
ZIndex int64 `json:"zIndex"`
|
||||
SvgPath string `json:"svgPath"`
|
||||
Follow Follow `json:"follow"`
|
||||
Group []Group `json:"group"`
|
||||
CameraStand CameraStand `json:"cameraStand"`
|
||||
}
|
||||
type Group {
|
||||
Tag string `json:"tag"`
|
||||
Text string `json:"text"`
|
||||
Title string `json:"title"`
|
||||
IfBr bool `json:"ifBr"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
MaxNum int64 `json:"maxNum"`
|
||||
}
|
||||
type OptionalColor {
|
||||
OptionalColor string `json:"color"`
|
||||
Name string `json:"name"`
|
||||
Default bool `json:"default"`
|
||||
}
|
||||
type Follow {
|
||||
Fill string `json:"fill"`
|
||||
IfShow string `json:"ifShow"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
type CameraStand {
|
||||
X int64 `json:"x"`
|
||||
Y int64 `json:"y"`
|
||||
Z int64 `json:"z"`
|
||||
}
|
||||
Reference in New Issue
Block a user