syntax = "v1" info ( title: "产品模板"// TODO: add title desc: // TODO: add description author: "" email: "" ) import "basic.api" service product-templatev2 { //获取产品模板详情 @handler GetTemplatevDetailHandler get /product-template/detail(GetTemplatevDetailReq) returns (response); //获取底图列表 @handler GetBaseMapListHandler get /product-template/base-map-list( ) returns (response); } //获取产品模板详情 type GetTemplatevDetailReq { ModelId int64 `form:"model_id"` TemplateId int64 `form:"template_id"` } type GetTemplatevDetailRsp { 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"` } type Tag { Id int64 `json:"id"` Title string `json:"title"` } type Light { Id int64 `json:"id"` Info interface{} `json:"info"` } //获取底图列表 type GetBaseMapListRsp { Id int64 `json:"id"` Name string `json:"name"` Url string `json:"url"` Ctime string `json:"ctime"` }