fusenapi/server_api/map-library.api

96 lines
3.1 KiB
Plaintext
Raw Normal View History

2023-06-14 06:57:20 +00:00
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);
2023-06-20 03:52:26 +00:00
//保存贴图信息
@handler SaveMapLibraryHandler
2023-06-20 06:59:13 +00:00
post /map-library/save () returns (response);
2023-06-14 06:57:20 +00:00
}
//获取贴图库列表
type GetMapLibraryListRsp {
2023-06-20 10:37:56 +00:00
Mid int64 `json:"mid"`
Ctime string `json:"ctime"`
Tag *MapLibraryListTag `json:"tag"`
Info interface{} `json:"info"`
2023-06-14 06:57:20 +00:00
}
type MapLibraryListTag {
Id int64 `json:"id"`
Title string `json:"title"`
2023-06-20 03:52:26 +00:00
}
//保存贴图信息
type SaveMapLibraryData {
Mid string `json:"mid"`
Tid string `json:"tid"`
Ctime string `json:"ctime"`
2023-06-20 06:59:13 +00:00
Tag Tag `json:"tag,optional"`
Info Info `json:"info,optional"`
2023-06-20 03:52:26 +00:00
}
type Tag {
2023-06-20 06:59:13 +00:00
Id int64 `json:"id,optional"`
Title string `json:"title,optional"`
2023-06-20 03:52:26 +00:00
}
type Info {
2023-06-20 10:37:56 +00:00
Id string `json:"id,optional"`
Tag string `json:"tag,optional"`
Title string `json:"title,optional"`
Type string `json:"type,optional"`
Text string `json:"text,optional"`
Fill string `json:"fill,optional"`
FontSize int64 `json:"fontSize,optional"`
FontFamily string `json:"fontFamily,optional"`
IfBr bool `json:"ifBr,optional"`
IfShow bool `json:"ifShow,optional"`
IfGroup bool `json:"ifGroup,optional"`
MaxNum int64 `json:"maxNum,optional"`
Rotation int64 `json:"rotation,optional"`
Align string `json:"align,optional"`
VerticalAlign string `json:"verticalAlign,optional"`
Material string `json:"material,optional"`
Width float64 `json:"width,optional"`
Height float64 `json:"height,optional"`
X float64 `json:"x,optional"`
Y float64 `json:"Y,optional"`
Opacity float64 `json:"opacity,optional"`
OptionalColor []*OptionalColor `json:"optionalColor,optional"`
ZIndex int64 `json:"zIndex,optional"`
SvgPath string `json:"svgPath,optional"`
Follow Follow `json:"follow,optional"`
Group []*Group `json:"group,optional"`
CameraStand CameraStand `json:"cameraStand,optional"`
2023-06-20 03:52:26 +00:00
}
type Group {
2023-06-20 06:59:13 +00:00
Tag string `json:"tag,optional"`
Text string `json:"text,optional"`
Title string `json:"title,optional"`
IfBr bool `json:"ifBr,optional"`
IfShow bool `json:"ifShow,optional"`
MaxNum int64 `json:"maxNum,optional"`
2023-06-20 03:52:26 +00:00
}
type OptionalColor {
2023-06-20 06:59:13 +00:00
OptionalColor string `json:"color,optional"`
Name string `json:"name,optional"`
Default bool `json:"default,optional"`
2023-06-20 03:52:26 +00:00
}
type Follow {
2023-06-20 06:59:13 +00:00
Fill string `json:"fill,optional"`
IfShow string `json:"ifShow,optional"`
Content string `json:"content,optional"`
2023-06-20 03:52:26 +00:00
}
type CameraStand {
2023-06-20 06:59:13 +00:00
X int64 `json:"x,optional"`
Y int64 `json:"y,optional"`
Z int64 `json:"z,optional"`
2023-06-14 06:57:20 +00:00
}