syntax = "v1"

info (
	title: "贴图库服务"// TODO: add title
	desc: // TODO: add description
	author: ""
	email: ""
)
import "basic.api"

service map-library {
	//获取贴图库列表
	@handler GetMapLibraryListHandler
	get /map-library/list (  ) returns (response);
}

//获取贴图库列表
type GetMapLibraryListRsp {
	Mid   int64              `json:"mid"`
	Ctime string             `json:"ctime"`
	Tag   MapLibraryListTag  `json:"tag"`
	Info  MapLibraryListInfo `json:"info"`
}
type MapLibraryListInfo {
	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"`
	QRcodeType    int64                             `json:"QRcodeType"`
	Width         float64                           `json:"width"`
	Height        float64                           `json:"height"`
	X             float64                           `json:"x"`
	Y             float64                           `json:"y"`
	Opacity       float64                           `json:"opacity"`
	OptionalColor []MapLibraryListOptionalColorItem `json:"optionalColor"`
	ZIndex        int64                             `json:"zIndex"`
	SvgPath       string                            `json:"svgPath"`
	Follow        MapLibraryListFollow              `json:"follow"`
	Group         []MapLibraryListGroup             `json:"group"`
	CameraStand   MapLibraryListCameraStand         `json:"cameraStand"`
	MaterialTime  string                            `json:"materialTime"`
	MaterialName  string                            `json:"materialName"`
}
type MapLibraryListCameraStand {
	X int64 `json:"x"`
	Y int64 `json:"y"`
	Z int64 `json:"z"`
}
type MapLibraryListGroup {
	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 MapLibraryListFollow {
	Fill    string `json:"fill"`
	IfShow  string `json:"ifShow"`
	Content string `json:"content"`
}
type MapLibraryListOptionalColorItem {
	Color   string `json:"color"`
	Name    string `json:"name"`
	Default bool   `json:"default"`
}
type MapLibraryListTag {
	Id    int64  `json:"id"`
	Title string `json:"title"`
}