Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson
2023-06-25 18:30:58 +08:00
35 changed files with 641 additions and 58 deletions

View File

@@ -9,11 +9,6 @@ info (
import "basic.api"
type request {
// TODO: add members here and delete this comment
// Name string `form:"name"` // parameters are auto validated
}
service home-user-auth {
@handler UserLoginHandler
post /user/login(RequestUserLogin) returns (response);
@@ -44,7 +39,7 @@ service home-user-auth {
// @handler UserOderListHandler
// get /user/order-list(RequestOrderId) returns (response);
@handler UserOderDeleteHandler
post /user/order-delete(RequestOrderId) returns (response);
}

View File

@@ -0,0 +1,48 @@
syntax = "v1"
info (
title: "产品3d模型服务"// TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service product-model {
//获取产品模型详情
@handler GetModelDetailHandler
get /product-model/detail(GetModelDetailReq) returns (response);
//获取产品模型其他信息
@handler GetModelOtherInfoHandler
get /product-model/other-info(GetModelOtherInfoReq) returns (response);
}
//获取产品模型详情
type GetModelDetailReq {
ModelId int64 `form:"model_id"`
}
type GetModelDetailRsp {
Tag int64 `json:"tag"`
ProductModelInfo interface{} `json:"product_model_info"`
}
//获取产品模型其他信息
type GetModelOtherInfoReq {
ProductId int64 `form:"product_id,optional"`
}
type GetModelOtherInfoRsp {
LightList []LightListItem `json:"light_list"`
PartList []PartListItem `json:"part_list"`
}
type LightListItem {
Id int64 `json:"id"`
Name string `json:"name"`
Info interface{} `json:"info"`
}
type PartListItem {
Id int64 `json:"id"`
Name string `json:"name"`
MaterialImg string `json:"material_img"`
ModelInfo interface{} `json:"model_info"`
}

View File

@@ -9,7 +9,7 @@ info (
import "basic.api"
service product-templatev2 {
service product-template {
//获取产品模板详情
@handler GetTemplatevDetailHandler
get /product-template/detail(GetTemplatevDetailReq) returns (response);