fusenapi/server_api/product-templatev2.api

60 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-06-20 08:38:03 +00:00
syntax = "v1"
info (
title: "产品模板"// TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
2023-06-21 08:39:55 +00:00
2023-06-20 08:38:03 +00:00
import "basic.api"
2023-06-21 08:39:55 +00:00
2023-06-20 08:38:03 +00:00
service product-templatev2 {
//获取产品模板详情
@handler GetTemplatevDetailHandler
get /product-template/detail(GetTemplatevDetailReq) returns (response);
2023-06-21 07:06:09 +00:00
//获取底图列表
@handler GetBaseMapListHandler
get /product-template/base-map-list( ) returns (response);
2023-06-25 02:15:14 +00:00
//保存底图列表信息
2023-06-21 08:35:43 +00:00
@handler SaveBaseMapHandler
post /product-template/base-map-update ( ) returns (response);
2023-06-20 08:38:03 +00:00
}
//获取产品模板详情
type GetTemplatevDetailReq {
ModelId int64 `form:"model_id"`
TemplateId int64 `form:"template_id"`
}
type GetTemplatevDetailRsp {
2023-06-20 11:56:18 +00:00
ProductModelInfo interface{} `json:"product_model_info"`
ProductTemplate interface{} `json:"product_template"`
LightList []*Light `json:"light_list"`
OptionModelInfo []interface{} `json:"option_model_info"`
Tag int64 `json:"tag"`
2023-06-20 08:38:03 +00:00
}
type Tag {
Id int64 `json:"id"`
Title string `json:"title"`
}
2023-06-20 11:56:18 +00:00
type Light {
Id int64 `json:"id"`
Info interface{} `json:"info"`
2023-06-21 07:06:09 +00:00
}
//获取底图列表
type GetBaseMapListRsp {
Id int64 `json:"id"`
Name string `json:"name"`
Url string `json:"url"`
Ctime string `json:"ctime"`
2023-06-21 08:35:43 +00:00
}
//保存底图信息
type SaveBaseMapReq {
Id int64 `json:"id"`
Name string `json:"name"`
Url string `json:"url"`
Ctime string `json:"ctime"`
2023-06-20 08:38:03 +00:00
}