This commit is contained in:
laodaming
2023-06-25 11:28:37 +08:00
parent aceb4c926f
commit 1a48387e92
8 changed files with 261 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
syntax = "v1"
info (
title: "产品模板"// TODO: add title
title: "产品模板底图服务"// TODO: add title
desc: // TODO: add description
author: ""
email: ""
@@ -16,10 +16,15 @@ service product-templatev2 {
//获取底图列表
@handler GetBaseMapListHandler
get /product-template/base-map-list( ) returns (response);
//保存底图列表信息
//底图批量保存
@handler SaveBaseMapHandler
post /product-template/base-map-update ( ) returns (response);
//新增底图
@handler AddBaseMapHandler
post /product-template/base-map-add (AddBaseMapReq) returns (response);
//更新模板
@handler UpdateTemplateHandler
post /product-template/update-template (UpdateTemplateReq) returns (response);
}
//获取产品模板详情
@@ -57,4 +62,26 @@ type SaveBaseMapReq {
Name string `json:"name"`
Url string `json:"url"`
Ctime string `json:"ctime"`
}
//新增底图
type AddBaseMapReq {
Name string `json:"name"`
Url string `json:"url"`
}
//更新模板
type UpdateTemplateReq {
ModelId int64 `json:"modelId"`
TemplateData TemplateData `json:"templateData"`
}
type TemplateData {
Id int64 `json:"id"`
Name string `json:"name"`
Cover string `json:"cover"`
IsPublic bool `json:"isPublic"`
Material string `json:"material"`
MaterialList []interface{} `json:"materialList"`
}
type UpdateTemplateRsp {
ModelId int64 `json:"modelId"`
TemplateId int64 `json:"templateId"`
}